mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-23 19:32:23 +00:00
add --amdgpu-target=gfx90a (#9820)
This commit is contained in:
parent
00c979db4d
commit
8d88a6ac7f
1 changed files with 3 additions and 0 deletions
|
|
@ -1106,6 +1106,9 @@ if (onnxruntime_USE_ROCM)
|
|||
|
||||
# Generate GPU code for GFX9 Generation
|
||||
list(APPEND HIP_CLANG_FLAGS --amdgpu-target=gfx906 --amdgpu-target=gfx908)
|
||||
if (ROCM_VERSION_DEV_INT GREATER_EQUAL 50000)
|
||||
list(APPEND HIP_CLANG_FLAGS --amdgpu-target=gfx90a)
|
||||
endif()
|
||||
|
||||
#onnxruntime_add_shared_library_module(onnxruntime_providers_rocm ${onnxruntime_providers_rocm_src})
|
||||
hip_add_library(onnxruntime_providers_rocm MODULE ${onnxruntime_providers_rocm_src})
|
||||
|
|
|
|||
Loading…
Reference in a new issue