Skip to content

Commit

Permalink
set CMAKE_CUDA_ARCHITECTURES to OFF instead of undefined (#729)
Browse files Browse the repository at this point in the history
Follow up to #727 after discussing with @robertmaynard it was decided that setting `CMAKE_CUDA_ARCHITECTURES` to `OFF` instead of undefined is better.

Authors:
  - Paul Taylor (@trxcllnt)

Approvers:
  - Keith Kraus (@kkraus14)

URL: #729
  • Loading branch information
trxcllnt authored Mar 15, 2021
1 parent cb81c80 commit dd718e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/Modules/EvalGPUArchs.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# the License.

# Unset this first in case it's set to <empty_string>
unset(CMAKE_CUDA_ARCHITECTURES CACHE)
set(CMAKE_CUDA_ARCHITECTURES OFF)

# Enable CUDA so we can invoke nvcc
enable_language(CUDA)
Expand Down

0 comments on commit dd718e2

Please sign in to comment.