[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:
@@ -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)
|
||||
|
||||
|
||||
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user