mirror of
https://github.com/sfilippone/psblas3.git
synced 2026-10-06 22:55:08 +00:00
New AX_OPENACC macro and supporting flags
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user