{"id":17320933,"url":"https://github.com/thilinarmtb/lsbench","last_synced_at":"2025-07-05T16:37:22.977Z","repository":{"id":160294201,"uuid":"628369062","full_name":"thilinarmtb/lsbench","owner":"thilinarmtb","description":"Repository for benchmarking linear solvers on GPU.","archived":false,"fork":false,"pushed_at":"2023-05-12T01:03:14.000Z","size":10026,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T12:48:17.479Z","etag":null,"topics":["amg","amgx","cholesky","cholmod","cpu","cusparse","finite-element-methods","gpu","hpc","hypre","linear-solvers","spectral-element-method"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thilinarmtb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-15T18:22:17.000Z","updated_at":"2023-05-26T23:25:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"b24b0551-b114-4a5e-bb2e-51eb56e7d29c","html_url":"https://github.com/thilinarmtb/lsbench","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thilinarmtb/lsbench","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thilinarmtb%2Flsbench","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thilinarmtb%2Flsbench/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thilinarmtb%2Flsbench/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thilinarmtb%2Flsbench/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thilinarmtb","download_url":"https://codeload.github.com/thilinarmtb/lsbench/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thilinarmtb%2Flsbench/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263772047,"owners_count":23509037,"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":["amg","amgx","cholesky","cholmod","cpu","cusparse","finite-element-methods","gpu","hpc","hypre","linear-solvers","spectral-element-method"],"created_at":"2024-10-15T13:34:22.502Z","updated_at":"2025-07-05T16:37:22.972Z","avatar_url":"https://github.com/thilinarmtb.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Introduction\n\n`lsbench` is a repository containing benchmark codes for various high performant\nlinear solvers on CPUs and GPUs. It can read a sparse matrix and solve it using\n`cuSparse`, `AmgX`, `Hypre` or `CHOLMOD`. An example on how to use the API is in\n`bin/driver.c`. A few test matrices are available in `tests/` directory. Currently,\nall the benchmarks are performend in double precision.\n\n## Building lsbench\n\n`lsbench` by defaults download and builds `CHOLMOD`. You can enable/disable\nsolvers (`AmgX`, `cuSparse`, etc.) when configuring the `cmake` build using\n`ENABLE_\u003cSOLVER\u003e=ON|OFF`.\n\n### Build requirements\n\n- cmake (\u003e= 3.18)\n- CUDAToolkit (\u003e= 11.0) if using AmgX, cuSparse or Hypre with Cuda backend)\n\n### Build instructions\n\n1. Clone the repo first using `git` and `cd` into the repository:\n```sh\ngit clone https://github.com/thilinarmtb/lsbench.git\ncd lsbench\n```\n\n2. Then you can use `cmake` to build the benchmarks:\n```sh\nmkdir build \u0026\u0026 cd build \ncmake .. -DCMAKE_C_COMPILER=\u003cc-compiler\u003e -DCMAKE_CXX_COMPILER=\u003ccxx-compiler\u003e \\\n  -DCMAKE_INSTALL_PREFIX=\u003clsbench-install-dir\u003e \\\n  -DENABLE_CUSPARSE=ON -DENABLE_AMGX=OFF\nmake -j8 install\ncd -\n```\n\nYou can add the `bin` directory to the `PATH` variable to access the binary\nwithout the full path:\n```sh\nexport PATH=${PATH}:\u003clsbench-install-dir\u003e/bin\n```\n\n## Running the benchmarks\n\nOnce the benchmarks are built, they can be run using the following command:\nDo `driver --help` to see available options (not everything is implemented\nright now).\n```sh\ndriver --solver cholmod --test ./tests/I1_05x05.txt --verbose=1\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthilinarmtb%2Flsbench","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthilinarmtb%2Flsbench","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthilinarmtb%2Flsbench/lists"}