File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed
src/tests/integration/gpu Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 1+ executable =co_dot
2+
3+ compile_fortran =/lustre/atlas/proj-shared/csc109/gcc/bin/gfortran -fcoarray=lib
4+ compile_cuda =nvcc
5+ link =ftn
6+
7+ API_PATH =$(OPENCOARRAYS_SRC_DIR ) /src/extensions/
8+ TIMER_PATH =$(OPENCOARRAYS_SRC_DIR ) /src/tests/integration/pde_solvers/navier-stokes
9+
10+ OPTS =-L$(OPENCOARRAYS_SRC_DIR ) /src/cuda_mpi
11+ objects = opencoarrays.o co_dot.o kernelCaller.o $(TIMER_PATH ) /walltime.o
12+
13+ $(executable ) : $(objects ) Makefile
14+ $(link ) $(OPTS ) $(objects ) -o $(executable ) -lcaf_cuda
15+
16+ opencoarrays.o : $(API_PATH ) /opencoarrays.F90 Makefile
17+ $(compile_fortran ) -c $(API_PATH ) /opencoarrays.F90 -DCOMPILER_PROVIDES_MPI
18+
19+ kernelCaller.o : kernelCaller.cu Makefile
20+ $(compile_cuda ) -c kernelCaller.cu
21+
22+ co_dot.o : co_dot.f90 Makefile
23+ $(compile_fortran ) -c co_dot.f90
24+
25+
26+ clean :
27+ rm $(executable ) * .o * .mod
You can’t perform that action at this time.
0 commit comments