Lines Matching +full:openmp +full:- +full:build

1 # See for https://openmp.llvm.org/SupportAndFAQ.html for instructions on how
2 # to build offload with CMake.
19 message(WARNING "Host compiler must support C++17 to build libomptarget!")
22 message(WARNING "libomptarget on 32-bit systems is not supported!")
61 "Enable -Werror flags to turn warnings into errors for supporting compilers.")
72 "C compiler to use for testing OpenMP runtime libraries.")
74 "C++ compiler to use for testing OpenMP runtime libraries.")
76 "FORTRAN compiler to use for testing OpenMP runtime libraries.")
104 message("Using local flang build at ${OPENMP_TEST_Fortran_COMPILER}")
110 # only set it locally for OpenMP.
136 check_cxx_compiler_flag(-Werror=global-constructors OFFLOAD_HAVE_WERROR_CTOR)
138 # LLVM source tree is required at build time for libomptarget
150 "Semicolon-separated list of plugins to use: cuda, amdgpu, host or \"all\".")
178 "Semicolon-separated list of plugins to use 'dlopen' for runtime linking")
194 set (LIBOMPTARGET_ALL_TARGETS "${LIBOMPTARGET_ALL_TARGETS} aarch64-unknown-linux-gnu")
195 set (LIBOMPTARGET_ALL_TARGETS "${LIBOMPTARGET_ALL_TARGETS} aarch64-unknown-linux-gnu-LTO")
196 set (LIBOMPTARGET_ALL_TARGETS "${LIBOMPTARGET_ALL_TARGETS} amdgcn-amd-amdhsa")
197 set (LIBOMPTARGET_ALL_TARGETS "${LIBOMPTARGET_ALL_TARGETS} powerpc64le-ibm-linux-gnu")
198 set (LIBOMPTARGET_ALL_TARGETS "${LIBOMPTARGET_ALL_TARGETS} powerpc64le-ibm-linux-gnu-LTO")
199 set (LIBOMPTARGET_ALL_TARGETS "${LIBOMPTARGET_ALL_TARGETS} powerpc64-ibm-linux-gnu")
200 set (LIBOMPTARGET_ALL_TARGETS "${LIBOMPTARGET_ALL_TARGETS} powerpc64-ibm-linux-gnu-LTO")
201 set (LIBOMPTARGET_ALL_TARGETS "${LIBOMPTARGET_ALL_TARGETS} x86_64-unknown-linux-gnu")
202 set (LIBOMPTARGET_ALL_TARGETS "${LIBOMPTARGET_ALL_TARGETS} x86_64-unknown-linux-gnu-LTO")
203 set (LIBOMPTARGET_ALL_TARGETS "${LIBOMPTARGET_ALL_TARGETS} nvptx64-nvidia-cuda")
204 set (LIBOMPTARGET_ALL_TARGETS "${LIBOMPTARGET_ALL_TARGETS} nvptx64-nvidia-cuda-LTO")
205 set (LIBOMPTARGET_ALL_TARGETS "${LIBOMPTARGET_ALL_TARGETS} nvptx64-nvidia-cuda-JIT-LTO")
206 set (LIBOMPTARGET_ALL_TARGETS "${LIBOMPTARGET_ALL_TARGETS} s390x-ibm-linux-gnu")
207 set (LIBOMPTARGET_ALL_TARGETS "${LIBOMPTARGET_ALL_TARGETS} s390x-ibm-linux-gnu-LTO")
208 set (LIBOMPTARGET_ALL_TARGETS "${LIBOMPTARGET_ALL_TARGETS} riscv64-unknown-linux-gnu")
209 set (LIBOMPTARGET_ALL_TARGETS "${LIBOMPTARGET_ALL_TARGETS} riscv64-unknown-linux-gnu-LTO")
210 set (LIBOMPTARGET_ALL_TARGETS "${LIBOMPTARGET_ALL_TARGETS} loongarch64-unknown-linux-gnu")
211 set (LIBOMPTARGET_ALL_TARGETS "${LIBOMPTARGET_ALL_TARGETS} loongarch64-unknown-linux-gnu-LTO")
228 add_definitions(-DOMPTARGET_DEBUG)
232 set(offload_compile_flags -fno-exceptions)
234 set(offload_compile_flags ${offload_compile_flags} -fno-rtti)
237 list(APPEND offload_compile_flags -Werror=global-constructors)
244 # would test whether LTO works with the default linker but build with another one.
245 # In a typical scenario, libomptarget is compiled with the in-tree Clang, but
262 COMMAND ${CMAKE_CXX_COMPILER} --print-resource-dir
274 omp-tools.h
310 "OpenMP compiler flag to use for testing OpenMP runtime libraries.")
329 llvm_check_compiler_linker_flag(C "-Wl,--version-script=${CMAKE_CURRENT_LIST_DIR}/../openmp/runtime/src/exports_test_so.txt" LIBOMP_HAVE_VERSION_SCRIPT_FLAG)
342 set(LIBOMPTARGET_OMPT_SUPPORT ${OMPT_TARGET_DEFAULT} CACHE BOOL "OMPT-target-support?")
344 add_definitions(-DOMPT_SUPPORT=1)
364 message(STATUS "OpenMP tools dir in libomptarget: ${LIBOMP_OMP_TOOLS_INCLUDE_DIR}")
374 # Build offloading plugins and device RTLs if they are available.
375 add_subdirectory(plugins-nextgen)
379 # Build target agnostic offloading library.
382 add_subdirectory(tools/offload-tblgen)
391 add_subdirectory(${LLVM_THIRD_PARTY_DIR}/unittest ${CMAKE_CURRENT_BINARY_DIR}/third-party/unittest)