Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

request change to openmp-offload/Makefile for -march= #22

Open
ronlieb opened this issue Nov 25, 2021 · 0 comments
Open

request change to openmp-offload/Makefile for -march= #22

ronlieb opened this issue Nov 25, 2021 · 0 comments

Comments

@ronlieb
Copy link

ronlieb commented Nov 25, 2021

commit c7a9218bda7c31238726bda6c96c2066cbf97478 (HEAD -> amd-omp-arch)
Author: Ron Lieberman [email protected]
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

~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant