From 9de284a56886f09484b0b7e3d281bab834d3de73 Mon Sep 17 00:00:00 2001 From: "Trowbridge, Ian" Date: Wed, 18 Dec 2024 11:37:51 -0600 Subject: [PATCH] Skip Building of OpenMP Samples and Tests (#77) * Add option to disable openmp samples * Skip building openmp tests and samples for now --- cmake/rocprofiler_options.cmake | 2 ++ samples/CMakeLists.txt | 4 +++- tests/CMakeLists.txt | 4 +++- tests/bin/CMakeLists.txt | 4 +++- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/cmake/rocprofiler_options.cmake b/cmake/rocprofiler_options.cmake index 05b960694b..35862acdc4 100644 --- a/cmake/rocprofiler_options.cmake +++ b/cmake/rocprofiler_options.cmake @@ -53,6 +53,8 @@ rocprofiler_add_option( rocprofiler_add_option(ROCPROFILER_BUILD_FMT "Enable building fmt library internally" ON) rocprofiler_add_option(ROCPROFILER_BUILD_GLOG "Enable building glog (Google logging) library internally" ON) +rocprofiler_add_option(ROCPROFILER_BUILD_OPENMP_TESTS + "Enable building openmp tests and samples" OFF ADVANCED) if(ROCPROFILER_BUILD_TESTS) rocprofiler_add_option( ROCPROFILER_BUILD_GTEST diff --git a/samples/CMakeLists.txt b/samples/CMakeLists.txt index cc61579b8c..d833ae1bee 100644 --- a/samples/CMakeLists.txt +++ b/samples/CMakeLists.txt @@ -33,4 +33,6 @@ add_subdirectory(code_object_isa_decode) add_subdirectory(advanced_thread_trace) add_subdirectory(external_correlation_id_request) add_subdirectory(pc_sampling) -add_subdirectory(openmp_target) +if(ROCPROFILER_BUILD_OPENMP_TESTS) + add_subdirectory(openmp_target) +endif() diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index c67a82cb20..e2d4704019 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -62,7 +62,9 @@ add_subdirectory(pc_sampling) add_subdirectory(thread-trace) add_subdirectory(hip-graph-tracing) add_subdirectory(counter-collection) -add_subdirectory(openmp-tools) +if(ROCPROFILER_BUILD_OPENMP_TESTS) + add_subdirectory(openmp-tools) +endif() # rocprofv3 validation tests add_subdirectory(rocprofv3) diff --git a/tests/bin/CMakeLists.txt b/tests/bin/CMakeLists.txt index d1dab34b44..8ae854798c 100644 --- a/tests/bin/CMakeLists.txt +++ b/tests/bin/CMakeLists.txt @@ -12,7 +12,9 @@ set(CMAKE_BUILD_RPATH # applications used by integration tests which DO link to rocprofiler-sdk-roctx add_subdirectory(reproducible-runtime) add_subdirectory(transpose) -add_subdirectory(openmp) +if(ROCPROFILER_BUILD_OPENMP_TESTS) + add_subdirectory(openmp) +endif() set(CMAKE_BUILD_RPATH "\$ORIGIN:\$ORIGIN/../lib")