Align rocm compiler flags (#7467)
Bring consistency with the old generate script behavior
This commit is contained in:
parent
fc2a0715df
commit
9e83e550e1
1 changed files with 5 additions and 0 deletions
|
@ -58,6 +58,8 @@ endif
|
|||
GPU_COMPILER_CUFLAGS = \
|
||||
$(GPU_COMPILER_FPIC) \
|
||||
$(addprefix -m,$(GPU_RUNNER_CPU_FLAGS)) \
|
||||
-mf16c \
|
||||
-mfma \
|
||||
-parallel-jobs=2 \
|
||||
-c \
|
||||
-O3 \
|
||||
|
@ -77,6 +79,9 @@ GPU_COMPILER_CUFLAGS = \
|
|||
-D_CRT_SECURE_NO_WARNINGS \
|
||||
-D_GNU_SOURCE \
|
||||
-D_XOPEN_SOURCE=600 \
|
||||
-DUSE_PROF_API=1 \
|
||||
-std=gnu++14 \
|
||||
-x hip \
|
||||
-mllvm=-amdgpu-early-inline-all=true \
|
||||
-mllvm=-amdgpu-function-calls=false \
|
||||
-Wno-expansion-to-defined \
|
||||
|
|
Loading…
Reference in a new issue