Browse Source

Adds some used scripts

master
Joshua Moerman 11 years ago
parent
commit
b9ea4f2e02
  1. 24
      wavelet_scripts/optimal_m.sh
  2. 25
      wavelet_scripts/speedup_p.sh
  3. 25
      wavelet_scripts/time.sh
  4. 7
      wavelet_speed.sh

24
wavelet_scripts/optimal_m.sh

@ -0,0 +1,24 @@
#!/bin/bash
#SBATCH -t 0:30:00
#SBATCH -n 4
p=4
n=32768
mstart=1
mend=12
iters=100
if [[ `whoami` == "bissstud" ]]; then
cd $HOME/Students13/JoshuaMoerman/assignments
echo "Running on Cartesius $@"
RUNCOMMAND="srun"
else
echo "Running locally $@"
RUNCOMMAND=""
fi
for m in `seq $mstart $mend`; do
echo -e "\n\033[1;34mtime\t`date`\033[0;39m"
$RUNCOMMAND ./build-Release/wavelet/wavelet_parallel_mockup --m $m --n $n --p $p --show-input --iterations $iters
done
echo -e "\n\033[1;31mtime\t`date`\033[0;39m"

25
wavelet_scripts/speedup_p.sh

@ -0,0 +1,25 @@
#!/bin/bash
#SBATCH -t 0:30:00
#SBATCH -n 64
m=5
n=1048576
pstart=1
pend=6
iters=100
if [[ `whoami` == "bissstud" ]]; then
cd $HOME/Students13/JoshuaMoerman/assignments
echo "Running on Cartesius $@"
RUNCOMMAND="srun"
else
echo "Running locally $@"
RUNCOMMAND=""
fi
for i in `seq $pstart $pend`; do
echo -e "\n\033[1;34mtime\t`date`\033[0;39m"
let "p=2**$i"
$RUNCOMMAND ./build-Release/wavelet/wavelet_parallel_mockup --m $m --n $n --p $p --show-input --iterations $iters
done
echo -e "\n\033[1;31mtime\t`date`\033[0;39m"

25
wavelet_scripts/time.sh

@ -0,0 +1,25 @@
#!/bin/bash
#SBATCH -t 0:30:00
#SBATCH -n 4
p=4
m=5
start=6
end=27
iters=100
if [[ `whoami` == "bissstud" ]]; then
cd $HOME/Students13/JoshuaMoerman/assignments
echo "Running on Cartesius $@"
RUNCOMMAND="srun"
else
echo "Running locally $@"
RUNCOMMAND=""
fi
for i in `seq $start $end`; do
echo -e "\n\033[1;34mtime\t`date`\033[0;39m"
let "n=2**$i"
$RUNCOMMAND ./build-Release/wavelet/wavelet_parallel_mockup --seq --m $m --n $n --p $p --show-input --iterations $iters
done
echo -e "\n\033[1;31mtime\t`date`\033[0;39m"

7
wavelet_speed.sh

@ -2,10 +2,11 @@
#SBATCH -t 0:30:00 #SBATCH -t 0:30:00
#SBATCH -n 4 #SBATCH -n 4
p=2 p=4
m=5
start=6 start=6
end=27 end=27
iters=200 iters=100
if [[ `whoami` == "bissstud" ]]; then if [[ `whoami` == "bissstud" ]]; then
cd $HOME/Students13/JoshuaMoerman/assignments cd $HOME/Students13/JoshuaMoerman/assignments
@ -19,6 +20,6 @@ fi
for i in `seq $start $end`; do for i in `seq $start $end`; do
echo -e "\n\033[1;34mtime\t`date`\033[0;39m" echo -e "\n\033[1;34mtime\t`date`\033[0;39m"
let "n=2**$i" let "n=2**$i"
$RUNCOMMAND ./build-Release/wavelet/wavelet_parallel_mockup --m 1 --n $n --p $p --show-input --iterations $iters $RUNCOMMAND ./build-Release/wavelet/wavelet_parallel_mockup --seq --m $m --n $n --p $p --show-input --iterations $iters
done done
echo -e "\n\033[1;31mtime\t`date`\033[0;39m" echo -e "\n\033[1;31mtime\t`date`\033[0;39m"