File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -104,8 +104,14 @@ set(CONDUIT_USE_HIP FALSE)
104104
105105if (ENABLE_CUDA)
106106 set (CONDUIT_USE_CUDA TRUE )
107+ if (NOT CMAKE_CUDA_COMPILER)
108+ enable_language (CUDA )
109+ endif ()
107110elseif ( ENABLE_HIP)
108111 set (CONDUIT_USE_HIP TRUE )
112+ if (NOT CMAKE_HIP_COMPILER)
113+ enable_language (HIP )
114+ endif ()
109115endif ()
110116
111117################################
Original file line number Diff line number Diff line change @@ -69,16 +69,10 @@ set(conduit_device_test_sources
6969 t_conduit_execution.cpp)
7070
7171if (CONDUIT_USE_CUDA)
72- if (NOT CMAKE_CUDA_COMPILER)
73- enable_language (CUDA )
74- endif ()
7572 set_source_files_properties (${conduit_device_test_sources}
7673 PROPERTIES LANGUAGE CUDA )
7774 set_target_properties (t_conduit_execution PROPERTIES LINKER_LANGUAGE CUDA )
7875elseif (CONDUIT_USE_HIP)
79- if (NOT CMAKE_HIP_COMPILER)
80- enable_language (HIP )
81- endif ()
8276 set_source_files_properties (${conduit_device_test_sources}
8377 PROPERTIES LANGUAGE HIP )
8478 set_target_properties (t_conduit_execution PROPERTIES LINKER_LANGUAGE HIP )
You can’t perform that action at this time.
0 commit comments