mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2026-05-14 14:06:53 +08:00
- Added Python samples for CUDA Python 1.0 release - Renamed top-level `Samples` directory to `cpp` to accommodate Python samples.
18 lines
465 B
Bash
18 lines
465 B
Bash
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
|