cuda-samples/Samples/6_Performance/cudaGraphsPerfScaling/dataCollection.bash

18 lines
465 B
Bash
Raw Normal View History

2024-07-26 00:30:13 +08:00
GPU=$1
DRIVER_VERSION=$2
BINARY=./cudaGraphsPerfScaling
datadir=PERF_DATA
suffix=$DRIVER_VERSION
prefix=$GPU
mkdir -p $datadir
trials=600
width=1
nvidia-smi > $datadir/${prefix}_info_${suffix}.txt
$BINARY 5 $trials 1 $width 0 1 256 > $datadir/${prefix}_${width}_small_${suffix}.csv
$BINARY 5 $trials 1 $width 0 32 2048 > $datadir/${prefix}_${width}_large_${suffix}.csv
width=4
$BINARY 5 $trials 1 $width 0 1 256 > $datadir/${prefix}_${width}_small_${suffix}.csv