Skip to content

Commit cc2de5b

Browse files
committed
Modify CMakeLists
1 parent 3f81663 commit cc2de5b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ option(ENABLE_CNPY "Enable cnpy usage." OFF)
4040
option(ENABLE_PEXSI "Enable support for PEXSI." OFF)
4141
option(ENABLE_CUSOLVERMP "Enable cusolvermp." OFF)
4242
option(USE_DSP "Enable DSP usage." OFF)
43+
option(USE_CUDA_ON_DCU "Enable CUDA on DCU" OFF)
4344

4445
# enable json support
4546
if(ENABLE_RAPIDJSON)
@@ -126,6 +127,10 @@ if (USE_DSP)
126127
set(ABACUS_BIN_NAME abacus_dsp)
127128
endif()
128129

130+
if (USE_CUDA_ON_DCU)
131+
add_compile_definitions(__CUDA_ON_DCU)
132+
endif()
133+
129134
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
130135

131136
if(ENABLE_COVERAGE)

0 commit comments

Comments
 (0)