Skip to content

Commit

Permalink
Setting CUDA_ARCHITECTURES on the libcugraph target as required by cm…
Browse files Browse the repository at this point in the history
…ake 3.18.
  • Loading branch information
rlratzel committed Feb 3, 2021
1 parent da58d79 commit 30640f7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,17 @@ target_link_libraries(cugraph PRIVATE
${OpenMP_CXX_LIB_NAMES})
endif(OpenMP_CXX_FOUND)

# CUDA_ARCHITECTURES=OFF implies cmake will not pass arch flags to the
# compiler. CUDA_ARCHITECTURES must be set to a non-empty value to prevent cmake
# warnings about policy CMP0104. With this setting, arch flags must be manually
# set! ("evaluate_gpu_archs(GPU_ARCHS)" is the current mechanism used in
# cpp/CMakeLists.txt for setting arch options). Run "cmake --help-policy
# CMP0104" for policy details.
# NOTE: the CUDA_ARCHITECTURES=OFF setting may be removed after migrating to the
# findcudatoolkit features in cmake 3.17+
set_target_properties(cugraph PROPERTIES
CUDA_ARCHITECTURES OFF)

###################################################################################################
# - generate tests --------------------------------------------------------------------------------

Expand Down

0 comments on commit 30640f7

Please sign in to comment.