Skip to content

Commit

Permalink
remove HIP_HCC_FLAGS
Browse files Browse the repository at this point in the history
HIP_HCC_FLAGS was deprecated in ROCm4.x
  • Loading branch information
jjsbear authored Mar 15, 2021
1 parent 9a092df commit f26bfe1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cmake/onnxruntime_providers.cmake
Original file line number Diff line number Diff line change
@@ -1005,15 +1005,12 @@ if (onnxruntime_USE_ROCM)
#list(APPEND HIP_CXX_FLAGS -O0)
endif(CMAKE_BUILD_TYPE MATCHES Debug)

list(APPEND HIP_HCC_FLAGS ${HIP_CXX_FLAGS})
list(APPEND HIP_CLANG_FLAGS ${HIP_CXX_FLAGS})

# Let hcc to generate GPU code during compilation
list(APPEND HIP_HCC_FLAGS -fno-gpu-rdc)
# Generate GPU code during compilation
list(APPEND HIP_CLANG_FLAGS -fno-gpu-rdc)

# Generate GPU code for GFX9 Generation
list(APPEND HIP_HCC_FLAGS --amdgpu-target=gfx906 --amdgpu-target=gfx908)
list(APPEND HIP_CLANG_FLAGS --amdgpu-target=gfx906 --amdgpu-target=gfx908)

hip_add_library(onnxruntime_providers_rocm ${onnxruntime_providers_rocm_src})

0 comments on commit f26bfe1

Please sign in to comment.