| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 | 
							- #!/bin/bash
 
- # StarPU --- Runtime system for heterogeneous multicore architectures.
 
- #
 
- # Copyright (C) 2009-2011,2014                           Université de Bordeaux
 
- # Copyright (C) 2010,2015,2017                           CNRS
 
- #
 
- # StarPU is free software; you can redistribute it and/or modify
 
- # it under the terms of the GNU Lesser General Public License as published by
 
- # the Free Software Foundation; either version 2.1 of the License, or (at
 
- # your option) any later version.
 
- #
 
- # StarPU is distributed in the hope that it will be useful, but
 
- # WITHOUT ANY WARRANTY; without even the implied warranty of
 
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
- #
 
- # See the GNU Lesser General Public License in COPYING.LGPL for more details.
 
- #
 
- mkdir -p .results
 
- rm -f .results/htod-pin.data
 
- rm -f .results/dtoh-pin.data
 
- echo "H -> D"
 
- for log in `seq 1 13`
 
- do
 
- 	size=$((2**$log))
 
- 	echo "$size	`./cuda_bandwidth -pin -HtoD -size $size -cpu-ld $size -gpu-ld $size -iter 50`" >> .results/htod-pin.data 
 
- done
 
- echo "D -> H"
 
- for log in `seq 1 13`
 
- do
 
- 	size=$((2**$log))
 
- 	echo "$size	`./cuda_bandwidth -pin -size $size -cpu-ld $size -gpu-ld $size -iter 50`" >> .results/dtoh-pin.data 
 
- done
 
- ./bench_bandwidth.gp
 
- echo "STRIDED H -> D"
 
- for stridelog in `seq 1 13`
 
- do
 
- 	stridesize=$((2**$stridelog))
 
- 	rm -f .results/htod-pin.$stridesize.data
 
- 	echo "	STRIDE $stridesize"
 
- 	for log in `seq 1 $stridelog`
 
- 	do
 
- 		size=$((2**$log))
 
- 		echo "$size	`./cuda_bandwidth -pin -HtoD -size $size -cpu-ld $stridesize -gpu-ld $stridesize -iter 50`" >> .results/htod-pin.$stridesize.data 
 
- 	done
 
- done
 
- echo "STRIDED D -> H"
 
- for stridelog in `seq 1 13`
 
- do
 
- 	stridesize=$((2**$stridelog))
 
- 	rm -f .results/dtoh-pin.$stridesize.data
 
- 	echo "	STRIDE $stridesize"
 
- 	for log in `seq 1 $stridelog`
 
- 	do
 
- 		size=$((2**$log))
 
- 		echo "$size	`./cuda_bandwidth -pin -size $size -cpu-ld $stridesize -gpu-ld $stridesize -iter 50`" >> .results/dtoh-pin.$stridesize.data 
 
- 	done
 
- done
 
 
  |