-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathspmv.sh
executable file
·32 lines (25 loc) · 964 Bytes
/
spmv.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
#!/bin/perl
#@matrices = ("largebasis","asic_320k","cont11","rucci","wiki2007","vanHeukelum-cage15","tsopf1","tsopf2","rajat30");
@matrices = ("tsopf2","rajat30");
@rblock = ("2","4","8");
foreach $matrices (@matrices)
{
foreach $rblock (@rblock)
{
$str = "CILK_NPROC=1 numactl --cpunodebind 0 ./spmv_r$rblock ../BinaryMatrices/$matrices.bin nosym binary";
print $str;
system($str);
$str = "CILK_NPROC=2 numactl --cpunodebind 0 ./spmv_r$rblock ../BinaryMatrices/$matrices.bin nosym binary";
print $str;
system($str);
$str = "CILK_NPROC=4 numactl --cpunodebind 0 ./spmv_r$rblock ../BinaryMatrices/$matrices.bin nosym binary";
print $str;
system($str);
$str = "CILK_NPROC=8 numactl --cpunodebind 0 ./spmv_r$rblock ../BinaryMatrices/$matrices.bin nosym binary";
print $str;
system($str);
$str = "CILK_NPROC=16 numactl --cpunodebind 0 ./spmv_r$rblock ../BinaryMatrices/$matrices.bin nosym binary";
print $str;
system($str);
}
}