forked from beehive-lab/docker-tornadovm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildAll.sh
executable file
·37 lines (29 loc) · 1.27 KB
/
buildAll.sh
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
#!/bin/env bash
platform=$1
if [ -z "$1" ];then
platform="intel"
echo "BUILDING DOCKER IMAGES FOR THE $platform PLATFORM"
else
echo "BUILDING DOCKER IMAGES FOR THE $1 PLATFORM"
fi
if [[ $platform == "intel" ]]; then
./build.sh --intel-jdk21
./run_intel_openjdk.sh tornado -version
./run_intel_openjdk.sh tornado --version
./run_intel_openjdk.sh tornado --threadInfo -cp example/target/example-1.0-SNAPSHOT.jar example.MatrixMultiplication
./build.sh --intel-graalVM-JDK21
./run_intel_graalvm.sh tornado --version
./run_intel_graalvm.sh tornado -version
./run_intel_graalvm.sh tornado --threadInfo -cp example/target/example-1.0-SNAPSHOT.jar example.MatrixMultiplication
elif [[ $platform == "nvidia" ]]; then
./build.sh --nvidia-jdk21
./run_nvidia_openjdk.sh tornado -version
./run_nvidia_openjdk.sh tornado --version
./run_nvidia_openjdk.sh tornado --threadInfo -cp example/target/example-1.0-SNAPSHOT.jar example.MatrixMultiplication
./build.sh --nvidia-graalVM-JDK21
./run_nvidia_graalvm.sh tornado --version
./run_nvidia_graalvm.sh tornado -version
./run_nvidia_graalvm.sh tornado --threadInfo -cp example/target/example-1.0-SNAPSHOT.jar example.MatrixMultiplication
else
echo "Use <intel> or <nvidia>"
fi