Skip to content

Commit

Permalink
Add device number option to testperf.sh, and reduce testperf compile …
Browse files Browse the repository at this point in the history
…time
  • Loading branch information
malcolmroberts authored Sep 21, 2020
1 parent 26b7e2d commit e97ebb4
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions scripts/perf/testperf.sh
Original file line number Diff line number Diff line change
@@ -1,31 +1,37 @@
#!/bin/bash

# A sample script for running the rocFFT benchmarks with dloaded libraries.
# A test script for the rocFFT benchmarks with dloaded libraries.

devicenum = 0

if [ "$1" != "" ]; then
devicenum = $1
fi

pushd ../..


# Compile two libs with

mkdir build
pushd build
cmake -DCMAKE_CXX_COMPILER=hipcc -DSINGLELIB=on -DCMAKE_BUILD_TYPE=Release -DBUILD_CLIENTS_SAMPLES=on -DBUILD_CLIENTS_RIDER=on .. && make -j$(nproc)
cmake -DCMAKE_CXX_COMPILER=hipcc -DSINGLELIB=on -DCMAKE_BUILD_TYPE=Release -DBUILD_CLIENTS_RIDER=on -DAMDGPU_TARGETS="" .. && make -j$(nproc)
popd

mkdir build1
pushd build1
cmake -DCMAKE_CXX_COMPILER=hipcc -DSINGLELIB=on -DCMAKE_BUILD_TYPE=Release -DBUILD_CLIENTS_SAMPLES=on -DBUILD_CLIENTS_RIDER=on .. && make -j$(nproc)
cmake -DCMAKE_CXX_COMPILER=hipcc -DSINGLELIB=on -DCMAKE_BUILD_TYPE=Release -DBUILD_CLIENTS_RIDER=on -DAMDGPU_TARGETS="" .. && make -j$(nproc)
popd


popd


# Test the dload version:
./alltime.py -b ../../build/clients/staging/dyna-rocfft-rider -i ../../build/library/src/librocfft.so -i ../../build1/library/src/librocfft.so -o dtest/dir0 -o dtest/dir1 -w dtest/doc -D 1 -s
./alltime.py -b ../../build/clients/staging/dyna-rocfft-rider -i ../../build/library/src/librocfft.so -i ../../build1/library/src/librocfft.so -o dtest/dir0 -o dtest/dir1 -w dtest/doc -D 1 -s -d ${devicenum}
# produces dtest/doc/figs.pdf


# Test the normal version:
./alltime.py -i ../../build/clients/staging/rocfft-rider -i ../../build/clients/staging/rocfft-rider -o otest/dir0 -o otest/dir1 -w otest/doc -D 1 -s
./alltime.py -i ../../build/clients/staging/rocfft-rider -i ../../build/clients/staging/rocfft-rider -o otest/dir0 -o otest/dir1 -w otest/doc -D 1 -s -d ${devicenum}
# produces otest/doc/figs.pdf

0 comments on commit e97ebb4

Please sign in to comment.