Advertisement
volkovich_maksim

mkf

Dec 3rd, 2017
3,244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. MatrixGen: MatrixGen.cpp
  2.     g++ -g -Wall -peantic MatrixGen.cpp -o MatrixGen
  3. VectMult: VectorMultParllel.cpp
  4.     mpicxx VectorMultParllel.cpp -o VectMult
  5. prepare: MatrixGen
  6.     ./MatrixGen M512 512 512 d
  7.     ./MatrixGen M1024 1024 1024 d
  8.     ./MatrixGen V512 512 1 d
  9.     ./MatrixGen V1024 1024 1 d
  10.     ./MatrixGen M2048 2048 2048 d
  11.     ./MatrixGen M4096 4096 4096 d
  12.     ./MatrixGen V2048 2048 1 d
  13.     ./MatrixGen M4096x1024 4096 1024 d
  14.     ./MatrixGen M1024x4096 1024 4096 d
  15.     ./MatrixGen V4096 4096 1 d
  16. laptop_mult: prepare VectMult
  17.     rm -f time
  18.     rm -f time512
  19.     rm -f time1024
  20.     rm -f time2048
  21.     rm -f time4096
  22.     mpirun -np 1 ./VectMult M512 V512 res time512
  23.     mpirun -np 2 ./VectMult M512 V512 res time512
  24.     mpirun -np 4 ./VectMult M512 V512 res time512
  25.     mpirun -np 1 ./VectMult M1024 V1024 res time1024
  26.     mpirun -np 2 ./VectMult M1024 V1024 res time1024
  27.     mpirun -np 4 ./VectMult M1024 V1024 res time1024
  28.     mpirun -np 1 ./VectMult M2048 V2048 res time2048
  29.     mpirun -np 2 ./VectMult M2048 V2048 res time2048
  30.     mpirun -np 4 ./VectMult M2048 V2048 res time2048
  31.     mpirun -np 1 ./VectMult M4096 V4096 res time4096
  32.     mpirun -np 2 ./VectMult M4096 V4096 res time4096
  33.     mpirun -np 4 ./VectMult M4096 V4096 res time4096
  34.  
  35. mult1: VectMult
  36.     rm -f time
  37.     rm -f time512
  38.     rm -f time1024
  39.     rm -f time2048
  40.     rm -f time4096
  41.     mpisubmit.bg -n 1 -w 00:05:00 ./VectMult M512 V512 res time
  42.     mpisubmit.bg -n 1 -w 00:05:00 ./VectMult M1024 V1024 res time
  43.     mpisubmit.bg -n 1 -w 00:05:00 ./VectMult M2048 V2048 res time
  44.     mpisubmit.bg -n 1 -w 00:05:00 ./VectMult M1024x4096 V4096 res time
  45.     mpisubmit.bg -n 1 -w 00:05:00 ./VectMult M4096x1024 V4096 res time
  46.     mpisubmit.bg -n 1 -w 00:05:00 ./VectMult M4096 V4096 res time
  47.  
  48. mult32: VectMult
  49.     mpisubmit.bg -w 00:10:00 -np 32 ./VectMult M512 V512 res time512
  50.     mpisubmit.bg -w 00:10:00 -np 32 ./VectMult M1024 V1024 res time1024
  51.     mpisubmit.bg -w 00:10:00 -np 32 ./VectMult M2048 V2048 res time2048
  52.     mpisubmit.bg -w 00:10:00 -np 32 ./VectMult M1024x4096 V4096 res time1024x4096
  53.     mpisubmit.bg -w 00:10:00 -np 32 ./VectMult M4096x1024 V4096 res time4096x1024
  54.     mpisubmit.bg -w 00:10:00 -np 32 ./VectMult M4096 V4096 res time4096
  55.    
  56. mult64: VectMult
  57.     mpisubmit.bg -w 00:20:00 -np 64 ./VectMult M512 V512 res time512
  58.     mpisubmit.bg -w 00:20:00 -np 64 ./VectMult M1024 V1024 res time1024
  59.     mpisubmit.bg -w 00:20:00 -np 64 ./VectMult M2048 V2048 res time2048
  60.     mpisubmit.bg -w 00:20:00 -np 64 ./VectMult M4096x1024 V4096 res time4096x1024
  61.     mpisubmit.bg -w 00:20:00 -np 64 ./VectMult M1024x4096 V4096 res time1024x4096
  62.     mpisubmit.bg -w 00:20:00 -np 64 ./VectMult M4096 V4096 res time4096
  63.  
  64. mult128: VectMult
  65.     mpisubmit.bg -w 00:15:00 -np 128 ./VectMult M512 V512 res time512
  66.     mpisubmit.bg -w 00:15:00 -np 128 ./VectMult M1024 V1024 res time1024
  67.     mpisubmit.bg -w 00:15:00 -np 128 ./VectMult M2048 V2048 res time2048
  68.     mpisubmit.bg -w 00:15:00 -np 128 ./VectMult M1024x4096 V4096 res time1024x4096
  69.     mpisubmit.bg -w 00:15:00 -np 128 ./VectMult M4096x1024 V4096 res time4096x1024
  70.     mpisubmit.bg -w 00:15:00 -np 128 ./VectMult M4096 V4096 res time4096
  71.  
  72. mult256: VectMult
  73.     mpisubmit.bg -w 00:10:00 -np 256 ./VectMult M512 V512 res time512
  74.     mpisubmit.bg -w 00:10:00 -np 256 ./VectMult M1024 V1024 res time1024
  75.     mpisubmit.bg -w 00:10:00 -np 256 ./VectMult M2048 V2048 res time2048
  76.     mpisubmit.bg -w 00:10:00 -np 256 ./VectMult M1024x4096 V4096 res time1024x4096
  77.     mpisubmit.bg -w 00:10:00 -np 256 ./VectMult M4096x1024 V4096 res time4096x1024
  78.     mpisubmit.bg -w 00:10:00 -np 256 ./VectMult M4096 V4096 res time4096
  79.  
  80. mult512: VectMult
  81.     mpisubmit.bg -w 00:5:00 -np 512 ./VectMult M512 V512 res time512
  82.     mpisubmit.bg -w 00:5:00 -np 512 ./VectMult M1024 V1024 res time1024
  83.     mpisubmit.bg -w 00:5:00 -np 512 ./VectMult M2048 V2048 res time2048
  84.     mpisubmit.bg -w 00:5:00 -np 512 ./VectMult M1024x4096 V4096 res time1024x4096
  85.     mpisubmit.bg -w 00:5:00 -np 512 ./VectMult M4096x1024 V4096 res time4096x1024
  86.     mpisubmit.bg -w 00:5:00 -np 512 ./VectMult M4096 V4096 res time4096
  87.  
  88.     BlueGene_mult: prepare mult1 mult32 mult64 mult128 mult256 mult512
  89.  
  90.     graphics: Time.p speedup.p time512 time1024 time2048 time4096
  91.     gnuplot> data 'Time.p'
  92.     gnuplot> data 'speedup.p'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement