CTest Environment Update (#756)

* Update test/tools/json-tool.cpp

- push/pop ppid as external correlation id instead of pid

* Update environment variables for tests and samples

* Revert to old CDash dashboard in run-ci.py

* Revert to new CDash dashboard in run-ci.py

[ROCm/rocprofiler-sdk commit: 3eaa678054]
这个提交包含在:
Jonathan R. Madsen
2024-04-12 08:40:00 -05:00
提交者 GitHub
父节点 cf1767b3d2
当前提交 03fb9ace21
共修改 13 个文件,包含 108 行新增和 86 行删除
@@ -1343,7 +1343,7 @@ tool_init(rocprofiler_client_finalize_t fini_func, void* tool_data)
}
}
push_external_correlation(getpid());
push_external_correlation(getppid());
start();
@@ -1910,13 +1910,13 @@ pop_external_correlation()
auto _data = rocprofiler_user_data_t{.value = 0};
ROCPROFILER_CALL(rocprofiler_pop_external_correlation_id(*itr.second, tid, &_data),
"push external correlation");
if(_data.value != static_cast<uint64_t>(getpid()))
if(_data.value != static_cast<uint64_t>(getppid()))
{
auto _msg = std::stringstream{};
_msg << "rocprofiler_pop_external_correlation_id(context.handle="
<< itr.second->handle << ", tid=" << tid
<< ", ...) returned external correlation id value of " << _data.value
<< ". expected: " << getpid();
<< ". expected: " << getppid();
throw std::runtime_error{_msg.str()};
}
}