Skip to content

Remove requirement to specify project name to cuda_init_architectures#1017

Open
robertmaynard wants to merge 5 commits into
rapidsai:mainfrom
robertmaynard:fea/remove_project_name_from_cuda_init
Open

Remove requirement to specify project name to cuda_init_architectures#1017
robertmaynard wants to merge 5 commits into
rapidsai:mainfrom
robertmaynard:fea/remove_project_name_from_cuda_init

Conversation

@robertmaynard
Copy link
Copy Markdown
Contributor

Description

Relax requirements for rapids_cuda_init_architectures so users don't need to keep 2 sources of truth in sync for the project name.

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.
  • I have added new files under rapids-cmake/
    • I have added include guards (include_guard(GLOBAL))
    • I have added the associated docs/ rst file and update the api.rst

@robertmaynard
Copy link
Copy Markdown
Contributor Author

/okay to test

@robertmaynard robertmaynard force-pushed the fea/remove_project_name_from_cuda_init branch from 1b11a79 to d42b537 Compare May 7, 2026 18:30
@robertmaynard
Copy link
Copy Markdown
Contributor Author

/okay to test

@robertmaynard robertmaynard force-pushed the fea/remove_project_name_from_cuda_init branch from d42b537 to 5b09556 Compare May 7, 2026 19:04
@robertmaynard robertmaynard marked this pull request as ready for review May 7, 2026 19:04
@robertmaynard robertmaynard requested a review from a team as a code owner May 7, 2026 19:04
@robertmaynard robertmaynard added feature request New feature or request non-breaking Introduces a non-breaking change labels May 7, 2026
@robertmaynard robertmaynard force-pushed the fea/remove_project_name_from_cuda_init branch from 5b09556 to 30c7727 Compare May 7, 2026 19:08
@robertmaynard robertmaynard force-pushed the fea/remove_project_name_from_cuda_init branch from 30c7727 to 4570302 Compare May 7, 2026 19:18
@robertmaynard robertmaynard force-pushed the fea/remove_project_name_from_cuda_init branch from 8845bb2 to 611e624 Compare May 7, 2026 20:40
Copy link
Copy Markdown
Contributor

@vyasr vyasr left a comment

Choose a reason for hiding this comment

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

Implementation looks fine.

Comment thread rapids-cmake/cuda/init_architectures.cmake Outdated
unset(CMAKE_CUDA_ARCHITECTURES)
unset(ENV{CUDAARCHS})

rapids_cuda_init_architectures(rapids-project)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why change this test if you already have a new test with no project value?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I wanted to have tests that cover that the RAPIDS and NATIVE modes work as expected with the no project syntax.

function(rapids_cuda_set_architectures mode)
list(APPEND CMAKE_MESSAGE_CONTEXT "rapids.cuda.set_architectures")

if(NOT DEFINED CMAKE_CUDA_COMPILER_ID)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'll trust you that this check is the best option for verifying that the CUDA language is enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature request New feature or request non-breaking Introduces a non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants