Skip to content

Commit

Permalink
add HIP language compile option -parallel-jobs=4
Browse files Browse the repository at this point in the history
This should speed up the compilation of HIP files by compiling the
various gfx targets in parallel.
  • Loading branch information
jeffdaily committed Aug 21, 2023
1 parent 5952fdf commit a7af87c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ if (onnxruntime_USE_ROCM)
if(NOT DEFINED _CMAKE_HIP_DEVICE_RUNTIME_TARGET)
message(FATAL_ERROR "HIP Language is not properly configured.")
endif()
add_compile_options("$<$<COMPILE_LANGUAGE:HIP>:SHELL:-x hip>")
add_compile_options("$<$<COMPILE_LANGUAGE:HIP>:SHELL:-x hip -parallel-jobs=4>")

if (NOT onnxruntime_HIPIFY_PERL)
set(onnxruntime_HIPIFY_PERL ${onnxruntime_ROCM_HOME}/hip/bin/hipify-perl)
Expand Down

0 comments on commit a7af87c

Please sign in to comment.