rosa/scripts/test

30 lines
652 B
Plaintext
Raw Permalink Normal View History

2021-05-10 16:14:24 +00:00
#!/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}\""
cc_options+=" -DSUBTIME"
# ${cc} ${cc_options} -o ${exe} -DFUNC=hw_seq_v ${sources}
# ./${exe}
# for scale in $(seq 2 2 32); do
# ${cc} ${cc_options} -DFUNC=hw_par_v -DGRASP_N=${n} -DELS_ITER_MAX=${o} -DELS_GEN=${i} -DPARLEV=1 -DNTHREADS=${scale} -o ${exe} ${sources}
# ./${exe}
# done
scale=4
for n in $(seq 6 2 24); do
${cc} ${cc_options} -DFUNC=hw_par_v -DGRASP_N=${n} -DELS_ITER_MAX=${o} -DELS_GEN=${i} -DPARLEV=1 -DNTHREADS=${scale} -o ${exe} ${sources}
./${exe}
done
quit