Przeglądaj źródła

Added run script for the secondary GPU

The odroid GPU runtime actually exposes two GPU device, the first with 4
core and the second with 2 core (the GPU in fact has a total of 6 cores)
In this commit we add the possibility to differentiate the runs of the
benchmarks by adding two different targets in the Makefile, a primary
and a secondary one. For backward compatibility we leave the GPU target.
Andrea Gussoni 8 lat temu
rodzic
commit
1056d3aaa2

+ 38 - 0
Makefile

@@ -65,6 +65,44 @@ OPENCL_BENCHMARK_GPU:
 	./time-and-save.sh opencl/hybridsort times.dat gpu
 	./time-and-save.sh opencl/dwt2d times.dat gpu
 
+OPENCL_BENCHMARK_GPU_PRIMARY:
+	./time-and-save.sh opencl/backprop times.dat gpu-primary
+	./time-and-save.sh opencl/bfs times.dat gpu-primary
+	./time-and-save.sh opencl/cfd times.dat gpu-primary
+	./time-and-save.sh opencl/hotspot times.dat gpu-primary
+	./time-and-save.sh opencl/kmeans times.dat gpu-primary
+	./time-and-save.sh opencl/lavaMD times.dat gpu-primary
+	./time-and-save.sh opencl/leukocyte/OpenCL times.dat gpu-primary
+	./time-and-save.sh opencl/lud/ocl times.dat gpu-primary
+	./time-and-save.sh opencl/nw times.dat gpu-primary
+	./time-and-save.sh opencl/srad times.dat gpu-primary
+	./time-and-save.sh opencl/streamcluster times.dat gpu-primary
+	./time-and-save.sh opencl/pathfinder times.dat gpu-primary
+	./time-and-save.sh opencl/particlefilter times.dat gpu-primary
+	./time-and-save.sh opencl/gaussian times.dat gpu-primary
+	./time-and-save.sh opencl/nn times.dat gpu-primary
+	./time-and-save.sh opencl/hybridsort times.dat gpu-primary
+	./time-and-save.sh opencl/dwt2d times.dat gpu-primary
+
+OPENCL_BENCHMARK_GPU_SECONDARY:
+	./time-and-save.sh opencl/backprop times.dat gpu-secondary
+	./time-and-save.sh opencl/bfs times.dat gpu-secondary
+	./time-and-save.sh opencl/cfd times.dat gpu-secondary
+	./time-and-save.sh opencl/hotspot times.dat gpu-secondary
+	./time-and-save.sh opencl/kmeans times.dat gpu-secondary
+	./time-and-save.sh opencl/lavaMD times.dat gpu-secondary
+	./time-and-save.sh opencl/leukocyte/OpenCL times.dat gpu-secondary
+	./time-and-save.sh opencl/lud/ocl times.dat gpu-secondary
+	./time-and-save.sh opencl/nw times.dat gpu-secondary
+	./time-and-save.sh opencl/srad times.dat gpu-secondary
+	./time-and-save.sh opencl/streamcluster times.dat gpu-secondary
+	./time-and-save.sh opencl/pathfinder times.dat gpu-secondary
+	./time-and-save.sh opencl/particlefilter times.dat gpu-secondary
+	./time-and-save.sh opencl/gaussian times.dat gpu-secondary
+	./time-and-save.sh opencl/nn times.dat gpu-secondary
+	./time-and-save.sh opencl/hybridsort times.dat gpu-secondary
+	./time-and-save.sh opencl/dwt2d times.dat gpu-secondary
+
 clean: OCL_clean OPENCL_BENCHMARK_clean
 
 OCL_clean:

+ 1 - 0
opencl/backprop/run-gpu-primary

@@ -0,0 +1 @@
+./backprop -l 1048576 -p 0 -d 0 -g 1

+ 1 - 0
opencl/backprop/run-gpu-secondary

@@ -0,0 +1 @@
+./backprop -l 1048576 -p 0 -d 1 -g 1

+ 1 - 0
opencl/bfs/run-gpu-primary

@@ -0,0 +1 @@
+./bfs -f ../../data/bfs/graph1MW_6.txt -p 0 -d 0 -g 1

+ 1 - 0
opencl/bfs/run-gpu-secondary

@@ -0,0 +1 @@
+./bfs -f ../../data/bfs/graph1MW_6.txt -p 0 -d 1 -g 1

+ 1 - 0
opencl/cfd/run-gpu-primary

@@ -0,0 +1 @@
+./euler3d ../../data/cfd/fvcorr.domn.097K -p 0 -t gpu -d 0

+ 1 - 0
opencl/cfd/run-gpu-secondary

@@ -0,0 +1 @@
+./euler3d ../../data/cfd/fvcorr.domn.097K -p 0 -t gpu -d 1

+ 1 - 0
opencl/dwt2d/run-gpu-primary

@@ -0,0 +1 @@
+./dwt2d -d 1024x1024 -f -9 -l 5 -p 0 -i 0 -g 1 ../../data/dwt2d/rgb.bmp

+ 1 - 0
opencl/dwt2d/run-gpu-secondary

@@ -0,0 +1 @@
+./dwt2d -d 1024x1024 -f -9 -l 5 -p 0 -i 1 -g 1 ../../data/dwt2d/rgb.bmp

+ 1 - 0
opencl/gaussian/run-gpu-primary

