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

Clarify rapids_cuda_init_architectures behavior #279

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions rapids-cmake/cuda/init_architectures.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,17 @@ to include support for `ALL` and `NATIVE` to make CUDA architecture compilation

rapids_cuda_init_architectures(<project_name>)

Establishes what CUDA architectures that will be compiled for.
Used before enabling the CUDA language either via :cmake:command:`project() <cmake:command:project>` or
:cmake:command:`enable_language() <cmake:command:enable_language>` to establish te CUDA architectures to be compiled for.
robertmaynard marked this conversation as resolved.
Show resolved Hide resolved
Parses the :cmake:variable:`CMAKE_CUDA_ARCHITECTURES <cmake:variable:CMAKE_CUDA_ARCHITECTURES>` for special
values `ALL`, `NATIVE` and `""`.

.. note::
Required to be called before :cmake:command:`project() <cmake:command:project>`
Required to be called before the first :cmake:command:`project() <cmake:command:project>` call
robertmaynard marked this conversation as resolved.
Show resolved Hide resolved

Will automatically call :cmake:command:`rapids_cuda_set_architectures` immediately
after :cmake:command:`project() <cmake:command:project>` establishing the correct values for
:cmake:variable:`CMAKE_CUDA_ARCHITECTURES <cmake:variable:CMAKE_CUDA_ARCHITECTURES>`.
after :cmake:command:`project() <cmake:command:project>` with the same project name establishing
the correct values for :cmake:variable:`CMAKE_CUDA_ARCHITECTURES <cmake:variable:CMAKE_CUDA_ARCHITECTURES>`.

``project_name``
Name of the project
Expand Down