-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexecInference.sh
More file actions
executable file
·26 lines (23 loc) · 912 Bytes
/
execInference.sh
File metadata and controls
executable file
·26 lines (23 loc) · 912 Bytes
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
#!/bin/bash -ex
# setup initial environment
source /etc/profile
# goes over all layers
#for i in 3 4 5 6 7 8 9 10
for i in 120
do
#for t in 30 100 200
#do
if [ "$@" -eq "1" ]; then
OMP_PROC_BIND=true OMP_PLACES=cores ./inference_bench 0 2 ${i} 1024 1 "$@"
OMP_PROC_BIND=true OMP_PLACES=cores ./inference_bench 0 2 ${i} 1024 "$@" 1
else
#OMP_PROC_BIND=true OMP_PLACES=cores ./inference_bench 2 2 ${i} 1024 1 "$@" ${t}
OMP_PROC_BIND=true OMP_PLACES=cores ./inference_bench 2 2 ${i} 1024 1 "$@"
#OMP_PROC_BIND=true OMP_PLACES=cores ./inference_bench 0 2 ${i} 1024 "$@" 1 ${t}
OMP_PROC_BIND=true OMP_PLACES=cores ./inference_bench 0 2 ${i} 1024 "$@" 1
fi
# particular invocation will be responsible for a specific number of threads
#for j in "$@"; do
#done
#done
done