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_CUFLAGS = \
|
||||||
$(GPU_COMPILER_FPIC) \
|
$(GPU_COMPILER_FPIC) \
|
||||||
$(addprefix -m,$(GPU_RUNNER_CPU_FLAGS)) \
|
$(addprefix -m,$(GPU_RUNNER_CPU_FLAGS)) \
|
||||||
|
-mf16c \
|
||||||
|
-mfma \
|
||||||
-parallel-jobs=2 \
|
-parallel-jobs=2 \
|
||||||
-c \
|
-c \
|
||||||
-O3 \
|
-O3 \
|
||||||
|
@ -77,6 +79,9 @@ GPU_COMPILER_CUFLAGS = \
|
||||||
-D_CRT_SECURE_NO_WARNINGS \
|
-D_CRT_SECURE_NO_WARNINGS \
|
||||||
-D_GNU_SOURCE \
|
-D_GNU_SOURCE \
|
||||||
-D_XOPEN_SOURCE=600 \
|
-D_XOPEN_SOURCE=600 \
|
||||||
|
-DUSE_PROF_API=1 \
|
||||||
|
-std=gnu++14 \
|
||||||
|
-x hip \
|
||||||
-mllvm=-amdgpu-early-inline-all=true \
|
-mllvm=-amdgpu-early-inline-all=true \
|
||||||
-mllvm=-amdgpu-function-calls=false \
|
-mllvm=-amdgpu-function-calls=false \
|
||||||
-Wno-expansion-to-defined \
|
-Wno-expansion-to-defined \
|
||||||
|
|
Loading…
Reference in a new issue