{"id":18711179,"url":"https://github.com/rocm/rocsparse","last_synced_at":"2026-04-02T11:46:29.264Z","repository":{"id":35812716,"uuid":"129772279","full_name":"ROCm/rocSPARSE","owner":"ROCm","description":" Next generation SPARSE implementation for ROCm platform ","archived":false,"fork":false,"pushed_at":"2025-04-10T19:30:44.000Z","size":18296,"stargazers_count":119,"open_issues_count":2,"forks_count":59,"subscribers_count":36,"default_branch":"develop","last_synced_at":"2025-04-10T20:42:19.869Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://rocm.docs.amd.com/projects/rocSPARSE/en/latest/","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ROCm.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-04-16T16:17:11.000Z","updated_at":"2025-04-10T19:30:48.000Z","dependencies_parsed_at":"2023-02-18T10:45:25.279Z","dependency_job_id":"f925079a-99ac-4d3c-9b38-66834eaf7c04","html_url":"https://github.com/ROCm/rocSPARSE","commit_stats":{"total_commits":1477,"total_committers":54,"mean_commits":27.35185185185185,"dds":0.6919431279620853,"last_synced_commit":"ac09667744b71c720128391a60e80aa27f8b6379"},"previous_names":["rocm/rocsparse","rocmsoftwareplatform/rocsparse"],"tags_count":89,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ROCm%2FrocSPARSE","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ROCm%2FrocSPARSE/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ROCm%2FrocSPARSE/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ROCm%2FrocSPARSE/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ROCm","download_url":"https://codeload.github.com/ROCm/rocSPARSE/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248625478,"owners_count":21135512,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T12:37:37.994Z","updated_at":"2026-04-02T11:46:29.234Z","avatar_url":"https://github.com/ROCm.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rocSPARSE\n\nrocSPARSE exposes a common interface that provides Basic Linear Algebra Subroutines (BLAS) for\nsparse computation. It's implemented on top of AMD\n[ROCm](https://github.com/ROCm/ROCm) runtime and toolchains. rocSPARSE is\ncreated using the [HIP](https://github.com/ROCm/HIP/) programming\nlanguage and optimized for AMD's latest discrete GPUs.\n\n## Documentation\n\n\u003e [!NOTE]\n\u003e The published rocSPARSE documentation is available at [rocSPARSE](https://rocm.docs.amd.com/projects/rocSPARSE/en/latest/index.html) in an organized, easy-to-read format, with search and a table of contents. The documentation source files reside in the rocSPARSE/docs folder of this repository. As with all ROCm projects, the documentation is open source. For more information, see [Contribute to ROCm documentation](https://rocm.docs.amd.com/en/latest/contribute/contributing.html).\n\nTo build our documentation locally, run the following code:\n\n```bash\ncd docs\npip3 install -r sphinx/requirements.txt\npython3 -m sphinx -T -E -b html -d _build/doctrees -D language=en . _build/html\n```\n\nAlternatively, build with CMake:\n\n```bash\ncmake -DBUILD_DOCS=ON ...\n```\n\n## Requirements\n\n* Git\n* CMake (3.5 or later)\n* AMD [ROCm] 3.5 platform or later\n\nOptional:\n* [GoogleTest](https://github.com/google/googletest) (required only for tests)\n  * Use `GTEST_ROOT` to specify a location\n  * If you don't have GoogleTest installed, CMake automatically downloads and builds it\n\n## Build and install\n\n1. Build rocSPARSE using the `install.sh` script.\n\n    ```bash\n    # Clone rocSPARSE using git\n    git clone https://github.com/ROCm/rocSPARSE.git\n\n    # Go to rocSPARSE directory\n    cd rocSPARSE\n\n    # Run install.sh script\n    # Command line options:\n    #   -h|--help         - prints help message\n    #   -i|--install      - install after build\n    #   -d|--dependencies - install build dependencies\n    #   -c|--clients      - build library clients too (combines with -i \u0026 -d)\n    #   -g|--debug        - build with debug flag\n    ./install.sh -dci\n    ```\n\n2. Compile rocSPARSE (all compiler specifications are automatically determined).\n\n    ```bash\n    # Clone rocSPARSE using git\n    git clone https://github.com/ROCm/rocSPARSE.git\n\n    # Go to rocSPARSE directory, create and go to the build directory\n    cd rocSPARSE; mkdir -p build/release; cd build/release\n\n    # Configure rocSPARSE\n    # Build options:\n    #   BUILD_CLIENTS_TESTS      - build tests (OFF)\n    #   BUILD_CLIENTS_BENCHMARKS - build benchmarks (OFF)\n    #   BUILD_CLIENTS_SAMPLES    - build examples (ON)\n    #   BUILD_VERBOSE            - verbose output (OFF)\n    #   BUILD_SHARED_LIBS        - build rocSPARSE as a shared library (ON)\n    CXX=/opt/rocm/bin/amdclang++ cmake -DBUILD_CLIENTS_TESTS=ON ../..\n\n    # Build\n    make\n\n    # Install\n    [sudo] make install\n    ```\n\n## Unit tests and benchmarks\n\nTo run unit tests, you must build rocSPARSE with `-DBUILD_CLIENTS_TESTS=ON`.\n\n```bash\n# Go to rocSPARSE build directory\ncd rocSPARSE; cd build/release\n\n# Run all tests\n./clients/staging/rocsparse-test\n```\n\nTo run benchmarks, you must build rocSPARSE with `-DBUILD_CLIENTS_BENCHMARKS=ON`.\n\n```bash\n# Go to rocSPARSE build directory\ncd rocSPARSE/build/release\n\n# Run benchmark, e.g.\n./clients/staging/rocsparse-bench -f hybmv --laplacian-dim 2000 -i 200\n```\n\n## Issues\n\nTo submit an issue, a bug, or a feature request, use the GitHub\n[issue tracker](https://github.com/ROCm/rocSPARSE/issues).\n\n## License\n\nOur [license file](https://github.com/ROCm/rocSPARSE) is located in the main\nrepository.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frocm%2Frocsparse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frocm%2Frocsparse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frocm%2Frocsparse/lists"}