Merge pull request #3069 from Vsevak/fix-hip-ffast-math

Fix HIP Makefile under lib/gpu
This commit is contained in:
Axel Kohlmeyer
2022-01-03 11:37:55 -05:00
committed by GitHub
2 changed files with 2 additions and 4 deletions

View File

@ -39,11 +39,9 @@ HIP_PLATFORM=$(shell $(HIP_PATH)/bin/hipconfig --platform)
HIP_COMPILER=$(shell $(HIP_PATH)/bin/hipconfig --compiler)
ifeq (hcc,$(HIP_PLATFORM))
HIP_OPTS += -ffast-math
# possible values: gfx803,gfx900,gfx906
HIP_ARCH = gfx906
else ifeq (amd,$(HIP_PLATFORM))
HIP_OPTS += -ffast-math
# possible values: gfx803,gfx900,gfx906
HIP_ARCH = gfx906
else ifeq (nvcc,$(HIP_PLATFORM))