forked from beehive-lab/TornadoVM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
52 lines (38 loc) · 1.56 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
all: build
# Variable passed for the build process:
# BACKENDS=<ptx|opencl|spirv>. It specifies which backend/s to use { opencl, ptx, spirv }. The default one is `opencl`.
BACKEND?=opencl
BACKENDS?=$(BACKEND)
jdk-8:
./bin/compile.sh jdk-8 $(BACKENDS)
build jdk-11-plus:
./bin/compile.sh jdk-11-plus $(BACKENDS)
graal-jdk-11-plus:
./bin/compile.sh graal-jdk-11-plus $(BACKENDS)
ptx:
./bin/compile.sh jdk-11-plus BACKENDS=ptx,opencl
spirv:
./bin/compile.sh jdk-11-plus BACKENDS=spirv,ptx,opencl
offline:
./bin/compile.sh jdk-11-plus $(BACKENDS) OFFLINE
# Variable passed for the preparation of the Xilinx FPGA emulated target device. The default device is `xilinx_u50_gen3x16_xdma_201920_3`.
# make xilinx_emulation FPGA_PLATFORM=<platform_name> NUM_OF_FPGA_DEVICES=<number_of_devices>
FPGA_PLATFORM?=xilinx_u50_gen3x16_xdma_201920_3
NUM_OF_FPGA_DEVICES?=1
xilinx_emulation:
emconfigutil --platform $(FPGA_PLATFORM) --nd $(NUM_OF_FPGA_DEVICES) --od $(JAVA_HOME)/bin
clean:
mvn -Popencl-backend,ptx-backend clean
example:
tornado --printKernel --debug -m tornado.examples/uk.ac.manchester.tornado.examples.VectorAddInt --params="8192"
tests:
rm -f tornado_unittests.log
tornado --devices
tornado-test.py --ea --verbose
tornado-test.py --ea -V -J"-Dtornado.device.memory=1MB" uk.ac.manchester.tornado.unittests.fails.HeapFail#test03
test-native.sh
tests-opt:
tornado --devices
tornado-test.py -V --fast --ea --verbose -J"-Dtornado.spirv.loadstore=True" --printKernel
test-slam:
tornado-test.py -V --fast uk.ac.manchester.tornado.unittests.slam.graphics.GraphicsTests