File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.14 FATAL_ERROR)
22
33# Define the CUDA architectures.
44# Empty value is forbidden.
5- project (ParallelReductionsBenchmark LANGUAGES CXX CUDA )
5+ project (ParallelReductionsBenchmark LANGUAGES CXX)
66
77set (CMAKE_CUDA_STANDARD 17)
88set (CMAKE_CXX_STANDARD 17)
@@ -90,6 +90,7 @@ endif()
9090# List of all possibkle compiler IDs:
9191# https://cmake.org/cmake/help/latest/variable/CMAKE_LANG_COMPILER_ID.html
9292if (CMAKE_CUDA_COMPILER_ID STREQUAL "NVIDIA" OR CMAKE_CUDA_COMPILER_ID STREQUAL "NVHPC" )
93+ enable_language (CUDA)
9394 message ("-- Detected Nvidia Compiler" )
9495 set_property (SOURCE reduce_bench.cpp PROPERTY LANGUAGE CUDA)
9596 set_target_properties (reduce_bench PROPERTIES POSITION_INDEPENDENT_CODE ON )
You can’t perform that action at this time.
0 commit comments