iccsa-17-gpulab

git clone https://git.igankevich.com/iccsa-17-gpulab.git
Log | Files | Refs

commit 23b174577a4f094bbff5d894c06c84c1c52cb175
Author: Ivan Gankevich <igankevich@ya.ru>
Date:   Wed, 10 May 2017 17:34:34 +0300

Initial. Add benchmark script.

Diffstat:
benchmark-cpu-gpu | 36++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+), 0 deletions(-)

diff --git a/benchmark-cpu-gpu b/benchmark-cpu-gpu @@ -0,0 +1,36 @@ +#!/bin/sh + +inputfile=$(mktemp) +for solver in linear high_amplitude_realtime +do +for size in 128 256 512 1024 +do + echo + echo "********************************************************************************" + echo " solver = $solver" + echo " size = $size" + echo "********************************************************************************" + echo + cat >$inputfile << EOF +out_grid = (200,$size,40) : (199,8,8) + +model = plain_wave +plain_wave = { + func = cos + amplitudes = [4] + wavenumbers = [0.125] + phases = [0] + velocities = [0.5] +} +verification = none + +velocity_potential_solver = $solver { + wnmax = from (0,0) to (0,0.25) npoints (2,2) + depth = 12 + domain = from (10,-12) to (10,4) npoints (1,128) +} +EOF + ./arma-$solver -c $inputfile 2>&1 | tee $solver-$size.log +done +done +rm -f $inputfile