forked from UK-MAC/CloverLeaf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
63 lines (53 loc) · 2.85 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
PACKAGE=CloverLeaf
help:
@echo " CloverLeaf, a Lagrangian-Eulerian hydrodynamics mini-application "
@echo " "
@echo " CloverLeaf comes in the following principal flavours: "
@echo " "
@echo " - Ref "
@echo " This is the reference MPI/OpenMP implementation. "
@echo " - Serial "
@echo " This is the serial implementation. "
@echo " - MPI "
@echo " This is the parallel MPI implementation. "
@echo " - OpenMP "
@echo " This version is threaded using MPI directives. "
@echo " - OpenACC "
@echo " This version uses OpenACC directives to utilise GPU "
@echo " hardware. "
@echo " - HMPP "
@echo " "
@echo " Build a particular version by typing: "
@echo " \`make <flavour>\` "
@echo " where <flavour> is the name of the version you want to make, all "
@echo " in lowercase. "
@echo " "
@echo " Please use the COMPILER environment variable to specify the "
@echo " compiler you wish to use. Supported compilers are: "
@echo " - GNU "
@echo " - CRAY "
@echo " - INTEL "
@echo " - PATHSCALE "
@echo " - PGI "
@echo " - SUN "
@echo " - XLF "
all: ref openmp mpi openacc opencl cuda hmpp
ref:
cd $(PACKAGE)_ref; make
serial:
cd $(PACKAGE)_Serial; make
openmp:
cd $(PACKAGE)_OpenMP; make
mpi:
cd $(PACKAGE)_MPI; make
openacc:
cd $(PACKAGE)_OpenACC; make
hmpp:
cd $(PACKAGE)_HMPP; make
clean:
cd $(PACKAGE)_ref; make clean
cd $(PACKAGE)_Serial; make clean
cd $(PACKAGE)_OpenMP; make clean
cd $(PACKAGE)_MPI; make clean
cd $(PACKAGE)_OpenACC; make clean
cd $(PACKAGE)_HMPP; make clean