Skip to content

Commit 322221d

Browse files
author
Damian Rouson
committed
Adding co_dot Makefile for SC15 exercise for use on Titan.
1 parent db08b77 commit 322221d

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

src/tests/integration/gpu/Makefile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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

src/tests/integration/gpu/walltime.o

-980 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)