Created
September 18, 2018 08:07
-
-
Save typhoonzero/c2f73c06099680580c6b52c1b6ac6ae8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######################################################################### | |
# File Name: h2dtest.sh | |
# Author: lychee | |
# Email: lizhi14@baidu.com | |
# goto /usr/local/cuda/samples/1_Utilities/bandwidthTest and run make | |
######################################################################### | |
#!/bin/bash | |
# Host to GPU | |
echo "#### Host to GPU ####" | |
for i in `seq 1 30`; do | |
size=$((2 ** i)) | |
./bandwidthTest --mode=range --start=$size --end=$size --increment=1 --csv --htod | grep bandwidthTest | |
done | |
# GPU to Host | |
echo "#### GPU to Host ####" | |
for i in `seq 1 30`; do | |
size=$((2 ** i)) | |
./bandwidthTest --mode=range --start=$size --end=$size --increment=1 --csv --dtoh | grep bandwidthTest | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment