-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
63 lines (45 loc) · 1.87 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
EXAMPLE_SRC=$(shell find example -name *.chpl)
EXAMPLES=target/example/MPI/fftw-mpi-benchmark \
target/example/Comm/plane_v2 \
target/example/FFTW/fftw-plan-timings \
target/example/Dist/test_simple \
target/example/Dist/time_simple \
# Use the naive branch
ifdef NAIVE
NAIVEFLAG=-susePerformant=false
else
NAIVEFLAG=
endif
# The following are experimental flags for better performance
PERF_FLAGS=-schpl_serializeSlices
Mason.toml: Mason.toml.template
envsubst < $< > $@
target/example/NPB-FT/%: example/NPB-FT/%.chpl src/DistributedFFT.chpl
mkdir -p target/example/NPB-FT
chpl -o $@ $< --fast ${CHPL_WARN_FLAGS} -lfftw3 -Msrc ${PERF_FLAGS} ${NAIVEFLAG}
# Note : turn off the inplace version for now.
## ft: target/example/NPB-FT/ft target/example/NPB-FT/ft_transposed
ftt: target/example/NPB-FT/ft_transposed
################################################
# These are some old targets. We haven't deprecated
# these as yet.
.PHONY: examples target
examples: target ${EXAMPLES}
.PHONY: doc
doc:
chpldoc src/DistributedFFT.chpl
target:
mkdir -p target/example
target/example/R2R/%: example/R2R/%.chpl src/DistributedFFT.chpl
mkdir -p target/example/R2R
chpl -o $@ $< ${CHPL_WARN_FLAGS} -lfftw3 -Msrc ${PERF_FLAGS} ${NAIVEFLAG}
target/example/Comm/plane_v2: example/Comm/plane_v2.chpl
chpl -o $@ $< --fast ${PERF_FLAGS}
target/example/MPI/fftw-mpi-benchmark: example/MPI/fftw-mpi-benchmark.chpl src/DistributedFFT.chpl
chpl -o $@ $< --fast ${MPI_CHPL_FLAGS} ${CHPL_WARN_FLAGS} -lfftw3_mpi -lfftw3_threads -lfftw3 -Msrc
target/example/FFTW/%: example/FFTW/%.chpl
mkdir -p target/example/FFTW
chpl -o $@ $< --fast ${MPI_CHPL_FLAGS} ${CHPL_WARN_FLAGS} -lfftw3_threads -lfftw3 --local
target/example/Dist/%: example/Dist/%.chpl src/DistributedFFT.chpl
mkdir -p target/example/Dist
chpl -o $@ $< --fast ${CHPL_WARN_FLAGS} -lfftw3_threads -lfftw3 -Msrc ${PERF_FLAGS} ${NAIVEFLAG}