thesis version
This commit is contained in:
23
scripts/bench_hw
Executable file
23
scripts/bench_hw
Executable file
@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
|
||||
n=24
|
||||
o=20
|
||||
i=20
|
||||
|
||||
root=$(pwd)
|
||||
|
||||
source "${root}/scripts/common"
|
||||
data=$(echo "${root}/data/${in}"|sed "s,^$(pwd)/,,")
|
||||
cc_options+="-DDATA_FILE=\"${data}\" -DGRASP_N=${n} -DELS_ITER_MAX=${o} -DELS_GEN=${i}"
|
||||
|
||||
cc_options+=" -DSUBTIME"
|
||||
|
||||
${cc} ${cc_options} -o ${exe} -DFUNC=hw_seq_v ${sources}
|
||||
./${exe} --seed "${seed}"
|
||||
|
||||
for scale in $(seq 2 2 32); do
|
||||
${cc} ${cc_options} -DFUNC=hw_par_v -DPARLEV=2 -DNTHREADS=${scale} -o ${exe} ${sources}
|
||||
./${exe} --seed "${seed}"
|
||||
done
|
||||
|
||||
quit
|
Reference in New Issue
Block a user