Skip to content

Commit

Permalink
Fixing gfortran 13 build
Browse files Browse the repository at this point in the history
  • Loading branch information
bobrobey committed Sep 26, 2023
1 parent 9d38801 commit 45269c4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Pragma_Examples/OpenACC/Fortran/Make/vecadd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ all: ${EXEC}

ROCM_GPU ?= $(strip $(shell rocminfo |grep -m 1 -E gfx[^0]{1} | sed -e 's/ *Name: *//'))

ifeq ($(notdir $(FC)), flang)
FC1=$(notdir $(FC))

ifeq ($(findstring, flang, $(FC1)), flang)
OPENACC_FLAGS = Flang_does_not_support_OpenACC_for_AMD
FREE_FORM_FLAG = -Mfreeform
else ifeq ($(notdir $(FC)), amdflang)
else ifeq ($(findstring, amdflang, $(FC1)), amdflang)
OPENACC_FLAGS = amdflang_does_not_support_OpenACC_for_AMD
FREE_FORM_FLAG = -Mfreeform
else
Expand Down

0 comments on commit 45269c4

Please sign in to comment.