-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathscriptGpu.sh
More file actions
executable file
·54 lines (47 loc) · 798 Bytes
/
scriptGpu.sh
File metadata and controls
executable file
·54 lines (47 loc) · 798 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
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
#!/bin/bash
make clean && make acogpu
tspBase="tsp/"
tspArray=(
"bays29.tsp"
"d198.tsp"
"pcb442.tsp"
"rat783.tsp"
"pr1002.tsp"
"pcb1173.tsp"
"rl1889.tsp"
"pr2392.tsp"
"fl3795.tsp"
)
nBlocks=(
1
2
4
8
16
32
64
128
)
nWarpsPerBlock=(
1
2
4
8
16
32
)
for problem in "${tspArray[@]}"
do
echo $problem;
for i in "${nBlocks[@]}"
do
for j in "${nWarpsPerBlock[@]}"
do
for k in `seq 1 10`;
do
# ./acogpu file.tsp alpha beta q rho maxEpoch threadsPerBlock nBlocks nWarpsPerBlock
./acogpu $tspBase$problem 1 2 1 0.5 10 128 $i $j
done
done
done
done