Commit 541b8e4d authored by gaoqiong's avatar gaoqiong
Browse files

set --gpu-max-threads-per-block=1024

parent ee7cced8
Pipeline #491 failed with stages
in 0 seconds
......@@ -1345,6 +1345,7 @@ function(onnxruntime_set_compile_flags target_name)
# some #pragma unroll will fail, do not treat them as error
# #warning must not be treated as error
list(APPEND ORT_HIP_WARNING_FLAGS -Wno-error=pass-failed "-Wno-error=#warnings")
list(APPEND ORT_HIP_WARNING_FLAGS --gpu-max-threads-per-block=1024)
foreach(FLAG ${ORT_HIP_WARNING_FLAGS})
target_compile_options(${target_name} PRIVATE "$<$<COMPILE_LANGUAGE:HIP>:SHELL:${FLAG}>")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment