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

Remove pre cuda 11 code #1715

Merged
merged 1 commit into from
Oct 31, 2024
Merged

Remove pre cuda 11 code #1715

merged 1 commit into from
Oct 31, 2024

Conversation

MarcelKoch
Copy link
Member

This PR remove all #if branches for CUDA < 11.

@MarcelKoch MarcelKoch added the 1:ST:ready-for-review This PR is ready for review label Oct 28, 2024
@MarcelKoch MarcelKoch added this to the Ginkgo 1.9.0 milestone Oct 28, 2024
@MarcelKoch MarcelKoch requested a review from a team October 28, 2024 11:19
@MarcelKoch MarcelKoch self-assigned this Oct 28, 2024
@ginkgo-bot ginkgo-bot added mod:cuda This is related to the CUDA module. reg:benchmarking This is related to benchmarking. mod:hip This is related to the HIP module. labels Oct 28, 2024
Copy link
Member

@upsj upsj left a 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.

common/cuda_hip/components/atomic.hpp Outdated Show resolved Hide resolved
common/cuda_hip/components/atomic.hpp Outdated Show resolved Hide resolved
common/cuda_hip/components/atomic.hpp Outdated Show resolved Hide resolved
@@ -886,7 +459,7 @@ inline void destroy(cusparseSpMatDescr_t descr)
}


#if (CUDA_VERSION >= 11031)
#if defined(CUDA_VERSION) && (CUDA_VERSION >= 11031)
Copy link
Member

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.

Copy link
Member Author

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.

@MarcelKoch MarcelKoch added 1:ST:ready-to-merge This PR is ready to merge. and removed 1:ST:ready-for-review This PR is ready for review labels Oct 31, 2024
Co-authored-by: Tobias Ribizel <[email protected]>
Copy link

Copy link

codecov bot commented Oct 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.33%. Comparing base (ba15dcd) to head (8e08058).
Report is 2 commits behind head on develop.

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.
📢 Have feedback on the report? Share it here.

@MarcelKoch MarcelKoch merged commit 91fa24b into develop Oct 31, 2024
11 of 14 checks passed
@MarcelKoch MarcelKoch deleted the remove-pre-cuda11 branch October 31, 2024 17:57
MarcelKoch added a commit to MarcelKoch/ginkgo that referenced this pull request Dec 2, 2024
This PR remove all `#if` branches for CUDA < 11.

Related PR: ginkgo-project#1715
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1:ST:ready-to-merge This PR is ready to merge. mod:cuda This is related to the CUDA module. mod:hip This is related to the HIP module. reg:benchmarking This is related to benchmarking.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants