mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-27 22:45:57 +00:00
parent
58ee076750
commit
412d05a1d2
1 changed files with 3 additions and 0 deletions
|
|
@ -274,6 +274,9 @@ if (onnxruntime_USE_ROCM)
|
|||
|
||||
file(GLOB rocm_cmake_components ${onnxruntime_ROCM_HOME}/lib/cmake/*)
|
||||
list(APPEND CMAKE_PREFIX_PATH ${rocm_cmake_components})
|
||||
# Force cmake to accept the configured HIP compiler. Because the configured CMAKE_PREFIX_PATH does not work during
|
||||
# enable_language(HIP), we might need to move configuring of CMAKE_PREFIX_PATH to build.py (in the future).
|
||||
set(CMAKE_HIP_COMPILER_FORCED ON)
|
||||
|
||||
enable_language(HIP)
|
||||
# NOTE: Flags -mllvm -amdgpu-early-inline-all=true are critical for gpu kernel code performance. -mllvm passes the
|
||||
|
|
|
|||
Loading…
Reference in a new issue