Fixing V2 tests to accept HIP function versioning
Change-Id: Ic68116feb51b396b27e858dcaf8b389d4d11a49b
[ROCm/rocprofiler commit: cca295d951]
This commit is contained in:
@@ -246,6 +246,16 @@ TEST_F(HelloWorldTest, WhenRunningTracerWithAppThenFunctionNamesMatchWithGoldenO
|
||||
|
||||
ASSERT_TRUE(current_kernel_info.size());
|
||||
|
||||
int version_position = current_kernel_info[0].function.find('R');
|
||||
if(version_position != std::string::npos) {
|
||||
current_kernel_info[0].function = current_kernel_info[0].function.substr(0, version_position) + ')';
|
||||
}
|
||||
|
||||
version_position = current_kernel_info[1].function.find('R');
|
||||
if(version_position != std::string::npos) {
|
||||
current_kernel_info[1].function = current_kernel_info[1].function.substr(0, version_position) + ')';
|
||||
}
|
||||
|
||||
EXPECT_EQ(golden_kernel_info[0].function, current_kernel_info[0].function);
|
||||
EXPECT_EQ(golden_kernel_info[1].function, current_kernel_info[1].function);
|
||||
}
|
||||
|
||||
@@ -129,6 +129,10 @@ void tokenize_tracer_output(std::string line, tracer_kernel_info_t& kinfo) {
|
||||
std::getline(tokenStream, token, ',');
|
||||
kinfo.domain = token;
|
||||
std::getline(tokenStream, token, ',');
|
||||
int version_position = token.find('R');
|
||||
if (version_position != std::string::npos) {
|
||||
token = token.substr(0, version_position) + ')';
|
||||
}
|
||||
kinfo.function = token;
|
||||
std::getline(tokenStream, token, ',');
|
||||
kinfo.begin_time = token;
|
||||
|
||||
Fai riferimento in un nuovo problema
Block a user