reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
if(NOT OPENMP_TEST_COMPILER_ID STREQUAL "Clang")
  # Silently return, no need to annoy the user.
  return()
endif()

set(deps omptarget-nvptx omptarget omp)
if(LIBOMPTARGET_NVPTX_ENABLE_BCLIB)
  set(deps ${deps} omptarget-nvptx-bc)
endif()

# Don't run by default.
set(EXCLUDE_FROM_ALL True)
# Run with only one thread to only launch one application to the GPU at a time.
add_openmp_testsuite(check-libomptarget-nvptx
    "Running libomptarget-nvptx tests" ${CMAKE_CURRENT_BINARY_DIR}
    DEPENDS ${deps} ARGS -j1)

set(LIBOMPTARGET_NVPTX_TEST_FLAGS "" CACHE STRING
    "Extra compiler flags to send to the test compiler.")
set(LIBOMPTARGET_NVPTX_TEST_OPENMP_FLAGS
    "-fopenmp -fopenmp-targets=nvptx64-nvidia-cuda" CACHE STRING
    "OpenMP compiler flags to use for testing libomptarget-nvptx.")

# Configure the lit.site.cfg.in file
set(AUTO_GEN_COMMENT "## Autogenerated by libomptarget-nvptx configuration.\n# Do not edit!")
configure_file(lit.site.cfg.in lit.site.cfg @ONLY)