Skip to content

Commit

Permalink
Clarify rapids_cuda_init_architectures behavior (#279)
Browse files Browse the repository at this point in the history
Authors:
  - Robert Maynard (https://github.com/robertmaynard)

Approvers:
  - Bradley Dice (https://github.com/bdice)

URL: #279
  • Loading branch information
robertmaynard authored Oct 4, 2022
1 parent 7a305cb commit b28e241
Showing 1 changed file with 5 additions and 4 deletions.
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 the CUDA architectures to be compiled for.
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.
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

0 comments on commit b28e241

Please sign in to comment.