-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add device number option to testperf.sh, and reduce testperf compile …
…time
- Loading branch information
1 parent
26b7e2d
commit e97ebb4
Showing
1 changed file
with
11 additions
and
5 deletions.
There are no files selected for viewing
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
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 |