17272d5df1
* Re-enable OpenMP target and testing
* Enable openmp target tests on mi200 jobs
* Fix direct self-inclusion of header file
* Enable openmp-target testing on vega20
---------
Co-authored-by: Jonathan R. Madsen <jonathanrmadsen@gmail.com>
Co-authored-by: Welton, Benjamin <Benjamin.Welton@amd.com>
[ROCm/rocprofiler-sdk commit: 2fe63d873e]
36 lines
832 B
CMake
36 lines
832 B
CMake
#
|
|
#
|
|
#
|
|
cmake_minimum_required(VERSION 3.21.0 FATAL_ERROR)
|
|
|
|
project(rocprofiler-sdk-samples LANGUAGES C CXX)
|
|
|
|
set(CMAKE_INSTALL_DEFAULT_COMPONENT_NAME "samples")
|
|
if(CMAKE_BUILD_TYPE STREQUAL "")
|
|
set(CMAKE_BUILD_TYPE
|
|
"RelWithDebInfo"
|
|
CACHE STRING "Build type" FORCE)
|
|
endif()
|
|
|
|
include(GNUInstallDirs)
|
|
|
|
# always use lib instead of lib64
|
|
set(CMAKE_INSTALL_LIBDIR "lib")
|
|
|
|
enable_testing()
|
|
include(CTest)
|
|
|
|
# common utilities for samples
|
|
add_subdirectory(common)
|
|
|
|
# actual samples
|
|
add_subdirectory(api_callback_tracing)
|
|
add_subdirectory(api_buffered_tracing)
|
|
add_subdirectory(code_object_tracing)
|
|
add_subdirectory(counter_collection)
|
|
add_subdirectory(intercept_table)
|
|
add_subdirectory(code_object_isa_decode)
|
|
add_subdirectory(external_correlation_id_request)
|
|
add_subdirectory(pc_sampling)
|
|
add_subdirectory(openmp_target)
|