@@ -0,0 +1 @@
+./gaussian -f ../../data/gaussian/matrix1024.txt -p 0 -d 0 -g 1

+ 1 - 0
opencl/gaussian/run-gpu-secondary

@@ -0,0 +1 @@
+./gaussian -f ../../data/gaussian/matrix1024.txt -p 0 -d 1 -g 1

+ 1 - 0
opencl/hotspot/run-gpu-primary

@@ -0,0 +1 @@
+./hotspot 512 3 1000  ../../data/hotspot/temp_512 ../../data/hotspot/power_512 output.out 0 0 1

+ 1 - 0
opencl/hotspot/run-gpu-secondary

@@ -0,0 +1 @@
+./hotspot 512 3 1000  ../../data/hotspot/temp_512 ../../data/hotspot/power_512 output.out 0 1 1

+ 1 - 0
opencl/hybridsort/run-gpu-primary

@@ -0,0 +1 @@
+./hybridsort r -p 0 -d 0 -g 1

+ 1 - 0
opencl/hybridsort/run-gpu-secondary

@@ -0,0 +1 @@
+./hybridsort r -p 0 -d 1 -g 1

+ 1 - 0
opencl/kmeans/run-gpu-primary

@@ -0,0 +1 @@
+./kmeans -o -r -l 10 -i ../../data/kmeans/kdd_cup -p 0 -d 0 -g 1

+ 1 - 0
opencl/kmeans/run-gpu-secondary

@@ -0,0 +1 @@
+./kmeans -o -r -l 10 -i ../../data/kmeans/kdd_cup -p 0 -d 1 -g 1

+ 1 - 0
opencl/lavaMD/run-gpu-primary

@@ -0,0 +1 @@
+./lavaMD -b 16 -p 0 -d 0 -g 1

+ 1 - 0
opencl/lavaMD/run-gpu-secondary

@@ -0,0 +1 @@
+./lavaMD -b 16 -p 0 -d 1 -g 1

+ 1 - 0
opencl/leukocyte/OpenCL/run-gpu-primary

@@ -0,0 +1 @@
+./leukocyte -i ../../../data/leukocyte/testfile.avi -f 100 -p 0 -d 0 -g 1

+ 1 - 0
opencl/leukocyte/OpenCL/run-gpu-secondary

@@ -0,0 +1 @@
+./leukocyte -i ../../../data/leukocyte/testfile.avi -f 100 -p 0 -d 1 -g 1

+ 1 - 0
opencl/lud/ocl/run-gpu-primary

@@ -0,0 +1 @@
+./lud -s 2048 -p 0 -d 0 -g 1

+ 1 - 0
opencl/lud/ocl/run-gpu-secondary

@@ -0,0 +1 @@
+./lud -s 2048 -p 0 -d 1 -g 1

+ 1 - 0
opencl/nn/run-gpu-primary

@@ -0,0 +1 @@
+./nn filelist.txt -r 10 -lat 30 -lng 90 -p 0 -d 0 -g 1

+ 1 - 0
opencl/nn/run-gpu-secondary

@@ -0,0 +1 @@
+./nn filelist.txt -r 10 -lat 30 -lng 90 -p 0 -d 1 -g 1

+ 1 - 0
opencl/nw/run-gpu-primary

@@ -0,0 +1 @@
+./nw -r 6400 -x 10 -t ./nw.cl -p 0 -d 0 -g 1

+ 1 - 0
opencl/nw/run-gpu-secondary

@@ -0,0 +1 @@
+./nw -r 6400 -x 10 -t ./nw.cl -p 0 -d 1 -g 1

+ 1 - 0
opencl/particlefilter/run-gpu-primary

@@ -0,0 +1 @@
+./OCL_particlefilter_naive -x 128 -y 128 -z 10 -np 100000 -p 0 -d 0 -g 1

+ 1 - 0
opencl/particlefilter/run-gpu-secondary

@@ -0,0 +1 @@
+./OCL_particlefilter_naive -x 128 -y 128 -z 10 -np 100000 -p 0 -d 1 -g 1

+ 1 - 0
opencl/pathfinder/run-gpu-primary

@@ -0,0 +1 @@
+./pathfinder -r 10000 -c 100 -h 20 -p 0 -d 0 -g 1

+ 1 - 0
opencl/pathfinder/run-gpu-secondary

@@ -0,0 +1 @@
+./pathfinder -r 10000 -c 100 -h 20 -p 0 -d 1 -g 1

+ 1 - 0
opencl/srad/run-gpu-primary

@@ -0,0 +1 @@
+./srad -i 300 -l 0.5 -r 502 -c 458 -p 0 -d 0 -g 1

+ 1 - 0
opencl/srad/run-gpu-secondary

@@ -0,0 +1 @@
+./srad -i 300 -l 0.5 -r 502 -c 458 -p 0 -d 1 -g 1

+ 1 - 0
opencl/streamcluster/run-gpu-primary

@@ -0,0 +1 @@
+./streamcluster 10 20 16 65536 65536 1000 none output.txt 1 -p 0 -d 0 -t gpu

+ 1 - 0
opencl/streamcluster/run-gpu-secondary

@@ -0,0 +1 @@
+./streamcluster 10 20 16 65536 65536 1000 none output.txt 1 -p 0 -d 1 -t gpu