-
Notifications
You must be signed in to change notification settings - Fork 113
/
Makefile
76 lines (57 loc) · 2.6 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
64
65
66
67
68
69
70
71
72
73
74
75
76
all: build
# Variable passed for the build process. List of backend/s to use { opencl, ptx, spirv }. The default one is `opencl`.
# make BACKEND=<comma_separated_backend_list>
BACKEND ?= opencl
build jdk21:
bin/compile --jdk jdk21 --backend $(BACKEND)
rebuild-deps-jdk21:
bin/compile --jdk jdk21 --rebuild --backend $(BACKEND)
graal-jdk-21:
bin/compile --jdk graal-jdk-21 --backend $(BACKEND)
polyglot:
bin/compile --jdk graal-jdk-21 --backend $(BACKEND) --polyglot
ptx:
bin/compile --jdk jdk21 --backend ptx,opencl
spirv:
bin/compile --jdk jdk21 --backend spirv,ptx,opencl
# 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
checkstyle:
mvn checkstyle:check
clean:
mvn -Popencl-backend,ptx-backend,spirv-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 --ea --verbose
tornado-test --ea -V -J"-Dtornado.device.memory=1MB" uk.ac.manchester.tornado.unittests.fails.HeapFail#test03
test-native.sh
fast-tests:
rm -f tornado_unittests.log
tornado --devices
tornado-test --ea --verbose --quickPass
tornado-test --ea -V -J"-Dtornado.device.memory=1MB" uk.ac.manchester.tornado.unittests.fails.HeapFail#test03
test-native.sh
tests-spirv-levelzero:
rm -f tornado_unittests.log
tornado --jvm="-Dtornado.spirv.dispatcher=levelzero" uk.ac.manchester.tornado.drivers.TornadoDeviceQuery --params="verbose"
tornado-test --jvm="-Dtornado.spirv.dispatcher=levelzero" --ea --verbose
tornado-test --jvm="-Dtornado.spirv.dispatcher=levelzero"--ea -V -J"-Dtornado.device.memory=1MB" uk.ac.manchester.tornado.unittests.fails.HeapFail#test03
test-native.sh
tests-spirv-opencl:
rm -f tornado_unittests.log
tornado --jvm="-Dtornado.spirv.dispatcher=opencl" uk.ac.manchester.tornado.drivers.TornadoDeviceQuery --params="verbose"
tornado-test --jvm="-Dtornado.spirv.dispatcher=opencl" --ea --verbose
tornado-test --jvm="-Dtornado.spirv.dispatcher=opencl"--ea -V -J"-Dtornado.device.memory=1MB" uk.ac.manchester.tornado.unittests.fails.HeapFail#test03
test-native.sh
test-slam:
tornado-test -V --fast uk.ac.manchester.tornado.unittests.slam.GraphicsTests
docs:
sphinx-build -M html docs/source/ docs/build
.PHONY: docs