diff options
| -rw-r--r-- | llvm/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | offload/CMakeLists.txt (renamed from openmp/libomptarget/CMakeLists.txt) | 166 | ||||
| -rw-r--r-- | offload/DeviceRTL/CMakeLists.txt (renamed from openmp/libomptarget/DeviceRTL/CMakeLists.txt) | 4 | ||||
| -rw-r--r-- | offload/DeviceRTL/include/Allocator.h (renamed from openmp/libomptarget/DeviceRTL/include/Allocator.h) | 0 | ||||
| -rw-r--r-- | offload/DeviceRTL/include/Configuration.h (renamed from openmp/libomptarget/DeviceRTL/include/Configuration.h) | 0 | ||||
| -rw-r--r-- | offload/DeviceRTL/include/Debug.h (renamed from openmp/libomptarget/DeviceRTL/include/Debug.h) | 0 | ||||
| -rw-r--r-- | offload/DeviceRTL/include/Interface.h (renamed from openmp/libomptarget/DeviceRTL/include/Interface.h) | 0 | ||||
| -rw-r--r-- | offload/DeviceRTL/include/LibC.h (renamed from openmp/libomptarget/DeviceRTL/include/LibC.h) | 0 | ||||
| -rw-r--r-- | offload/DeviceRTL/include/Mapping.h (renamed from openmp/libomptarget/DeviceRTL/include/Mapping.h) | 0 | ||||
| -rw-r--r-- | offload/DeviceRTL/include/State.h (renamed from openmp/libomptarget/DeviceRTL/include/State.h) | 0 | ||||
| -rw-r--r-- | offload/DeviceRTL/include/Synchronization.h (renamed from openmp/libomptarget/DeviceRTL/include/Synchronization.h) | 0 | ||||
| -rw-r--r-- | offload/DeviceRTL/include/Types.h (renamed from openmp/libomptarget/DeviceRTL/include/Types.h) | 0 | ||||
| -rw-r--r-- | offload/DeviceRTL/include/Utils.h (renamed from openmp/libomptarget/DeviceRTL/include/Utils.h) | 0 | ||||
| -rw-r--r-- | offload/DeviceRTL/include/generated_microtask_cases.gen (renamed from openmp/libomptarget/DeviceRTL/include/generated_microtask_cases.gen) | 0 | ||||
| -rw-r--r-- | offload/DeviceRTL/src/Allocator.cpp (renamed from openmp/libomptarget/DeviceRTL/src/Allocator.cpp) | 0 | ||||
| -rw-r--r-- | offload/DeviceRTL/src/Configuration.cpp (renamed from openmp/libomptarget/DeviceRTL/src/Configuration.cpp) | 0 | ||||
| -rw-r--r-- | offload/DeviceRTL/src/Debug.cpp (renamed from openmp/libomptarget/DeviceRTL/src/Debug.cpp) | 0 | ||||
| -rw-r--r-- | offload/DeviceRTL/src/Kernel.cpp (renamed from openmp/libomptarget/DeviceRTL/src/Kernel.cpp) | 0 | ||||
| -rw-r--r-- | offload/DeviceRTL/src/LibC.cpp (renamed from openmp/libomptarget/DeviceRTL/src/LibC.cpp) | 0 | ||||
| -rw-r--r-- | offload/DeviceRTL/src/Mapping.cpp (renamed from openmp/libomptarget/DeviceRTL/src/Mapping.cpp) | 0 | ||||
| -rw-r--r-- | offload/DeviceRTL/src/Misc.cpp (renamed from openmp/libomptarget/DeviceRTL/src/Misc.cpp) | 0 | ||||
| -rw-r--r-- | offload/DeviceRTL/src/Parallelism.cpp (renamed from openmp/libomptarget/DeviceRTL/src/Parallelism.cpp) | 0 | ||||
| -rw-r--r-- | offload/DeviceRTL/src/Reduction.cpp (renamed from openmp/libomptarget/DeviceRTL/src/Reduction.cpp) | 0 | ||||
| -rw-r--r-- | offload/DeviceRTL/src/State.cpp (renamed from openmp/libomptarget/DeviceRTL/src/State.cpp) | 0 | ||||
| -rw-r--r-- | offload/DeviceRTL/src/Stub.cpp (renamed from openmp/libomptarget/DeviceRTL/src/Stub.cpp) | 0 | ||||
| -rw-r--r-- | offload/DeviceRTL/src/Synchronization.cpp (renamed from openmp/libomptarget/DeviceRTL/src/Synchronization.cpp) | 0 | ||||
| -rw-r--r-- | offload/DeviceRTL/src/Tasking.cpp (renamed from openmp/libomptarget/DeviceRTL/src/Tasking.cpp) | 0 | ||||
| -rw-r--r-- | offload/DeviceRTL/src/Utils.cpp (renamed from openmp/libomptarget/DeviceRTL/src/Utils.cpp) | 0 | ||||
| -rw-r--r-- | offload/DeviceRTL/src/Workshare.cpp (renamed from openmp/libomptarget/DeviceRTL/src/Workshare.cpp) | 0 | ||||
| -rw-r--r-- | offload/DeviceRTL/src/exports (renamed from openmp/libomptarget/DeviceRTL/src/exports) | 0 | ||||
| -rw-r--r-- | offload/README.txt (renamed from openmp/libomptarget/README.txt) | 0 | ||||
| -rw-r--r-- | offload/cmake/Modules/LibomptargetGetDependencies.cmake (renamed from openmp/libomptarget/cmake/Modules/LibomptargetGetDependencies.cmake) | 0 | ||||
| -rw-r--r-- | offload/cmake/Modules/LibomptargetUtils.cmake (renamed from openmp/libomptarget/cmake/Modules/LibomptargetUtils.cmake) | 0 | ||||
| -rw-r--r-- | offload/cmake/OpenMPTesting.cmake | 238 | ||||
| -rw-r--r-- | offload/docs/declare_target_indirect.md (renamed from openmp/libomptarget/docs/declare_target_indirect.md) | 0 | ||||
| -rw-r--r-- | offload/include/DeviceImage.h (renamed from openmp/libomptarget/include/DeviceImage.h) | 0 | ||||
| -rw-r--r-- | offload/include/ExclusiveAccess.h (renamed from openmp/libomptarget/include/ExclusiveAccess.h) | 0 | ||||
| -rw-r--r-- | offload/include/OffloadEntry.h (renamed from openmp/libomptarget/include/OffloadEntry.h) | 0 | ||||
| -rw-r--r-- | offload/include/OffloadPolicy.h (renamed from openmp/libomptarget/include/OffloadPolicy.h) | 0 | ||||
| -rw-r--r-- | offload/include/OpenMP/InternalTypes.h (renamed from openmp/libomptarget/include/OpenMP/InternalTypes.h) | 0 | ||||
| -rw-r--r-- | offload/include/OpenMP/InteropAPI.h (renamed from openmp/libomptarget/include/OpenMP/InteropAPI.h) | 0 | ||||
| -rw-r--r-- | offload/include/OpenMP/Mapping.h (renamed from openmp/libomptarget/include/OpenMP/Mapping.h) | 0 | ||||
| -rw-r--r-- | offload/include/OpenMP/OMPT/Callback.h (renamed from openmp/libomptarget/include/OpenMP/OMPT/Callback.h) | 0 | ||||
| -rw-r--r-- | offload/include/OpenMP/OMPT/Connector.h (renamed from openmp/libomptarget/include/OpenMP/OMPT/Connector.h) | 0 | ||||
| -rw-r--r-- | offload/include/OpenMP/OMPT/Interface.h (renamed from openmp/libomptarget/include/OpenMP/OMPT/Interface.h) | 0 | ||||
| -rw-r--r-- | offload/include/OpenMP/omp.h (renamed from openmp/libomptarget/include/OpenMP/omp.h) | 0 | ||||
| -rw-r--r-- | offload/include/PluginManager.h (renamed from openmp/libomptarget/include/PluginManager.h) | 0 | ||||
| -rw-r--r-- | offload/include/Shared/APITypes.h (renamed from openmp/libomptarget/include/Shared/APITypes.h) | 0 | ||||
| -rw-r--r-- | offload/include/Shared/Debug.h (renamed from openmp/libomptarget/include/Shared/Debug.h) | 0 | ||||
| -rw-r--r-- | offload/include/Shared/Environment.h (renamed from openmp/libomptarget/include/Shared/Environment.h) | 0 | ||||
| -rw-r--r-- | offload/include/Shared/EnvironmentVar.h (renamed from openmp/libomptarget/include/Shared/EnvironmentVar.h) | 0 | ||||
| -rw-r--r-- | offload/include/Shared/PluginAPI.h (renamed from openmp/libomptarget/include/Shared/PluginAPI.h) | 0 | ||||
| -rw-r--r-- | offload/include/Shared/PluginAPI.inc (renamed from openmp/libomptarget/include/Shared/PluginAPI.inc) | 0 | ||||
| -rw-r--r-- | offload/include/Shared/Profile.h (renamed from openmp/libomptarget/include/Shared/Profile.h) | 0 | ||||
| -rw-r--r-- | offload/include/Shared/Requirements.h (renamed from openmp/libomptarget/include/Shared/Requirements.h) | 0 | ||||
| -rw-r--r-- | offload/include/Shared/SourceInfo.h (renamed from openmp/libomptarget/include/Shared/SourceInfo.h) | 0 | ||||
| -rw-r--r-- | offload/include/Shared/Utils.h (renamed from openmp/libomptarget/include/Shared/Utils.h) | 0 | ||||
| -rw-r--r-- | offload/include/Utils/ExponentialBackoff.h (renamed from openmp/libomptarget/include/Utils/ExponentialBackoff.h) | 0 | ||||
| -rw-r--r-- | offload/include/device.h (renamed from openmp/libomptarget/include/device.h) | 0 | ||||
| -rw-r--r-- | offload/include/omptarget.h (renamed from openmp/libomptarget/include/omptarget.h) | 0 | ||||
| -rw-r--r-- | offload/include/rtl.h (renamed from openmp/libomptarget/include/rtl.h) | 0 | ||||
| -rw-r--r-- | offload/plugins-nextgen/CMakeLists.txt (renamed from openmp/libomptarget/plugins-nextgen/CMakeLists.txt) | 0 | ||||
| -rw-r--r-- | offload/plugins-nextgen/amdgpu/CMakeLists.txt (renamed from openmp/libomptarget/plugins-nextgen/amdgpu/CMakeLists.txt) | 2 | ||||
| -rw-r--r-- | offload/plugins-nextgen/amdgpu/dynamic_hsa/hsa.cpp (renamed from openmp/libomptarget/plugins-nextgen/amdgpu/dynamic_hsa/hsa.cpp) | 0 | ||||
| -rw-r--r-- | offload/plugins-nextgen/amdgpu/dynamic_hsa/hsa.h (renamed from openmp/libomptarget/plugins-nextgen/amdgpu/dynamic_hsa/hsa.h) | 0 | ||||
| -rw-r--r-- | offload/plugins-nextgen/amdgpu/dynamic_hsa/hsa_ext_amd.h (renamed from openmp/libomptarget/plugins-nextgen/amdgpu/dynamic_hsa/hsa_ext_amd.h) | 0 | ||||
| -rw-r--r-- | offload/plugins-nextgen/amdgpu/src/rtl.cpp (renamed from openmp/libomptarget/plugins-nextgen/amdgpu/src/rtl.cpp) | 0 | ||||
| -rw-r--r-- | offload/plugins-nextgen/amdgpu/utils/UtilitiesRTL.h (renamed from openmp/libomptarget/plugins-nextgen/amdgpu/utils/UtilitiesRTL.h) | 0 | ||||
| -rw-r--r-- | offload/plugins-nextgen/common/CMakeLists.txt (renamed from openmp/libomptarget/plugins-nextgen/common/CMakeLists.txt) | 0 | ||||
| -rw-r--r-- | offload/plugins-nextgen/common/OMPT/OmptCallback.cpp (renamed from openmp/libomptarget/plugins-nextgen/common/OMPT/OmptCallback.cpp) | 0 | ||||
| -rw-r--r-- | offload/plugins-nextgen/common/include/DLWrap.h (renamed from openmp/libomptarget/plugins-nextgen/common/include/DLWrap.h) | 0 | ||||
| -rw-r--r-- | offload/plugins-nextgen/common/include/GlobalHandler.h (renamed from openmp/libomptarget/plugins-nextgen/common/include/GlobalHandler.h) | 0 | ||||
| -rw-r--r-- | offload/plugins-nextgen/common/include/JIT.h (renamed from openmp/libomptarget/plugins-nextgen/common/include/JIT.h) | 0 | ||||
| -rw-r--r-- | offload/plugins-nextgen/common/include/MemoryManager.h (renamed from openmp/libomptarget/plugins-nextgen/common/include/MemoryManager.h) | 0 | ||||
| -rw-r--r-- | offload/plugins-nextgen/common/include/PluginInterface.h (renamed from openmp/libomptarget/plugins-nextgen/common/include/PluginInterface.h) | 0 | ||||
| -rw-r--r-- | offload/plugins-nextgen/common/include/RPC.h (renamed from openmp/libomptarget/plugins-nextgen/common/include/RPC.h) | 0 | ||||
| -rw-r--r-- | offload/plugins-nextgen/common/include/Utils/ELF.h (renamed from openmp/libomptarget/plugins-nextgen/common/include/Utils/ELF.h) | 0 | ||||
| -rw-r--r-- | offload/plugins-nextgen/common/src/GlobalHandler.cpp (renamed from openmp/libomptarget/plugins-nextgen/common/src/GlobalHandler.cpp) | 0 | ||||
| -rw-r--r-- | offload/plugins-nextgen/common/src/JIT.cpp (renamed from openmp/libomptarget/plugins-nextgen/common/src/JIT.cpp) | 0 | ||||
| -rw-r--r-- | offload/plugins-nextgen/common/src/PluginInterface.cpp (renamed from openmp/libomptarget/plugins-nextgen/common/src/PluginInterface.cpp) | 0 | ||||
| -rw-r--r-- | offload/plugins-nextgen/common/src/RPC.cpp (renamed from openmp/libomptarget/plugins-nextgen/common/src/RPC.cpp) | 0 | ||||
| -rw-r--r-- | offload/plugins-nextgen/common/src/Utils/ELF.cpp (renamed from openmp/libomptarget/plugins-nextgen/common/src/Utils/ELF.cpp) | 0 | ||||
| -rw-r--r-- | offload/plugins-nextgen/cuda/CMakeLists.txt (renamed from openmp/libomptarget/plugins-nextgen/cuda/CMakeLists.txt) | 2 | ||||
| -rw-r--r-- | offload/plugins-nextgen/cuda/dynamic_cuda/cuda.cpp (renamed from openmp/libomptarget/plugins-nextgen/cuda/dynamic_cuda/cuda.cpp) | 0 | ||||
| -rw-r--r-- | offload/plugins-nextgen/cuda/dynamic_cuda/cuda.h (renamed from openmp/libomptarget/plugins-nextgen/cuda/dynamic_cuda/cuda.h) | 0 | ||||
| -rw-r--r-- | offload/plugins-nextgen/cuda/src/rtl.cpp (renamed from openmp/libomptarget/plugins-nextgen/cuda/src/rtl.cpp) | 0 | ||||
| -rw-r--r-- | offload/plugins-nextgen/exports (renamed from openmp/libomptarget/plugins-nextgen/exports) | 0 | ||||
| -rw-r--r-- | offload/plugins-nextgen/host/CMakeLists.txt (renamed from openmp/libomptarget/plugins-nextgen/host/CMakeLists.txt) | 2 | ||||
| -rw-r--r-- | offload/plugins-nextgen/host/dynamic_ffi/ffi.cpp (renamed from openmp/libomptarget/plugins-nextgen/host/dynamic_ffi/ffi.cpp) | 0 | ||||
| -rw-r--r-- | offload/plugins-nextgen/host/dynamic_ffi/ffi.h (renamed from openmp/libomptarget/plugins-nextgen/host/dynamic_ffi/ffi.h) | 0 | ||||
| -rw-r--r-- | offload/plugins-nextgen/host/src/rtl.cpp (renamed from openmp/libomptarget/plugins-nextgen/host/src/rtl.cpp) | 0 | ||||
| -rw-r--r-- | offload/src/CMakeLists.txt (renamed from openmp/libomptarget/src/CMakeLists.txt) | 10 | ||||
| -rw-r--r-- | offload/src/DeviceImage.cpp (renamed from openmp/libomptarget/src/DeviceImage.cpp) | 0 | ||||
| -rw-r--r-- | offload/src/LegacyAPI.cpp (renamed from openmp/libomptarget/src/LegacyAPI.cpp) | 0 | ||||
| -rw-r--r-- | offload/src/OffloadRTL.cpp (renamed from openmp/libomptarget/src/OffloadRTL.cpp) | 0 | ||||
| -rw-r--r-- | offload/src/OpenMP/API.cpp (renamed from openmp/libomptarget/src/OpenMP/API.cpp) | 0 | ||||
| -rw-r--r-- | offload/src/OpenMP/InteropAPI.cpp (renamed from openmp/libomptarget/src/OpenMP/InteropAPI.cpp) | 0 | ||||
| -rw-r--r-- | offload/src/OpenMP/Mapping.cpp (renamed from openmp/libomptarget/src/OpenMP/Mapping.cpp) | 0 | ||||
| -rw-r--r-- | offload/src/OpenMP/OMPT/Callback.cpp (renamed from openmp/libomptarget/src/OpenMP/OMPT/Callback.cpp) | 0 | ||||
| -rw-r--r-- | offload/src/PluginManager.cpp (renamed from openmp/libomptarget/src/PluginManager.cpp) | 0 | ||||
| -rw-r--r-- | offload/src/device.cpp (renamed from openmp/libomptarget/src/device.cpp) | 0 | ||||
| -rw-r--r-- | offload/src/exports (renamed from openmp/libomptarget/src/exports) | 0 | ||||
| -rw-r--r-- | offload/src/interface.cpp (renamed from openmp/libomptarget/src/interface.cpp) | 0 | ||||
| -rw-r--r-- | offload/src/omptarget.cpp (renamed from openmp/libomptarget/src/omptarget.cpp) | 0 | ||||
| -rw-r--r-- | offload/src/private.h (renamed from openmp/libomptarget/src/private.h) | 0 | ||||
| -rw-r--r-- | offload/test/CMakeLists.txt (renamed from openmp/libomptarget/test/CMakeLists.txt) | 15 | ||||
| -rw-r--r-- | offload/test/Inputs/basic_array.f90 (renamed from openmp/libomptarget/test/Inputs/basic_array.f90) | 0 | ||||
| -rw-r--r-- | offload/test/Inputs/declare_indirect_func.c (renamed from openmp/libomptarget/test/Inputs/declare_indirect_func.c) | 0 | ||||
| -rw-r--r-- | offload/test/api/assert.c (renamed from openmp/libomptarget/test/api/assert.c) | 0 | ||||
| -rw-r--r-- | offload/test/api/is_initial_device.c (renamed from openmp/libomptarget/test/api/is_initial_device.c) | 0 | ||||
| -rw-r--r-- | offload/test/api/omp_device_managed_memory.c (renamed from openmp/libomptarget/test/api/omp_device_managed_memory.c) | 0 | ||||
| -rw-r--r-- | offload/test/api/omp_device_managed_memory_alloc.c (renamed from openmp/libomptarget/test/api/omp_device_managed_memory_alloc.c) | 0 | ||||
| -rw-r--r-- | offload/test/api/omp_device_memory.c (renamed from openmp/libomptarget/test/api/omp_device_memory.c) | 0 | ||||
| -rw-r--r-- | offload/test/api/omp_dynamic_shared_memory.c (renamed from openmp/libomptarget/test/api/omp_dynamic_shared_memory.c) | 0 | ||||
| -rw-r--r-- | offload/test/api/omp_dynamic_shared_memory_amdgpu.c (renamed from openmp/libomptarget/test/api/omp_dynamic_shared_memory_amdgpu.c) | 0 | ||||
| -rw-r--r-- | offload/test/api/omp_dynamic_shared_memory_mixed.inc (renamed from openmp/libomptarget/test/api/omp_dynamic_shared_memory_mixed.inc) | 0 | ||||
| -rw-r--r-- | offload/test/api/omp_dynamic_shared_memory_mixed_amdgpu.c (renamed from openmp/libomptarget/test/api/omp_dynamic_shared_memory_mixed_amdgpu.c) | 0 | ||||
| -rw-r--r-- | offload/test/api/omp_dynamic_shared_memory_mixed_nvptx.c (renamed from openmp/libomptarget/test/api/omp_dynamic_shared_memory_mixed_nvptx.c) | 0 | ||||
| -rw-r--r-- | offload/test/api/omp_env_vars.c (renamed from openmp/libomptarget/test/api/omp_env_vars.c) | 0 | ||||
| -rw-r--r-- | offload/test/api/omp_get_device_num.c (renamed from openmp/libomptarget/test/api/omp_get_device_num.c) | 0 | ||||
| -rw-r--r-- | offload/test/api/omp_get_mapped_ptr.c (renamed from openmp/libomptarget/test/api/omp_get_mapped_ptr.c) | 0 | ||||
| -rw-r--r-- | offload/test/api/omp_get_num_devices.c (renamed from openmp/libomptarget/test/api/omp_get_num_devices.c) | 0 | ||||
| -rw-r--r-- | offload/test/api/omp_get_num_devices_with_empty_target.c (renamed from openmp/libomptarget/test/api/omp_get_num_devices_with_empty_target.c) | 0 | ||||
| -rw-r--r-- | offload/test/api/omp_get_num_procs.c (renamed from openmp/libomptarget/test/api/omp_get_num_procs.c) | 0 | ||||
| -rw-r--r-- | offload/test/api/omp_host_pinned_memory.c (renamed from openmp/libomptarget/test/api/omp_host_pinned_memory.c) | 0 | ||||
| -rw-r--r-- | offload/test/api/omp_host_pinned_memory_alloc.c (renamed from openmp/libomptarget/test/api/omp_host_pinned_memory_alloc.c) | 0 | ||||
| -rw-r--r-- | offload/test/api/omp_indirect_call.c (renamed from openmp/libomptarget/test/api/omp_indirect_call.c) | 0 | ||||
| -rw-r--r-- | offload/test/api/omp_target_memcpy_async1.c (renamed from openmp/libomptarget/test/api/omp_target_memcpy_async1.c) | 0 | ||||
| -rw-r--r-- | offload/test/api/omp_target_memcpy_async2.c (renamed from openmp/libomptarget/test/api/omp_target_memcpy_async2.c) | 0 | ||||
| -rw-r--r-- | offload/test/api/omp_target_memcpy_rect_async1.c (renamed from openmp/libomptarget/test/api/omp_target_memcpy_rect_async1.c) | 0 | ||||
| -rw-r--r-- | offload/test/api/omp_target_memcpy_rect_async2.c (renamed from openmp/libomptarget/test/api/omp_target_memcpy_rect_async2.c) | 0 | ||||
| -rw-r--r-- | offload/test/api/omp_target_memset.c (renamed from openmp/libomptarget/test/api/omp_target_memset.c) | 0 | ||||
| -rw-r--r-- | offload/test/api/ompx_3d.c (renamed from openmp/libomptarget/test/api/ompx_3d.c) | 0 | ||||
| -rw-r--r-- | offload/test/api/ompx_3d.cpp (renamed from openmp/libomptarget/test/api/ompx_3d.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/api/ompx_sync.c (renamed from openmp/libomptarget/test/api/ompx_sync.c) | 0 | ||||
| -rw-r--r-- | offload/test/api/ompx_sync.cpp (renamed from openmp/libomptarget/test/api/ompx_sync.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/env/base_ptr_ref_count.c (renamed from openmp/libomptarget/test/env/base_ptr_ref_count.c) | 0 | ||||
| -rw-r--r-- | offload/test/env/omp_target_debug.c (renamed from openmp/libomptarget/test/env/omp_target_debug.c) | 0 | ||||
| -rw-r--r-- | offload/test/jit/empty_kernel.inc (renamed from openmp/libomptarget/test/jit/empty_kernel.inc) | 0 | ||||
| -rw-r--r-- | offload/test/jit/empty_kernel_lvl1.c (renamed from openmp/libomptarget/test/jit/empty_kernel_lvl1.c) | 0 | ||||
| -rw-r--r-- | offload/test/jit/empty_kernel_lvl2.c (renamed from openmp/libomptarget/test/jit/empty_kernel_lvl2.c) | 0 | ||||
| -rw-r--r-- | offload/test/jit/type_punning.c (renamed from openmp/libomptarget/test/jit/type_punning.c) | 0 | ||||
| -rw-r--r-- | offload/test/libc/assert.c (renamed from openmp/libomptarget/test/libc/assert.c) | 0 | ||||
| -rw-r--r-- | offload/test/libc/fwrite.c (renamed from openmp/libomptarget/test/libc/fwrite.c) | 0 | ||||
| -rw-r--r-- | offload/test/libc/global_ctor_dtor.cpp (renamed from openmp/libomptarget/test/libc/global_ctor_dtor.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/libc/host_call.c (renamed from openmp/libomptarget/test/libc/host_call.c) | 0 | ||||
| -rw-r--r-- | offload/test/libc/malloc.c (renamed from openmp/libomptarget/test/libc/malloc.c) | 0 | ||||
| -rw-r--r-- | offload/test/libc/puts.c (renamed from openmp/libomptarget/test/libc/puts.c) | 0 | ||||
| -rw-r--r-- | offload/test/lit.cfg (renamed from openmp/libomptarget/test/lit.cfg) | 0 | ||||
| -rw-r--r-- | offload/test/lit.site.cfg.in (renamed from openmp/libomptarget/test/lit.site.cfg.in) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/alloc_fail.c (renamed from openmp/libomptarget/test/mapping/alloc_fail.c) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/array_section_implicit_capture.c (renamed from openmp/libomptarget/test/mapping/array_section_implicit_capture.c) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/array_section_use_device_ptr.c (renamed from openmp/libomptarget/test/mapping/array_section_use_device_ptr.c) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/auto_zero_copy.cpp (renamed from openmp/libomptarget/test/mapping/auto_zero_copy.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/auto_zero_copy_apu.cpp (renamed from openmp/libomptarget/test/mapping/auto_zero_copy_apu.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/auto_zero_copy_globals.cpp (renamed from openmp/libomptarget/test/mapping/auto_zero_copy_globals.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/data_absent_at_exit.c (renamed from openmp/libomptarget/test/mapping/data_absent_at_exit.c) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/data_member_ref.cpp (renamed from openmp/libomptarget/test/mapping/data_member_ref.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/declare_mapper_api.cpp (renamed from openmp/libomptarget/test/mapping/declare_mapper_api.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/declare_mapper_nested_default_mappers.cpp (renamed from openmp/libomptarget/test/mapping/declare_mapper_nested_default_mappers.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/declare_mapper_nested_default_mappers_array.cpp (renamed from openmp/libomptarget/test/mapping/declare_mapper_nested_default_mappers_array.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/declare_mapper_nested_default_mappers_array_subscript.cpp (renamed from openmp/libomptarget/test/mapping/declare_mapper_nested_default_mappers_array_subscript.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/declare_mapper_nested_default_mappers_complex_structure.cpp (renamed from openmp/libomptarget/test/mapping/declare_mapper_nested_default_mappers_complex_structure.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/declare_mapper_nested_default_mappers_ptr_subscript.cpp (renamed from openmp/libomptarget/test/mapping/declare_mapper_nested_default_mappers_ptr_subscript.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/declare_mapper_nested_default_mappers_var.cpp (renamed from openmp/libomptarget/test/mapping/declare_mapper_nested_default_mappers_var.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/declare_mapper_nested_mappers.cpp (renamed from openmp/libomptarget/test/mapping/declare_mapper_nested_mappers.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/declare_mapper_target.cpp (renamed from openmp/libomptarget/test/mapping/declare_mapper_target.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/declare_mapper_target_data.cpp (renamed from openmp/libomptarget/test/mapping/declare_mapper_target_data.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/declare_mapper_target_data_enter_exit.cpp (renamed from openmp/libomptarget/test/mapping/declare_mapper_target_data_enter_exit.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/declare_mapper_target_update.cpp (renamed from openmp/libomptarget/test/mapping/declare_mapper_target_update.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/delete_inf_refcount.c (renamed from openmp/libomptarget/test/mapping/delete_inf_refcount.c) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/device_ptr_update.c (renamed from openmp/libomptarget/test/mapping/device_ptr_update.c) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/firstprivate_aligned.cpp (renamed from openmp/libomptarget/test/mapping/firstprivate_aligned.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/has_device_addr.cpp (renamed from openmp/libomptarget/test/mapping/has_device_addr.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/implicit_device_ptr.c (renamed from openmp/libomptarget/test/mapping/implicit_device_ptr.c) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/is_device_ptr.cpp (renamed from openmp/libomptarget/test/mapping/is_device_ptr.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/lambda_by_value.cpp (renamed from openmp/libomptarget/test/mapping/lambda_by_value.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/lambda_mapping.cpp (renamed from openmp/libomptarget/test/mapping/lambda_mapping.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/low_alignment.c (renamed from openmp/libomptarget/test/mapping/low_alignment.c) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/map_back_race.cpp (renamed from openmp/libomptarget/test/mapping/map_back_race.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/ompx_hold/omp_target_disassociate_ptr.c (renamed from openmp/libomptarget/test/mapping/ompx_hold/omp_target_disassociate_ptr.c) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/ompx_hold/struct.c (renamed from openmp/libomptarget/test/mapping/ompx_hold/struct.c) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/ompx_hold/target-data.c (renamed from openmp/libomptarget/test/mapping/ompx_hold/target-data.c) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/ompx_hold/target.c (renamed from openmp/libomptarget/test/mapping/ompx_hold/target.c) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/padding_not_mapped.c (renamed from openmp/libomptarget/test/mapping/padding_not_mapped.c) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/power_of_two_alignment.c (renamed from openmp/libomptarget/test/mapping/power_of_two_alignment.c) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/pr38704.c (renamed from openmp/libomptarget/test/mapping/pr38704.c) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/prelock.cpp (renamed from openmp/libomptarget/test/mapping/prelock.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/present/target.c (renamed from openmp/libomptarget/test/mapping/present/target.c) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/present/target_array_extension.c (renamed from openmp/libomptarget/test/mapping/present/target_array_extension.c) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/present/target_data.c (renamed from openmp/libomptarget/test/mapping/present/target_data.c) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/present/target_data_array_extension.c (renamed from openmp/libomptarget/test/mapping/present/target_data_array_extension.c) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/present/target_data_at_exit.c (renamed from openmp/libomptarget/test/mapping/present/target_data_at_exit.c) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/present/target_enter_data.c (renamed from openmp/libomptarget/test/mapping/present/target_enter_data.c) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/present/target_exit_data_delete.c (renamed from openmp/libomptarget/test/mapping/present/target_exit_data_delete.c) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/present/target_exit_data_release.c (renamed from openmp/libomptarget/test/mapping/present/target_exit_data_release.c) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/present/target_update.c (renamed from openmp/libomptarget/test/mapping/present/target_update.c) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/present/target_update_array_extension.c (renamed from openmp/libomptarget/test/mapping/present/target_update_array_extension.c) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/present/unified_shared_memory.c (renamed from openmp/libomptarget/test/mapping/present/unified_shared_memory.c) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/present/zero_length_array_section.c (renamed from openmp/libomptarget/test/mapping/present/zero_length_array_section.c) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/present/zero_length_array_section_exit.c (renamed from openmp/libomptarget/test/mapping/present/zero_length_array_section_exit.c) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/private_mapping.c (renamed from openmp/libomptarget/test/mapping/private_mapping.c) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/ptr_and_obj_motion.c (renamed from openmp/libomptarget/test/mapping/ptr_and_obj_motion.c) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/reduction_implicit_map.cpp (renamed from openmp/libomptarget/test/mapping/reduction_implicit_map.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/target_data_array_extension_at_exit.c (renamed from openmp/libomptarget/test/mapping/target_data_array_extension_at_exit.c) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/target_derefence_array_pointrs.cpp (renamed from openmp/libomptarget/test/mapping/target_derefence_array_pointrs.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/target_has_device_addr.c (renamed from openmp/libomptarget/test/mapping/target_has_device_addr.c) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/target_implicit_partial_map.c (renamed from openmp/libomptarget/test/mapping/target_implicit_partial_map.c) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/target_map_for_member_data.cpp (renamed from openmp/libomptarget/test/mapping/target_map_for_member_data.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/target_pointers_members_map.cpp (renamed from openmp/libomptarget/test/mapping/target_pointers_members_map.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/target_update_array_extension.c (renamed from openmp/libomptarget/test/mapping/target_update_array_extension.c) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/target_use_device_addr.c (renamed from openmp/libomptarget/test/mapping/target_use_device_addr.c) | 0 | ||||
| -rwxr-xr-x | offload/test/mapping/target_uses_allocator.c (renamed from openmp/libomptarget/test/mapping/target_uses_allocator.c) | 0 | ||||
| -rw-r--r-- | offload/test/mapping/target_wrong_use_device_addr.c (renamed from openmp/libomptarget/test/mapping/target_wrong_use_device_addr.c) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/assert.cpp (renamed from openmp/libomptarget/test/offloading/assert.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/atomic-compare-signedness.c (renamed from openmp/libomptarget/test/offloading/atomic-compare-signedness.c) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/back2back_distribute.c (renamed from openmp/libomptarget/test/offloading/back2back_distribute.c) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/barrier_fence.c (renamed from openmp/libomptarget/test/offloading/barrier_fence.c) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/bug47654.cpp (renamed from openmp/libomptarget/test/offloading/bug47654.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/bug49021.cpp (renamed from openmp/libomptarget/test/offloading/bug49021.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/bug49334.cpp (renamed from openmp/libomptarget/test/offloading/bug49334.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/bug49779.cpp (renamed from openmp/libomptarget/test/offloading/bug49779.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/bug50022.cpp (renamed from openmp/libomptarget/test/offloading/bug50022.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/bug51781.c (renamed from openmp/libomptarget/test/offloading/bug51781.c) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/bug51982.c (renamed from openmp/libomptarget/test/offloading/bug51982.c) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/bug53727.cpp (renamed from openmp/libomptarget/test/offloading/bug53727.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/bug64959.c (renamed from openmp/libomptarget/test/offloading/bug64959.c) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/bug64959_compile_only.c (renamed from openmp/libomptarget/test/offloading/bug64959_compile_only.c) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/bug74582.c (renamed from openmp/libomptarget/test/offloading/bug74582.c) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/complex_reduction.cpp (renamed from openmp/libomptarget/test/offloading/complex_reduction.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/ctor_dtor.cpp (renamed from openmp/libomptarget/test/offloading/ctor_dtor.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/cuda_no_devices.c (renamed from openmp/libomptarget/test/offloading/cuda_no_devices.c) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/d2d_memcpy.c (renamed from openmp/libomptarget/test/offloading/d2d_memcpy.c) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/d2d_memcpy_sync.c (renamed from openmp/libomptarget/test/offloading/d2d_memcpy_sync.c) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/default_thread_limit.c (renamed from openmp/libomptarget/test/offloading/default_thread_limit.c) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/dynamic_module.c (renamed from openmp/libomptarget/test/offloading/dynamic_module.c) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/dynamic_module_load.c (renamed from openmp/libomptarget/test/offloading/dynamic_module_load.c) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/extern.c (renamed from openmp/libomptarget/test/offloading/extern.c) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/force-usm.cpp (renamed from openmp/libomptarget/test/offloading/force-usm.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/fortran/basic-target-parallel-do.f90 (renamed from openmp/libomptarget/test/offloading/fortran/basic-target-parallel-do.f90) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/fortran/basic-target-parallel-region.f90 (renamed from openmp/libomptarget/test/offloading/fortran/basic-target-parallel-region.f90) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/fortran/basic-target-region-1D-array-section.f90 (renamed from openmp/libomptarget/test/offloading/fortran/basic-target-region-1D-array-section.f90) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/fortran/basic-target-region-3D-array-section.f90 (renamed from openmp/libomptarget/test/offloading/fortran/basic-target-region-3D-array-section.f90) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/fortran/basic-target-region-3D-array.f90 (renamed from openmp/libomptarget/test/offloading/fortran/basic-target-region-3D-array.f90) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/fortran/basic_array.c (renamed from openmp/libomptarget/test/offloading/fortran/basic_array.c) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/fortran/basic_target_region.f90 (renamed from openmp/libomptarget/test/offloading/fortran/basic_target_region.f90) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/fortran/constant-arr-index.f90 (renamed from openmp/libomptarget/test/offloading/fortran/constant-arr-index.f90) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/fortran/declare-target-vars-in-target-region.f90 (renamed from openmp/libomptarget/test/offloading/fortran/declare-target-vars-in-target-region.f90) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/fortran/double-target-call-with-declare-target.f90 (renamed from openmp/libomptarget/test/offloading/fortran/double-target-call-with-declare-target.f90) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/fortran/target-map-allocatable-array-section-1d-bounds.f90 (renamed from openmp/libomptarget/test/offloading/fortran/target-map-allocatable-array-section-1d-bounds.f90) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/fortran/target-map-allocatable-array-section-3d-bounds.f90 (renamed from openmp/libomptarget/test/offloading/fortran/target-map-allocatable-array-section-3d-bounds.f90) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/fortran/target-map-allocatable-map-scopes.f90 (renamed from openmp/libomptarget/test/offloading/fortran/target-map-allocatable-map-scopes.f90) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/fortran/target-map-enter-exit-allocatables.f90 (renamed from openmp/libomptarget/test/offloading/fortran/target-map-enter-exit-allocatables.f90) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/fortran/target-map-enter-exit-array-2.f90 (renamed from openmp/libomptarget/test/offloading/fortran/target-map-enter-exit-array-2.f90) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/fortran/target-map-enter-exit-array-bounds.f90 (renamed from openmp/libomptarget/test/offloading/fortran/target-map-enter-exit-array-bounds.f90) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/fortran/target-map-enter-exit-array.f90 (renamed from openmp/libomptarget/test/offloading/fortran/target-map-enter-exit-array.f90) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/fortran/target-map-enter-exit-scalar.f90 (renamed from openmp/libomptarget/test/offloading/fortran/target-map-enter-exit-scalar.f90) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/fortran/target-map-pointer-scopes-enter-exit.f90 (renamed from openmp/libomptarget/test/offloading/fortran/target-map-pointer-scopes-enter-exit.f90) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/fortran/target-map-pointer-target-array-section-3d-bounds.f90 (renamed from openmp/libomptarget/test/offloading/fortran/target-map-pointer-target-array-section-3d-bounds.f90) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/fortran/target-map-pointer-target-scopes.f90 (renamed from openmp/libomptarget/test/offloading/fortran/target-map-pointer-target-scopes.f90) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/fortran/target-nested-target-data.f90 (renamed from openmp/libomptarget/test/offloading/fortran/target-nested-target-data.f90) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/fortran/target-parallel-do-collapse.f90 (renamed from openmp/libomptarget/test/offloading/fortran/target-parallel-do-collapse.f90) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/fortran/target-region-implicit-array.f90 (renamed from openmp/libomptarget/test/offloading/fortran/target-region-implicit-array.f90) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/fortran/target_map_common_block.f90 (renamed from openmp/libomptarget/test/offloading/fortran/target_map_common_block.f90) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/fortran/target_map_common_block1.f90 (renamed from openmp/libomptarget/test/offloading/fortran/target_map_common_block1.f90) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/fortran/target_map_common_block2.f90 (renamed from openmp/libomptarget/test/offloading/fortran/target_map_common_block2.f90) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/fortran/target_update.f90 (renamed from openmp/libomptarget/test/offloading/fortran/target_update.f90) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/generic_multiple_parallel_regions.c (renamed from openmp/libomptarget/test/offloading/generic_multiple_parallel_regions.c) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/global_constructor.cpp (renamed from openmp/libomptarget/test/offloading/global_constructor.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/host_as_target.c (renamed from openmp/libomptarget/test/offloading/host_as_target.c) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/indirect_fp_mapping.c (renamed from openmp/libomptarget/test/offloading/indirect_fp_mapping.c) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/info.c (renamed from openmp/libomptarget/test/offloading/info.c) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/interop.c (renamed from openmp/libomptarget/test/offloading/interop.c) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/lone_target_exit_data.c (renamed from openmp/libomptarget/test/offloading/lone_target_exit_data.c) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/looptripcnt.c (renamed from openmp/libomptarget/test/offloading/looptripcnt.c) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/malloc.c (renamed from openmp/libomptarget/test/offloading/malloc.c) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/malloc_parallel.c (renamed from openmp/libomptarget/test/offloading/malloc_parallel.c) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/mandatory_but_no_devices.c (renamed from openmp/libomptarget/test/offloading/mandatory_but_no_devices.c) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/memory_manager.cpp (renamed from openmp/libomptarget/test/offloading/memory_manager.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/multiple_reductions_simple.c (renamed from openmp/libomptarget/test/offloading/multiple_reductions_simple.c) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/non_contiguous_update.cpp (renamed from openmp/libomptarget/test/offloading/non_contiguous_update.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/offloading_success.c (renamed from openmp/libomptarget/test/offloading/offloading_success.c) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/offloading_success.cpp (renamed from openmp/libomptarget/test/offloading/offloading_success.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/ompx_bare.c (renamed from openmp/libomptarget/test/offloading/ompx_bare.c) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/ompx_coords.c (renamed from openmp/libomptarget/test/offloading/ompx_coords.c) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/ompx_saxpy_mixed.c (renamed from openmp/libomptarget/test/offloading/ompx_saxpy_mixed.c) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/parallel_offloading_map.cpp (renamed from openmp/libomptarget/test/offloading/parallel_offloading_map.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/parallel_target_teams_reduction.cpp (renamed from openmp/libomptarget/test/offloading/parallel_target_teams_reduction.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/parallel_target_teams_reduction_max.cpp (renamed from openmp/libomptarget/test/offloading/parallel_target_teams_reduction_max.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/parallel_target_teams_reduction_min.cpp (renamed from openmp/libomptarget/test/offloading/parallel_target_teams_reduction_min.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/requires.c (renamed from openmp/libomptarget/test/offloading/requires.c) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/runtime_init.c (renamed from openmp/libomptarget/test/offloading/runtime_init.c) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/shared_lib_fp_mapping.c (renamed from openmp/libomptarget/test/offloading/shared_lib_fp_mapping.c) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/small_trip_count.c (renamed from openmp/libomptarget/test/offloading/small_trip_count.c) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/small_trip_count_thread_limit.cpp (renamed from openmp/libomptarget/test/offloading/small_trip_count_thread_limit.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/spmdization.c (renamed from openmp/libomptarget/test/offloading/spmdization.c) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/static_linking.c (renamed from openmp/libomptarget/test/offloading/static_linking.c) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/std_complex_arithmetic.cpp (renamed from openmp/libomptarget/test/offloading/std_complex_arithmetic.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/struct_mapping_with_pointers.cpp (renamed from openmp/libomptarget/test/offloading/struct_mapping_with_pointers.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/target-teams-atomic.c (renamed from openmp/libomptarget/test/offloading/target-teams-atomic.c) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/target-tile.c (renamed from openmp/libomptarget/test/offloading/target-tile.c) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/target_constexpr_mapping.cpp (renamed from openmp/libomptarget/test/offloading/target_constexpr_mapping.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/target_critical_region.cpp (renamed from openmp/libomptarget/test/offloading/target_critical_region.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/target_depend_nowait.cpp (renamed from openmp/libomptarget/test/offloading/target_depend_nowait.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/target_map_for_member_data.cpp (renamed from openmp/libomptarget/test/offloading/target_map_for_member_data.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/target_nowait_target.cpp (renamed from openmp/libomptarget/test/offloading/target_nowait_target.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/task_in_reduction_target.c (renamed from openmp/libomptarget/test/offloading/task_in_reduction_target.c) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/taskloop_offload_nowait.cpp (renamed from openmp/libomptarget/test/offloading/taskloop_offload_nowait.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/test_libc.cpp (renamed from openmp/libomptarget/test/offloading/test_libc.cpp) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/thread_limit.c (renamed from openmp/libomptarget/test/offloading/thread_limit.c) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/thread_state_1.c (renamed from openmp/libomptarget/test/offloading/thread_state_1.c) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/thread_state_2.c (renamed from openmp/libomptarget/test/offloading/thread_state_2.c) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/weak.c (renamed from openmp/libomptarget/test/offloading/weak.c) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/workshare_chunk.c (renamed from openmp/libomptarget/test/offloading/workshare_chunk.c) | 0 | ||||
| -rw-r--r-- | offload/test/offloading/wtime.c (renamed from openmp/libomptarget/test/offloading/wtime.c) | 0 | ||||
| -rw-r--r-- | offload/test/ompt/callbacks.h (renamed from openmp/libomptarget/test/ompt/callbacks.h) | 0 | ||||
| -rw-r--r-- | offload/test/ompt/register_both.h (renamed from openmp/libomptarget/test/ompt/register_both.h) | 0 | ||||
| -rw-r--r-- | offload/test/ompt/register_emi.h (renamed from openmp/libomptarget/test/ompt/register_emi.h) | 0 | ||||
| -rw-r--r-- | offload/test/ompt/register_emi_map.h (renamed from openmp/libomptarget/test/ompt/register_emi_map.h) | 0 | ||||
| -rw-r--r-- | offload/test/ompt/register_no_device_init.h (renamed from openmp/libomptarget/test/ompt/register_no_device_init.h) | 0 | ||||
| -rw-r--r-- | offload/test/ompt/register_non_emi.h (renamed from openmp/libomptarget/test/ompt/register_non_emi.h) | 0 | ||||
| -rw-r--r-- | offload/test/ompt/register_non_emi_map.h (renamed from openmp/libomptarget/test/ompt/register_non_emi_map.h) | 0 | ||||
| -rw-r--r-- | offload/test/ompt/register_wrong_return.h (renamed from openmp/libomptarget/test/ompt/register_wrong_return.h) | 0 | ||||
| -rw-r--r-- | offload/test/ompt/target_memcpy.c (renamed from openmp/libomptarget/test/ompt/target_memcpy.c) | 0 | ||||
| -rw-r--r-- | offload/test/ompt/target_memcpy_emi.c (renamed from openmp/libomptarget/test/ompt/target_memcpy_emi.c) | 0 | ||||
| -rw-r--r-- | offload/test/ompt/veccopy.c (renamed from openmp/libomptarget/test/ompt/veccopy.c) | 0 | ||||
| -rw-r--r-- | offload/test/ompt/veccopy_data.c (renamed from openmp/libomptarget/test/ompt/veccopy_data.c) | 0 | ||||
| -rw-r--r-- | offload/test/ompt/veccopy_disallow_both.c (renamed from openmp/libomptarget/test/ompt/veccopy_disallow_both.c) | 0 | ||||
| -rw-r--r-- | offload/test/ompt/veccopy_emi.c (renamed from openmp/libomptarget/test/ompt/veccopy_emi.c) | 0 | ||||
| -rw-r--r-- | offload/test/ompt/veccopy_emi_map.c (renamed from openmp/libomptarget/test/ompt/veccopy_emi_map.c) | 0 | ||||
| -rw-r--r-- | offload/test/ompt/veccopy_map.c (renamed from openmp/libomptarget/test/ompt/veccopy_map.c) | 0 | ||||
| -rw-r--r-- | offload/test/ompt/veccopy_no_device_init.c (renamed from openmp/libomptarget/test/ompt/veccopy_no_device_init.c) | 0 | ||||
| -rw-r--r-- | offload/test/ompt/veccopy_wrong_return.c (renamed from openmp/libomptarget/test/ompt/veccopy_wrong_return.c) | 0 | ||||
| -rw-r--r-- | offload/test/unified_shared_memory/api.c (renamed from openmp/libomptarget/test/unified_shared_memory/api.c) | 0 | ||||
| -rw-r--r-- | offload/test/unified_shared_memory/associate_ptr.c (renamed from openmp/libomptarget/test/unified_shared_memory/associate_ptr.c) | 0 | ||||
| -rw-r--r-- | offload/test/unified_shared_memory/close_enter_exit.c (renamed from openmp/libomptarget/test/unified_shared_memory/close_enter_exit.c) | 0 | ||||
| -rw-r--r-- | offload/test/unified_shared_memory/close_manual.c (renamed from openmp/libomptarget/test/unified_shared_memory/close_manual.c) | 0 | ||||
| -rw-r--r-- | offload/test/unified_shared_memory/close_member.c (renamed from openmp/libomptarget/test/unified_shared_memory/close_member.c) | 0 | ||||
| -rw-r--r-- | offload/test/unified_shared_memory/close_modifier.c (renamed from openmp/libomptarget/test/unified_shared_memory/close_modifier.c) | 0 | ||||
| -rw-r--r-- | offload/test/unified_shared_memory/shared_update.c (renamed from openmp/libomptarget/test/unified_shared_memory/shared_update.c) | 0 | ||||
| -rw-r--r-- | offload/tools/CMakeLists.txt (renamed from openmp/libomptarget/tools/CMakeLists.txt) | 0 | ||||
| -rw-r--r-- | offload/tools/deviceinfo/CMakeLists.txt (renamed from openmp/libomptarget/tools/deviceinfo/CMakeLists.txt) | 0 | ||||
| -rw-r--r-- | offload/tools/deviceinfo/llvm-omp-device-info.cpp (renamed from openmp/libomptarget/tools/deviceinfo/llvm-omp-device-info.cpp) | 0 | ||||
| -rw-r--r-- | offload/tools/kernelreplay/CMakeLists.txt (renamed from openmp/libomptarget/tools/kernelreplay/CMakeLists.txt) | 0 | ||||
| -rw-r--r-- | offload/tools/kernelreplay/llvm-omp-kernel-replay.cpp (renamed from openmp/libomptarget/tools/kernelreplay/llvm-omp-kernel-replay.cpp) | 0 | ||||
| -rw-r--r-- | offload/unittests/CMakeLists.txt (renamed from openmp/libomptarget/unittests/CMakeLists.txt) | 0 | ||||
| -rw-r--r-- | offload/unittests/Plugins/CMakeLists.txt (renamed from openmp/libomptarget/unittests/Plugins/CMakeLists.txt) | 0 | ||||
| -rw-r--r-- | offload/unittests/Plugins/NextgenPluginsTest.cpp (renamed from openmp/libomptarget/unittests/Plugins/NextgenPluginsTest.cpp) | 0 | ||||
| -rwxr-xr-x | offload/utils/generate_microtask_cases.py (renamed from openmp/libomptarget/utils/generate_microtask_cases.py) | 0 | ||||
| -rw-r--r-- | openmp/CMakeLists.txt | 29 | ||||
| -rw-r--r-- | openmp/libomptarget/test/api/ompx_dump_mapping_tables.cpp | 35 | ||||
| -rw-r--r-- | openmp/runtime/src/CMakeLists.txt | 8 | ||||
| -rw-r--r-- | runtimes/CMakeLists.txt | 2 |
353 files changed, 442 insertions, 73 deletions
diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt index d511376e18ba..43181af3bc19 100644 --- a/llvm/CMakeLists.txt +++ b/llvm/CMakeLists.txt @@ -147,7 +147,7 @@ endif() # As we migrate runtimes to using the bootstrapping build, the set of default runtimes # should grow as we remove those runtimes from LLVM_ENABLE_PROJECTS above. set(LLVM_DEFAULT_RUNTIMES "libcxx;libcxxabi;libunwind") -set(LLVM_SUPPORTED_RUNTIMES "libc;libunwind;libcxxabi;pstl;libcxx;compiler-rt;openmp;llvm-libgcc") +set(LLVM_SUPPORTED_RUNTIMES "libc;libunwind;libcxxabi;pstl;libcxx;compiler-rt;openmp;llvm-libgcc;offload") set(LLVM_ENABLE_RUNTIMES "" CACHE STRING "Semicolon-separated list of runtimes to build, or \"all\" (${LLVM_DEFAULT_RUNTIMES}). Supported runtimes are ${LLVM_SUPPORTED_RUNTIMES}.") if(LLVM_ENABLE_RUNTIMES STREQUAL "all") diff --git a/openmp/libomptarget/CMakeLists.txt b/offload/CMakeLists.txt index 531198fae016..b23ffdcbd5aa 100644 --- a/openmp/libomptarget/CMakeLists.txt +++ b/offload/CMakeLists.txt @@ -10,12 +10,106 @@ # ##===----------------------------------------------------------------------===## -if("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}") - message(FATAL_ERROR "Direct configuration not supported, please use parent directory!") +cmake_minimum_required(VERSION 3.20.0) + +if ("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}") + set(OPENMP_STANDALONE_BUILD TRUE) + project(offload C CXX ASM) +endif() + +set(ENABLE_LIBOMPTARGET ON) +# Currently libomptarget cannot be compiled on Windows or MacOS X. +# Since the device plugins are only supported on Linux anyway, +# there is no point in trying to compile libomptarget on other OSes. +# 32-bit systems are not supported either. +if (APPLE OR WIN32 OR NOT "cxx_std_17" IN_LIST CMAKE_CXX_COMPILE_FEATURES OR NOT CMAKE_SIZEOF_VOID_P EQUAL 8) + set(ENABLE_LIBOMPTARGET OFF) endif() -# Add cmake directory to search for custom cmake functions. -set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules ${CMAKE_MODULE_PATH}) +option(OPENMP_ENABLE_LIBOMPTARGET "Enable building libomptarget for offloading." + ${ENABLE_LIBOMPTARGET}) +if (OPENMP_ENABLE_LIBOMPTARGET) + # Check that the library can actually be built. + if (APPLE OR WIN32) + message(FATAL_ERROR "libomptarget cannot be built on Windows and MacOS X!") + elseif (NOT "cxx_std_17" IN_LIST CMAKE_CXX_COMPILE_FEATURES) + message(FATAL_ERROR "Host compiler must support C++17 to build libomptarget!") + elseif (NOT CMAKE_SIZEOF_VOID_P EQUAL 8) + message(FATAL_ERROR "libomptarget on 32-bit systems are not supported!") + endif() +endif() + +# TODO: Leftover from the move, could probably be just LLVM_LIBDIR_SUFFIX everywhere. +set(OFFLOAD_INSTALL_LIBDIR "lib${LLVM_LIBDIR_SUFFIX}") + +set(LLVM_COMMON_CMAKE_UTILS ${CMAKE_CURRENT_SOURCE_DIR}/../cmake) + +# Add path for custom modules +list(INSERT CMAKE_MODULE_PATH 0 + "${CMAKE_CURRENT_SOURCE_DIR}/cmake" + "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules" + "${LLVM_COMMON_CMAKE_UTILS}/Modules" + ) + +if (OPENMP_STANDALONE_BUILD) + # CMAKE_BUILD_TYPE was not set, default to Release. + if (NOT CMAKE_BUILD_TYPE) + set(CMAKE_BUILD_TYPE Release) + endif() + + # Group common settings. + set(OPENMP_ENABLE_WERROR FALSE CACHE BOOL + "Enable -Werror flags to turn warnings into errors for supporting compilers.") + set(OPENMP_LIBDIR_SUFFIX "" CACHE STRING + "Suffix of lib installation directory, e.g. 64 => lib64") + # Do not use OPENMP_LIBDIR_SUFFIX directly, use OPENMP_INSTALL_LIBDIR. + set(OPENMP_INSTALL_LIBDIR "lib${OPENMP_LIBDIR_SUFFIX}") + + # Group test settings. + set(OPENMP_TEST_C_COMPILER ${CMAKE_C_COMPILER} CACHE STRING + "C compiler to use for testing OpenMP runtime libraries.") + set(OPENMP_TEST_CXX_COMPILER ${CMAKE_CXX_COMPILER} CACHE STRING + "C++ compiler to use for testing OpenMP runtime libraries.") + set(OPENMP_TEST_Fortran_COMPILER ${CMAKE_Fortran_COMPILER} CACHE STRING + "FORTRAN compiler to use for testing OpenMP runtime libraries.") + set(OPENMP_LLVM_TOOLS_DIR "" CACHE PATH "Path to LLVM tools for testing.") + + set(CMAKE_CXX_STANDARD 17 CACHE STRING "C++ standard to conform to") + set(CMAKE_CXX_STANDARD_REQUIRED NO) + set(CMAKE_CXX_EXTENSIONS NO) +else() + set(OPENMP_ENABLE_WERROR ${LLVM_ENABLE_WERROR}) + # If building in tree, we honor the same install suffix LLVM uses. + set(OPENMP_INSTALL_LIBDIR "lib${LLVM_LIBDIR_SUFFIX}") + + if (NOT MSVC) + set(OPENMP_TEST_C_COMPILER ${LLVM_RUNTIME_OUTPUT_INTDIR}/clang) + set(OPENMP_TEST_CXX_COMPILER ${LLVM_RUNTIME_OUTPUT_INTDIR}/clang++) + else() + set(OPENMP_TEST_C_COMPILER ${LLVM_RUNTIME_OUTPUT_INTDIR}/clang.exe) + set(OPENMP_TEST_CXX_COMPILER ${LLVM_RUNTIME_OUTPUT_INTDIR}/clang++.exe) + endif() + + # Check for flang + if (NOT MSVC) + set(OPENMP_TEST_Fortran_COMPILER ${LLVM_RUNTIME_OUTPUT_INTDIR}/flang-new) + else() + set(OPENMP_TEST_Fortran_COMPILER ${LLVM_RUNTIME_OUTPUT_INTDIR}/flang-new.exe) + endif() + + # Set fortran test compiler if flang is found + if (EXISTS "${OPENMP_TEST_Fortran_COMPILER}") + message("Using local flang build at ${OPENMP_TEST_Fortran_COMPILER}") + else() + unset(OPENMP_TEST_Fortran_COMPILER) + endif() + + # If not standalone, set CMAKE_CXX_STANDARD but don't set the global cache value, + # only set it locally for OpenMP. + set(CMAKE_CXX_STANDARD 17) + set(CMAKE_CXX_STANDARD_REQUIRED NO) + set(CMAKE_CXX_EXTENSIONS NO) +endif() # Set the path of all resulting libraries to a unified location so that it can # be used for testing. @@ -36,6 +130,9 @@ include(LibomptargetUtils) # Get dependencies for the different components of the project. include(LibomptargetGetDependencies) +# Set up testing infrastructure. +include(OpenMPTesting) + # LLVM source tree is required at build time for libomptarget if (NOT LIBOMPTARGET_LLVM_INCLUDE_DIRS) message(FATAL_ERROR "Missing definition for LIBOMPTARGET_LLVM_INCLUDE_DIRS") @@ -101,6 +198,58 @@ if (LIBOMPTARGET_USE_LTO) list(APPEND offload_link_flags ${CMAKE_CXX_COMPILE_OPTIONS_IPO}) endif() +if(OPENMP_STANDALONE_BUILD) + if(CMAKE_CXX_COMPILER_ID MATCHES "Clang") + execute_process( + OUTPUT_STRIP_TRAILING_WHITESPACE + COMMAND ${CMAKE_CXX_COMPILER} --print-resource-dir + RESULT_VARIABLE COMMAND_RETURN_CODE + OUTPUT_VARIABLE COMPILER_RESOURCE_DIR + ) + endif() + + set(LIBOMP_HAVE_OMPT_SUPPORT FALSE) + set(LIBOMP_OMPT_SUPPORT FALSE) + + find_path ( + LIBOMP_OMP_TOOLS_INCLUDE_DIR + NAMES + omp-tools.h + HINTS + ${COMPILER_RESOURCE_DIR}/include + ${CMAKE_INSTALL_PREFIX}/include + ) + + if(LIBOMP_OMP_TOOLS_INCLUDE_DIR) + set(LIBOMP_HAVE_OMPT_SUPPORT TRUE) + set(LIBOMP_OMPT_SUPPORT TRUE) + endif() + + # LLVM_LIBRARY_DIRS set by find_package(LLVM) in LibomptargetGetDependencies + find_library ( + LIBOMP_STANDALONE + NAMES + omp + HINTS + ${CMAKE_INSTALL_PREFIX}/lib + ${LLVM_LIBRARY_DIRS} + REQUIRED + ) +# Check LIBOMP_HAVE_VERSION_SCRIPT_FLAG + include(LLVMCheckCompilerLinkerFlag) + if(NOT APPLE) + 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) + endif() + + macro(pythonize_bool var) + if (${var}) + set(${var} True) + else() + set(${var} False) + endif() + endmacro() +endif() + # OMPT support for libomptarget # Follow host OMPT support and check if host support has been requested. # LIBOMP_HAVE_OMPT_SUPPORT indicates whether host OMPT support has been implemented. @@ -127,13 +276,10 @@ pythonize_bool(LIBOMPTARGET_GPU_LIBC_SUPPORT) set(LIBOMPTARGET_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include) message(STATUS "OpenMP tools dir in libomptarget: ${LIBOMP_OMP_TOOLS_INCLUDE_DIR}") -include_directories(${LIBOMP_OMP_TOOLS_INCLUDE_DIR}) +if(LIBOMP_OMP_TOOLS_INCLUDE_DIR) + include_directories(${LIBOMP_OMP_TOOLS_INCLUDE_DIR}) +endif() -# Definitions for testing, for reuse when testing libomptarget-nvptx. -set(LIBOMPTARGET_OPENMP_HEADER_FOLDER "${LIBOMP_INCLUDE_DIR}" CACHE STRING - "Path to folder containing omp.h") -set(LIBOMPTARGET_OPENMP_HOST_RTL_FOLDER "${LIBOMP_LIBRARY_DIR}" CACHE STRING - "Path to folder containing libomp.so, and libLLVMSupport.so with profiling enabled") set(LIBOMPTARGET_LLVM_LIBRARY_DIR "${LLVM_LIBRARY_DIR}" CACHE STRING "Path to folder containing llvm library libomptarget.so") set(LIBOMPTARGET_LLVM_LIBRARY_INTDIR "${LIBOMPTARGET_INTDIR}" CACHE STRING diff --git a/openmp/libomptarget/DeviceRTL/CMakeLists.txt b/offload/DeviceRTL/CMakeLists.txt index 2e7f28df24d6..cbc859059100 100644 --- a/openmp/libomptarget/DeviceRTL/CMakeLists.txt +++ b/offload/DeviceRTL/CMakeLists.txt @@ -233,7 +233,7 @@ function(compileDeviceRTLLibrary target_cpu target_name target_triple) set_property(DIRECTORY APPEND PROPERTY ADDITIONAL_MAKE_CLEAN_FILES ${bclib_name} ${LIBOMPTARGET_LIBRARY_DIR}/${bclib_name}) # Install bitcode library under the lib destination folder. - install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${bclib_name} DESTINATION "${OPENMP_INSTALL_LIBDIR}") + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${bclib_name} DESTINATION "${OFFLOAD_INSTALL_LIBDIR}") set(target_feature "") if("${target_triple}" STREQUAL "nvptx64-nvidia-cuda") @@ -312,4 +312,4 @@ set_target_properties(omptarget.devicertl PROPERTIES ) target_link_libraries(omptarget.devicertl PRIVATE omptarget.devicertl.all_objs) -install(TARGETS omptarget.devicertl ARCHIVE DESTINATION ${OPENMP_INSTALL_LIBDIR}) +install(TARGETS omptarget.devicertl ARCHIVE DESTINATION ${OFFLOAD_INSTALL_LIBDIR}) diff --git a/openmp/libomptarget/DeviceRTL/include/Allocator.h b/offload/DeviceRTL/include/Allocator.h index a28eb0fb2977..a28eb0fb2977 100644 --- a/openmp/libomptarget/DeviceRTL/include/Allocator.h +++ b/offload/DeviceRTL/include/Allocator.h diff --git a/openmp/libomptarget/DeviceRTL/include/Configuration.h b/offload/DeviceRTL/include/Configuration.h index 8e6f5c89cbf2..8e6f5c89cbf2 100644 --- a/openmp/libomptarget/DeviceRTL/include/Configuration.h +++ b/offload/DeviceRTL/include/Configuration.h diff --git a/openmp/libomptarget/DeviceRTL/include/Debug.h b/offload/DeviceRTL/include/Debug.h index 22998f44a5be..22998f44a5be 100644 --- a/openmp/libomptarget/DeviceRTL/include/Debug.h +++ b/offload/DeviceRTL/include/Debug.h diff --git a/openmp/libomptarget/DeviceRTL/include/Interface.h b/offload/DeviceRTL/include/Interface.h index f4854ed3d167..f4854ed3d167 100644 --- a/openmp/libomptarget/DeviceRTL/include/Interface.h +++ b/offload/DeviceRTL/include/Interface.h diff --git a/openmp/libomptarget/DeviceRTL/include/LibC.h b/offload/DeviceRTL/include/LibC.h index dde86af783af..dde86af783af 100644 --- a/openmp/libomptarget/DeviceRTL/include/LibC.h +++ b/offload/DeviceRTL/include/LibC.h diff --git a/openmp/libomptarget/DeviceRTL/include/Mapping.h b/offload/DeviceRTL/include/Mapping.h index 165904644dbb..165904644dbb 100644 --- a/openmp/libomptarget/DeviceRTL/include/Mapping.h +++ b/offload/DeviceRTL/include/Mapping.h diff --git a/openmp/libomptarget/DeviceRTL/include/State.h b/offload/DeviceRTL/include/State.h index 1a3490394458..1a3490394458 100644 --- a/openmp/libomptarget/DeviceRTL/include/State.h +++ b/offload/DeviceRTL/include/State.h diff --git a/openmp/libomptarget/DeviceRTL/include/Synchronization.h b/offload/DeviceRTL/include/Synchronization.h index af9e1a673e6a..af9e1a673e6a 100644 --- a/openmp/libomptarget/DeviceRTL/include/Synchronization.h +++ b/offload/DeviceRTL/include/Synchronization.h diff --git a/openmp/libomptarget/DeviceRTL/include/Types.h b/offload/DeviceRTL/include/Types.h index 2e12d9da0353..2e12d9da0353 100644 --- a/openmp/libomptarget/DeviceRTL/include/Types.h +++ b/offload/DeviceRTL/include/Types.h diff --git a/openmp/libomptarget/DeviceRTL/include/Utils.h b/offload/DeviceRTL/include/Utils.h index 4ab0aea46eea..4ab0aea46eea 100644 --- a/openmp/libomptarget/DeviceRTL/include/Utils.h +++ b/offload/DeviceRTL/include/Utils.h diff --git a/openmp/libomptarget/DeviceRTL/include/generated_microtask_cases.gen b/offload/DeviceRTL/include/generated_microtask_cases.gen index a05f6da2f84f..a05f6da2f84f 100644 --- a/openmp/libomptarget/DeviceRTL/include/generated_microtask_cases.gen +++ b/offload/DeviceRTL/include/generated_microtask_cases.gen diff --git a/openmp/libomptarget/DeviceRTL/src/Allocator.cpp b/offload/DeviceRTL/src/Allocator.cpp index c9c940de62c1..c9c940de62c1 100644 --- a/openmp/libomptarget/DeviceRTL/src/Allocator.cpp +++ b/offload/DeviceRTL/src/Allocator.cpp diff --git a/openmp/libomptarget/DeviceRTL/src/Configuration.cpp b/offload/DeviceRTL/src/Configuration.cpp index ef0c3663536f..ef0c3663536f 100644 --- a/openmp/libomptarget/DeviceRTL/src/Configuration.cpp +++ b/offload/DeviceRTL/src/Configuration.cpp diff --git a/openmp/libomptarget/DeviceRTL/src/Debug.cpp b/offload/DeviceRTL/src/Debug.cpp index 31cd54e3de35..31cd54e3de35 100644 --- a/openmp/libomptarget/DeviceRTL/src/Debug.cpp +++ b/offload/DeviceRTL/src/Debug.cpp diff --git a/openmp/libomptarget/DeviceRTL/src/Kernel.cpp b/offload/DeviceRTL/src/Kernel.cpp index 95d4c728016d..95d4c728016d 100644 --- a/openmp/libomptarget/DeviceRTL/src/Kernel.cpp +++ b/offload/DeviceRTL/src/Kernel.cpp diff --git a/openmp/libomptarget/DeviceRTL/src/LibC.cpp b/offload/DeviceRTL/src/LibC.cpp index e587c3057f5b..e587c3057f5b 100644 --- a/openmp/libomptarget/DeviceRTL/src/LibC.cpp +++ b/offload/DeviceRTL/src/LibC.cpp diff --git a/openmp/libomptarget/DeviceRTL/src/Mapping.cpp b/offload/DeviceRTL/src/Mapping.cpp index b2028a8fb4f5..b2028a8fb4f5 100644 --- a/openmp/libomptarget/DeviceRTL/src/Mapping.cpp +++ b/offload/DeviceRTL/src/Mapping.cpp diff --git a/openmp/libomptarget/DeviceRTL/src/Misc.cpp b/offload/DeviceRTL/src/Misc.cpp index c24af9442d16..c24af9442d16 100644 --- a/openmp/libomptarget/DeviceRTL/src/Misc.cpp +++ b/offload/DeviceRTL/src/Misc.cpp diff --git a/openmp/libomptarget/DeviceRTL/src/Parallelism.cpp b/offload/DeviceRTL/src/Parallelism.cpp index 031a5ced2551..031a5ced2551 100644 --- a/openmp/libomptarget/DeviceRTL/src/Parallelism.cpp +++ b/offload/DeviceRTL/src/Parallelism.cpp diff --git a/openmp/libomptarget/DeviceRTL/src/Reduction.cpp b/offload/DeviceRTL/src/Reduction.cpp index 744d1a3a231c..744d1a3a231c 100644 --- a/openmp/libomptarget/DeviceRTL/src/Reduction.cpp +++ b/offload/DeviceRTL/src/Reduction.cpp diff --git a/openmp/libomptarget/DeviceRTL/src/State.cpp b/offload/DeviceRTL/src/State.cpp index a1e4fa2449d9..a1e4fa2449d9 100644 --- a/openmp/libomptarget/DeviceRTL/src/State.cpp +++ b/offload/DeviceRTL/src/State.cpp diff --git a/openmp/libomptarget/DeviceRTL/src/Stub.cpp b/offload/DeviceRTL/src/Stub.cpp index e833423eb265..e833423eb265 100644 --- a/openmp/libomptarget/DeviceRTL/src/Stub.cpp +++ b/offload/DeviceRTL/src/Stub.cpp diff --git a/openmp/libomptarget/DeviceRTL/src/Synchronization.cpp b/offload/DeviceRTL/src/Synchronization.cpp index 80ba87b300bc..80ba87b300bc 100644 --- a/openmp/libomptarget/DeviceRTL/src/Synchronization.cpp +++ b/offload/DeviceRTL/src/Synchronization.cpp diff --git a/openmp/libomptarget/DeviceRTL/src/Tasking.cpp b/offload/DeviceRTL/src/Tasking.cpp index 2dc33562e6d7..2dc33562e6d7 100644 --- a/openmp/libomptarget/DeviceRTL/src/Tasking.cpp +++ b/offload/DeviceRTL/src/Tasking.cpp diff --git a/openmp/libomptarget/DeviceRTL/src/Utils.cpp b/offload/DeviceRTL/src/Utils.cpp index d07ac0fb499c..d07ac0fb499c 100644 --- a/openmp/libomptarget/DeviceRTL/src/Utils.cpp +++ b/offload/DeviceRTL/src/Utils.cpp diff --git a/openmp/libomptarget/DeviceRTL/src/Workshare.cpp b/offload/DeviceRTL/src/Workshare.cpp index bcb7c5ad50a1..bcb7c5ad50a1 100644 --- a/openmp/libomptarget/DeviceRTL/src/Workshare.cpp +++ b/offload/DeviceRTL/src/Workshare.cpp diff --git a/openmp/libomptarget/DeviceRTL/src/exports b/offload/DeviceRTL/src/exports index 288ddf90b4a9..288ddf90b4a9 100644 --- a/openmp/libomptarget/DeviceRTL/src/exports +++ b/offload/DeviceRTL/src/exports diff --git a/openmp/libomptarget/README.txt b/offload/README.txt index 4d30c102b797..4d30c102b797 100644 --- a/openmp/libomptarget/README.txt +++ b/offload/README.txt diff --git a/openmp/libomptarget/cmake/Modules/LibomptargetGetDependencies.cmake b/offload/cmake/Modules/LibomptargetGetDependencies.cmake index bbf2b9836c70..bbf2b9836c70 100644 --- a/openmp/libomptarget/cmake/Modules/LibomptargetGetDependencies.cmake +++ b/offload/cmake/Modules/LibomptargetGetDependencies.cmake diff --git a/openmp/libomptarget/cmake/Modules/LibomptargetUtils.cmake b/offload/cmake/Modules/LibomptargetUtils.cmake index 7339cc0b56ed..7339cc0b56ed 100644 --- a/openmp/libomptarget/cmake/Modules/LibomptargetUtils.cmake +++ b/offload/cmake/Modules/LibomptargetUtils.cmake diff --git a/offload/cmake/OpenMPTesting.cmake b/offload/cmake/OpenMPTesting.cmake new file mode 100644 index 000000000000..11eafeb76426 --- /dev/null +++ b/offload/cmake/OpenMPTesting.cmake @@ -0,0 +1,238 @@ +# Keep track if we have all dependencies. +set(ENABLE_CHECK_TARGETS TRUE) + +# Function to find required dependencies for testing. +function(find_standalone_test_dependencies) + find_package (Python3 COMPONENTS Interpreter) + + if (NOT Python3_Interpreter_FOUND) + message(STATUS "Could not find Python.") + message(WARNING "The check targets will not be available!") + set(ENABLE_CHECK_TARGETS FALSE PARENT_SCOPE) + return() + else() + set(Python3_EXECUTABLE ${Python3_EXECUTABLE} PARENT_SCOPE) + endif() + + # Find executables. + find_program(OPENMP_LLVM_LIT_EXECUTABLE + NAMES llvm-lit.py llvm-lit lit.py lit + PATHS ${OPENMP_LLVM_TOOLS_DIR}) + if (NOT OPENMP_LLVM_LIT_EXECUTABLE) + message(STATUS "Cannot find llvm-lit.") + message(STATUS "Please put llvm-lit in your PATH, set OPENMP_LLVM_LIT_EXECUTABLE to its full path, or point OPENMP_LLVM_TOOLS_DIR to its directory.") + message(WARNING "The check targets will not be available!") + set(ENABLE_CHECK_TARGETS FALSE PARENT_SCOPE) + return() + endif() + + find_program(OPENMP_FILECHECK_EXECUTABLE + NAMES FileCheck + PATHS ${OPENMP_LLVM_TOOLS_DIR}) + if (NOT OPENMP_FILECHECK_EXECUTABLE) + message(STATUS "Cannot find FileCheck.") + message(STATUS "Please put FileCheck in your PATH, set OPENMP_FILECHECK_EXECUTABLE to its full path, or point OPENMP_LLVM_TOOLS_DIR to its directory.") + message(WARNING "The check targets will not be available!") + set(ENABLE_CHECK_TARGETS FALSE PARENT_SCOPE) + return() + endif() + + find_program(OPENMP_NOT_EXECUTABLE + NAMES not + PATHS ${OPENMP_LLVM_TOOLS_DIR}) + if (NOT OPENMP_NOT_EXECUTABLE) + message(STATUS "Cannot find 'not'.") + message(STATUS "Please put 'not' in your PATH, set OPENMP_NOT_EXECUTABLE to its full path, or point OPENMP_LLVM_TOOLS_DIR to its directory.") + message(WARNING "The check targets will not be available!") + set(ENABLE_CHECK_TARGETS FALSE PARENT_SCOPE) + return() + endif() +endfunction() + +if (${OPENMP_STANDALONE_BUILD}) + find_standalone_test_dependencies() + + # Set lit arguments. + set(DEFAULT_LIT_ARGS "-sv --show-unsupported --show-xfail") + if (MSVC OR XCODE) + set(DEFAULT_LIT_ARGS "${DEFAULT_LIT_ARGS} --no-progress-bar") + endif() + if (${CMAKE_SYSTEM_NAME} MATCHES "AIX") + set(DEFAULT_LIT_ARGS "${DEFAULT_LIT_ARGS} --time-tests --timeout=1800") + endif() + set(OPENMP_LIT_ARGS "${DEFAULT_LIT_ARGS}" CACHE STRING "Options for lit.") + separate_arguments(OPENMP_LIT_ARGS) +else() + if (NOT TARGET "FileCheck") + message(STATUS "Cannot find 'FileCheck'.") + message(WARNING "The check targets will not be available!") + set(ENABLE_CHECK_TARGETS FALSE) + else() + set(OPENMP_FILECHECK_EXECUTABLE ${LLVM_RUNTIME_OUTPUT_INTDIR}/FileCheck) + endif() + set(OPENMP_NOT_EXECUTABLE ${LLVM_RUNTIME_OUTPUT_INTDIR}/not) +endif() + +# Macro to extract information about compiler from file. (no own scope) +macro(extract_test_compiler_information lang file) + file(READ ${file} information) + list(GET information 0 path) + list(GET information 1 id) + list(GET information 2 version) + list(GET information 3 openmp_flags) + list(GET information 4 has_tsan_flags) + list(GET information 5 has_omit_frame_pointer_flags) + list(GET information 6 has_omp_h) + + set(OPENMP_TEST_${lang}_COMPILER_PATH ${path}) + set(OPENMP_TEST_${lang}_COMPILER_ID ${id}) + set(OPENMP_TEST_${lang}_COMPILER_VERSION ${version}) + set(OPENMP_TEST_${lang}_COMPILER_OPENMP_FLAGS ${openmp_flags}) + set(OPENMP_TEST_${lang}_COMPILER_HAS_TSAN_FLAGS ${has_tsan_flags}) + set(OPENMP_TEST_${lang}_COMPILER_HAS_OMIT_FRAME_POINTER_FLAGS ${has_omit_frame_pointer_flags}) + set(OPENMP_TEST_${lang}_COMPILER_HAS_OMP_H ${has_omp_h}) +endmacro() + +# Function to set variables with information about the test compiler. +function(set_test_compiler_information dir) + extract_test_compiler_information(C ${dir}/CCompilerInformation.txt) + extract_test_compiler_information(CXX ${dir}/CXXCompilerInformation.txt) + if (NOT("${OPENMP_TEST_C_COMPILER_ID}" STREQUAL "${OPENMP_TEST_CXX_COMPILER_ID}" AND + "${OPENMP_TEST_C_COMPILER_VERSION}" STREQUAL "${OPENMP_TEST_CXX_COMPILER_VERSION}")) + message(STATUS "Test compilers for C and C++ don't match.") + message(WARNING "The check targets will not be available!") + set(ENABLE_CHECK_TARGETS FALSE PARENT_SCOPE) + else() + set(OPENMP_TEST_COMPILER_ID "${OPENMP_TEST_C_COMPILER_ID}" PARENT_SCOPE) + set(OPENMP_TEST_COMPILER_VERSION "${OPENMP_TEST_C_COMPILER_VERSION}" PARENT_SCOPE) + set(OPENMP_TEST_COMPILER_OPENMP_FLAGS "${OPENMP_TEST_C_COMPILER_OPENMP_FLAGS}" PARENT_SCOPE) + set(OPENMP_TEST_COMPILER_HAS_TSAN_FLAGS "${OPENMP_TEST_C_COMPILER_HAS_TSAN_FLAGS}" PARENT_SCOPE) + set(OPENMP_TEST_COMPILER_HAS_OMIT_FRAME_POINTER_FLAGS "${OPENMP_TEST_C_COMPILER_HAS_OMIT_FRAME_POINTER_FLAGS}" PARENT_SCOPE) + set(OPENMP_TEST_COMPILER_HAS_OMP_H "${OPENMP_TEST_C_COMPILER_HAS_OMP_H}" PARENT_SCOPE) + + # Determine major version. + string(REGEX MATCH "[0-9]+" major "${OPENMP_TEST_C_COMPILER_VERSION}") + string(REGEX MATCH "[0-9]+\\.[0-9]+" majorminor "${OPENMP_TEST_C_COMPILER_VERSION}") + set(OPENMP_TEST_COMPILER_VERSION_MAJOR "${major}" PARENT_SCOPE) + set(OPENMP_TEST_COMPILER_VERSION_MAJOR_MINOR "${majorminor}" PARENT_SCOPE) + endif() +endfunction() + +if (${OPENMP_STANDALONE_BUILD}) + # Detect compiler that should be used for testing. + # We cannot use ExternalProject_Add() because its configuration runs when this + # project is built which is too late for detecting the compiler... + file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/DetectTestCompiler) + execute_process( + COMMAND ${CMAKE_COMMAND} -G${CMAKE_GENERATOR} ${CMAKE_CURRENT_LIST_DIR}/DetectTestCompiler + -DCMAKE_C_COMPILER=${OPENMP_TEST_C_COMPILER} + -DCMAKE_CXX_COMPILER=${OPENMP_TEST_CXX_COMPILER} + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/DetectTestCompiler + OUTPUT_VARIABLE DETECT_COMPILER_OUT + ERROR_VARIABLE DETECT_COMPILER_ERR + RESULT_VARIABLE DETECT_COMPILER_RESULT) + if (DETECT_COMPILER_RESULT) + message(STATUS "Could not detect test compilers.") + message(WARNING "The check targets will not be available!") + set(ENABLE_CHECK_TARGETS FALSE) + else() + set_test_compiler_information(${CMAKE_CURRENT_BINARY_DIR}/DetectTestCompiler) + endif() +else() + # Set the information that we know. + set(OPENMP_TEST_COMPILER_ID "Clang") + # Cannot use CLANG_VERSION because we are not guaranteed that this is already set. + set(OPENMP_TEST_COMPILER_VERSION "${LLVM_VERSION}") + set(OPENMP_TEST_COMPILER_VERSION_MAJOR "${LLVM_VERSION_MAJOR}") + set(OPENMP_TEST_COMPILER_VERSION_MAJOR_MINOR "${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}") + # Unfortunately the top-level cmake/config-ix.cmake file mangles CMake's + # CMAKE_THREAD_LIBS_INIT variable from the FindThreads package, so work + # around that, until it is fixed there. + if("${CMAKE_THREAD_LIBS_INIT}" STREQUAL "-lpthread") + set(OPENMP_TEST_COMPILER_THREAD_FLAGS "-pthread") + else() + set(OPENMP_TEST_COMPILER_THREAD_FLAGS "${CMAKE_THREAD_LIBS_INIT}") + endif() + if(TARGET tsan) + set(OPENMP_TEST_COMPILER_HAS_TSAN_FLAGS 1) + else() + set(OPENMP_TEST_COMPILER_HAS_TSAN_FLAGS 0) + endif() + set(OPENMP_TEST_COMPILER_HAS_OMP_H 1) + set(OPENMP_TEST_COMPILER_OPENMP_FLAGS "-fopenmp ${OPENMP_TEST_COMPILER_THREAD_FLAGS}") + set(OPENMP_TEST_COMPILER_HAS_OMIT_FRAME_POINTER_FLAGS 1) +endif() + +# Function to set compiler features for use in lit. +function(update_test_compiler_features) + set(FEATURES "[") + set(first TRUE) + foreach(feat IN LISTS OPENMP_TEST_COMPILER_FEATURE_LIST) + if (NOT first) + string(APPEND FEATURES ", ") + endif() + set(first FALSE) + string(APPEND FEATURES "'${feat}'") + endforeach() + string(APPEND FEATURES "]") + set(OPENMP_TEST_COMPILER_FEATURES ${FEATURES} PARENT_SCOPE) +endfunction() + +function(set_test_compiler_features) + if ("${OPENMP_TEST_COMPILER_ID}" STREQUAL "GNU") + set(comp "gcc") + elseif ("${OPENMP_TEST_COMPILER_ID}" STREQUAL "Intel") + set(comp "icc") + else() + # Just use the lowercase of the compiler ID as fallback. + string(TOLOWER "${OPENMP_TEST_COMPILER_ID}" comp) + endif() + set(OPENMP_TEST_COMPILER_FEATURE_LIST ${comp} ${comp}-${OPENMP_TEST_COMPILER_VERSION_MAJOR} ${comp}-${OPENMP_TEST_COMPILER_VERSION_MAJOR_MINOR} ${comp}-${OPENMP_TEST_COMPILER_VERSION} PARENT_SCOPE) +endfunction() +set_test_compiler_features() +update_test_compiler_features() + +# Function to add a testsuite for an OpenMP runtime library. +function(add_offload_testsuite target comment) + if (NOT ENABLE_CHECK_TARGETS) + add_custom_target(${target} + COMMAND ${CMAKE_COMMAND} -E echo "${target} does nothing, dependencies not found.") + message(STATUS "${target} does nothing.") + return() + endif() + + cmake_parse_arguments(ARG "EXCLUDE_FROM_CHECK_ALL" "" "DEPENDS;ARGS" ${ARGN}) + # EXCLUDE_FROM_CHECK_ALL excludes the test ${target} out of check-offload. + if (NOT ARG_EXCLUDE_FROM_CHECK_ALL) + # Register the testsuites and depends for the check-offload rule. + set_property(GLOBAL APPEND PROPERTY OPENMP_LIT_TESTSUITES ${ARG_UNPARSED_ARGUMENTS}) + set_property(GLOBAL APPEND PROPERTY OPENMP_LIT_DEPENDS ${ARG_DEPENDS}) + endif() + + if (${OPENMP_STANDALONE_BUILD}) + set(LIT_ARGS ${OPENMP_LIT_ARGS} ${ARG_ARGS}) + add_custom_target(${target} + COMMAND ${Python3_EXECUTABLE} ${OPENMP_LLVM_LIT_EXECUTABLE} ${LIT_ARGS} ${ARG_UNPARSED_ARGUMENTS} + COMMENT ${comment} + DEPENDS ${ARG_DEPENDS} + USES_TERMINAL + ) + else() + if (ARG_EXCLUDE_FROM_CHECK_ALL) + add_lit_testsuite(${target} + ${comment} + ${ARG_UNPARSED_ARGUMENTS} + EXCLUDE_FROM_CHECK_ALL + DEPENDS clang FileCheck not ${ARG_DEPENDS} + ARGS ${ARG_ARGS} + ) + else() + add_lit_testsuite(${target} + ${comment} + ${ARG_UNPARSED_ARGUMENTS} + DEPENDS clang FileCheck not ${ARG_DEPENDS} + ARGS ${ARG_ARGS} + ) + endif() + endif() +endfunction() diff --git a/openmp/libomptarget/docs/declare_target_indirect.md b/offload/docs/declare_target_indirect.md index 443a5ab1d4b9..443a5ab1d4b9 100644 --- a/openmp/libomptarget/docs/declare_target_indirect.md +++ b/offload/docs/declare_target_indirect.md diff --git a/openmp/libomptarget/include/DeviceImage.h b/offload/include/DeviceImage.h index ba46a837f402..ba46a837f402 100644 --- a/openmp/libomptarget/include/DeviceImage.h +++ b/offload/include/DeviceImage.h diff --git a/openmp/libomptarget/include/ExclusiveAccess.h b/offload/include/ExclusiveAccess.h index 09b3aac6059d..09b3aac6059d 100644 --- a/openmp/libomptarget/include/ExclusiveAccess.h +++ b/offload/include/ExclusiveAccess.h diff --git a/openmp/libomptarget/include/OffloadEntry.h b/offload/include/OffloadEntry.h index da1de8123be9..da1de8123be9 100644 --- a/openmp/libomptarget/include/OffloadEntry.h +++ b/offload/include/OffloadEntry.h diff --git a/openmp/libomptarget/include/OffloadPolicy.h b/offload/include/OffloadPolicy.h index 858d9c323b15..858d9c323b15 100644 --- a/openmp/libomptarget/include/OffloadPolicy.h +++ b/offload/include/OffloadPolicy.h diff --git a/openmp/libomptarget/include/OpenMP/InternalTypes.h b/offload/include/OpenMP/InternalTypes.h index bd84c38fb201..bd84c38fb201 100644 --- a/openmp/libomptarget/include/OpenMP/InternalTypes.h +++ b/offload/include/OpenMP/InternalTypes.h diff --git a/openmp/libomptarget/include/OpenMP/InteropAPI.h b/offload/include/OpenMP/InteropAPI.h index 71c78760a322..71c78760a322 100644 --- a/openmp/libomptarget/include/OpenMP/InteropAPI.h +++ b/offload/include/OpenMP/InteropAPI.h diff --git a/openmp/libomptarget/include/OpenMP/Mapping.h b/offload/include/OpenMP/Mapping.h index b9f5c1658293..b9f5c1658293 100644 --- a/openmp/libomptarget/include/OpenMP/Mapping.h +++ b/offload/include/OpenMP/Mapping.h diff --git a/openmp/libomptarget/include/OpenMP/OMPT/Callback.h b/offload/include/OpenMP/OMPT/Callback.h index 89c5731221e9..89c5731221e9 100644 --- a/openmp/libomptarget/include/OpenMP/OMPT/Callback.h +++ b/offload/include/OpenMP/OMPT/Callback.h diff --git a/openmp/libomptarget/include/OpenMP/OMPT/Connector.h b/offload/include/OpenMP/OMPT/Connector.h index c7b37740d564..c7b37740d564 100644 --- a/openmp/libomptarget/include/OpenMP/OMPT/Connector.h +++ b/offload/include/OpenMP/OMPT/Connector.h diff --git a/openmp/libomptarget/include/OpenMP/OMPT/Interface.h b/offload/include/OpenMP/OMPT/Interface.h index 327fadfcd4ac..327fadfcd4ac 100644 --- a/openmp/libomptarget/include/OpenMP/OMPT/Interface.h +++ b/offload/include/OpenMP/OMPT/Interface.h diff --git a/openmp/libomptarget/include/OpenMP/omp.h b/offload/include/OpenMP/omp.h index b44c6aff1b28..b44c6aff1b28 100644 --- a/openmp/libomptarget/include/OpenMP/omp.h +++ b/offload/include/OpenMP/omp.h diff --git a/openmp/libomptarget/include/PluginManager.h b/offload/include/PluginManager.h index eece7525e25e..eece7525e25e 100644 --- a/openmp/libomptarget/include/PluginManager.h +++ b/offload/include/PluginManager.h diff --git a/openmp/libomptarget/include/Shared/APITypes.h b/offload/include/Shared/APITypes.h index e8fc27785b6c..e8fc27785b6c 100644 --- a/openmp/libomptarget/include/Shared/APITypes.h +++ b/offload/include/Shared/APITypes.h diff --git a/openmp/libomptarget/include/Shared/Debug.h b/offload/include/Shared/Debug.h index 7c3db8dbf119..7c3db8dbf119 100644 --- a/openmp/libomptarget/include/Shared/Debug.h +++ b/offload/include/Shared/Debug.h diff --git a/openmp/libomptarget/include/Shared/Environment.h b/offload/include/Shared/Environment.h index d141146b6bd5..d141146b6bd5 100644 --- a/openmp/libomptarget/include/Shared/Environment.h +++ b/offload/include/Shared/Environment.h diff --git a/openmp/libomptarget/include/Shared/EnvironmentVar.h b/offload/include/Shared/EnvironmentVar.h index 4cbdad695a0e..4cbdad695a0e 100644 --- a/openmp/libomptarget/include/Shared/EnvironmentVar.h +++ b/offload/include/Shared/EnvironmentVar.h diff --git a/openmp/libomptarget/include/Shared/PluginAPI.h b/offload/include/Shared/PluginAPI.h index ecf669c774f1..ecf669c774f1 100644 --- a/openmp/libomptarget/include/Shared/PluginAPI.h +++ b/offload/include/Shared/PluginAPI.h diff --git a/openmp/libomptarget/include/Shared/PluginAPI.inc b/offload/include/Shared/PluginAPI.inc index e445da6852f7..e445da6852f7 100644 --- a/openmp/libomptarget/include/Shared/PluginAPI.inc +++ b/offload/include/Shared/PluginAPI.inc diff --git a/openmp/libomptarget/include/Shared/Profile.h b/offload/include/Shared/Profile.h index 39817bab36cb..39817bab36cb 100644 --- a/openmp/libomptarget/include/Shared/Profile.h +++ b/offload/include/Shared/Profile.h diff --git a/openmp/libomptarget/include/Shared/Requirements.h b/offload/include/Shared/Requirements.h index b16a1650f0c4..b16a1650f0c4 100644 --- a/openmp/libomptarget/include/Shared/Requirements.h +++ b/offload/include/Shared/Requirements.h diff --git a/openmp/libomptarget/include/Shared/SourceInfo.h b/offload/include/Shared/SourceInfo.h index 63488ff0e8ca..63488ff0e8ca 100644 --- a/openmp/libomptarget/include/Shared/SourceInfo.h +++ b/offload/include/Shared/SourceInfo.h diff --git a/openmp/libomptarget/include/Shared/Utils.h b/offload/include/Shared/Utils.h index fce14b54edb9..fce14b54edb9 100644 --- a/openmp/libomptarget/include/Shared/Utils.h +++ b/offload/include/Shared/Utils.h diff --git a/openmp/libomptarget/include/Utils/ExponentialBackoff.h b/offload/include/Utils/ExponentialBackoff.h index 9751f925b388..9751f925b388 100644 --- a/openmp/libomptarget/include/Utils/ExponentialBackoff.h +++ b/offload/include/Utils/ExponentialBackoff.h diff --git a/openmp/libomptarget/include/device.h b/offload/include/device.h index bd2829722bb3..bd2829722bb3 100644 --- a/openmp/libomptarget/include/device.h +++ b/offload/include/device.h diff --git a/openmp/libomptarget/include/omptarget.h b/offload/include/omptarget.h index 323dee41630f..323dee41630f 100644 --- a/openmp/libomptarget/include/omptarget.h +++ b/offload/include/omptarget.h diff --git a/openmp/libomptarget/include/rtl.h b/offload/include/rtl.h index 5e198bdad436..5e198bdad436 100644 --- a/openmp/libomptarget/include/rtl.h +++ b/offload/include/rtl.h diff --git a/openmp/libomptarget/plugins-nextgen/CMakeLists.txt b/offload/plugins-nextgen/CMakeLists.txt index dbd82ac94517..dbd82ac94517 100644 --- a/openmp/libomptarget/plugins-nextgen/CMakeLists.txt +++ b/offload/plugins-nextgen/CMakeLists.txt diff --git a/openmp/libomptarget/plugins-nextgen/amdgpu/CMakeLists.txt b/offload/plugins-nextgen/amdgpu/CMakeLists.txt index 40df77102c78..f5f7096137c2 100644 --- a/openmp/libomptarget/plugins-nextgen/amdgpu/CMakeLists.txt +++ b/offload/plugins-nextgen/amdgpu/CMakeLists.txt @@ -59,6 +59,6 @@ else() endif() # Install plugin under the lib destination folder. -install(TARGETS omptarget.rtl.amdgpu LIBRARY DESTINATION "${OPENMP_INSTALL_LIBDIR}") +install(TARGETS omptarget.rtl.amdgpu LIBRARY DESTINATION "${OFFLOAD_INSTALL_LIBDIR}") set_target_properties(omptarget.rtl.amdgpu PROPERTIES INSTALL_RPATH "$ORIGIN" BUILD_RPATH "$ORIGIN:${CMAKE_CURRENT_BINARY_DIR}/..") diff --git a/openmp/libomptarget/plugins-nextgen/amdgpu/dynamic_hsa/hsa.cpp b/offload/plugins-nextgen/amdgpu/dynamic_hsa/hsa.cpp index cb82180b9a27..cb82180b9a27 100644 --- a/openmp/libomptarget/plugins-nextgen/amdgpu/dynamic_hsa/hsa.cpp +++ b/offload/plugins-nextgen/amdgpu/dynamic_hsa/hsa.cpp diff --git a/openmp/libomptarget/plugins-nextgen/amdgpu/dynamic_hsa/hsa.h b/offload/plugins-nextgen/amdgpu/dynamic_hsa/hsa.h index 64a1d3308aed..64a1d3308aed 100644 --- a/openmp/libomptarget/plugins-nextgen/amdgpu/dynamic_hsa/hsa.h +++ b/offload/plugins-nextgen/amdgpu/dynamic_hsa/hsa.h diff --git a/openmp/libomptarget/plugins-nextgen/amdgpu/dynamic_hsa/hsa_ext_amd.h b/offload/plugins-nextgen/amdgpu/dynamic_hsa/hsa_ext_amd.h index 3117763e3589..3117763e3589 100644 --- a/openmp/libomptarget/plugins-nextgen/amdgpu/dynamic_hsa/hsa_ext_amd.h +++ b/offload/plugins-nextgen/amdgpu/dynamic_hsa/hsa_ext_amd.h diff --git a/openmp/libomptarget/plugins-nextgen/amdgpu/src/rtl.cpp b/offload/plugins-nextgen/amdgpu/src/rtl.cpp index 00650b801b42..00650b801b42 100644 --- a/openmp/libomptarget/plugins-nextgen/amdgpu/src/rtl.cpp +++ b/offload/plugins-nextgen/amdgpu/src/rtl.cpp diff --git a/openmp/libomptarget/plugins-nextgen/amdgpu/utils/UtilitiesRTL.h b/offload/plugins-nextgen/amdgpu/utils/UtilitiesRTL.h index 58a3b5df00fa..58a3b5df00fa 100644 --- a/openmp/libomptarget/plugins-nextgen/amdgpu/utils/UtilitiesRTL.h +++ b/offload/plugins-nextgen/amdgpu/utils/UtilitiesRTL.h diff --git a/openmp/libomptarget/plugins-nextgen/common/CMakeLists.txt b/offload/plugins-nextgen/common/CMakeLists.txt index a7350e662a7c..a7350e662a7c 100644 --- a/openmp/libomptarget/plugins-nextgen/common/CMakeLists.txt +++ b/offload/plugins-nextgen/common/CMakeLists.txt diff --git a/openmp/libomptarget/plugins-nextgen/common/OMPT/OmptCallback.cpp b/offload/plugins-nextgen/common/OMPT/OmptCallback.cpp index fb8a156fe576..fb8a156fe576 100644 --- a/openmp/libomptarget/plugins-nextgen/common/OMPT/OmptCallback.cpp +++ b/offload/plugins-nextgen/common/OMPT/OmptCallback.cpp diff --git a/openmp/libomptarget/plugins-nextgen/common/include/DLWrap.h b/offload/plugins-nextgen/common/include/DLWrap.h index 8934e7e70102..8934e7e70102 100644 --- a/openmp/libomptarget/plugins-nextgen/common/include/DLWrap.h +++ b/offload/plugins-nextgen/common/include/DLWrap.h diff --git a/openmp/libomptarget/plugins-nextgen/common/include/GlobalHandler.h b/offload/plugins-nextgen/common/include/GlobalHandler.h index 829b4b729119..829b4b729119 100644 --- a/openmp/libomptarget/plugins-nextgen/common/include/GlobalHandler.h +++ b/offload/plugins-nextgen/common/include/GlobalHandler.h diff --git a/openmp/libomptarget/plugins-nextgen/common/include/JIT.h b/offload/plugins-nextgen/common/include/JIT.h index b22197b89208..b22197b89208 100644 --- a/openmp/libomptarget/plugins-nextgen/common/include/JIT.h +++ b/offload/plugins-nextgen/common/include/JIT.h diff --git a/openmp/libomptarget/plugins-nextgen/common/include/MemoryManager.h b/offload/plugins-nextgen/common/include/MemoryManager.h index fe1989930b76..fe1989930b76 100644 --- a/openmp/libomptarget/plugins-nextgen/common/include/MemoryManager.h +++ b/offload/plugins-nextgen/common/include/MemoryManager.h diff --git a/openmp/libomptarget/plugins-nextgen/common/include/PluginInterface.h b/offload/plugins-nextgen/common/include/PluginInterface.h index 79e8464bfda5..79e8464bfda5 100644 --- a/openmp/libomptarget/plugins-nextgen/common/include/PluginInterface.h +++ b/offload/plugins-nextgen/common/include/PluginInterface.h diff --git a/openmp/libomptarget/plugins-nextgen/common/include/RPC.h b/offload/plugins-nextgen/common/include/RPC.h index 01bf539bcb3f..01bf539bcb3f 100644 --- a/openmp/libomptarget/plugins-nextgen/common/include/RPC.h +++ b/offload/plugins-nextgen/common/include/RPC.h diff --git a/openmp/libomptarget/plugins-nextgen/common/include/Utils/ELF.h b/offload/plugins-nextgen/common/include/Utils/ELF.h index 88c83d39b68c..88c83d39b68c 100644 --- a/openmp/libomptarget/plugins-nextgen/common/include/Utils/ELF.h +++ b/offload/plugins-nextgen/common/include/Utils/ELF.h diff --git a/openmp/libomptarget/plugins-nextgen/common/src/GlobalHandler.cpp b/offload/plugins-nextgen/common/src/GlobalHandler.cpp index ba0aa47f8e51..ba0aa47f8e51 100644 --- a/openmp/libomptarget/plugins-nextgen/common/src/GlobalHandler.cpp +++ b/offload/plugins-nextgen/common/src/GlobalHandler.cpp diff --git a/openmp/libomptarget/plugins-nextgen/common/src/JIT.cpp b/offload/plugins-nextgen/common/src/JIT.cpp index 9eb610cab4de..9eb610cab4de 100644 --- a/openmp/libomptarget/plugins-nextgen/common/src/JIT.cpp +++ b/offload/plugins-nextgen/common/src/JIT.cpp diff --git a/openmp/libomptarget/plugins-nextgen/common/src/PluginInterface.cpp b/offload/plugins-nextgen/common/src/PluginInterface.cpp index b5f3c45c835f..b5f3c45c835f 100644 --- a/openmp/libomptarget/plugins-nextgen/common/src/PluginInterface.cpp +++ b/offload/plugins-nextgen/common/src/PluginInterface.cpp diff --git a/openmp/libomptarget/plugins-nextgen/common/src/RPC.cpp b/offload/plugins-nextgen/common/src/RPC.cpp index faa2cbd4f02f..faa2cbd4f02f 100644 --- a/openmp/libomptarget/plugins-nextgen/common/src/RPC.cpp +++ b/offload/plugins-nextgen/common/src/RPC.cpp diff --git a/openmp/libomptarget/plugins-nextgen/common/src/Utils/ELF.cpp b/offload/plugins-nextgen/common/src/Utils/ELF.cpp index 2ae97f0f2589..2ae97f0f2589 100644 --- a/openmp/libomptarget/plugins-nextgen/common/src/Utils/ELF.cpp +++ b/offload/plugins-nextgen/common/src/Utils/ELF.cpp diff --git a/openmp/libomptarget/plugins-nextgen/cuda/CMakeLists.txt b/offload/plugins-nextgen/cuda/CMakeLists.txt index b3530462aa19..0284bd22d2a4 100644 --- a/openmp/libomptarget/plugins-nextgen/cuda/CMakeLists.txt +++ b/offload/plugins-nextgen/cuda/CMakeLists.txt @@ -53,6 +53,6 @@ else() endif() # Install plugin under the lib destination folder. -install(TARGETS omptarget.rtl.cuda LIBRARY DESTINATION "${OPENMP_INSTALL_LIBDIR}") +install(TARGETS omptarget.rtl.cuda LIBRARY DESTINATION "${OFFLOAD_INSTALL_LIBDIR}") set_target_properties(omptarget.rtl.cuda PROPERTIES INSTALL_RPATH "$ORIGIN" BUILD_RPATH "$ORIGIN:${CMAKE_CURRENT_BINARY_DIR}/..") diff --git a/openmp/libomptarget/plugins-nextgen/cuda/dynamic_cuda/cuda.cpp b/offload/plugins-nextgen/cuda/dynamic_cuda/cuda.cpp index 5ec3adb9e4e3..5ec3adb9e4e3 100644 --- a/openmp/libomptarget/plugins-nextgen/cuda/dynamic_cuda/cuda.cpp +++ b/offload/plugins-nextgen/cuda/dynamic_cuda/cuda.cpp diff --git a/openmp/libomptarget/plugins-nextgen/cuda/dynamic_cuda/cuda.h b/offload/plugins-nextgen/cuda/dynamic_cuda/cuda.h index 32031c28f879..32031c28f879 100644 --- a/openmp/libomptarget/plugins-nextgen/cuda/dynamic_cuda/cuda.h +++ b/offload/plugins-nextgen/cuda/dynamic_cuda/cuda.h diff --git a/openmp/libomptarget/plugins-nextgen/cuda/src/rtl.cpp b/offload/plugins-nextgen/cuda/src/rtl.cpp index fc74c6aa23fd..fc74c6aa23fd 100644 --- a/openmp/libomptarget/plugins-nextgen/cuda/src/rtl.cpp +++ b/offload/plugins-nextgen/cuda/src/rtl.cpp diff --git a/openmp/libomptarget/plugins-nextgen/exports b/offload/plugins-nextgen/exports index cc7beda183af..cc7beda183af 100644 --- a/openmp/libomptarget/plugins-nextgen/exports +++ b/offload/plugins-nextgen/exports diff --git a/openmp/libomptarget/plugins-nextgen/host/CMakeLists.txt b/offload/plugins-nextgen/host/CMakeLists.txt index c1493d293d30..7da18ee278d4 100644 --- a/openmp/libomptarget/plugins-nextgen/host/CMakeLists.txt +++ b/offload/plugins-nextgen/host/CMakeLists.txt @@ -33,7 +33,7 @@ endif() # Install plugin under the lib destination folder. install(TARGETS omptarget.rtl.${machine} - LIBRARY DESTINATION "${OPENMP_INSTALL_LIBDIR}") + LIBRARY DESTINATION "${OFFLOAD_INSTALL_LIBDIR}") set_target_properties(omptarget.rtl.${machine} PROPERTIES INSTALL_RPATH "$ORIGIN" BUILD_RPATH "$ORIGIN:${CMAKE_CURRENT_BINARY_DIR}/.." POSITION_INDEPENDENT_CODE ON diff --git a/openmp/libomptarget/plugins-nextgen/host/dynamic_ffi/ffi.cpp b/offload/plugins-nextgen/host/dynamic_ffi/ffi.cpp index c586ad1c1969..c586ad1c1969 100644 --- a/openmp/libomptarget/plugins-nextgen/host/dynamic_ffi/ffi.cpp +++ b/offload/plugins-nextgen/host/dynamic_ffi/ffi.cpp diff --git a/openmp/libomptarget/plugins-nextgen/host/dynamic_ffi/ffi.h b/offload/plugins-nextgen/host/dynamic_ffi/ffi.h index 0ae025805e1d..0ae025805e1d 100644 --- a/openmp/libomptarget/plugins-nextgen/host/dynamic_ffi/ffi.h +++ b/offload/plugins-nextgen/host/dynamic_ffi/ffi.h diff --git a/openmp/libomptarget/plugins-nextgen/host/src/rtl.cpp b/offload/plugins-nextgen/host/src/rtl.cpp index f0ce24249301..f0ce24249301 100644 --- a/openmp/libomptarget/plugins-nextgen/host/src/rtl.cpp +++ b/offload/plugins-nextgen/host/src/rtl.cpp diff --git a/openmp/libomptarget/src/CMakeLists.txt b/offload/src/CMakeLists.txt index d0971bd4ef07..fb1ad3d7ae70 100644 --- a/openmp/libomptarget/src/CMakeLists.txt +++ b/offload/src/CMakeLists.txt @@ -12,6 +12,12 @@ libomptarget_say("Building offloading runtime library libomptarget.") +if(LIBOMP_STANDALONE) + set(LIBOMP ${LIBOMP_STANDALONE}) +else() + set(LIBOMP omp) +endif() + add_llvm_library(omptarget SHARED @@ -38,7 +44,7 @@ add_llvm_library(omptarget LINK_LIBS PUBLIC - omp + ${LIBOMP} NO_INSTALL_RPATH BUILDTREE_ONLY @@ -87,4 +93,4 @@ set_target_properties(omptarget PROPERTIES POSITION_INDEPENDENT_CODE ON INSTALL_RPATH "$ORIGIN" BUILD_RPATH "$ORIGIN:${CMAKE_CURRENT_BINARY_DIR}/..") -install(TARGETS omptarget LIBRARY COMPONENT omptarget DESTINATION "${OPENMP_INSTALL_LIBDIR}") +install(TARGETS omptarget LIBRARY COMPONENT omptarget DESTINATION "${OFFLOAD_INSTALL_LIBDIR}") diff --git a/openmp/libomptarget/src/DeviceImage.cpp b/offload/src/DeviceImage.cpp index e42460b5cca4..e42460b5cca4 100644 --- a/openmp/libomptarget/src/DeviceImage.cpp +++ b/offload/src/DeviceImage.cpp diff --git a/openmp/libomptarget/src/LegacyAPI.cpp b/offload/src/LegacyAPI.cpp index 91d5642e8112..91d5642e8112 100644 --- a/openmp/libomptarget/src/LegacyAPI.cpp +++ b/offload/src/LegacyAPI.cpp diff --git a/openmp/libomptarget/src/OffloadRTL.cpp b/offload/src/OffloadRTL.cpp index dd75b1b18150..dd75b1b18150 100644 --- a/openmp/libomptarget/src/OffloadRTL.cpp +++ b/offload/src/OffloadRTL.cpp diff --git a/openmp/libomptarget/src/OpenMP/API.cpp b/offload/src/OpenMP/API.cpp index c85f9868e37c..c85f9868e37c 100644 --- a/openmp/libomptarget/src/OpenMP/API.cpp +++ b/offload/src/OpenMP/API.cpp diff --git a/openmp/libomptarget/src/OpenMP/InteropAPI.cpp b/offload/src/OpenMP/InteropAPI.cpp index 1a995cde7816..1a995cde7816 100644 --- a/openmp/libomptarget/src/OpenMP/InteropAPI.cpp +++ b/offload/src/OpenMP/InteropAPI.cpp diff --git a/openmp/libomptarget/src/OpenMP/Mapping.cpp b/offload/src/OpenMP/Mapping.cpp index c6ff3aa54dd6..c6ff3aa54dd6 100644 --- a/openmp/libomptarget/src/OpenMP/Mapping.cpp +++ b/offload/src/OpenMP/Mapping.cpp diff --git a/openmp/libomptarget/src/OpenMP/OMPT/Callback.cpp b/offload/src/OpenMP/OMPT/Callback.cpp index f285843e39f3..f285843e39f3 100644 --- a/openmp/libomptarget/src/OpenMP/OMPT/Callback.cpp +++ b/offload/src/OpenMP/OMPT/Callback.cpp diff --git a/openmp/libomptarget/src/PluginManager.cpp b/offload/src/PluginManager.cpp index 792cae3e3dd5..792cae3e3dd5 100644 --- a/openmp/libomptarget/src/PluginManager.cpp +++ b/offload/src/PluginManager.cpp diff --git a/openmp/libomptarget/src/device.cpp b/offload/src/device.cpp index 44a2facc8d3d..44a2facc8d3d 100644 --- a/openmp/libomptarget/src/device.cpp +++ b/offload/src/device.cpp diff --git a/openmp/libomptarget/src/exports b/offload/src/exports index f95544ec8329..f95544ec8329 100644 --- a/openmp/libomptarget/src/exports +++ b/offload/src/exports diff --git a/openmp/libomptarget/src/interface.cpp b/offload/src/interface.cpp index 557703632c62..557703632c62 100644 --- a/openmp/libomptarget/src/interface.cpp +++ b/offload/src/interface.cpp diff --git a/openmp/libomptarget/src/omptarget.cpp b/offload/src/omptarget.cpp index 803e941fe838..803e941fe838 100644 --- a/openmp/libomptarget/src/omptarget.cpp +++ b/offload/src/omptarget.cpp diff --git a/openmp/libomptarget/src/private.h b/offload/src/private.h index d569f2af5433..d569f2af5433 100644 --- a/openmp/libomptarget/src/private.h +++ b/offload/src/private.h diff --git a/openmp/libomptarget/test/CMakeLists.txt b/offload/test/CMakeLists.txt index a0ba233eaa57..59c9dd98f712 100644 --- a/openmp/libomptarget/test/CMakeLists.txt +++ b/offload/test/CMakeLists.txt @@ -1,6 +1,6 @@ # CMakeLists.txt file for unit testing OpenMP offloading runtime library. -if(NOT OPENMP_TEST_COMPILER_ID STREQUAL "Clang" OR - OPENMP_TEST_COMPILER_VERSION VERSION_LESS 6.0.0) +if(NOT CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR + CMAKE_CXX_COMPILER_VERSION VERSION_LESS 6.0.0) libomptarget_say("Can only test with Clang compiler in version 6.0.0 or later.") libomptarget_warning_say("The check-libomptarget target will not be available!") return() @@ -20,7 +20,7 @@ string(REGEX MATCHALL "([^\ ]+\ |[^\ ]+$)" SYSTEM_TARGETS "${LIBOMPTARGET_SYSTEM foreach(CURRENT_TARGET IN LISTS SYSTEM_TARGETS) string(STRIP "${CURRENT_TARGET}" CURRENT_TARGET) - add_openmp_testsuite(check-libomptarget-${CURRENT_TARGET} + add_offload_testsuite(check-libomptarget-${CURRENT_TARGET} "Running libomptarget tests" ${CMAKE_CURRENT_BINARY_DIR}/${CURRENT_TARGET} DEPENDS omptarget omp ${LIBOMPTARGET_TESTED_PLUGINS} @@ -34,7 +34,14 @@ foreach(CURRENT_TARGET IN LISTS SYSTEM_TARGETS) endforeach() -add_openmp_testsuite(check-libomptarget +add_offload_testsuite(check-libomptarget + "Running libomptarget tests" + ${LIBOMPTARGET_LIT_TESTSUITES} + EXCLUDE_FROM_CHECK_ALL + DEPENDS omptarget omp ${LIBOMPTARGET_TESTED_PLUGINS} + ARGS ${LIBOMPTARGET_LIT_ARG_LIST}) + +add_offload_testsuite(check-offload "Running libomptarget tests" ${LIBOMPTARGET_LIT_TESTSUITES} EXCLUDE_FROM_CHECK_ALL diff --git a/openmp/libomptarget/test/Inputs/basic_array.f90 b/offload/test/Inputs/basic_array.f90 index 30fe7c8c0ef4..30fe7c8c0ef4 100644 --- a/openmp/libomptarget/test/Inputs/basic_array.f90 +++ b/offload/test/Inputs/basic_array.f90 diff --git a/openmp/libomptarget/test/Inputs/declare_indirect_func.c b/offload/test/Inputs/declare_indirect_func.c index 20ac6617649a..20ac6617649a 100644 --- a/openmp/libomptarget/test/Inputs/declare_indirect_func.c +++ b/offload/test/Inputs/declare_indirect_func.c diff --git a/openmp/libomptarget/test/api/assert.c b/offload/test/api/assert.c index 9a9e770f1962..9a9e770f1962 100644 --- a/openmp/libomptarget/test/api/assert.c +++ b/offload/test/api/assert.c diff --git a/openmp/libomptarget/test/api/is_initial_device.c b/offload/test/api/is_initial_device.c index f1a85fec6403..f1a85fec6403 100644 --- a/openmp/libomptarget/test/api/is_initial_device.c +++ b/offload/test/api/is_initial_device.c diff --git a/openmp/libomptarget/test/api/omp_device_managed_memory.c b/offload/test/api/omp_device_managed_memory.c index 2a9fe09a8334..2a9fe09a8334 100644 --- a/openmp/libomptarget/test/api/omp_device_managed_memory.c +++ b/offload/test/api/omp_device_managed_memory.c diff --git a/openmp/libomptarget/test/api/omp_device_managed_memory_alloc.c b/offload/test/api/omp_device_managed_memory_alloc.c index c48866922deb..c48866922deb 100644 --- a/openmp/libomptarget/test/api/omp_device_managed_memory_alloc.c +++ b/offload/test/api/omp_device_managed_memory_alloc.c diff --git a/openmp/libomptarget/test/api/omp_device_memory.c b/offload/test/api/omp_device_memory.c index 816ae359540d..816ae359540d 100644 --- a/openmp/libomptarget/test/api/omp_device_memory.c +++ b/offload/test/api/omp_device_memory.c diff --git a/openmp/libomptarget/test/api/omp_dynamic_shared_memory.c b/offload/test/api/omp_dynamic_shared_memory.c index 3fe75f24db3e..3fe75f24db3e 100644 --- a/openmp/libomptarget/test/api/omp_dynamic_shared_memory.c +++ b/offload/test/api/omp_dynamic_shared_memory.c diff --git a/openmp/libomptarget/test/api/omp_dynamic_shared_memory_amdgpu.c b/offload/test/api/omp_dynamic_shared_memory_amdgpu.c index 0b4d9d6ea9d4..0b4d9d6ea9d4 100644 --- a/openmp/libomptarget/test/api/omp_dynamic_shared_memory_amdgpu.c +++ b/offload/test/api/omp_dynamic_shared_memory_amdgpu.c diff --git a/openmp/libomptarget/test/api/omp_dynamic_shared_memory_mixed.inc b/offload/test/api/omp_dynamic_shared_memory_mixed.inc index 16e0becd093e..16e0becd093e 100644 --- a/openmp/libomptarget/test/api/omp_dynamic_shared_memory_mixed.inc +++ b/offload/test/api/omp_dynamic_shared_memory_mixed.inc diff --git a/openmp/libomptarget/test/api/omp_dynamic_shared_memory_mixed_amdgpu.c b/offload/test/api/omp_dynamic_shared_memory_mixed_amdgpu.c index 656c3a20aaf8..656c3a20aaf8 100644 --- a/openmp/libomptarget/test/api/omp_dynamic_shared_memory_mixed_amdgpu.c +++ b/offload/test/api/omp_dynamic_shared_memory_mixed_amdgpu.c diff --git a/openmp/libomptarget/test/api/omp_dynamic_shared_memory_mixed_nvptx.c b/offload/test/api/omp_dynamic_shared_memory_mixed_nvptx.c index 117809c36c7d..117809c36c7d 100644 --- a/openmp/libomptarget/test/api/omp_dynamic_shared_memory_mixed_nvptx.c +++ b/offload/test/api/omp_dynamic_shared_memory_mixed_nvptx.c diff --git a/openmp/libomptarget/test/api/omp_env_vars.c b/offload/test/api/omp_env_vars.c index 2e78bb115bee..2e78bb115bee 100644 --- a/openmp/libomptarget/test/api/omp_env_vars.c +++ b/offload/test/api/omp_env_vars.c diff --git a/openmp/libomptarget/test/api/omp_get_device_num.c b/offload/test/api/omp_get_device_num.c index 31e13b0050d4..31e13b0050d4 100644 --- a/openmp/libomptarget/test/api/omp_get_device_num.c +++ b/offload/test/api/omp_get_device_num.c diff --git a/openmp/libomptarget/test/api/omp_get_mapped_ptr.c b/offload/test/api/omp_get_mapped_ptr.c index a8e11f912d66..a8e11f912d66 100644 --- a/openmp/libomptarget/test/api/omp_get_mapped_ptr.c +++ b/offload/test/api/omp_get_mapped_ptr.c diff --git a/openmp/libomptarget/test/api/omp_get_num_devices.c b/offload/test/api/omp_get_num_devices.c index e8fbdcd1a1de..e8fbdcd1a1de 100644 --- a/openmp/libomptarget/test/api/omp_get_num_devices.c +++ b/offload/test/api/omp_get_num_devices.c diff --git a/openmp/libomptarget/test/api/omp_get_num_devices_with_empty_target.c b/offload/test/api/omp_get_num_devices_with_empty_target.c index 74ebb3e472ea..74ebb3e472ea 100644 --- a/openmp/libomptarget/test/api/omp_get_num_devices_with_empty_target.c +++ b/offload/test/api/omp_get_num_devices_with_empty_target.c diff --git a/openmp/libomptarget/test/api/omp_get_num_procs.c b/offload/test/api/omp_get_num_procs.c index e958d0cf3492..e958d0cf3492 100644 --- a/openmp/libomptarget/test/api/omp_get_num_procs.c +++ b/offload/test/api/omp_get_num_procs.c diff --git a/openmp/libomptarget/test/api/omp_host_pinned_memory.c b/offload/test/api/omp_host_pinned_memory.c index 7a6a00d489d5..7a6a00d489d5 100644 --- a/openmp/libomptarget/test/api/omp_host_pinned_memory.c +++ b/offload/test/api/omp_host_pinned_memory.c diff --git a/openmp/libomptarget/test/api/omp_host_pinned_memory_alloc.c b/offload/test/api/omp_host_pinned_memory_alloc.c index fa3e2455d371..fa3e2455d371 100644 --- a/openmp/libomptarget/test/api/omp_host_pinned_memory_alloc.c +++ b/offload/test/api/omp_host_pinned_memory_alloc.c diff --git a/openmp/libomptarget/test/api/omp_indirect_call.c b/offload/test/api/omp_indirect_call.c index ac0febf7854d..ac0febf7854d 100644 --- a/openmp/libomptarget/test/api/omp_indirect_call.c +++ b/offload/test/api/omp_indirect_call.c diff --git a/openmp/libomptarget/test/api/omp_target_memcpy_async1.c b/offload/test/api/omp_target_memcpy_async1.c index 1abcfde83dbd..1abcfde83dbd 100644 --- a/openmp/libomptarget/test/api/omp_target_memcpy_async1.c +++ b/offload/test/api/omp_target_memcpy_async1.c diff --git a/openmp/libomptarget/test/api/omp_target_memcpy_async2.c b/offload/test/api/omp_target_memcpy_async2.c index d63f610c22ab..d63f610c22ab 100644 --- a/openmp/libomptarget/test/api/omp_target_memcpy_async2.c +++ b/offload/test/api/omp_target_memcpy_async2.c diff --git a/openmp/libomptarget/test/api/omp_target_memcpy_rect_async1.c b/offload/test/api/omp_target_memcpy_rect_async1.c index 4d07898fbdcd..4d07898fbdcd 100644 --- a/openmp/libomptarget/test/api/omp_target_memcpy_rect_async1.c +++ b/offload/test/api/omp_target_memcpy_rect_async1.c diff --git a/openmp/libomptarget/test/api/omp_target_memcpy_rect_async2.c b/offload/test/api/omp_target_memcpy_rect_async2.c index 1d17d884be26..1d17d884be26 100644 --- a/openmp/libomptarget/test/api/omp_target_memcpy_rect_async2.c +++ b/offload/test/api/omp_target_memcpy_rect_async2.c diff --git a/openmp/libomptarget/test/api/omp_target_memset.c b/offload/test/api/omp_target_memset.c index ea0c6d73fbde..ea0c6d73fbde 100644 --- a/openmp/libomptarget/test/api/omp_target_memset.c +++ b/offload/test/api/omp_target_memset.c diff --git a/openmp/libomptarget/test/api/ompx_3d.c b/offload/test/api/ompx_3d.c index 2ae17c226f3a..2ae17c226f3a 100644 --- a/openmp/libomptarget/test/api/ompx_3d.c +++ b/offload/test/api/ompx_3d.c diff --git a/openmp/libomptarget/test/api/ompx_3d.cpp b/offload/test/api/ompx_3d.cpp index 5b5491263a91..5b5491263a91 100644 --- a/openmp/libomptarget/test/api/ompx_3d.cpp +++ b/offload/test/api/ompx_3d.cpp diff --git a/openmp/libomptarget/test/api/ompx_sync.c b/offload/test/api/ompx_sync.c index b71eba43f553..b71eba43f553 100644 --- a/openmp/libomptarget/test/api/ompx_sync.c +++ b/offload/test/api/ompx_sync.c diff --git a/openmp/libomptarget/test/api/ompx_sync.cpp b/offload/test/api/ompx_sync.cpp index c6e17103459d..c6e17103459d 100644 --- a/openmp/libomptarget/test/api/ompx_sync.cpp +++ b/offload/test/api/ompx_sync.cpp diff --git a/openmp/libomptarget/test/env/base_ptr_ref_count.c b/offload/test/env/base_ptr_ref_count.c index 9a1556871280..9a1556871280 100644 --- a/openmp/libomptarget/test/env/base_ptr_ref_count.c +++ b/offload/test/env/base_ptr_ref_count.c diff --git a/openmp/libomptarget/test/env/omp_target_debug.c b/offload/test/env/omp_target_debug.c index ec81873a091f..ec81873a091f 100644 --- a/openmp/libomptarget/test/env/omp_target_debug.c +++ b/offload/test/env/omp_target_debug.c diff --git a/openmp/libomptarget/test/jit/empty_kernel.inc b/offload/test/jit/empty_kernel.inc index 43813891ccb6..43813891ccb6 100644 --- a/openmp/libomptarget/test/jit/empty_kernel.inc +++ b/offload/test/jit/empty_kernel.inc diff --git a/openmp/libomptarget/test/jit/empty_kernel_lvl1.c b/offload/test/jit/empty_kernel_lvl1.c index a0b8cd448837..a0b8cd448837 100644 --- a/openmp/libomptarget/test/jit/empty_kernel_lvl1.c +++ b/offload/test/jit/empty_kernel_lvl1.c diff --git a/openmp/libomptarget/test/jit/empty_kernel_lvl2.c b/offload/test/jit/empty_kernel_lvl2.c index 81a04f55ce43..81a04f55ce43 100644 --- a/openmp/libomptarget/test/jit/empty_kernel_lvl2.c +++ b/offload/test/jit/empty_kernel_lvl2.c diff --git a/openmp/libomptarget/test/jit/type_punning.c b/offload/test/jit/type_punning.c index 10e3d2cef718..10e3d2cef718 100644 --- a/openmp/libomptarget/test/jit/type_punning.c +++ b/offload/test/jit/type_punning.c diff --git a/openmp/libomptarget/test/libc/assert.c b/offload/test/libc/assert.c index 803a8207e10a..803a8207e10a 100644 --- a/openmp/libomptarget/test/libc/assert.c +++ b/offload/test/libc/assert.c diff --git a/openmp/libomptarget/test/libc/fwrite.c b/offload/test/libc/fwrite.c index 7ffb449fee66..7ffb449fee66 100644 --- a/openmp/libomptarget/test/libc/fwrite.c +++ b/offload/test/libc/fwrite.c diff --git a/openmp/libomptarget/test/libc/global_ctor_dtor.cpp b/offload/test/libc/global_ctor_dtor.cpp index a2d2a4833c36..a2d2a4833c36 100644 --- a/openmp/libomptarget/test/libc/global_ctor_dtor.cpp +++ b/offload/test/libc/global_ctor_dtor.cpp diff --git a/openmp/libomptarget/test/libc/host_call.c b/offload/test/libc/host_call.c index 11260cc28576..11260cc28576 100644 --- a/openmp/libomptarget/test/libc/host_call.c +++ b/offload/test/libc/host_call.c diff --git a/openmp/libomptarget/test/libc/malloc.c b/offload/test/libc/malloc.c index b587b618472e..b587b618472e 100644 --- a/openmp/libomptarget/test/libc/malloc.c +++ b/offload/test/libc/malloc.c diff --git a/openmp/libomptarget/test/libc/puts.c b/offload/test/libc/puts.c index 0e363f552961..0e363f552961 100644 --- a/openmp/libomptarget/test/libc/puts.c +++ b/offload/test/libc/puts.c diff --git a/openmp/libomptarget/test/lit.cfg b/offload/test/lit.cfg index 6c590603079c..6c590603079c 100644 --- a/openmp/libomptarget/test/lit.cfg +++ b/offload/test/lit.cfg diff --git a/openmp/libomptarget/test/lit.site.cfg.in b/offload/test/lit.site.cfg.in index 7c75aaa18fa7..7c75aaa18fa7 100644 --- a/openmp/libomptarget/test/lit.site.cfg.in +++ b/offload/test/lit.site.cfg.in diff --git a/openmp/libomptarget/test/mapping/alloc_fail.c b/offload/test/mapping/alloc_fail.c index c4ae70fc730c..c4ae70fc730c 100644 --- a/openmp/libomptarget/test/mapping/alloc_fail.c +++ b/offload/test/mapping/alloc_fail.c diff --git a/openmp/libomptarget/test/mapping/array_section_implicit_capture.c b/offload/test/mapping/array_section_implicit_capture.c index 210b7e51cbdf..210b7e51cbdf 100644 --- a/openmp/libomptarget/test/mapping/array_section_implicit_capture.c +++ b/offload/test/mapping/array_section_implicit_capture.c diff --git a/openmp/libomptarget/test/mapping/array_section_use_device_ptr.c b/offload/test/mapping/array_section_use_device_ptr.c index 86e2875c35c4..86e2875c35c4 100644 --- a/openmp/libomptarget/test/mapping/array_section_use_device_ptr.c +++ b/offload/test/mapping/array_section_use_device_ptr.c diff --git a/openmp/libomptarget/test/mapping/auto_zero_copy.cpp b/offload/test/mapping/auto_zero_copy.cpp index 46641200bb56..46641200bb56 100644 --- a/openmp/libomptarget/test/mapping/auto_zero_copy.cpp +++ b/offload/test/mapping/auto_zero_copy.cpp diff --git a/openmp/libomptarget/test/mapping/auto_zero_copy_apu.cpp b/offload/test/mapping/auto_zero_copy_apu.cpp index 48360e4fd7f7..48360e4fd7f7 100644 --- a/openmp/libomptarget/test/mapping/auto_zero_copy_apu.cpp +++ b/offload/test/mapping/auto_zero_copy_apu.cpp diff --git a/openmp/libomptarget/test/mapping/auto_zero_copy_globals.cpp b/offload/test/mapping/auto_zero_copy_globals.cpp index 55dfb2807ebc..55dfb2807ebc 100644 --- a/openmp/libomptarget/test/mapping/auto_zero_copy_globals.cpp +++ b/offload/test/mapping/auto_zero_copy_globals.cpp diff --git a/openmp/libomptarget/test/mapping/data_absent_at_exit.c b/offload/test/mapping/data_absent_at_exit.c index 5baaf933b283..5baaf933b283 100644 --- a/openmp/libomptarget/test/mapping/data_absent_at_exit.c +++ b/offload/test/mapping/data_absent_at_exit.c diff --git a/openmp/libomptarget/test/mapping/data_member_ref.cpp b/offload/test/mapping/data_member_ref.cpp index fdb8abcaa650..fdb8abcaa650 100644 --- a/openmp/libomptarget/test/mapping/data_member_ref.cpp +++ b/offload/test/mapping/data_member_ref.cpp diff --git a/openmp/libomptarget/test/mapping/declare_mapper_api.cpp b/offload/test/mapping/declare_mapper_api.cpp index 041c7f64be21..041c7f64be21 100644 --- a/openmp/libomptarget/test/mapping/declare_mapper_api.cpp +++ b/offload/test/mapping/declare_mapper_api.cpp diff --git a/openmp/libomptarget/test/mapping/declare_mapper_nested_default_mappers.cpp b/offload/test/mapping/declare_mapper_nested_default_mappers.cpp index c6c5657ae616..c6c5657ae616 100644 --- a/openmp/libomptarget/test/mapping/declare_mapper_nested_default_mappers.cpp +++ b/offload/test/mapping/declare_mapper_nested_default_mappers.cpp diff --git a/openmp/libomptarget/test/mapping/declare_mapper_nested_default_mappers_array.cpp b/offload/test/mapping/declare_mapper_nested_default_mappers_array.cpp index dddbd332eb74..dddbd332eb74 100644 --- a/openmp/libomptarget/test/mapping/declare_mapper_nested_default_mappers_array.cpp +++ b/offload/test/mapping/declare_mapper_nested_default_mappers_array.cpp diff --git a/openmp/libomptarget/test/mapping/declare_mapper_nested_default_mappers_array_subscript.cpp b/offload/test/mapping/declare_mapper_nested_default_mappers_array_subscript.cpp index bf510763526f..bf510763526f 100644 --- a/openmp/libomptarget/test/mapping/declare_mapper_nested_default_mappers_array_subscript.cpp +++ b/offload/test/mapping/declare_mapper_nested_default_mappers_array_subscript.cpp diff --git a/openmp/libomptarget/test/mapping/declare_mapper_nested_default_mappers_complex_structure.cpp b/offload/test/mapping/declare_mapper_nested_default_mappers_complex_structure.cpp index d6092213a8f9..d6092213a8f9 100644 --- a/openmp/libomptarget/test/mapping/declare_mapper_nested_default_mappers_complex_structure.cpp +++ b/offload/test/mapping/declare_mapper_nested_default_mappers_complex_structure.cpp diff --git a/openmp/libomptarget/test/mapping/declare_mapper_nested_default_mappers_ptr_subscript.cpp b/offload/test/mapping/declare_mapper_nested_default_mappers_ptr_subscript.cpp index 27ea747e34e2..27ea747e34e2 100644 --- a/openmp/libomptarget/test/mapping/declare_mapper_nested_default_mappers_ptr_subscript.cpp +++ b/offload/test/mapping/declare_mapper_nested_default_mappers_ptr_subscript.cpp diff --git a/openmp/libomptarget/test/mapping/declare_mapper_nested_default_mappers_var.cpp b/offload/test/mapping/declare_mapper_nested_default_mappers_var.cpp index b7f6ef5642e2..b7f6ef5642e2 100644 --- a/openmp/libomptarget/test/mapping/declare_mapper_nested_default_mappers_var.cpp +++ b/offload/test/mapping/declare_mapper_nested_default_mappers_var.cpp diff --git a/openmp/libomptarget/test/mapping/declare_mapper_nested_mappers.cpp b/offload/test/mapping/declare_mapper_nested_mappers.cpp index a9e3f05e0f5f..a9e3f05e0f5f 100644 --- a/openmp/libomptarget/test/mapping/declare_mapper_nested_mappers.cpp +++ b/offload/test/mapping/declare_mapper_nested_mappers.cpp diff --git a/openmp/libomptarget/test/mapping/declare_mapper_target.cpp b/offload/test/mapping/declare_mapper_target.cpp index 4d7237e94657..4d7237e94657 100644 --- a/openmp/libomptarget/test/mapping/declare_mapper_target.cpp +++ b/offload/test/mapping/declare_mapper_target.cpp diff --git a/openmp/libomptarget/test/mapping/declare_mapper_target_data.cpp b/offload/test/mapping/declare_mapper_target_data.cpp index 7f0984401400..7f0984401400 100644 --- a/openmp/libomptarget/test/mapping/declare_mapper_target_data.cpp +++ b/offload/test/mapping/declare_mapper_target_data.cpp diff --git a/openmp/libomptarget/test/mapping/declare_mapper_target_data_enter_exit.cpp b/offload/test/mapping/declare_mapper_target_data_enter_exit.cpp index f5fad8b8fe33..f5fad8b8fe33 100644 --- a/openmp/libomptarget/test/mapping/declare_mapper_target_data_enter_exit.cpp +++ b/offload/test/mapping/declare_mapper_target_data_enter_exit.cpp diff --git a/openmp/libomptarget/test/mapping/declare_mapper_target_update.cpp b/offload/test/mapping/declare_mapper_target_update.cpp index fe4597b76908..fe4597b76908 100644 --- a/openmp/libomptarget/test/mapping/declare_mapper_target_update.cpp +++ b/offload/test/mapping/declare_mapper_target_update.cpp diff --git a/openmp/libomptarget/test/mapping/delete_inf_refcount.c b/offload/test/mapping/delete_inf_refcount.c index f6016c19b0ff..f6016c19b0ff 100644 --- a/openmp/libomptarget/test/mapping/delete_inf_refcount.c +++ b/offload/test/mapping/delete_inf_refcount.c diff --git a/openmp/libomptarget/test/mapping/device_ptr_update.c b/offload/test/mapping/device_ptr_update.c index c6719d2285a2..c6719d2285a2 100644 --- a/openmp/libomptarget/test/mapping/device_ptr_update.c +++ b/offload/test/mapping/device_ptr_update.c diff --git a/openmp/libomptarget/test/mapping/firstprivate_aligned.cpp b/offload/test/mapping/firstprivate_aligned.cpp index ae6be0f0c07f..ae6be0f0c07f 100644 --- a/openmp/libomptarget/test/mapping/firstprivate_aligned.cpp +++ b/offload/test/mapping/firstprivate_aligned.cpp diff --git a/openmp/libomptarget/test/mapping/has_device_addr.cpp b/offload/test/mapping/has_device_addr.cpp index 63fa313cf278..63fa313cf278 100644 --- a/openmp/libomptarget/test/mapping/has_device_addr.cpp +++ b/offload/test/mapping/has_device_addr.cpp diff --git a/openmp/libomptarget/test/mapping/implicit_device_ptr.c b/offload/test/mapping/implicit_device_ptr.c index baa75d21686a..baa75d21686a 100644 --- a/openmp/libomptarget/test/mapping/implicit_device_ptr.c +++ b/offload/test/mapping/implicit_device_ptr.c diff --git a/openmp/libomptarget/test/mapping/is_device_ptr.cpp b/offload/test/mapping/is_device_ptr.cpp index 6433f822f9d5..6433f822f9d5 100644 --- a/openmp/libomptarget/test/mapping/is_device_ptr.cpp +++ b/offload/test/mapping/is_device_ptr.cpp diff --git a/openmp/libomptarget/test/mapping/lambda_by_value.cpp b/offload/test/mapping/lambda_by_value.cpp index 5516dedd72a9..5516dedd72a9 100644 --- a/openmp/libomptarget/test/mapping/lambda_by_value.cpp +++ b/offload/test/mapping/lambda_by_value.cpp diff --git a/openmp/libomptarget/test/mapping/lambda_mapping.cpp b/offload/test/mapping/lambda_mapping.cpp index 63b1719fbbc3..63b1719fbbc3 100644 --- a/openmp/libomptarget/test/mapping/lambda_mapping.cpp +++ b/offload/test/mapping/lambda_mapping.cpp diff --git a/openmp/libomptarget/test/mapping/low_alignment.c b/offload/test/mapping/low_alignment.c index 615a5a9c3111..615a5a9c3111 100644 --- a/openmp/libomptarget/test/mapping/low_alignment.c +++ b/offload/test/mapping/low_alignment.c diff --git a/openmp/libomptarget/test/mapping/map_back_race.cpp b/offload/test/mapping/map_back_race.cpp index 8a988d3be3b4..8a988d3be3b4 100644 --- a/openmp/libomptarget/test/mapping/map_back_race.cpp +++ b/offload/test/mapping/map_back_race.cpp diff --git a/openmp/libomptarget/test/mapping/ompx_hold/omp_target_disassociate_ptr.c b/offload/test/mapping/ompx_hold/omp_target_disassociate_ptr.c index 302bf4ffd0a5..302bf4ffd0a5 100644 --- a/openmp/libomptarget/test/mapping/ompx_hold/omp_target_disassociate_ptr.c +++ b/offload/test/mapping/ompx_hold/omp_target_disassociate_ptr.c diff --git a/openmp/libomptarget/test/mapping/ompx_hold/struct.c b/offload/test/mapping/ompx_hold/struct.c index da2b38028762..da2b38028762 100644 --- a/openmp/libomptarget/test/mapping/ompx_hold/struct.c +++ b/offload/test/mapping/ompx_hold/struct.c diff --git a/openmp/libomptarget/test/mapping/ompx_hold/target-data.c b/offload/test/mapping/ompx_hold/target-data.c index dd784591344b..dd784591344b 100644 --- a/openmp/libomptarget/test/mapping/ompx_hold/target-data.c +++ b/offload/test/mapping/ompx_hold/target-data.c diff --git a/openmp/libomptarget/test/mapping/ompx_hold/target.c b/offload/test/mapping/ompx_hold/target.c index 40fd14c6bf00..40fd14c6bf00 100644 --- a/openmp/libomptarget/test/mapping/ompx_hold/target.c +++ b/offload/test/mapping/ompx_hold/target.c diff --git a/openmp/libomptarget/test/mapping/padding_not_mapped.c b/offload/test/mapping/padding_not_mapped.c index 3ee70ab64048..3ee70ab64048 100644 --- a/openmp/libomptarget/test/mapping/padding_not_mapped.c +++ b/offload/test/mapping/padding_not_mapped.c diff --git a/openmp/libomptarget/test/mapping/power_of_two_alignment.c b/offload/test/mapping/power_of_two_alignment.c index faebe4f89fd9..faebe4f89fd9 100644 --- a/openmp/libomptarget/test/mapping/power_of_two_alignment.c +++ b/offload/test/mapping/power_of_two_alignment.c diff --git a/openmp/libomptarget/test/mapping/pr38704.c b/offload/test/mapping/pr38704.c index 72b4a171ccea..72b4a171ccea 100644 --- a/openmp/libomptarget/test/mapping/pr38704.c +++ b/offload/test/mapping/pr38704.c diff --git a/openmp/libomptarget/test/mapping/prelock.cpp b/offload/test/mapping/prelock.cpp index d019108dcad6..d019108dcad6 100644 --- a/openmp/libomptarget/test/mapping/prelock.cpp +++ b/offload/test/mapping/prelock.cpp diff --git a/openmp/libomptarget/test/mapping/present/target.c b/offload/test/mapping/present/target.c index 4344c42c808f..4344c42c808f 100644 --- a/openmp/libomptarget/test/mapping/present/target.c +++ b/offload/test/mapping/present/target.c diff --git a/openmp/libomptarget/test/mapping/present/target_array_extension.c b/offload/test/mapping/present/target_array_extension.c index 873b2b36170e..873b2b36170e 100644 --- a/openmp/libomptarget/test/mapping/present/target_array_extension.c +++ b/offload/test/mapping/present/target_array_extension.c diff --git a/openmp/libomptarget/test/mapping/present/target_data.c b/offload/test/mapping/present/target_data.c index f894283a0c99..f894283a0c99 100644 --- a/openmp/libomptarget/test/mapping/present/target_data.c +++ b/offload/test/mapping/present/target_data.c diff --git a/openmp/libomptarget/test/mapping/present/target_data_array_extension.c b/offload/test/mapping/present/target_data_array_extension.c index 794543a24604..794543a24604 100644 --- a/openmp/libomptarget/test/mapping/present/target_data_array_extension.c +++ b/offload/test/mapping/present/target_data_array_extension.c diff --git a/openmp/libomptarget/test/mapping/present/target_data_at_exit.c b/offload/test/mapping/present/target_data_at_exit.c index c1fbbae6f764..c1fbbae6f764 100644 --- a/openmp/libomptarget/test/mapping/present/target_data_at_exit.c +++ b/offload/test/mapping/present/target_data_at_exit.c diff --git a/openmp/libomptarget/test/mapping/present/target_enter_data.c b/offload/test/mapping/present/target_enter_data.c index 871a05290ed6..871a05290ed6 100644 --- a/openmp/libomptarget/test/mapping/present/target_enter_data.c +++ b/offload/test/mapping/present/target_enter_data.c diff --git a/openmp/libomptarget/test/mapping/present/target_exit_data_delete.c b/offload/test/mapping/present/target_exit_data_delete.c index 0fb812b2998f..0fb812b2998f 100644 --- a/openmp/libomptarget/test/mapping/present/target_exit_data_delete.c +++ b/offload/test/mapping/present/target_exit_data_delete.c diff --git a/openmp/libomptarget/test/mapping/present/target_exit_data_release.c b/offload/test/mapping/present/target_exit_data_release.c index 14be22faba62..14be22faba62 100644 --- a/openmp/libomptarget/test/mapping/present/target_exit_data_release.c +++ b/offload/test/mapping/present/target_exit_data_release.c diff --git a/openmp/libomptarget/test/mapping/present/target_update.c b/offload/test/mapping/present/target_update.c index 9f6783b6ef69..9f6783b6ef69 100644 --- a/openmp/libomptarget/test/mapping/present/target_update.c +++ b/offload/test/mapping/present/target_update.c diff --git a/openmp/libomptarget/test/mapping/present/target_update_array_extension.c b/offload/test/mapping/present/target_update_array_extension.c index 11ad4a8d4938..11ad4a8d4938 100644 --- a/openmp/libomptarget/test/mapping/present/target_update_array_extension.c +++ b/offload/test/mapping/present/target_update_array_extension.c diff --git a/openmp/libomptarget/test/mapping/present/unified_shared_memory.c b/offload/test/mapping/present/unified_shared_memory.c index ab6e3bd0e5fa..ab6e3bd0e5fa 100644 --- a/openmp/libomptarget/test/mapping/present/unified_shared_memory.c +++ b/offload/test/mapping/present/unified_shared_memory.c diff --git a/openmp/libomptarget/test/mapping/present/zero_length_array_section.c b/offload/test/mapping/present/zero_length_array_section.c index e903a268ef33..e903a268ef33 100644 --- a/openmp/libomptarget/test/mapping/present/zero_length_array_section.c +++ b/offload/test/mapping/present/zero_length_array_section.c diff --git a/openmp/libomptarget/test/mapping/present/zero_length_array_section_exit.c b/offload/test/mapping/present/zero_length_array_section_exit.c index 5a7360542ec3..5a7360542ec3 100644 --- a/openmp/libomptarget/test/mapping/present/zero_length_array_section_exit.c +++ b/offload/test/mapping/present/zero_length_array_section_exit.c diff --git a/openmp/libomptarget/test/mapping/private_mapping.c b/offload/test/mapping/private_mapping.c index 1329a66a5da3..1329a66a5da3 100644 --- a/openmp/libomptarget/test/mapping/private_mapping.c +++ b/offload/test/mapping/private_mapping.c diff --git a/openmp/libomptarget/test/mapping/ptr_and_obj_motion.c b/offload/test/mapping/ptr_and_obj_motion.c index 8fa2c9865b4a..8fa2c9865b4a 100644 --- a/openmp/libomptarget/test/mapping/ptr_and_obj_motion.c +++ b/offload/test/mapping/ptr_and_obj_motion.c diff --git a/openmp/libomptarget/test/mapping/reduction_implicit_map.cpp b/offload/test/mapping/reduction_implicit_map.cpp index 329aa43ddf3c..329aa43ddf3c 100644 --- a/openmp/libomptarget/test/mapping/reduction_implicit_map.cpp +++ b/offload/test/mapping/reduction_implicit_map.cpp diff --git a/openmp/libomptarget/test/mapping/target_data_array_extension_at_exit.c b/offload/test/mapping/target_data_array_extension_at_exit.c index e300c800b255..e300c800b255 100644 --- a/openmp/libomptarget/test/mapping/target_data_array_extension_at_exit.c +++ b/offload/test/mapping/target_data_array_extension_at_exit.c diff --git a/openmp/libomptarget/test/mapping/target_derefence_array_pointrs.cpp b/offload/test/mapping/target_derefence_array_pointrs.cpp index a6dd4069a8f5..a6dd4069a8f5 100644 --- a/openmp/libomptarget/test/mapping/target_derefence_array_pointrs.cpp +++ b/offload/test/mapping/target_derefence_array_pointrs.cpp diff --git a/openmp/libomptarget/test/mapping/target_has_device_addr.c b/offload/test/mapping/target_has_device_addr.c index e8bfff868c7e..e8bfff868c7e 100644 --- a/openmp/libomptarget/test/mapping/target_has_device_addr.c +++ b/offload/test/mapping/target_has_device_addr.c diff --git a/openmp/libomptarget/test/mapping/target_implicit_partial_map.c b/offload/test/mapping/target_implicit_partial_map.c index a8b2cc893df2..a8b2cc893df2 100644 --- a/openmp/libomptarget/test/mapping/target_implicit_partial_map.c +++ b/offload/test/mapping/target_implicit_partial_map.c diff --git a/openmp/libomptarget/test/mapping/target_map_for_member_data.cpp b/offload/test/mapping/target_map_for_member_data.cpp index fafff6b18a2b..fafff6b18a2b 100644 --- a/openmp/libomptarget/test/mapping/target_map_for_member_data.cpp +++ b/offload/test/mapping/target_map_for_member_data.cpp diff --git a/openmp/libomptarget/test/mapping/target_pointers_members_map.cpp b/offload/test/mapping/target_pointers_members_map.cpp index daf98199e2ca..daf98199e2ca 100644 --- a/openmp/libomptarget/test/mapping/target_pointers_members_map.cpp +++ b/offload/test/mapping/target_pointers_members_map.cpp diff --git a/openmp/libomptarget/test/mapping/target_update_array_extension.c b/offload/test/mapping/target_update_array_extension.c index ee926feb5c28..ee926feb5c28 100644 --- a/openmp/libomptarget/test/mapping/target_update_array_extension.c +++ b/offload/test/mapping/target_update_array_extension.c diff --git a/openmp/libomptarget/test/mapping/target_use_device_addr.c b/offload/test/mapping/target_use_device_addr.c index 5c2bb8a48f6e..5c2bb8a48f6e 100644 --- a/openmp/libomptarget/test/mapping/target_use_device_addr.c +++ b/offload/test/mapping/target_use_device_addr.c diff --git a/openmp/libomptarget/test/mapping/target_uses_allocator.c b/offload/test/mapping/target_uses_allocator.c index eb20e965c30b..eb20e965c30b 100755 --- a/openmp/libomptarget/test/mapping/target_uses_allocator.c +++ b/offload/test/mapping/target_uses_allocator.c diff --git a/openmp/libomptarget/test/mapping/target_wrong_use_device_addr.c b/offload/test/mapping/target_wrong_use_device_addr.c index 7a5babd69253..7a5babd69253 100644 --- a/openmp/libomptarget/test/mapping/target_wrong_use_device_addr.c +++ b/offload/test/mapping/target_wrong_use_device_addr.c diff --git a/openmp/libomptarget/test/offloading/assert.cpp b/offload/test/offloading/assert.cpp index 07716f457e08..07716f457e08 100644 --- a/openmp/libomptarget/test/offloading/assert.cpp +++ b/offload/test/offloading/assert.cpp diff --git a/openmp/libomptarget/test/offloading/atomic-compare-signedness.c b/offload/test/offloading/atomic-compare-signedness.c index d774b8595972..d774b8595972 100644 --- a/openmp/libomptarget/test/offloading/atomic-compare-signedness.c +++ b/offload/test/offloading/atomic-compare-signedness.c diff --git a/openmp/libomptarget/test/offloading/back2back_distribute.c b/offload/test/offloading/back2back_distribute.c index 63cabd0c6678..63cabd0c6678 100644 --- a/openmp/libomptarget/test/offloading/back2back_distribute.c +++ b/offload/test/offloading/back2back_distribute.c diff --git a/openmp/libomptarget/test/offloading/barrier_fence.c b/offload/test/offloading/barrier_fence.c index b9a8ca27965a..b9a8ca27965a 100644 --- a/openmp/libomptarget/test/offloading/barrier_fence.c +++ b/offload/test/offloading/barrier_fence.c diff --git a/openmp/libomptarget/test/offloading/bug47654.cpp b/offload/test/offloading/bug47654.cpp index eba7904e76ca..eba7904e76ca 100644 --- a/openmp/libomptarget/test/offloading/bug47654.cpp +++ b/offload/test/offloading/bug47654.cpp diff --git a/openmp/libomptarget/test/offloading/bug49021.cpp b/offload/test/offloading/bug49021.cpp index 37da8ce5d861..37da8ce5d861 100644 --- a/openmp/libomptarget/test/offloading/bug49021.cpp +++ b/offload/test/offloading/bug49021.cpp diff --git a/openmp/libomptarget/test/offloading/bug49334.cpp b/offload/test/offloading/bug49334.cpp index 1f19dab37881..1f19dab37881 100644 --- a/openmp/libomptarget/test/offloading/bug49334.cpp +++ b/offload/test/offloading/bug49334.cpp diff --git a/openmp/libomptarget/test/offloading/bug49779.cpp b/offload/test/offloading/bug49779.cpp index d036f95b3c35..d036f95b3c35 100644 --- a/openmp/libomptarget/test/offloading/bug49779.cpp +++ b/offload/test/offloading/bug49779.cpp diff --git a/openmp/libomptarget/test/offloading/bug50022.cpp b/offload/test/offloading/bug50022.cpp index d2ae02b7054b..d2ae02b7054b 100644 --- a/openmp/libomptarget/test/offloading/bug50022.cpp +++ b/offload/test/offloading/bug50022.cpp diff --git a/openmp/libomptarget/test/offloading/bug51781.c b/offload/test/offloading/bug51781.c index 35ecf55aa8c5..35ecf55aa8c5 100644 --- a/openmp/libomptarget/test/offloading/bug51781.c +++ b/offload/test/offloading/bug51781.c diff --git a/openmp/libomptarget/test/offloading/bug51982.c b/offload/test/offloading/bug51982.c index 91ce4a264e23..91ce4a264e23 100644 --- a/openmp/libomptarget/test/offloading/bug51982.c +++ b/offload/test/offloading/bug51982.c diff --git a/openmp/libomptarget/test/offloading/bug53727.cpp b/offload/test/offloading/bug53727.cpp index 8ce8b7e9b87c..8ce8b7e9b87c 100644 --- a/openmp/libomptarget/test/offloading/bug53727.cpp +++ b/offload/test/offloading/bug53727.cpp diff --git a/openmp/libomptarget/test/offloading/bug64959.c b/offload/test/offloading/bug64959.c index eddc55325ffe..eddc55325ffe 100644 --- a/openmp/libomptarget/test/offloading/bug64959.c +++ b/offload/test/offloading/bug64959.c diff --git a/openmp/libomptarget/test/offloading/bug64959_compile_only.c b/offload/test/offloading/bug64959_compile_only.c index 310942f25c00..310942f25c00 100644 --- a/openmp/libomptarget/test/offloading/bug64959_compile_only.c +++ b/offload/test/offloading/bug64959_compile_only.c diff --git a/openmp/libomptarget/test/offloading/bug74582.c b/offload/test/offloading/bug74582.c index c6a283bb9369..c6a283bb9369 100644 --- a/openmp/libomptarget/test/offloading/bug74582.c +++ b/offload/test/offloading/bug74582.c diff --git a/openmp/libomptarget/test/offloading/complex_reduction.cpp b/offload/test/offloading/complex_reduction.cpp index 3239f48743cc..3239f48743cc 100644 --- a/openmp/libomptarget/test/offloading/complex_reduction.cpp +++ b/offload/test/offloading/complex_reduction.cpp diff --git a/openmp/libomptarget/test/offloading/ctor_dtor.cpp b/offload/test/offloading/ctor_dtor.cpp index 7f08798dea10..7f08798dea10 100644 --- a/openmp/libomptarget/test/offloading/ctor_dtor.cpp +++ b/offload/test/offloading/ctor_dtor.cpp diff --git a/openmp/libomptarget/test/offloading/cuda_no_devices.c b/offload/test/offloading/cuda_no_devices.c index bbcbf6b9f07e..bbcbf6b9f07e 100644 --- a/openmp/libomptarget/test/offloading/cuda_no_devices.c +++ b/offload/test/offloading/cuda_no_devices.c diff --git a/openmp/libomptarget/test/offloading/d2d_memcpy.c b/offload/test/offloading/d2d_memcpy.c index f26d0c7c5800..f26d0c7c5800 100644 --- a/openmp/libomptarget/test/offloading/d2d_memcpy.c +++ b/offload/test/offloading/d2d_memcpy.c diff --git a/openmp/libomptarget/test/offloading/d2d_memcpy_sync.c b/offload/test/offloading/d2d_memcpy_sync.c index 6b9b765a74d8..6b9b765a74d8 100644 --- a/openmp/libomptarget/test/offloading/d2d_memcpy_sync.c +++ b/offload/test/offloading/d2d_memcpy_sync.c diff --git a/openmp/libomptarget/test/offloading/default_thread_limit.c b/offload/test/offloading/default_thread_limit.c index 4da02bbb152e..4da02bbb152e 100644 --- a/openmp/libomptarget/test/offloading/default_thread_limit.c +++ b/offload/test/offloading/default_thread_limit.c diff --git a/openmp/libomptarget/test/offloading/dynamic_module.c b/offload/test/offloading/dynamic_module.c index f1e9862002a1..f1e9862002a1 100644 --- a/openmp/libomptarget/test/offloading/dynamic_module.c +++ b/offload/test/offloading/dynamic_module.c diff --git a/openmp/libomptarget/test/offloading/dynamic_module_load.c b/offload/test/offloading/dynamic_module_load.c index 5393f33e84f8..5393f33e84f8 100644 --- a/openmp/libomptarget/test/offloading/dynamic_module_load.c +++ b/offload/test/offloading/dynamic_module_load.c diff --git a/openmp/libomptarget/test/offloading/extern.c b/offload/test/offloading/extern.c index 35cf905ee0cd..35cf905ee0cd 100644 --- a/openmp/libomptarget/test/offloading/extern.c +++ b/offload/test/offloading/extern.c diff --git a/openmp/libomptarget/test/offloading/force-usm.cpp b/offload/test/offloading/force-usm.cpp index a043ba47f54a..a043ba47f54a 100644 --- a/openmp/libomptarget/test/offloading/force-usm.cpp +++ b/offload/test/offloading/force-usm.cpp diff --git a/openmp/libomptarget/test/offloading/fortran/basic-target-parallel-do.f90 b/offload/test/offloading/fortran/basic-target-parallel-do.f90 index 0027f15bdb42..0027f15bdb42 100644 --- a/openmp/libomptarget/test/offloading/fortran/basic-target-parallel-do.f90 +++ b/offload/test/offloading/fortran/basic-target-parallel-do.f90 diff --git a/openmp/libomptarget/test/offloading/fortran/basic-target-parallel-region.f90 b/offload/test/offloading/fortran/basic-target-parallel-region.f90 index 54341f7c40ff..54341f7c40ff 100644 --- a/openmp/libomptarget/test/offloading/fortran/basic-target-parallel-region.f90 +++ b/offload/test/offloading/fortran/basic-target-parallel-region.f90 diff --git a/openmp/libomptarget/test/offloading/fortran/basic-target-region-1D-array-section.f90 b/offload/test/offloading/fortran/basic-target-region-1D-array-section.f90 index 476b77e4a549..476b77e4a549 100644 --- a/openmp/libomptarget/test/offloading/fortran/basic-target-region-1D-array-section.f90 +++ b/offload/test/offloading/fortran/basic-target-region-1D-array-section.f90 diff --git a/openmp/libomptarget/test/offloading/fortran/basic-target-region-3D-array-section.f90 b/offload/test/offloading/fortran/basic-target-region-3D-array-section.f90 index 229798b57477..229798b57477 100644 --- a/openmp/libomptarget/test/offloading/fortran/basic-target-region-3D-array-section.f90 +++ b/offload/test/offloading/fortran/basic-target-region-3D-array-section.f90 diff --git a/openmp/libomptarget/test/offloading/fortran/basic-target-region-3D-array.f90 b/offload/test/offloading/fortran/basic-target-region-3D-array.f90 index ea3048185d52..ea3048185d52 100644 --- a/openmp/libomptarget/test/offloading/fortran/basic-target-region-3D-array.f90 +++ b/offload/test/offloading/fortran/basic-target-region-3D-array.f90 diff --git a/openmp/libomptarget/test/offloading/fortran/basic_array.c b/offload/test/offloading/fortran/basic_array.c index 4daf1d4b0a99..4daf1d4b0a99 100644 --- a/openmp/libomptarget/test/offloading/fortran/basic_array.c +++ b/offload/test/offloading/fortran/basic_array.c diff --git a/openmp/libomptarget/test/offloading/fortran/basic_target_region.f90 b/offload/test/offloading/fortran/basic_target_region.f90 index d856d42bb8cd..d856d42bb8cd 100644 --- a/openmp/libomptarget/test/offloading/fortran/basic_target_region.f90 +++ b/offload/test/offloading/fortran/basic_target_region.f90 diff --git a/openmp/libomptarget/test/offloading/fortran/constant-arr-index.f90 b/offload/test/offloading/fortran/constant-arr-index.f90 index 669630555c31..669630555c31 100644 --- a/openmp/libomptarget/test/offloading/fortran/constant-arr-index.f90 +++ b/offload/test/offloading/fortran/constant-arr-index.f90 diff --git a/openmp/libomptarget/test/offloading/fortran/declare-target-vars-in-target-region.f90 b/offload/test/offloading/fortran/declare-target-vars-in-target-region.f90 index f524deac3bcc..f524deac3bcc 100644 --- a/openmp/libomptarget/test/offloading/fortran/declare-target-vars-in-target-region.f90 +++ b/offload/test/offloading/fortran/declare-target-vars-in-target-region.f90 diff --git a/openmp/libomptarget/test/offloading/fortran/double-target-call-with-declare-target.f90 b/offload/test/offloading/fortran/double-target-call-with-declare-target.f90 index 56c96727d475..56c96727d475 100644 --- a/openmp/libomptarget/test/offloading/fortran/double-target-call-with-declare-target.f90 +++ b/offload/test/offloading/fortran/double-target-call-with-declare-target.f90 diff --git a/openmp/libomptarget/test/offloading/fortran/target-map-allocatable-array-section-1d-bounds.f90 b/offload/test/offloading/fortran/target-map-allocatable-array-section-1d-bounds.f90 index 99dbe99d4049..99dbe99d4049 100644 --- a/openmp/libomptarget/test/offloading/fortran/target-map-allocatable-array-section-1d-bounds.f90 +++ b/offload/test/offloading/fortran/target-map-allocatable-array-section-1d-bounds.f90 diff --git a/openmp/libomptarget/test/offloading/fortran/target-map-allocatable-array-section-3d-bounds.f90 b/offload/test/offloading/fortran/target-map-allocatable-array-section-3d-bounds.f90 index 0786e0fd744e..0786e0fd744e 100644 --- a/openmp/libomptarget/test/offloading/fortran/target-map-allocatable-array-section-3d-bounds.f90 +++ b/offload/test/offloading/fortran/target-map-allocatable-array-section-3d-bounds.f90 diff --git a/openmp/libomptarget/test/offloading/fortran/target-map-allocatable-map-scopes.f90 b/offload/test/offloading/fortran/target-map-allocatable-map-scopes.f90 index bb47d3de96d2..bb47d3de96d2 100644 --- a/openmp/libomptarget/test/offloading/fortran/target-map-allocatable-map-scopes.f90 +++ b/offload/test/offloading/fortran/target-map-allocatable-map-scopes.f90 diff --git a/openmp/libomptarget/test/offloading/fortran/target-map-enter-exit-allocatables.f90 b/offload/test/offloading/fortran/target-map-enter-exit-allocatables.f90 index 865be95ba968..865be95ba968 100644 --- a/openmp/libomptarget/test/offloading/fortran/target-map-enter-exit-allocatables.f90 +++ b/offload/test/offloading/fortran/target-map-enter-exit-allocatables.f90 diff --git a/openmp/libomptarget/test/offloading/fortran/target-map-enter-exit-array-2.f90 b/offload/test/offloading/fortran/target-map-enter-exit-array-2.f90 index 489c2532a762..489c2532a762 100644 --- a/openmp/libomptarget/test/offloading/fortran/target-map-enter-exit-array-2.f90 +++ b/offload/test/offloading/fortran/target-map-enter-exit-array-2.f90 diff --git a/openmp/libomptarget/test/offloading/fortran/target-map-enter-exit-array-bounds.f90 b/offload/test/offloading/fortran/target-map-enter-exit-array-bounds.f90 index 3c8c3507ed72..3c8c3507ed72 100644 --- a/openmp/libomptarget/test/offloading/fortran/target-map-enter-exit-array-bounds.f90 +++ b/offload/test/offloading/fortran/target-map-enter-exit-array-bounds.f90 diff --git a/openmp/libomptarget/test/offloading/fortran/target-map-enter-exit-array.f90 b/offload/test/offloading/fortran/target-map-enter-exit-array.f90 index 4a9fb6ee177f..4a9fb6ee177f 100644 --- a/openmp/libomptarget/test/offloading/fortran/target-map-enter-exit-array.f90 +++ b/offload/test/offloading/fortran/target-map-enter-exit-array.f90 diff --git a/openmp/libomptarget/test/offloading/fortran/target-map-enter-exit-scalar.f90 b/offload/test/offloading/fortran/target-map-enter-exit-scalar.f90 index 29a0b5ee3e62..29a0b5ee3e62 100644 --- a/openmp/libomptarget/test/offloading/fortran/target-map-enter-exit-scalar.f90 +++ b/offload/test/offloading/fortran/target-map-enter-exit-scalar.f90 diff --git a/openmp/libomptarget/test/offloading/fortran/target-map-pointer-scopes-enter-exit.f90 b/offload/test/offloading/fortran/target-map-pointer-scopes-enter-exit.f90 index dee75af06927..dee75af06927 100644 --- a/openmp/libomptarget/test/offloading/fortran/target-map-pointer-scopes-enter-exit.f90 +++ b/offload/test/offloading/fortran/target-map-pointer-scopes-enter-exit.f90 diff --git a/openmp/libomptarget/test/offloading/fortran/target-map-pointer-target-array-section-3d-bounds.f90 b/offload/test/offloading/fortran/target-map-pointer-target-array-section-3d-bounds.f90 index ff2298cf5dbc..ff2298cf5dbc 100644 --- a/openmp/libomptarget/test/offloading/fortran/target-map-pointer-target-array-section-3d-bounds.f90 +++ b/offload/test/offloading/fortran/target-map-pointer-target-array-section-3d-bounds.f90 diff --git a/openmp/libomptarget/test/offloading/fortran/target-map-pointer-target-scopes.f90 b/offload/test/offloading/fortran/target-map-pointer-target-scopes.f90 index d9a7000719f0..d9a7000719f0 100644 --- a/openmp/libomptarget/test/offloading/fortran/target-map-pointer-target-scopes.f90 +++ b/offload/test/offloading/fortran/target-map-pointer-target-scopes.f90 diff --git a/openmp/libomptarget/test/offloading/fortran/target-nested-target-data.f90 b/offload/test/offloading/fortran/target-nested-target-data.f90 index a694f2464546..a694f2464546 100644 --- a/openmp/libomptarget/test/offloading/fortran/target-nested-target-data.f90 +++ b/offload/test/offloading/fortran/target-nested-target-data.f90 diff --git a/openmp/libomptarget/test/offloading/fortran/target-parallel-do-collapse.f90 b/offload/test/offloading/fortran/target-parallel-do-collapse.f90 index e44d6a50969b..e44d6a50969b 100644 --- a/openmp/libomptarget/test/offloading/fortran/target-parallel-do-collapse.f90 +++ b/offload/test/offloading/fortran/target-parallel-do-collapse.f90 diff --git a/openmp/libomptarget/test/offloading/fortran/target-region-implicit-array.f90 b/offload/test/offloading/fortran/target-region-implicit-array.f90 index ada6ef2ad730..ada6ef2ad730 100644 --- a/openmp/libomptarget/test/offloading/fortran/target-region-implicit-array.f90 +++ b/offload/test/offloading/fortran/target-region-implicit-array.f90 diff --git a/openmp/libomptarget/test/offloading/fortran/target_map_common_block.f90 b/offload/test/offloading/fortran/target_map_common_block.f90 index 402de2782b25..402de2782b25 100644 --- a/openmp/libomptarget/test/offloading/fortran/target_map_common_block.f90 +++ b/offload/test/offloading/fortran/target_map_common_block.f90 diff --git a/openmp/libomptarget/test/offloading/fortran/target_map_common_block1.f90 b/offload/test/offloading/fortran/target_map_common_block1.f90 index 6aaa66d6449b..6aaa66d6449b 100644 --- a/openmp/libomptarget/test/offloading/fortran/target_map_common_block1.f90 +++ b/offload/test/offloading/fortran/target_map_common_block1.f90 diff --git a/openmp/libomptarget/test/offloading/fortran/target_map_common_block2.f90 b/offload/test/offloading/fortran/target_map_common_block2.f90 index 24e3e2b7ab11..24e3e2b7ab11 100644 --- a/openmp/libomptarget/test/offloading/fortran/target_map_common_block2.f90 +++ b/offload/test/offloading/fortran/target_map_common_block2.f90 diff --git a/openmp/libomptarget/test/offloading/fortran/target_update.f90 b/offload/test/offloading/fortran/target_update.f90 index fb35c5a36ab0..fb35c5a36ab0 100644 --- a/openmp/libomptarget/test/offloading/fortran/target_update.f90 +++ b/offload/test/offloading/fortran/target_update.f90 diff --git a/openmp/libomptarget/test/offloading/generic_multiple_parallel_regions.c b/offload/test/offloading/generic_multiple_parallel_regions.c index 33fe2ca127b6..33fe2ca127b6 100644 --- a/openmp/libomptarget/test/offloading/generic_multiple_parallel_regions.c +++ b/offload/test/offloading/generic_multiple_parallel_regions.c diff --git a/openmp/libomptarget/test/offloading/global_constructor.cpp b/offload/test/offloading/global_constructor.cpp index eb68c5f78358..eb68c5f78358 100644 --- a/openmp/libomptarget/test/offloading/global_constructor.cpp +++ b/offload/test/offloading/global_constructor.cpp diff --git a/openmp/libomptarget/test/offloading/host_as_target.c b/offload/test/offloading/host_as_target.c index 8ab991b72338..8ab991b72338 100644 --- a/openmp/libomptarget/test/offloading/host_as_target.c +++ b/offload/test/offloading/host_as_target.c diff --git a/openmp/libomptarget/test/offloading/indirect_fp_mapping.c b/offload/test/offloading/indirect_fp_mapping.c index a400349c4114..a400349c4114 100644 --- a/openmp/libomptarget/test/offloading/indirect_fp_mapping.c +++ b/offload/test/offloading/indirect_fp_mapping.c diff --git a/openmp/libomptarget/test/offloading/info.c b/offload/test/offloading/info.c index da8e4c44c5ac..da8e4c44c5ac 100644 --- a/openmp/libomptarget/test/offloading/info.c +++ b/offload/test/offloading/info.c diff --git a/openmp/libomptarget/test/offloading/interop.c b/offload/test/offloading/interop.c index 26287e3ec533..26287e3ec533 100644 --- a/openmp/libomptarget/test/offloading/interop.c +++ b/offload/test/offloading/interop.c diff --git a/openmp/libomptarget/test/offloading/lone_target_exit_data.c b/offload/test/offloading/lone_target_exit_data.c index 73a5ffa2a1c2..73a5ffa2a1c2 100644 --- a/openmp/libomptarget/test/offloading/lone_target_exit_data.c +++ b/offload/test/offloading/lone_target_exit_data.c diff --git a/openmp/libomptarget/test/offloading/looptripcnt.c b/offload/test/offloading/looptripcnt.c index d1a095038b75..d1a095038b75 100644 --- a/openmp/libomptarget/test/offloading/looptripcnt.c +++ b/offload/test/offloading/looptripcnt.c diff --git a/openmp/libomptarget/test/offloading/malloc.c b/offload/test/offloading/malloc.c index 7b98e1f1110e..7b98e1f1110e 100644 --- a/openmp/libomptarget/test/offloading/malloc.c +++ b/offload/test/offloading/malloc.c diff --git a/openmp/libomptarget/test/offloading/malloc_parallel.c b/offload/test/offloading/malloc_parallel.c index 076a7ba397a3..076a7ba397a3 100644 --- a/openmp/libomptarget/test/offloading/malloc_parallel.c +++ b/offload/test/offloading/malloc_parallel.c diff --git a/openmp/libomptarget/test/offloading/mandatory_but_no_devices.c b/offload/test/offloading/mandatory_but_no_devices.c index ecdee72acad0..ecdee72acad0 100644 --- a/openmp/libomptarget/test/offloading/mandatory_but_no_devices.c +++ b/offload/test/offloading/mandatory_but_no_devices.c diff --git a/openmp/libomptarget/test/offloading/memory_manager.cpp b/offload/test/offloading/memory_manager.cpp index ac437c53521c..ac437c53521c 100644 --- a/openmp/libomptarget/test/offloading/memory_manager.cpp +++ b/offload/test/offloading/memory_manager.cpp diff --git a/openmp/libomptarget/test/offloading/multiple_reductions_simple.c b/offload/test/offloading/multiple_reductions_simple.c index 54e55f97a237..54e55f97a237 100644 --- a/openmp/libomptarget/test/offloading/multiple_reductions_simple.c +++ b/offload/test/offloading/multiple_reductions_simple.c diff --git a/openmp/libomptarget/test/offloading/non_contiguous_update.cpp b/offload/test/offloading/non_contiguous_update.cpp index 609f0f967fb1..609f0f967fb1 100644 --- a/openmp/libomptarget/test/offloading/non_contiguous_update.cpp +++ b/offload/test/offloading/non_contiguous_update.cpp diff --git a/openmp/libomptarget/test/offloading/offloading_success.c b/offload/test/offloading/offloading_success.c index f849cb4cfba7..f849cb4cfba7 100644 --- a/openmp/libomptarget/test/offloading/offloading_success.c +++ b/offload/test/offloading/offloading_success.c diff --git a/openmp/libomptarget/test/offloading/offloading_success.cpp b/offload/test/offloading/offloading_success.cpp index d3103b8666ab..d3103b8666ab 100644 --- a/openmp/libomptarget/test/offloading/offloading_success.cpp +++ b/offload/test/offloading/offloading_success.cpp diff --git a/openmp/libomptarget/test/offloading/ompx_bare.c b/offload/test/offloading/ompx_bare.c index 3dabdcd15e0d..3dabdcd15e0d 100644 --- a/openmp/libomptarget/test/offloading/ompx_bare.c +++ b/offload/test/offloading/ompx_bare.c diff --git a/openmp/libomptarget/test/offloading/ompx_coords.c b/offload/test/offloading/ompx_coords.c index 5e4e14b4c6da..5e4e14b4c6da 100644 --- a/openmp/libomptarget/test/offloading/ompx_coords.c +++ b/offload/test/offloading/ompx_coords.c diff --git a/openmp/libomptarget/test/offloading/ompx_saxpy_mixed.c b/offload/test/offloading/ompx_saxpy_mixed.c index f479be8a484f..f479be8a484f 100644 --- a/openmp/libomptarget/test/offloading/ompx_saxpy_mixed.c +++ b/offload/test/offloading/ompx_saxpy_mixed.c diff --git a/openmp/libomptarget/test/offloading/parallel_offloading_map.cpp b/offload/test/offloading/parallel_offloading_map.cpp index 55cdb4583f9e..55cdb4583f9e 100644 --- a/openmp/libomptarget/test/offloading/parallel_offloading_map.cpp +++ b/offload/test/offloading/parallel_offloading_map.cpp diff --git a/openmp/libomptarget/test/offloading/parallel_target_teams_reduction.cpp b/offload/test/offloading/parallel_target_teams_reduction.cpp index 10e1b33f1ce4..10e1b33f1ce4 100644 --- a/openmp/libomptarget/test/offloading/parallel_target_teams_reduction.cpp +++ b/offload/test/offloading/parallel_target_teams_reduction.cpp diff --git a/openmp/libomptarget/test/offloading/parallel_target_teams_reduction_max.cpp b/offload/test/offloading/parallel_target_teams_reduction_max.cpp index 8f06802aa772..8f06802aa772 100644 --- a/openmp/libomptarget/test/offloading/parallel_target_teams_reduction_max.cpp +++ b/offload/test/offloading/parallel_target_teams_reduction_max.cpp diff --git a/openmp/libomptarget/test/offloading/parallel_target_teams_reduction_min.cpp b/offload/test/offloading/parallel_target_teams_reduction_min.cpp index 66c972f76044..66c972f76044 100644 --- a/openmp/libomptarget/test/offloading/parallel_target_teams_reduction_min.cpp +++ b/offload/test/offloading/parallel_target_teams_reduction_min.cpp diff --git a/openmp/libomptarget/test/offloading/requires.c b/offload/test/offloading/requires.c index 2a129a7ae86d..2a129a7ae86d 100644 --- a/openmp/libomptarget/test/offloading/requires.c +++ b/offload/test/offloading/requires.c diff --git a/openmp/libomptarget/test/offloading/runtime_init.c b/offload/test/offloading/runtime_init.c index 96fd50f51da1..96fd50f51da1 100644 --- a/openmp/libomptarget/test/offloading/runtime_init.c +++ b/offload/test/offloading/runtime_init.c diff --git a/openmp/libomptarget/test/offloading/shared_lib_fp_mapping.c b/offload/test/offloading/shared_lib_fp_mapping.c index ffb4bc90d4e4..ffb4bc90d4e4 100644 --- a/openmp/libomptarget/test/offloading/shared_lib_fp_mapping.c +++ b/offload/test/offloading/shared_lib_fp_mapping.c diff --git a/openmp/libomptarget/test/offloading/small_trip_count.c b/offload/test/offloading/small_trip_count.c index 65f094f15746..65f094f15746 100644 --- a/openmp/libomptarget/test/offloading/small_trip_count.c +++ b/offload/test/offloading/small_trip_count.c diff --git a/openmp/libomptarget/test/offloading/small_trip_count_thread_limit.cpp b/offload/test/offloading/small_trip_count_thread_limit.cpp index b7ae52a62c83..b7ae52a62c83 100644 --- a/openmp/libomptarget/test/offloading/small_trip_count_thread_limit.cpp +++ b/offload/test/offloading/small_trip_count_thread_limit.cpp diff --git a/openmp/libomptarget/test/offloading/spmdization.c b/offload/test/offloading/spmdization.c index 77913bec8342..77913bec8342 100644 --- a/openmp/libomptarget/test/offloading/spmdization.c +++ b/offload/test/offloading/spmdization.c diff --git a/openmp/libomptarget/test/offloading/static_linking.c b/offload/test/offloading/static_linking.c index 7be95a10ffcd..7be95a10ffcd 100644 --- a/openmp/libomptarget/test/offloading/static_linking.c +++ b/offload/test/offloading/static_linking.c diff --git a/openmp/libomptarget/test/offloading/std_complex_arithmetic.cpp b/offload/test/offloading/std_complex_arithmetic.cpp index 641b849bbc3e..641b849bbc3e 100644 --- a/openmp/libomptarget/test/offloading/std_complex_arithmetic.cpp +++ b/offload/test/offloading/std_complex_arithmetic.cpp diff --git a/openmp/libomptarget/test/offloading/struct_mapping_with_pointers.cpp b/offload/test/offloading/struct_mapping_with_pointers.cpp index f0fde50889da..f0fde50889da 100644 --- a/openmp/libomptarget/test/offloading/struct_mapping_with_pointers.cpp +++ b/offload/test/offloading/struct_mapping_with_pointers.cpp diff --git a/openmp/libomptarget/test/offloading/target-teams-atomic.c b/offload/test/offloading/target-teams-atomic.c index 97563422ced8..97563422ced8 100644 --- a/openmp/libomptarget/test/offloading/target-teams-atomic.c +++ b/offload/test/offloading/target-teams-atomic.c diff --git a/openmp/libomptarget/test/offloading/target-tile.c b/offload/test/offloading/target-tile.c index 8460b43b6f9c..8460b43b6f9c 100644 --- a/openmp/libomptarget/test/offloading/target-tile.c +++ b/offload/test/offloading/target-tile.c diff --git a/openmp/libomptarget/test/offloading/target_constexpr_mapping.cpp b/offload/test/offloading/target_constexpr_mapping.cpp index 14cf92a7cc26..14cf92a7cc26 100644 --- a/openmp/libomptarget/test/offloading/target_constexpr_mapping.cpp +++ b/offload/test/offloading/target_constexpr_mapping.cpp diff --git a/openmp/libomptarget/test/offloading/target_critical_region.cpp b/offload/test/offloading/target_critical_region.cpp index 495632bf76e1..495632bf76e1 100644 --- a/openmp/libomptarget/test/offloading/target_critical_region.cpp +++ b/offload/test/offloading/target_critical_region.cpp diff --git a/openmp/libomptarget/test/offloading/target_depend_nowait.cpp b/offload/test/offloading/target_depend_nowait.cpp index b0d5408770bc..b0d5408770bc 100644 --- a/openmp/libomptarget/test/offloading/target_depend_nowait.cpp +++ b/offload/test/offloading/target_depend_nowait.cpp diff --git a/openmp/libomptarget/test/offloading/target_map_for_member_data.cpp b/offload/test/offloading/target_map_for_member_data.cpp index 7fba71be6e66..7fba71be6e66 100644 --- a/openmp/libomptarget/test/offloading/target_map_for_member_data.cpp +++ b/offload/test/offloading/target_map_for_member_data.cpp diff --git a/openmp/libomptarget/test/offloading/target_nowait_target.cpp b/offload/test/offloading/target_nowait_target.cpp index 7c20e76ce138..7c20e76ce138 100644 --- a/openmp/libomptarget/test/offloading/target_nowait_target.cpp +++ b/offload/test/offloading/target_nowait_target.cpp diff --git a/openmp/libomptarget/test/offloading/task_in_reduction_target.c b/offload/test/offloading/task_in_reduction_target.c index b546d73d544a..b546d73d544a 100644 --- a/openmp/libomptarget/test/offloading/task_in_reduction_target.c +++ b/offload/test/offloading/task_in_reduction_target.c diff --git a/openmp/libomptarget/test/offloading/taskloop_offload_nowait.cpp b/offload/test/offloading/taskloop_offload_nowait.cpp index 7069580bff4f..7069580bff4f 100644 --- a/openmp/libomptarget/test/offloading/taskloop_offload_nowait.cpp +++ b/offload/test/offloading/taskloop_offload_nowait.cpp diff --git a/openmp/libomptarget/test/offloading/test_libc.cpp b/offload/test/offloading/test_libc.cpp index 859c2da97de0..859c2da97de0 100644 --- a/openmp/libomptarget/test/offloading/test_libc.cpp +++ b/offload/test/offloading/test_libc.cpp diff --git a/openmp/libomptarget/test/offloading/thread_limit.c b/offload/test/offloading/thread_limit.c index a8cc51b651dc..a8cc51b651dc 100644 --- a/openmp/libomptarget/test/offloading/thread_limit.c +++ b/offload/test/offloading/thread_limit.c diff --git a/openmp/libomptarget/test/offloading/thread_state_1.c b/offload/test/offloading/thread_state_1.c index 908b71638097..908b71638097 100644 --- a/openmp/libomptarget/test/offloading/thread_state_1.c +++ b/offload/test/offloading/thread_state_1.c diff --git a/openmp/libomptarget/test/offloading/thread_state_2.c b/offload/test/offloading/thread_state_2.c index 38bc86b7ad0c..38bc86b7ad0c 100644 --- a/openmp/libomptarget/test/offloading/thread_state_2.c +++ b/offload/test/offloading/thread_state_2.c diff --git a/openmp/libomptarget/test/offloading/weak.c b/offload/test/offloading/weak.c index ca81db958356..ca81db958356 100644 --- a/openmp/libomptarget/test/offloading/weak.c +++ b/offload/test/offloading/weak.c diff --git a/openmp/libomptarget/test/offloading/workshare_chunk.c b/offload/test/offloading/workshare_chunk.c index a8c60c009779..a8c60c009779 100644 --- a/openmp/libomptarget/test/offloading/workshare_chunk.c +++ b/offload/test/offloading/workshare_chunk.c diff --git a/openmp/libomptarget/test/offloading/wtime.c b/offload/test/offloading/wtime.c index 8a6e206061e2..8a6e206061e2 100644 --- a/openmp/libomptarget/test/offloading/wtime.c +++ b/offload/test/offloading/wtime.c diff --git a/openmp/libomptarget/test/ompt/callbacks.h b/offload/test/ompt/callbacks.h index 95437d9cdcfb..95437d9cdcfb 100644 --- a/openmp/libomptarget/test/ompt/callbacks.h +++ b/offload/test/ompt/callbacks.h diff --git a/openmp/libomptarget/test/ompt/register_both.h b/offload/test/ompt/register_both.h index afdf094bb4ef..afdf094bb4ef 100644 --- a/openmp/libomptarget/test/ompt/register_both.h +++ b/offload/test/ompt/register_both.h diff --git a/openmp/libomptarget/test/ompt/register_emi.h b/offload/test/ompt/register_emi.h index 2c70c16424bc..2c70c16424bc 100644 --- a/openmp/libomptarget/test/ompt/register_emi.h +++ b/offload/test/ompt/register_emi.h diff --git a/openmp/libomptarget/test/ompt/register_emi_map.h b/offload/test/ompt/register_emi_map.h index ccf65914cff1..ccf65914cff1 100644 --- a/openmp/libomptarget/test/ompt/register_emi_map.h +++ b/offload/test/ompt/register_emi_map.h diff --git a/openmp/libomptarget/test/ompt/register_no_device_init.h b/offload/test/ompt/register_no_device_init.h index 874e3d399fad..874e3d399fad 100644 --- a/openmp/libomptarget/test/ompt/register_no_device_init.h +++ b/offload/test/ompt/register_no_device_init.h diff --git a/openmp/libomptarget/test/ompt/register_non_emi.h b/offload/test/ompt/register_non_emi.h index 66c8aaaafd19..66c8aaaafd19 100644 --- a/openmp/libomptarget/test/ompt/register_non_emi.h +++ b/offload/test/ompt/register_non_emi.h diff --git a/openmp/libomptarget/test/ompt/register_non_emi_map.h b/offload/test/ompt/register_non_emi_map.h index b5c663410d55..b5c663410d55 100644 --- a/openmp/libomptarget/test/ompt/register_non_emi_map.h +++ b/offload/test/ompt/register_non_emi_map.h diff --git a/openmp/libomptarget/test/ompt/register_wrong_return.h b/offload/test/ompt/register_wrong_return.h index 7de3feef7dc9..7de3feef7dc9 100644 --- a/openmp/libomptarget/test/ompt/register_wrong_return.h +++ b/offload/test/ompt/register_wrong_return.h diff --git a/openmp/libomptarget/test/ompt/target_memcpy.c b/offload/test/ompt/target_memcpy.c index 3224c5ac4c91..3224c5ac4c91 100644 --- a/openmp/libomptarget/test/ompt/target_memcpy.c +++ b/offload/test/ompt/target_memcpy.c diff --git a/openmp/libomptarget/test/ompt/target_memcpy_emi.c b/offload/test/ompt/target_memcpy_emi.c index fd7da13cb05d..fd7da13cb05d 100644 --- a/openmp/libomptarget/test/ompt/target_memcpy_emi.c +++ b/offload/test/ompt/target_memcpy_emi.c diff --git a/openmp/libomptarget/test/ompt/veccopy.c b/offload/test/ompt/veccopy.c index bc70f5a0b5b6..bc70f5a0b5b6 100644 --- a/openmp/libomptarget/test/ompt/veccopy.c +++ b/offload/test/ompt/veccopy.c diff --git a/openmp/libomptarget/test/ompt/veccopy_data.c b/offload/test/ompt/veccopy_data.c index 264b484b881f..264b484b881f 100644 --- a/openmp/libomptarget/test/ompt/veccopy_data.c +++ b/offload/test/ompt/veccopy_data.c diff --git a/openmp/libomptarget/test/ompt/veccopy_disallow_both.c b/offload/test/ompt/veccopy_disallow_both.c index a011c21955bb..a011c21955bb 100644 --- a/openmp/libomptarget/test/ompt/veccopy_disallow_both.c +++ b/offload/test/ompt/veccopy_disallow_both.c diff --git a/openmp/libomptarget/test/ompt/veccopy_emi.c b/offload/test/ompt/veccopy_emi.c index 8718a39b4af8..8718a39b4af8 100644 --- a/openmp/libomptarget/test/ompt/veccopy_emi.c +++ b/offload/test/ompt/veccopy_emi.c diff --git a/openmp/libomptarget/test/ompt/veccopy_emi_map.c b/offload/test/ompt/veccopy_emi_map.c index 2accba34034e..2accba34034e 100644 --- a/openmp/libomptarget/test/ompt/veccopy_emi_map.c +++ b/offload/test/ompt/veccopy_emi_map.c diff --git a/openmp/libomptarget/test/ompt/veccopy_map.c b/offload/test/ompt/veccopy_map.c index 56a0dd48f536..56a0dd48f536 100644 --- a/openmp/libomptarget/test/ompt/veccopy_map.c +++ b/offload/test/ompt/veccopy_map.c diff --git a/openmp/libomptarget/test/ompt/veccopy_no_device_init.c b/offload/test/ompt/veccopy_no_device_init.c index c1a03191c3b5..c1a03191c3b5 100644 --- a/openmp/libomptarget/test/ompt/veccopy_no_device_init.c +++ b/offload/test/ompt/veccopy_no_device_init.c diff --git a/openmp/libomptarget/test/ompt/veccopy_wrong_return.c b/offload/test/ompt/veccopy_wrong_return.c index 2d07b4e1bf04..2d07b4e1bf04 100644 --- a/openmp/libomptarget/test/ompt/veccopy_wrong_return.c +++ b/offload/test/ompt/veccopy_wrong_return.c diff --git a/openmp/libomptarget/test/unified_shared_memory/api.c b/offload/test/unified_shared_memory/api.c index c7ab055abb51..c7ab055abb51 100644 --- a/openmp/libomptarget/test/unified_shared_memory/api.c +++ b/offload/test/unified_shared_memory/api.c diff --git a/openmp/libomptarget/test/unified_shared_memory/associate_ptr.c b/offload/test/unified_shared_memory/associate_ptr.c index 5f795dd42dbd..5f795dd42dbd 100644 --- a/openmp/libomptarget/test/unified_shared_memory/associate_ptr.c +++ b/offload/test/unified_shared_memory/associate_ptr.c diff --git a/openmp/libomptarget/test/unified_shared_memory/close_enter_exit.c b/offload/test/unified_shared_memory/close_enter_exit.c index b116c652f47e..b116c652f47e 100644 --- a/openmp/libomptarget/test/unified_shared_memory/close_enter_exit.c +++ b/offload/test/unified_shared_memory/close_enter_exit.c diff --git a/openmp/libomptarget/test/unified_shared_memory/close_manual.c b/offload/test/unified_shared_memory/close_manual.c index 9985e822c05d..9985e822c05d 100644 --- a/openmp/libomptarget/test/unified_shared_memory/close_manual.c +++ b/offload/test/unified_shared_memory/close_manual.c diff --git a/openmp/libomptarget/test/unified_shared_memory/close_member.c b/offload/test/unified_shared_memory/close_member.c index e5a15e3d19ab..e5a15e3d19ab 100644 --- a/openmp/libomptarget/test/unified_shared_memory/close_member.c +++ b/offload/test/unified_shared_memory/close_member.c diff --git a/openmp/libomptarget/test/unified_shared_memory/close_modifier.c b/offload/test/unified_shared_memory/close_modifier.c index 7ca815db3ad8..7ca815db3ad8 100644 --- a/openmp/libomptarget/test/unified_shared_memory/close_modifier.c +++ b/offload/test/unified_shared_memory/close_modifier.c diff --git a/openmp/libomptarget/test/unified_shared_memory/shared_update.c b/offload/test/unified_shared_memory/shared_update.c index 65db9e4f6bdc..65db9e4f6bdc 100644 --- a/openmp/libomptarget/test/unified_shared_memory/shared_update.c +++ b/offload/test/unified_shared_memory/shared_update.c diff --git a/openmp/libomptarget/tools/CMakeLists.txt b/offload/tools/CMakeLists.txt index a850647fbd58..a850647fbd58 100644 --- a/openmp/libomptarget/tools/CMakeLists.txt +++ b/offload/tools/CMakeLists.txt diff --git a/openmp/libomptarget/tools/deviceinfo/CMakeLists.txt b/offload/tools/deviceinfo/CMakeLists.txt index 62d36d7cc92f..62d36d7cc92f 100644 --- a/openmp/libomptarget/tools/deviceinfo/CMakeLists.txt +++ b/offload/tools/deviceinfo/CMakeLists.txt diff --git a/openmp/libomptarget/tools/deviceinfo/llvm-omp-device-info.cpp b/offload/tools/deviceinfo/llvm-omp-device-info.cpp index 7dd22aec9828..7dd22aec9828 100644 --- a/openmp/libomptarget/tools/deviceinfo/llvm-omp-device-info.cpp +++ b/offload/tools/deviceinfo/llvm-omp-device-info.cpp diff --git a/openmp/libomptarget/tools/kernelreplay/CMakeLists.txt b/offload/tools/kernelreplay/CMakeLists.txt index 6f3dc33d6736..6f3dc33d6736 100644 --- a/openmp/libomptarget/tools/kernelreplay/CMakeLists.txt +++ b/offload/tools/kernelreplay/CMakeLists.txt diff --git a/openmp/libomptarget/tools/kernelreplay/llvm-omp-kernel-replay.cpp b/offload/tools/kernelreplay/llvm-omp-kernel-replay.cpp index 761e04e4c7bb..761e04e4c7bb 100644 --- a/openmp/libomptarget/tools/kernelreplay/llvm-omp-kernel-replay.cpp +++ b/offload/tools/kernelreplay/llvm-omp-kernel-replay.cpp diff --git a/openmp/libomptarget/unittests/CMakeLists.txt b/offload/unittests/CMakeLists.txt index 73c87b708d25..73c87b708d25 100644 --- a/openmp/libomptarget/unittests/CMakeLists.txt +++ b/offload/unittests/CMakeLists.txt diff --git a/openmp/libomptarget/unittests/Plugins/CMakeLists.txt b/offload/unittests/Plugins/CMakeLists.txt index 67d4d9b463b0..67d4d9b463b0 100644 --- a/openmp/libomptarget/unittests/Plugins/CMakeLists.txt +++ b/offload/unittests/Plugins/CMakeLists.txt diff --git a/openmp/libomptarget/unittests/Plugins/NextgenPluginsTest.cpp b/offload/unittests/Plugins/NextgenPluginsTest.cpp index 635bd1637c90..635bd1637c90 100644 --- a/openmp/libomptarget/unittests/Plugins/NextgenPluginsTest.cpp +++ b/offload/unittests/Plugins/NextgenPluginsTest.cpp diff --git a/openmp/libomptarget/utils/generate_microtask_cases.py b/offload/utils/generate_microtask_cases.py index 1376c3ef5472..1376c3ef5472 100755 --- a/openmp/libomptarget/utils/generate_microtask_cases.py +++ b/offload/utils/generate_microtask_cases.py diff --git a/openmp/CMakeLists.txt b/openmp/CMakeLists.txt index 3c4ff76ad6d1..95f2425db3ee 100644 --- a/openmp/CMakeLists.txt +++ b/openmp/CMakeLists.txt @@ -113,7 +113,17 @@ option(OPENMP_ENABLE_LIBOMP_PROFILING "Enable time profiling for libomp." OFF) # Header install location if(${OPENMP_STANDALONE_BUILD}) - set(LIBOMP_HEADERS_INSTALL_PATH "${CMAKE_INSTALL_INCLUDEDIR}") + if(CMAKE_CXX_COMPILER_ID MATCHES "Clang") + execute_process( + OUTPUT_STRIP_TRAILING_WHITESPACE + COMMAND ${CMAKE_CXX_COMPILER} --print-resource-dir + RESULT_VARIABLE COMMAND_RETURN_CODE + OUTPUT_VARIABLE COMPILER_RESOURCE_DIR + ) + set(LIBOMP_HEADERS_INSTALL_PATH "${COMPILER_RESOURCE_DIR}/include") + else() + set(LIBOMP_HEADERS_INSTALL_PATH "${CMAKE_INSTALL_INCLUDEDIR}") + endif() else() include(GetClangResourceDir) get_clang_resource_dir(LIBOMP_HEADERS_INSTALL_PATH SUBDIR include) @@ -123,19 +133,6 @@ endif() # to enable time profiling support in the OpenMP runtime. add_subdirectory(runtime) -if (OPENMP_ENABLE_LIBOMPTARGET) - # Check that the library can actually be built. - if (APPLE OR WIN32) - message(FATAL_ERROR "libomptarget cannot be built on Windows and MacOS X!") - elseif (NOT "cxx_std_17" IN_LIST CMAKE_CXX_COMPILE_FEATURES) - message(FATAL_ERROR "Host compiler must support C++17 to build libomptarget!") - elseif (NOT CMAKE_SIZEOF_VOID_P EQUAL 8) - message(FATAL_ERROR "libomptarget on 32-bit systems are not supported!") - endif() - - add_subdirectory(libomptarget) -endif() - set(ENABLE_OMPT_TOOLS ON) # Currently tools are not tested well on Windows or MacOS X. if (APPLE OR WIN32) @@ -148,6 +145,10 @@ if (OPENMP_ENABLE_OMPT_TOOLS) add_subdirectory(tools) endif() +# Propagate OMPT support to offload +set(LIBOMP_HAVE_OMPT_SUPPORT ${LIBOMP_HAVE_OMPT_SUPPORT} PARENT_SCOPE) +set(LIBOMP_OMP_TOOLS_INCLUDE_DIR ${LIBOMP_OMP_TOOLS_INCLUDE_DIR} PARENT_SCOPE) + option(OPENMP_MSVC_NAME_SCHEME "Build dll with MSVC naming scheme." OFF) # Build libompd.so diff --git a/openmp/libomptarget/test/api/ompx_dump_mapping_tables.cpp b/openmp/libomptarget/test/api/ompx_dump_mapping_tables.cpp deleted file mode 100644 index c170c2d73873..000000000000 --- a/openmp/libomptarget/test/api/ompx_dump_mapping_tables.cpp +++ /dev/null @@ -1,35 +0,0 @@ -// RUN: %libomptarget-compilexx-run-and-check-generic - -#include <cstdio> -#include <omp.h> - -#define N 10 - -int main() { - int *a = new __int32_t[N]; // mapped and released from device 0 - int *b = new __int32_t[2 * N]; // mapped to device 0 - - // clang-format off - // CHECK: Mapping tables after target enter data: - // CHECK-NEXT: omptarget device 0 info: OpenMP Host-Device pointer mappings after block - // CHECK-NEXT: omptarget device 0 info: Host Ptr Target Ptr Size (B) DynRefCount HoldRefCount Declaration - // CHECK-NEXT: omptarget device 0 info: {{(0x[0-9a-f]{16})}} {{(0x[0-9a-f]{16})}} {{[48]}}0 - // CHECK-NEXT: omptarget device 0 info: {{(0x[0-9a-f]{16})}} {{(0x[0-9a-f]{16})}} {{[48]}}0 -#pragma omp target enter data device(0) map(to : a[ : N]) -#pragma omp target enter data device(0) map(to : b[ : 2*N]) - // clang-format on - printf("Mapping tables after target enter data:\n"); - ompx_dump_mapping_tables(); - - // clang-format off - // CHECK: Mapping tables after target exit data for a: - // CHECK-NEXT: omptarget device 0 info: OpenMP Host-Device pointer mappings after block - // CHECK-NEXT: omptarget device 0 info: Host Ptr Target Ptr Size (B) DynRefCount HoldRefCount Declaration - // CHECK-NEXT: omptarget device 0 info: {{(0x[0-9a-f]{16})}} {{(0x[0-9a-f]{16})}} 80 -#pragma omp target exit data device(0) map(release : a[ : N]) - // clang-format on - printf("\nMapping tables after target exit data for a:\n"); - ompx_dump_mapping_tables(); - - return 0; -} diff --git a/openmp/runtime/src/CMakeLists.txt b/openmp/runtime/src/CMakeLists.txt index 701c35150f30..a2468d04e60a 100644 --- a/openmp/runtime/src/CMakeLists.txt +++ b/openmp/runtime/src/CMakeLists.txt @@ -229,6 +229,7 @@ if(NOT LIBOMP_LIBRARY_DIR) else() set(LIBOMP_LIBRARY_DIR ${LIBOMP_LIBRARY_DIR} PARENT_SCOPE) endif() +set(LIBOMP_INCLUDE_DIR ${CMAKE_CURRENT_BINARY_DIR}) set(LIBOMP_INCLUDE_DIR ${CMAKE_CURRENT_BINARY_DIR} PARENT_SCOPE) # Add symbolic links to libomp @@ -241,7 +242,12 @@ if(NOT WIN32) WORKING_DIRECTORY ${LIBOMP_LIBRARY_DIR} ) endif() -set(LIBOMP_INCLUDE_DIR ${CMAKE_CURRENT_BINARY_DIR} PARENT_SCOPE) + +# Definitions for testing, for reuse when testing libomptarget-nvptx. +set(LIBOMPTARGET_OPENMP_HEADER_FOLDER "${LIBOMP_INCLUDE_DIR}" CACHE STRING + "Path to folder containing omp.h") +set(LIBOMPTARGET_OPENMP_HOST_RTL_FOLDER "${LIBOMP_LIBRARY_DIR}" CACHE STRING + "Path to folder containing libomp.so, and libLLVMSupport.so with profiling enabled") # Create *.inc before compiling any sources # objects depend on : .inc files diff --git a/runtimes/CMakeLists.txt b/runtimes/CMakeLists.txt index 6f24fbcccec9..fcc59c8fa1c3 100644 --- a/runtimes/CMakeLists.txt +++ b/runtimes/CMakeLists.txt @@ -21,7 +21,7 @@ list(INSERT CMAKE_MODULE_PATH 0 # We order libraries to mirror roughly how they are layered, except that compiler-rt can depend # on libc++, so we put it after. -set(LLVM_DEFAULT_RUNTIMES "libc;libunwind;libcxxabi;pstl;libcxx;compiler-rt;openmp") +set(LLVM_DEFAULT_RUNTIMES "libc;libunwind;libcxxabi;pstl;libcxx;compiler-rt;openmp;offload") set(LLVM_SUPPORTED_RUNTIMES "${LLVM_DEFAULT_RUNTIMES};llvm-libgcc") set(LLVM_ENABLE_RUNTIMES "" CACHE STRING "Semicolon-separated list of runtimes to build, or \"all\" (${LLVM_DEFAULT_RUNTIMES}). Supported runtimes are ${LLVM_SUPPORTED_RUNTIMES}.") |
