Support performance tests

Support performance tests while direct tests commands keep unchanged.
To build performance tests, run "make build_perf".
To run all performance testis, run "make perf".
To run specific tests, for example, run
/usr/bin/ctest -C performance -R performance_tests/perfDispatch --verbose
To run individual test, for example, run
performance_tests/memory/hipPerfMemMallocCpyFree

Change-Id: I168c1b9ef1ec21b392d48648d0c71e8fbd37d57b


[ROCm/hip commit: 6e972dd3bb]
This commit is contained in:
Tao Sang
2020-05-04 18:06:34 -04:00
committed by Tao Sang
parent 84b36e38c3
commit afbd11eb66
10 changed files with 65 additions and 20 deletions
+22
View File
@@ -121,6 +121,28 @@ ctest -R Memcpy
ctest -R memory
```
### Performance tests:
```
Above tests are direct tests which are majorly used for function verification.
We also provide performance tests under tests/performance folder.
# Build all performance tests after running "make install" under build folder:
make build_perf
Then all performance test applications will be built into ./performance_tests folder.
# Run all performance tests:
make perf
# Run individual performance test:
For example,
performance_tests/memory/hipPerfMemMallocCpyFree
# Run a specific test set:
For example,
/usr/bin/ctest -C performance -R performance_tests/perfDispatch --verbose
Here "-C performance" indicate the "performance" configuration of ctest.
```
### If a test fails - how to debug a test