[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>
This commit is contained in:
Madsen, Jonathan
2025-03-22 18:51:42 -05:00
committed by GitHub
parent b01465303b
commit 2d072f9217
69 changed files with 163 additions and 81 deletions
+6
View File
@@ -20,6 +20,12 @@ set(CMAKE_INSTALL_LIBDIR "lib")
enable_testing()
include(CTest)
# generally needed
find_package(rocprofiler-sdk REQUIRED)
# get the gfx architectures that are present on the system
rocprofiler_sdk_get_gfx_architectures(rocprofiler-sdk-samples-gfx-info ECHO)
# common utilities for samples
add_subdirectory(common)
+9 -3
View File
@@ -40,14 +40,20 @@ set(ROCPROFILER_MEMCHECK_TYPES "ThreadSanitizer" "AddressSanitizer"
"UndefinedBehaviorSanitizer")
if(ROCPROFILER_MEMCHECK AND ROCPROFILER_MEMCHECK IN_LIST ROCPROFILER_MEMCHECK_TYPES)
set(IS_SANITIZER ON)
set(IS_DISABLED ON)
else()
set(IS_SANITIZER OFF)
set(IS_DISABLED OFF)
endif()
find_package(Threads REQUIRED)
find_package(rocprofiler-sdk-roctx REQUIRED)
# disable when GPU-0 is navi2, navi3, and navi4
list(GET rocprofiler-sdk-samples-gfx-info 0 openmp-tools-gpu-0-gfx-info)
if("${openmp-tools-gpu-0-gfx-info}" MATCHES "^gfx(10|11|12)[0-9][0-9]$")
set(IS_DISABLED ON)
endif()
add_executable(openmp-target-sample)
target_sources(openmp-target-sample PRIVATE main.cpp)
target_link_libraries(
@@ -86,4 +92,4 @@ set_tests_properties(
FAIL_REGULAR_EXPRESSION
"${ROCPROFILER_DEFAULT_FAIL_REGEX}"
DISABLED
"${IS_SANITIZER}")
"${IS_DISABLED}")