request change to openmp-offload/Makefile for -march=
ronlieb opened this issue · 0 comments
ronlieb commented
commit c7a9218bda7c31238726bda6c96c2066cbf97478 (HEAD -> amd-omp-arch)
Author: Ron Lieberman ron.lieberman@amd.com
Date: Thu Nov 25 02:49:16 2021 +0000
provide evar to override -march for amd
diff --git a/openmp-offload/Makefile b/openmp-offload/Makefile
index f3aae5c..dac93b7 100644
--- a/openmp-offload/Makefile
+++ b/openmp-offload/Makefile
@@ -67,7 +67,8 @@ endif
AOMP Targeting MI100 -- Change march to Target Other GPUs
ifeq ($(COMPILER),amd)
CC = clang
- CFLAGS += -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa -Xopenmp-target=amdgcn-amd-amdhsa -march=gfx908
- AOMP_GPU ?= gfx908
- CFLAGS += -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa -Xopenmp-target=amdgcn-amd-amdhsa -march=$(AOMP_GPU)
endif
Debug Flags
~