SHARE
TWEET

Untitled

a guest Jun 12th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. > "plt1_1.dat"
  3. n=64
  4. arr=()
  5. #od 64 do 2048 = 32, liczba testów
  6. echo "# X   ijk kij jki block" >> plt1_1.dat
  7. for i in {1..32}
  8. do
  9.     echo "$n    " >> plt1_1.dat
  10.     #dla 3 wersji
  11.     for j in {0..3}
  12.     do
  13.         ./matmult -n $n -v $j |
  14.         #zczytaj czas
  15.         while IFS=" " read -a line
  16.         do
  17.             truncate -s -1 plt1_1.dat
  18.             echo "${line[2]}    " >> plt1_1.dat
  19.         done
  20.     done
  21.     n=$((n+64))
  22. done
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top