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

Fea/support cmake cuda architectures rapids value #327

Conversation

robertmaynard
Copy link
Contributor

@robertmaynard robertmaynard commented Dec 8, 2022

Description

CMake 3.23+ now offers support for all and all-major as special keywords to CMAKE_CUDA_ARCHITECTURES. This means that rapids-cmake overload on ALL now creates confusion and breaks expectations ( trxcllnt/rapids-compose#84 https://gitlab.kitware.com/cmake/cmake/-/issues/23739, #104 )

This PR introduces the new magic keyword of RAPIDS which behaves the same as ALL, and will become the new apporved approach for projects that want to build for RAPIDS supported platforms.

Fixes #314

More details on the plans of deprecation for ALL can be found at: #318

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.
  • The cmake-format.json is up to date with these changes.

@robertmaynard robertmaynard added feature request New feature or request non-breaking Introduces a non-breaking change 3 - Ready for Review Ready for review by team labels Dec 8, 2022
@robertmaynard robertmaynard requested a review from a team as a code owner December 8, 2022 21:50
Copy link
Contributor

@bdice bdice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this change needed? There is no description or linked issue that I can see.

rapids-cmake/cuda/init_architectures.cmake Outdated Show resolved Hide resolved
@robertmaynard robertmaynard requested a review from bdice December 14, 2022 13:58
@robertmaynard robertmaynard force-pushed the fea/support-CMAKE_CUDA_ARCHITECTURES-RAPIDS-value branch from 46ab0da to b33a3ba Compare December 19, 2022 18:37
Copy link
Contributor

@bdice bdice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@robertmaynard
Copy link
Contributor Author

@gpucibot merge

@rapids-bot rapids-bot bot merged commit 49a9ced into rapidsai:branch-23.02 Jan 4, 2023
@robertmaynard robertmaynard deleted the fea/support-CMAKE_CUDA_ARCHITECTURES-RAPIDS-value branch January 4, 2023 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 - Ready for Review Ready for review by team feature request New feature or request non-breaking Introduces a non-breaking change
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Expand CMAKE_CUDA_ARCHITECTURE to support RAPIDS ( equal to ALL )(
2 participants