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

Package cuSPARSELt #270446

Closed
SomeoneSerge opened this issue Nov 27, 2023 · 5 comments · May be fixed by #306172
Closed

Package cuSPARSELt #270446

SomeoneSerge opened this issue Nov 27, 2023 · 5 comments · May be fixed by #306172
Labels
6.topic: cuda Parallel computing platform and API 9.needs: package (new) This needs a new package to be added

Comments

@SomeoneSerge
Copy link
Contributor

Issue description

Introduce cudaPackages.cusparselt based on https://developer.download.nvidia.com/compute/cusparselt/redist/redistrib_0.5.0.json

This is required e.g. to remove the dependency on the runfile-based cudatoolkit in python3Packages.cupy

CC @NixOS/cuda-maintainers

@ConnorBaker ConnorBaker added the 6.topic: cuda Parallel computing platform and API label Nov 28, 2023
@FliegendeWurst FliegendeWurst added the 9.needs: package (new) This needs a new package to be added label Oct 18, 2024
sepiabrown added a commit to sepiabrown/nixpkgs that referenced this issue Mar 6, 2025
@prusnak
Copy link
Member

prusnak commented Mar 16, 2025

@sepiabrown Are you working on packaging cusparselt? Do you plan to send a PR?

@sepiabrown
Copy link
Contributor

@sepiabrown Are you working on packaging cusparselt? Do you plan to send a PR?

Yes, I'd like to. I'm trying to build cusparselt for cuda-library-samples but haven't succeeded.

@prusnak
Copy link
Member

prusnak commented Mar 17, 2025

I'm trying to build cusparselt for cuda-library-samples but haven't succeeded.

How do you build cuda-library-samples for cusparselt? I am having hard time to figure this one out.

sepiabrown added a commit to sepiabrown/nixpkgs that referenced this issue Mar 18, 2025
sepiabrown added a commit to sepiabrown/nixpkgs that referenced this issue Mar 18, 2025
sepiabrown added a commit to sepiabrown/nixpkgs that referenced this issue Mar 18, 2025
sepiabrown added a commit to sepiabrown/nixpkgs that referenced this issue Mar 18, 2025
sepiabrown added a commit to sepiabrown/nixpkgs that referenced this issue Mar 18, 2025
@sepiabrown
Copy link
Contributor

sepiabrown commented Mar 18, 2025

I'm trying to build cusparselt for cuda-library-samples but haven't succeeded.

How do you build cuda-library-samples for cusparselt? I am having hard time to figure this one out.

I have succeeded in building cuda-library-samples for cusparselt. There are some quirks that seem unnecessary. For example, I have organised the code for cusparselt using the code from cutensor and it doesn't populate the lib64 folder but only populate lib. However, cuda-library-samples requires lib64, so I postPatched it like below.

+      postPatch = ''
+        substituteInPlace CMakeLists.txt \
+          --replace-fail "''${CUSPARSELT_ROOT}/lib64/libcusparseLt.so" "${lib.getLib cusparselt}/lib/libcusparseLt.so" \
+          --replace-fail "''${CUSPARSELT_ROOT}/lib64/libcusparseLt_static.a" "${lib.getStatic cusparselt}/lib/libcusparseLt_static.a"
+      '';

sepiabrown added a commit to sepiabrown/nixpkgs that referenced this issue Mar 18, 2025
@prusnak
Copy link
Member

prusnak commented Mar 22, 2025

Done in #390863

@prusnak prusnak closed this as completed Mar 22, 2025
@github-project-automation github-project-automation bot moved this from New to ✅ Done in CUDA Team Mar 22, 2025
andrew-field pushed a commit to andrew-field/alterware that referenced this issue Mar 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: cuda Parallel computing platform and API 9.needs: package (new) This needs a new package to be added
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

5 participants