Skip to content
Snippets Groups Projects
Commit 1e86f6a7 authored by Pietro Incardona's avatar Pietro Incardona
Browse files

Fixing for HIP

parent c29f1e4f
No related branches found
No related tags found
No related merge requests found
Pipeline #3907 passed
......@@ -6,7 +6,7 @@ if(NOT CUDA_ON_BACKEND STREQUAL "None")
set(CUDA_SOURCES HDF5_wr/HDF5_writer_cuda.cu)
endif()
if ( HIP_ENABLE AND HIP_FOUND )
if ( CUDA_ON_BACKEND STREQUAL "HIP" AND HIP_FOUND )
list(APPEND HIP_HIPCC_FLAGS ${CMAKE_CXX_FLAGS_DEBUG})
......@@ -14,7 +14,7 @@ if ( HIP_ENABLE AND HIP_FOUND )
list(APPEND HIP_HIPCC_FLAGS -O0)
endif()
set(CMAKE_CXX_COMPILER ${HIP_HIPCC_EXECUTABLE})
# set(CMAKE_CXX_COMPILER ${HIP_HIPCC_EXECUTABLE})
list(APPEND HIP_HIPCC_FLAGS -D__NVCC__ -D__HIP__ -DCUDART_VERSION=11000 -D__CUDACC__ -D__CUDACC_VER_MAJOR__=11 -D__CUDACC_VER_MINOR__=0 -D__CUDACC_VER_BUILD__=0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment