Skip to content

Commit 63172af

Browse files
authored
Skip Building of OpenMP Samples and Tests (#77)
* Add option to disable openmp samples * Skip building openmp tests and samples for now [ROCm/rocprofiler-sdk commit: 9de284a]
1 parent fe0142e commit 63172af

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

cmake/rocprofiler_options.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ rocprofiler_add_option(
5353
rocprofiler_add_option(ROCPROFILER_BUILD_FMT "Enable building fmt library internally" ON)
5454
rocprofiler_add_option(ROCPROFILER_BUILD_GLOG
5555
"Enable building glog (Google logging) library internally" ON)
56+
rocprofiler_add_option(ROCPROFILER_BUILD_OPENMP_TESTS
57+
"Enable building openmp tests and samples" OFF ADVANCED)
5658
if(ROCPROFILER_BUILD_TESTS)
5759
rocprofiler_add_option(
5860
ROCPROFILER_BUILD_GTEST

samples/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,6 @@ add_subdirectory(code_object_isa_decode)
3333
add_subdirectory(advanced_thread_trace)
3434
add_subdirectory(external_correlation_id_request)
3535
add_subdirectory(pc_sampling)
36-
add_subdirectory(openmp_target)
36+
if(ROCPROFILER_BUILD_OPENMP_TESTS)
37+
add_subdirectory(openmp_target)
38+
endif()

tests/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ add_subdirectory(pc_sampling)
6262
add_subdirectory(thread-trace)
6363
add_subdirectory(hip-graph-tracing)
6464
add_subdirectory(counter-collection)
65-
add_subdirectory(openmp-tools)
65+
if(ROCPROFILER_BUILD_OPENMP_TESTS)
66+
add_subdirectory(openmp-tools)
67+
endif()
6668

6769
# rocprofv3 validation tests
6870
add_subdirectory(rocprofv3)

tests/bin/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ set(CMAKE_BUILD_RPATH
1212
# applications used by integration tests which DO link to rocprofiler-sdk-roctx
1313
add_subdirectory(reproducible-runtime)
1414
add_subdirectory(transpose)
15-
add_subdirectory(openmp)
15+
if(ROCPROFILER_BUILD_OPENMP_TESTS)
16+
add_subdirectory(openmp)
17+
endif()
1618

1719
set(CMAKE_BUILD_RPATH "\$ORIGIN:\$ORIGIN/../lib")
1820

0 commit comments

Comments
 (0)