Summary: The changes in https://www.github.com/llvm/llvm-project/pull/185552 allowed us to start building the standard `libclang_rt.profile.a` for GPU targets. This PR expands this by adding an optimized GPU routine for counter increment and removing the special-case handling of these functions in the OpenMP runtime. Vast majority of these functions are boilerplate, but we should be able to do more interesting things with this in the future, like value or memory profiling.
33 lines
1.7 KiB
INI
33 lines
1.7 KiB
INI
@AUTO_GEN_COMMENT@
|
|
|
|
config.bin_llvm_tools_dir = "@LLVM_TOOLS_BINARY_DIR@"
|
|
config.test_c_compiler = "@OPENMP_TEST_C_COMPILER@"
|
|
config.test_cxx_compiler = "@OPENMP_TEST_CXX_COMPILER@"
|
|
config.test_fortran_compiler="@OPENMP_TEST_Fortran_COMPILER@"
|
|
config.test_compiler_features = @OPENMP_TEST_COMPILER_FEATURES@
|
|
config.test_openmp_flags = "@OPENMP_TEST_OPENMP_FLAGS@"
|
|
config.test_extra_flags = "@OPENMP_TEST_FLAGS@"
|
|
config.cuda_path = "@CUDA_ROOT@"
|
|
config.cuda_libdir = "@CUDA_LIBDIR@"
|
|
config.cuda_test_arch = "@LIBOMPTARGET_DEP_CUDA_ARCH@"
|
|
config.amdgpu_test_arch = "@LIBOMPTARGET_AMDGPU_DETECTED_ARCH_LIST@"
|
|
config.libomptarget_obj_root = "@CMAKE_CURRENT_BINARY_DIR@/@CURRENT_TARGET@"
|
|
config.library_dir = "@LIBOMPTARGET_LIBRARY_DIR@"
|
|
config.llvm_library_dir = "@LIBOMPTARGET_LLVM_LIBRARY_DIR@"
|
|
config.llvm_library_intdir = "@LIBOMPTARGET_LLVM_LIBRARY_INTDIR@"
|
|
config.omp_header_directory = "@LIBOMPTARGET_OPENMP_HEADER_FOLDER@"
|
|
config.omp_host_rtl_directory = "@LIBOMPTARGET_OPENMP_HOST_RTL_FOLDER@"
|
|
config.llvm_lib_directory = "@LIBOMPTARGET_LLVM_LIBRARY_DIR@"
|
|
config.operating_system = "@CMAKE_SYSTEM_NAME@"
|
|
config.libomptarget_all_targets = "@LIBOMPTARGET_ALL_TARGETS@".split()
|
|
config.libomptarget_current_target = "@CURRENT_TARGET@"
|
|
config.libomptarget_filecheck = "@OPENMP_FILECHECK_EXECUTABLE@"
|
|
config.libomptarget_not = "@OPENMP_NOT_EXECUTABLE@"
|
|
config.offload_device_info = "@OFFLOAD_DEVICE_INFO_EXECUTABLE@"
|
|
config.libomptarget_debug = @LIBOMPTARGET_DEBUG@
|
|
config.has_libomptarget_ompt = @LIBOMPTARGET_OMPT_SUPPORT@
|
|
config.libomptarget_has_libc = @LIBOMPTARGET_GPU_LIBC_SUPPORT@
|
|
config.offload_tblgen = "@OFFLOAD_TBLGEN_EXECUTABLE@"
|
|
# Let the main config do the real work.
|
|
lit_config.load_config(config, "@CMAKE_CURRENT_SOURCE_DIR@/lit.cfg")
|