CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
41 lines
1.3 KiB
CMake
41 lines
1.3 KiB
CMake
# //===----------------------------------------------------------------------===//
|
|
# //
|
|
# // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
# // See https://llvm.org/LICENSE.txt for details.
|
|
# // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
# //
|
|
# //===----------------------------------------------------------------------===//
|
|
|
|
set(LIBOMP_ARCHER_SUPPORT TRUE CACHE BOOL "Build libomp with archer support")
|
|
|
|
if(LIBOMP_OMPT_SUPPORT AND LIBOMP_ARCHER_SUPPORT)
|
|
include_directories(${LIBOMP_INCLUDE_DIR})
|
|
|
|
add_library(archer SHARED ompt-tsan.cpp)
|
|
target_link_libraries(archer ${CMAKE_DL_LIBS})
|
|
add_library(archer_static STATIC ompt-tsan.cpp)
|
|
|
|
if(TARGET cxx-headers)
|
|
add_dependencies(archer cxx-headers)
|
|
add_dependencies(archer_static cxx-headers)
|
|
endif()
|
|
|
|
if(TARGET cxx_shared)
|
|
add_dependencies(archer cxx_shared)
|
|
add_dependencies(archer_static cxx_shared)
|
|
endif()
|
|
|
|
if(TARGET cxxabi_shared)
|
|
add_dependencies(archer cxxabi_shared)
|
|
add_dependencies(archer_static cxxabi_shared)
|
|
endif()
|
|
|
|
install(TARGETS archer archer_static
|
|
LIBRARY DESTINATION ${OPENMP_INSTALL_LIBDIR} COMPONENT openmp
|
|
ARCHIVE DESTINATION ${OPENMP_INSTALL_LIBDIR} COMPONENT openmp)
|
|
|
|
openmp_register_meta_dep(archer archer_static)
|
|
|
|
add_subdirectory(tests)
|
|
endif()
|