|
5 months ago | |
---|---|---|
.. | ||
gemm_strided_batched | 7 months ago | |
her | 7 months ago | |
scal | 7 months ago | |
CMakeLists.txt | 5 months ago | |
Makefile | 3 years ago | |
README.md | 1 year ago |
README.md
hipBLAS Examples
Summary
The examples in this subdirectory showcase the functionality of the hipBLAS library. The examples build on both Linux and Windows for the ROCm (AMD GPU) backend.
Prerequisites
Linux
- CMake (at least version 3.21)
- OR GNU Make - available via the distribution's package manager
- ROCm (at least version 6.x.x)
- hipBLAS:
hipblas
package available from repo.radeon.com.
Windows
- Visual Studio 2019 or 2022 with the "Desktop Development with C++" workload
- ROCm toolchain for Windows (No public release yet)
- The Visual Studio ROCm extension needs to be installed to build with the solution files.
- hipBLAS
- Installed as part of the ROCm SDK on Windows for ROCm platform.
- CMake (optional, to build with CMake. Requires at least version 3.21)
- Ninja (optional, to build with CMake)
Building
Linux
Make sure that the dependencies are installed, or use the provided Dockerfiles to build and run the examples in a containerized environment that has all prerequisites installed.
Using CMake
All examples in the hipBLAS
subdirectory can either be built by a single CMake project or be built independently.
$ cd Libraries/hipBLAS
$ cmake -S . -B build
$ cmake --build build
Using Make
All examples can be built by a single invocation to Make or be built independently.
$ cd Libraries/hipBLAS
$ make
Windows
Visual Studio
Visual Studio solution files are available for the individual examples. To build all examples for hipBLAS open the top level solution file ROCm-Examples-VS2019.sln and filter for hipBLAS.
For more detailed build instructions refer to the top level README.md.
CMake
All examples in the hipBLAS
subdirectory can either be built by a single CMake project or be built independently. For build instructions refer to the top-level README.md.