Skip to content

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

@ronlieb

Description

@ronlieb

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

~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions