Commit d5831d45 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Added --hipcc-func-supp flag to avoid extremely long compilation time and huge...

Added --hipcc-func-supp flag to avoid extremely long compilation time and huge memory usage of hipcc

See https://github.com/ROCm-Developer-Tools/HIP/issues/2285
parent ea84053e
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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 )