1 if(NOT OPENMP_TEST_COMPILER_ID STREQUAL "Clang")
2 # Silently return, no need to annoy the user.
6 set(deps omptarget omp)
7 if(LIBOMPTARGET_NVPTX_ENABLE_BCLIB)
8 set(deps ${deps} omptarget-nvptx-bc)
11 # Run with only one thread to only launch one application to the GPU at a time.
12 add_openmp_testsuite(check-libomptarget-nvptx
13 "Running libomptarget-nvptx tests" ${CMAKE_CURRENT_BINARY_DIR}
14 EXCLUDE_FROM_CHECK_ALL
15 DEPENDS ${deps} ARGS -j1)
17 set(LIBOMPTARGET_NVPTX_TEST_FLAGS "" CACHE STRING
18 "Extra compiler flags to send to the test compiler.")
19 set(LIBOMPTARGET_NVPTX_TEST_OPENMP_FLAGS
20 "-fopenmp -fopenmp-targets=nvptx64-nvidia-cuda" CACHE STRING
21 "OpenMP compiler flags to use for testing libomptarget-nvptx.")
23 # Configure the lit.site.cfg.in file
24 set(AUTO_GEN_COMMENT "## Autogenerated by libomptarget-nvptx configuration.\n# Do not edit!")
25 configure_file(lit.site.cfg.in lit.site.cfg @ONLY)