iccsa-17-gpulab

Acceleration of Computing and Visualization Processes with OpenCL for Standing Sea Wave Simulation Model
git clone https://git.igankevich.com/iccsa-17-gpulab.git
Log | Files | Refs

benchmark-cpu-gpu (794B)


      1 #!/bin/sh
      2 
      3 inputfile=$(mktemp)
      4 for solver in linear high_amplitude_realtime
      5 do
      6 for size in 128 256 512 1024
      7 do
      8 	echo
      9 	echo "********************************************************************************"
     10 	echo " solver = $solver"
     11 	echo " size = $size"
     12 	echo "********************************************************************************"
     13 	echo
     14 	cat >$inputfile << EOF
     15 out_grid = (200,$size,40) : (199,8,8)
     16 
     17 model = plain_wave
     18 plain_wave = {
     19 	func = cos
     20 	amplitudes = [4]
     21 	wavenumbers = [0.125]
     22 	phases = [0]
     23 	velocities = [0.5]
     24 }
     25 verification = none
     26 
     27 velocity_potential_solver = $solver {
     28 	wnmax = from (0,0) to (0,0.25) npoints (2,2)
     29 	depth = 12
     30 	domain = from (10,-12) to (10,4) npoints (1,128)
     31 }
     32 EOF
     33 	./arma-$solver -c $inputfile 2>&1 | tee $solver-$size.log
     34 done
     35 done
     36 rm -f $inputfile