[CI] Miscellaneous Testing Updates (#305)
* Add rocprofiler-sdk-utilities.cmake - contains cmake function rocprofiler_sdk_get_gfx_architectures * Update perfetto_reader.py - fix hash collision * Update project names in tests folders - rocprofiler-tests -> rocprofiler-sdk-tests * Fix incorrect allocation-error handling * [CI] Disable openmp tests for navi2, navi3, and navi4 * Suppress leaks by omptarget and llvm --------- Co-authored-by: Jonathan R. Madsen <jonathanrmadsen@gmail.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
b01465303b
Коммит
2d072f9217
@@ -99,9 +99,12 @@ get_output_stream(const output_config& cfg, std::string_view fname, std::string_
|
||||
return {&std::clog, [](auto*&) {}};
|
||||
|
||||
auto output_file = get_output_filename(cfg, fname, ext);
|
||||
auto* _ofs = new std::ofstream{output_file};
|
||||
auto* _ofs = new(std::nothrow) std::ofstream{output_file};
|
||||
|
||||
LOG_IF(FATAL, !_ofs) << fmt::format("Failed to allocate ofstream for output file '{}'",
|
||||
output_file);
|
||||
LOG_IF(FATAL, _ofs && !*_ofs) << fmt::format("Failed to open '{}' for output", output_file);
|
||||
|
||||
LOG_IF(FATAL, !_ofs && !*_ofs) << fmt::format("Failed to open {} for output", output_file);
|
||||
ROCP_ERROR << "Opened result file: " << output_file;
|
||||
|
||||
return {_ofs, [](std::ostream*& v) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
#
|
||||
#
|
||||
project(rocprofiler-tests-buffering LANGUAGES C CXX)
|
||||
project(rocprofiler-sdk-tests-buffering LANGUAGES C CXX)
|
||||
|
||||
include(GoogleTest)
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# Tests for the common library
|
||||
#
|
||||
project(rocprofiler-tests-common LANGUAGES C CXX)
|
||||
project(rocprofiler-sdk-tests-common LANGUAGES C CXX)
|
||||
|
||||
include(GoogleTest)
|
||||
|
||||
|
||||
@@ -8,3 +8,5 @@ leak:amdhip
|
||||
leak:python
|
||||
leak:hsa-amd-aqlprofile
|
||||
leak:__new_exitfn
|
||||
leak:omptarget
|
||||
leak:llvm
|
||||
|
||||
Ссылка в новой задаче
Block a user