New AX_OPENACC macro and supporting flags

This commit is contained in:
sfilippone
2024-08-07 17:04:04 +02:00
parent 464baceb13
commit 03aaa090db
7 changed files with 639 additions and 9 deletions
+7 -4
View File
@@ -17,14 +17,17 @@ FINCLUDES=$(FMFLAG)$(MODDIR) $(FMFLAG)$(INCDIR) $(FMFLAG). $(FMFLAG)$(PSBMODDIR)
FFLAGS=-O0 -march=native -fopenacc -foffload=nvptx-none="-march=sm_70"
CFLAGS=-O0 -march=native
SRCS=vectoacc.F90 datavect.F90
VTC=vectoacc.o
DVT=datavect.o
CSRC=timers.c
OBJS=$(SRCS:.F90=.o) $(CSRC:.c=.o)
all: dir $(OBJS)
$(FC) $(FFLAGS) $(OBJS) -o datavect $(FINCLUDES) $(PSBLAS_LIB) $(LDLIBS)
/bin/mv datavect $(EXEDIR)
all: dir psb_d_oacc_pde3d
#$(OBJS)
# $(FC) $(FFLAGS) $(OBJS) -o datavect $(FINCLUDES) $(PSBLAS_LIB) $(LDLIBS)
# /bin/mv datavect $(EXEDIR)
dir:
@if test ! -d $(EXEDIR); then mkdir $(EXEDIR); fi
+2 -1
View File
@@ -733,7 +733,8 @@ program psb_d_oacc_pde3d
end if
! get parameters
call get_parms(ctxt, kmethd, ptype, afmt, agfmt, idim, istopc, itmax, itrace, irst, ipart, parms)
call get_parms(ctxt, kmethd, ptype, afmt, agfmt, idim, istopc,&
& itmax, itrace, irst, ipart, parms)
! allocate and fill in the coefficient matrix, rhs and initial guess
call psb_barrier(ctxt)