aeb1621c2b
* Temp: disable RCCL tracing * Update continuous_integration.yml * Update continuous_integration.yml * Update continuous_integration.yml * Adding option to disable rccl tracing from CMake * Update codeql.yml * Misc updates - ROCPROFILER_BUILD_RCCL -> ROCPROFILER_INTERNAL_RCCL_API_TRACE - env.EXTRA_TEMP_CMAKE_OPTIONS -> env.GLOBAL_CMAKE_OPTIONS - add (advanced) option ROCPROFILER_INTERNAL_RCCL_API_TRACE * Fix rocprofiler::sdk::get_enum_label - missing enum labels for HIP_RUNTIME_API_TABLE_STEP_VERSION > 8 * Update tests/rocprofv3/advanced-thread-trace/CMakeLists.txt - improve various aspect of cmake -- particularly echoing where attdecoder_LIBRARY was found * Use CMAKE_MESSAGE_INDENT - add prefix to cmake messages to help indicate where messages are coming from - make find_package(Python3 ...) QUIET for bindings * Fix rocprofiler::sdk::get_enum_label - handle HSA_AMD_EXT_API_TABLE_MAJOR_VERSION * Fix rocprofv3 message for att library path * Fix tests/rocprofv3/advanced-thread-trace/att_input.yml config * Fix rocprofv3 check_att_capability + soversion/version library resolution - Account for ROCPROF_ATT_LIBRARY_PATH in env in check_att_capability - Add resolve_library_path - supports resolution of library names to SOVERSION and VERSION paths * Fix python linting error (unused import) --------- Co-authored-by: Ammar ELWazir <aelwazir@amd.com> Co-authored-by: Jonathan R. Madsen <jonathanrmadsen@gmail.com>
92 строки
2.3 KiB
CMake
92 строки
2.3 KiB
CMake
#
|
|
# Integration tests
|
|
#
|
|
cmake_minimum_required(VERSION 3.21.0 FATAL_ERROR)
|
|
|
|
if(COMMAND rocprofiler_deactivate_clang_tidy)
|
|
rocprofiler_deactivate_clang_tidy()
|
|
endif()
|
|
|
|
project(rocprofiler-sdk-tests LANGUAGES C CXX)
|
|
|
|
set(CMAKE_INSTALL_DEFAULT_COMPONENT_NAME "tests")
|
|
set(ROCPROFILER_SDK_TESTS_SOURCE_DIR "${PROJECT_SOURCE_DIR}")
|
|
set(ROCPROFILER_SDK_TESTS_BINARY_DIR "${PROJECT_BINARY_DIR}")
|
|
|
|
if(NOT CMAKE_BUILD_TYPE)
|
|
set(CMAKE_BUILD_TYPE
|
|
"Release"
|
|
CACHE STRING "" FORCE)
|
|
endif()
|
|
|
|
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)
|
|
|
|
include(GNUInstallDirs)
|
|
# always use lib instead of lib64
|
|
set(CMAKE_INSTALL_LIBDIR "lib")
|
|
|
|
# define the library output directory
|
|
if(PROJECT_IS_TOP_LEVEL)
|
|
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}")
|
|
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}")
|
|
else()
|
|
set(CMAKE_MESSAGE_INDENT "[${PROJECT_NAME}] ")
|
|
endif()
|
|
|
|
# needed for validation
|
|
find_package(Python3 REQUIRED)
|
|
|
|
# generally needed
|
|
find_package(rocprofiler-sdk REQUIRED)
|
|
|
|
# get the gfx architectures that are present on the system
|
|
rocprofiler_sdk_get_gfx_architectures(rocprofiler-sdk-tests-gfx-info ECHO)
|
|
|
|
# configure python module <BINARY_DIR>/rocprofiler_sdk/pytest_utils
|
|
add_subdirectory(pytest-packages)
|
|
|
|
# common utilities
|
|
add_subdirectory(common)
|
|
|
|
# tool libraries used for data collection during integration tests
|
|
add_subdirectory(tools)
|
|
|
|
# libraries used by integration test applications
|
|
add_subdirectory(lib)
|
|
|
|
# applications used by integration tests
|
|
add_subdirectory(bin)
|
|
|
|
# validation tests
|
|
add_subdirectory(kernel-tracing)
|
|
add_subdirectory(async-copy-tracing)
|
|
add_subdirectory(hsa-memory-allocation)
|
|
add_subdirectory(scratch-memory-tracing)
|
|
add_subdirectory(c-tool)
|
|
add_subdirectory(page-migration)
|
|
add_subdirectory(thread-trace)
|
|
add_subdirectory(pc_sampling)
|
|
add_subdirectory(hip-graph-tracing)
|
|
add_subdirectory(counter-collection)
|
|
add_subdirectory(openmp-tools)
|
|
add_subdirectory(rocdecode)
|
|
add_subdirectory(rocjpeg)
|
|
|
|
# rocpd validation tests
|
|
add_subdirectory(rocpd)
|
|
|
|
# rocprofv3 validation tests
|
|
add_subdirectory(rocprofv3)
|
|
|
|
# python bindings
|
|
add_subdirectory(python-bindings)
|
|
add_subdirectory(rocprofv3-avail)
|