-
Notifications
You must be signed in to change notification settings - Fork 91
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
Remove pre cuda 11 code #1715
Remove pre cuda 11 code #1715
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! We might even be able to remove some if not all defined(CUDA_VERSION)
checks from the files.
@@ -886,7 +459,7 @@ inline void destroy(cusparseSpMatDescr_t descr) | |||
} | |||
|
|||
|
|||
#if (CUDA_VERSION >= 11031) | |||
#if defined(CUDA_VERSION) && (CUDA_VERSION >= 11031) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if we even need these - the file should fail to compile if it's not compiled by nvcc or not including the necessary headers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would just leave it, it's not hurting.
ab3df44
to
1414433
Compare
Co-authored-by: Tobias Ribizel <[email protected]>
1414433
to
8e08058
Compare
Quality Gate passedIssues Measures |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #1715 +/- ##
===========================================
- Coverage 89.33% 89.33% -0.01%
===========================================
Files 779 779
Lines 63430 63429 -1
===========================================
- Hits 56663 56662 -1
Misses 6767 6767 ☔ View full report in Codecov by Sentry. |
This PR remove all `#if` branches for CUDA < 11. Related PR: ginkgo-project#1715
This PR remove all
#if
branches for CUDA < 11.