Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- g++ task1.c -fopenmp -lgomp -o task1
- mpic++ -std=gnu++14 -fopenmp one.cpp -o one
- THREADS=(2)
- SIZE=(48 96 224 460)
- declare -a arr=("2 1 1" "2 2 2" "2 2 2" "4 2 2")
- for size in ${SIZE[*]};
- do
- for thr in ${THREADS[*]};
- do
- for p in "${arr[@]}"
- do
- echo $size $thr "done" >> log_p3.txt;
- echo $size $thr "done" >> log_k3.txt;
- #echo $size $size $size 0.000001 100 $thr 1 "$p"
- ./task1 $size $size $size 0.000001 100 $thr 1 $p >> log_p2.txt &
- ./one $size $size $size 0.000001 100 $thr 1 $p >> log_k2.txt ;
- echo $thr $size "done"
- done
- done
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement