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

Minor fixes to build with both CUDA < 11 and >= 11 #34

Merged
merged 5 commits into from
Jan 21, 2025

Conversation

nbeams
Copy link
Contributor

@nbeams nbeams commented Jan 17, 2025

In #32, I accidentally broke CUDA < 11 while fixing the csr2csc function use for CUDA >= 11. By altering the order of the parameters in the macro and not the main source code, we can fix CUDA 11 without breaking CUDA 10 or older.

TODO:

  • Test with CUDA 10
  • Test with CUDA 11 (11.0 and 11.4)

Update: When building with CUDA 10.2 to test the sparse changes, I ran into minor issues with some dense routines: shpotrf_gpu (cuBLAS usage) and *gbtf2_native[_v2] (complications building/linking due to cooperative groups). Some minor changes have been added, and the PR title has been updated accordingly. We maintain CUDA 10 support for now, but the *gbtf2_native routines are disabled for CUDA < 11.

@nbeams nbeams added CUDA Related to CUDA support sparse Related to MAGMA-sparse bugfix Fixes a bug labels Jan 17, 2025
@nbeams nbeams force-pushed the sparse-fixes-cuda-lt-11 branch from 0c0d222 to 196f3b3 Compare January 21, 2025 05:07
@nbeams nbeams changed the title Sparse matrix conversion for both CUDA < 11 and >= 11 Minor fixes to build with both CUDA < 11 and >= 11 Jan 21, 2025
@abdelfattah83 abdelfattah83 self-assigned this Jan 21, 2025
@abdelfattah83
Copy link
Contributor

LGTM

@nbeams nbeams merged commit 9c81048 into master Jan 21, 2025
14 checks passed
@nbeams nbeams deleted the sparse-fixes-cuda-lt-11 branch January 21, 2025 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Fixes a bug CUDA Related to CUDA support sparse Related to MAGMA-sparse
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants