2022-10-10 11:01:53 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2022-11-08 15:35:25 +01:00
|
|
|
export OMP_NUM_THREADS=10
|
|
|
|
export MKL_NUM_THREADS=$OMP_NUM_THREADS
|
|
|
|
|
|
|
|
for SIZE in 32 64 128 256 512 1024 2048 4096 8192 #16384
|
2022-10-10 11:01:53 +02:00
|
|
|
do
|
|
|
|
echo $SIZE >> SIZES
|
|
|
|
for LOAD in 25 50 75 100
|
|
|
|
do
|
|
|
|
NUPDS=$((SIZE*LOAD/100))
|
|
|
|
ln -svf ../../random_matrix_generator/ds_${SIZE}_${NUPDS}.hdf5 dataset
|
|
|
|
for KERNEL in MKL WBK_CPU WBK_GPU
|
|
|
|
do
|
|
|
|
case $KERNEL in
|
|
|
|
MKL)
|
2022-11-08 15:35:25 +01:00
|
|
|
././test_icc_mkl_threaded m | awk 'NR==7 {print $11}' >> ${KERNEL}_${LOAD}.dat
|
2022-10-10 11:01:53 +02:00
|
|
|
;;
|
|
|
|
WBK_CPU)
|
2022-11-08 15:35:25 +01:00
|
|
|
././test_icc_mkl_threaded o | awk 'NR==7 {print $11}' >> ${KERNEL}_${LOAD}.dat
|
2022-10-10 11:01:53 +02:00
|
|
|
;;
|
|
|
|
WBK_GPU)
|
2022-11-08 15:35:25 +01:00
|
|
|
./test_nvc_ompol c | awk 'NR==7 {print $11}' >> ${KERNEL}_${LOAD}.dat
|
2022-10-10 11:01:53 +02:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
|
|
|
for KERNEL in MKL WBK_CPU WBK_GPU
|
|
|
|
do
|
|
|
|
paste SIZES ${KERNEL}_25.dat ${KERNEL}_50.dat ${KERNEL}_75.dat ${KERNEL}_100.dat > ${KERNEL}.dat
|
|
|
|
rm -v ${KERNEL}_25.dat ${KERNEL}_50.dat ${KERNEL}_75.dat ${KERNEL}_100.dat
|
|
|
|
done
|
|
|
|
rm -v SIZES
|