Advertisement
Guest User

Untitled

a guest
Dec 12th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. g++ task1.c -fopenmp -lgomp -o task1
  4. mpic++ -std=gnu++14 -fopenmp one.cpp -o one
  5.  
  6. THREADS=(2)
  7. SIZE=(48 96 224 460)
  8. declare -a arr=("2 1 1" "2 2 2" "2 2 2" "4 2 2")
  9.  
  10. for size in ${SIZE[*]};
  11. do
  12. for thr in ${THREADS[*]};
  13. do
  14. for p in "${arr[@]}"
  15. do
  16. echo $size $thr "done" >> log_p3.txt;
  17. echo $size $thr "done" >> log_k3.txt;
  18. #echo $size $size $size 0.000001 100 $thr 1 "$p"
  19. ./task1 $size $size $size 0.000001 100 $thr 1 $p >> log_p2.txt &
  20. ./one $size $size $size 0.000001 100 $thr 1 $p >> log_k2.txt ;
  21. echo $thr $size "done"
  22. done
  23. done
  24. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement