2023-08-29 01:45:45 -05:00
|
|
|
#
|
2023-11-16 03:21:39 -06:00
|
|
|
# Integration tests
|
2023-08-29 01:45:45 -05:00
|
|
|
#
|
2023-11-16 03:21:39 -06:00
|
|
|
cmake_minimum_required(VERSION 3.21.0 FATAL_ERROR)
|
|
|
|
|
|
|
|
|
|
if(COMMAND rocprofiler_deactivate_clang_tidy)
|
|
|
|
|
rocprofiler_deactivate_clang_tidy()
|
|
|
|
|
endif()
|
|
|
|
|
|
2023-12-15 14:39:13 -06:00
|
|
|
project(rocprofiler-tests LANGUAGES C CXX)
|
2023-11-16 03:21:39 -06:00
|
|
|
|
2023-12-15 14:39:13 -06:00
|
|
|
set(CMAKE_INSTALL_DEFAULT_COMPONENT_NAME "tests")
|
2024-04-18 03:09:01 -05:00
|
|
|
set(ROCPROFILER_SDK_TESTS_SOURCE_DIR "${PROJECT_SOURCE_DIR}")
|
|
|
|
|
set(ROCPROFILER_SDK_TESTS_BINARY_DIR "${PROJECT_BINARY_DIR}")
|
2023-11-16 03:21:39 -06:00
|
|
|
|
2023-12-15 14:39:13 -06:00
|
|
|
if(NOT CMAKE_BUILD_TYPE)
|
|
|
|
|
set(CMAKE_BUILD_TYPE
|
|
|
|
|
"Release"
|
|
|
|
|
CACHE STRING "" FORCE)
|
2023-11-16 03:21:39 -06:00
|
|
|
endif()
|
|
|
|
|
|
2023-12-15 14:39:13 -06:00
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
|
|
|
set(CMAKE_CXX_EXTENSIONS OFF)
|
|
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
|
set(CMAKE_HIP_STANDARD 17)
|
|
|
|
|
set(CMAKE_HIP_EXTENSIONS OFF)
|
|
|
|
|
set(CMAKE_HIP_STANDARD_REQUIRED ON)
|
|
|
|
|
|
|
|
|
|
enable_testing()
|
|
|
|
|
include(CTest)
|
|
|
|
|
|
2024-01-24 16:32:54 -06:00
|
|
|
include(GNUInstallDirs)
|
|
|
|
|
# always use lib instead of lib64
|
|
|
|
|
set(CMAKE_INSTALL_LIBDIR "lib")
|
|
|
|
|
|
2023-11-16 03:21:39 -06:00
|
|
|
# needed for validation
|
|
|
|
|
find_package(Python3 REQUIRED)
|
|
|
|
|
|
2024-04-18 03:09:01 -05:00
|
|
|
# configure python module <BINARY_DIR>/rocprofiler_sdk/pytest_utils
|
|
|
|
|
add_subdirectory(pytest-packages)
|
|
|
|
|
|
2023-12-15 14:39:13 -06:00
|
|
|
# common utilities
|
|
|
|
|
add_subdirectory(common)
|
|
|
|
|
|
2024-01-09 11:34:46 -06:00
|
|
|
# tool libraries used for data collection during integration tests
|
|
|
|
|
add_subdirectory(tools)
|
|
|
|
|
|
2024-03-07 22:21:26 -06:00
|
|
|
# libraries used by integration test applications
|
|
|
|
|
add_subdirectory(lib)
|
|
|
|
|
|
2023-11-16 03:21:39 -06:00
|
|
|
# applications used by integration tests
|
2024-03-07 22:21:26 -06:00
|
|
|
add_subdirectory(bin)
|
2023-11-16 03:21:39 -06:00
|
|
|
|
2024-01-09 11:34:46 -06:00
|
|
|
# validation tests
|
2023-11-16 03:21:39 -06:00
|
|
|
add_subdirectory(kernel-tracing)
|
2024-01-09 11:34:46 -06:00
|
|
|
add_subdirectory(async-copy-tracing)
|
2024-04-05 18:32:57 -07:00
|
|
|
add_subdirectory(scratch-memory-tracing)
|
2024-02-29 23:49:54 -06:00
|
|
|
add_subdirectory(c-tool)
|
2024-04-12 13:51:44 -07:00
|
|
|
add_subdirectory(page-migration)
|
2024-07-04 07:49:27 +02:00
|
|
|
add_subdirectory(pc_sampling)
|
2024-05-03 18:45:47 -03:00
|
|
|
add_subdirectory(thread-trace)
|
2024-05-07 15:10:22 -05:00
|
|
|
add_subdirectory(hip-graph-tracing)
|
2024-01-22 19:06:25 -06:00
|
|
|
|
|
|
|
|
# rocprofv3 validation tests
|
|
|
|
|
add_subdirectory(rocprofv3)
|
2024-02-05 12:42:59 -06:00
|
|
|
add_subdirectory(counter-collection)
|