Loading CMakeLists.txt +4 −1 Original line number Diff line number Diff line Loading @@ -283,7 +283,10 @@ if( ${WITH_HIP} ) if( ${HIP_FOUND} ) set(BUILD_HIP TRUE) # available variables: HIP_HIPCC_FLAGS, HIP_HCC_FLAGS, HIP_CLANG_FLAGS, HIP_NVCC_FLAGS list(APPEND HIP_HIPCC_FLAGS -std=c++14 -DHAVE_HIP) # note: --hipcc-func-supp disables "inline all functions for device code" which # leads to extremely long compilation time and memory requirements # see https://github.com/ROCm-Developer-Tools/HIP/issues/2285#issuecomment-856350254 list(APPEND HIP_HIPCC_FLAGS -std=c++14 -DHAVE_HIP --hipcc-func-supp) #set(CMAKE_HIPCXX_FLAGS ${CMAKE_HIPCXX_FLAGS} -I${HIP_ROOT_DIR}/include -DHAVE_HIP -DHIP_PLATFORM=nvcc ) #set(CMAKE_HIPCXX_FLAGS ${CMAKE_HIPCXX_FLAGS} -DHAVE_HIP ) Loading Loading
CMakeLists.txt +4 −1 Original line number Diff line number Diff line Loading @@ -283,7 +283,10 @@ if( ${WITH_HIP} ) if( ${HIP_FOUND} ) set(BUILD_HIP TRUE) # available variables: HIP_HIPCC_FLAGS, HIP_HCC_FLAGS, HIP_CLANG_FLAGS, HIP_NVCC_FLAGS list(APPEND HIP_HIPCC_FLAGS -std=c++14 -DHAVE_HIP) # note: --hipcc-func-supp disables "inline all functions for device code" which # leads to extremely long compilation time and memory requirements # see https://github.com/ROCm-Developer-Tools/HIP/issues/2285#issuecomment-856350254 list(APPEND HIP_HIPCC_FLAGS -std=c++14 -DHAVE_HIP --hipcc-func-supp) #set(CMAKE_HIPCXX_FLAGS ${CMAKE_HIPCXX_FLAGS} -I${HIP_ROOT_DIR}/include -DHAVE_HIP -DHIP_PLATFORM=nvcc ) #set(CMAKE_HIPCXX_FLAGS ${CMAKE_HIPCXX_FLAGS} -DHAVE_HIP ) Loading