Fixing rocprofilerv2 naming and CMake issues

Change-Id: Ib6d336349a056731e5c0f35151296d6fea671360
This commit is contained in:
Ammar ELWazir
2023-02-17 11:12:27 -06:00
parent bc48a2d164
commit dc69331379
62 changed files with 228 additions and 234237 deletions
+5 -5
View File
@@ -1,11 +1,11 @@
# ROCMTools testing environment.
# ROCProfiler testing environment.
This document explains how ROCMTools testing environment works.
This document explains how ROCProfiler testing environment works.
We make use of the GoogleTest (Gtest) framework to automatically find and add test cases to the CMAKE testing environment.
# Test Categories
ROCMTools testing is categorised as following:
ROCProfiler testing is categorised as following:
- unittests (Gtest Based)
- featuretests (standalone and Gtest Based)
@@ -14,8 +14,8 @@ ROCMTools testing is categorised as following:
### Quickstart
ROCMTools tests are integrated into the top-level cmake project. The tests depend upon the installed version of ROCMTools.
Typical usage (paths relative to top of the ROCMTools repo):
ROCProfiler tests are integrated into the top-level cmake project. The tests depend upon the installed version of ROCProfiler.
Typical usage (paths relative to top of the ROCProfiler repo):
```
$ ./build.sh
$ ./rocprofv2 -ct
@@ -52,7 +52,7 @@ THE SOFTWARE.
*
* \section introduction Introduction
*
* The goal of this test is to test ROCmTools APIs to collect ATT traces.
* The goal of this test is to test ROCProfiler APIs to collect ATT traces.
*
* A simple vectoradd_float kernel is launched and the trace results are printed
* as console output
@@ -62,7 +62,7 @@ THE SOFTWARE.
// function to check att tracing API status
auto CheckApi = [](rocprofiler_status_t status) {
if (status != ROCPROFILER_STATUS_SUCCESS) {
std::cout << "ROCmTools API Error" << std::endl;
std::cout << "ROCProfiler API Error" << std::endl;
}
assert(status == ROCPROFILER_STATUS_SUCCESS);
};
@@ -210,7 +210,7 @@ int LaunchVectorAddKernel() {
int main(int argc, char** argv) {
// inititalize rocmtools
// inititalize ROCProfiler
CheckApi(rocprofiler_initialize());
// Att trace collection parameters
@@ -253,7 +253,7 @@ int main(int argc, char** argv) {
// destroy session
CheckApi(rocprofiler_destroy_session(session_id));
// finalize att tracing by destroying rocmtool object
// finalize att tracing by destroying rocprofiler object
CheckApi(rocprofiler_finalize());
return 0;
}
+1 -2
View File
@@ -1,12 +1,11 @@
#!/bin/bash
CURRENT_DIR="$( dirname -- "$0"; )";
export PATH=$rocmtoolsdir:$PATH
echo -e "Running Profiler Tests"
echo -e "Running Unit tests for rocmtools"
echo -e "Running Unit tests for rocprofiler"
eval ${CURRENT_DIR}/tests/unittests/core/runCoreUnitTests
eval ${CURRENT_DIR}/tests/unittests/profiler/runProfilerUnitTests