Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #194

Merged
merged 2 commits into from
Feb 14, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions Libraries/rocSPARSE/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Summary

The examples in this subdirectory showcase the functionality of the [rocSPARSE](https://github.com/rocmSoftwarePlatform/rocSPARSE) library. The examples build on both Linux and Windows for both the ROCm (AMD GPU) and CUDA (NVIDIA GPU) backend.
The examples in this subdirectory showcase the functionality of the [rocSPARSE](https://github.com/rocmSoftwarePlatform/rocSPARSE) library. The examples build on both Linux and Windows for the ROCm (AMD GPU) backend.

## Note on asynchronous execution

Expand All @@ -16,14 +16,12 @@ All rocSPARSE library functions, unless otherwise stated, are non blocking and e

- OR GNU Make - available via the distribution's package manager

- [ROCm](https://rocm.docs.amd.com/projects/HIP/en/latest/install/install.html) (at least version 6.x.x) OR the HIP Nvidia runtime (on the CUDA platform)
- [ROCm](https://rocm.docs.amd.com/projects/HIP/en/latest/install/install.html) (at least version 6.x.x)

- [rocSPARSE](https://github.com/rocmSoftwarePlatform/rocSPARSE)

- ROCm platform: `rocsparse` package available from [repo.radeon.com](https://repo.radeon.com/rocm/). The repository is added during the standard ROCm [install procedure](https://rocm.docs.amd.com/projects/HIP/en/latest/install/install.html).

- CUDA platform: Install rocSPARSE from source: [instructions](https://rocm.docs.amd.com/projects/rocSPARSE/en/latest/install/Linux_Install_Guide.html).

### Windows

- [Visual Studio](https://visualstudio.microsoft.com/) 2019 or 2022 with the "Desktop Development with C++" workload
Expand All @@ -35,7 +33,6 @@ All rocSPARSE library functions, unless otherwise stated, are non blocking and e
- [rocSPARSE](https://github.com/rocmSoftwarePlatform/rocSPARSE)

- ROCm platform: Installed as part of the ROCm SDK on Windows.
- CUDA platform: Install rocSPARSE from source: [instructions](https://rocm.docs.amd.com/projects/rocSPARSE/en/latest/install/Linux_Install_Guide.html).

- [CMake](https://cmake.org/download/) (optional, to build with CMake. Requires at least version 3.21)

Expand All @@ -52,15 +49,15 @@ Make sure that the dependencies are installed, or use the [provided Dockerfiles]
All examples in the `rocSPARSE` subdirectory can either be built by a single CMake project or be built independently.

- `$ cd Libraries/rocSPARSE`
- `$ cmake -S . -B build` (on ROCm) or `$ cmake -S . -B build -D GPU_RUNTIME=CUDA` (on CUDA)
- `$ cmake -S . -B build` (on ROCm)
- `$ cmake --build build`

#### Using Make

All examples can be built by a single invocation to Make or be built independently.

- `$ cd Libraries/rocSPARSE`
- `$ make` (on ROCm) or `$ make GPU_RUNTIME=CUDA` (on CUDA)
- `$ make`

### Windows

Expand Down