From 6e27dfbf985ff61571bf25c8e5a250e6a41c9442 Mon Sep 17 00:00:00 2001 From: Konstantin Boyarinov Date: Fri, 30 Aug 2024 19:01:50 +0300 Subject: [PATCH] [pstl-offload] PSTL Offload files cleanup (#1752) --- .github/workflows/ci.yml | 113 -- CMakeLists.txt | 24 - include/pstl_offload/algorithm | 26 - include/pstl_offload/any | 25 - include/pstl_offload/array | 25 - include/pstl_offload/atomic | 25 - include/pstl_offload/barrier | 25 - include/pstl_offload/bit | 25 - include/pstl_offload/bitset | 25 - include/pstl_offload/cassert | 25 - include/pstl_offload/cctype | 25 - include/pstl_offload/cerrno | 25 - include/pstl_offload/cfenv | 25 - include/pstl_offload/cfloat | 25 - include/pstl_offload/charconv | 25 - include/pstl_offload/chrono | 25 - include/pstl_offload/cinttypes | 25 - include/pstl_offload/climits | 25 - include/pstl_offload/clocale | 25 - include/pstl_offload/cmath | 25 - include/pstl_offload/codecvt | 25 - include/pstl_offload/compare | 25 - include/pstl_offload/complex | 25 - include/pstl_offload/concepts | 25 - include/pstl_offload/condition_variable | 25 - include/pstl_offload/coroutine | 25 - include/pstl_offload/csetjmp | 25 - include/pstl_offload/csignal | 25 - include/pstl_offload/cstdarg | 25 - include/pstl_offload/cstddef | 25 - include/pstl_offload/cstdint | 25 - include/pstl_offload/cstdio | 25 - include/pstl_offload/cstdlib | 25 - include/pstl_offload/cstring | 25 - include/pstl_offload/ctime | 25 - include/pstl_offload/cuchar | 25 - include/pstl_offload/cwchar | 25 - include/pstl_offload/cwctype | 25 - include/pstl_offload/deque | 25 - include/pstl_offload/exception | 25 - include/pstl_offload/execution | 25 - include/pstl_offload/filesystem | 25 - include/pstl_offload/format | 25 - include/pstl_offload/forward_list | 25 - include/pstl_offload/fstream | 25 - include/pstl_offload/functional | 25 - include/pstl_offload/future | 25 - include/pstl_offload/initializer_list | 25 - .../internal/algorithm_redirection_impl.h | 1032 ----------- .../internal/memory_redirection_impl.h | 149 -- .../internal/numeric_redirection_impl.h | 194 -- .../internal/usm_memory_replacement.h | 470 ----- .../internal/usm_memory_replacement_common.h | 266 --- include/pstl_offload/iomanip | 25 - include/pstl_offload/ios | 25 - include/pstl_offload/iosfwd | 25 - include/pstl_offload/iostream | 25 - include/pstl_offload/istream | 25 - include/pstl_offload/iterator | 25 - include/pstl_offload/latch | 25 - include/pstl_offload/limits | 25 - include/pstl_offload/list | 25 - include/pstl_offload/locale | 25 - include/pstl_offload/map | 25 - include/pstl_offload/memory | 26 - include/pstl_offload/memory_resource | 25 - include/pstl_offload/mutex | 25 - include/pstl_offload/new | 25 - include/pstl_offload/numbers | 25 - include/pstl_offload/numeric | 26 - include/pstl_offload/oneapi/dpl/algorithm | 26 - include/pstl_offload/oneapi/dpl/array | 25 - include/pstl_offload/oneapi/dpl/async | 25 - include/pstl_offload/oneapi/dpl/cmath | 25 - include/pstl_offload/oneapi/dpl/complex | 25 - include/pstl_offload/oneapi/dpl/cstddef | 25 - include/pstl_offload/oneapi/dpl/cstring | 25 - .../pstl_offload/oneapi/dpl/dynamic_selection | 25 - include/pstl_offload/oneapi/dpl/execution | 25 - include/pstl_offload/oneapi/dpl/functional | 25 - include/pstl_offload/oneapi/dpl/iterator | 25 - include/pstl_offload/oneapi/dpl/limits | 25 - include/pstl_offload/oneapi/dpl/memory | 26 - include/pstl_offload/oneapi/dpl/numeric | 26 - include/pstl_offload/oneapi/dpl/optional | 25 - include/pstl_offload/oneapi/dpl/random | 25 - include/pstl_offload/oneapi/dpl/ranges | 25 - include/pstl_offload/oneapi/dpl/ratio | 25 - include/pstl_offload/oneapi/dpl/tuple | 25 - include/pstl_offload/oneapi/dpl/type_traits | 25 - include/pstl_offload/oneapi/dpl/utility | 25 - .../pstl_offload/oneapi/tbb/blocked_range.h | 25 - .../pstl_offload/oneapi/tbb/blocked_range2d.h | 25 - .../pstl_offload/oneapi/tbb/blocked_range3d.h | 25 - .../pstl_offload/oneapi/tbb/blocked_rangeNd.h | 25 - .../oneapi/tbb/cache_aligned_allocator.h | 25 - .../oneapi/tbb/collaborative_call_once.h | 25 - include/pstl_offload/oneapi/tbb/combinable.h | 25 - .../oneapi/tbb/concurrent_hash_map.h | 25 - .../oneapi/tbb/concurrent_lru_cache.h | 25 - .../pstl_offload/oneapi/tbb/concurrent_map.h | 25 - .../oneapi/tbb/concurrent_priority_queue.h | 25 - .../oneapi/tbb/concurrent_queue.h | 25 - .../pstl_offload/oneapi/tbb/concurrent_set.h | 25 - .../oneapi/tbb/concurrent_unordered_map.h | 25 - .../oneapi/tbb/concurrent_unordered_set.h | 25 - .../oneapi/tbb/concurrent_vector.h | 25 - .../oneapi/tbb/enumerable_thread_specific.h | 25 - include/pstl_offload/oneapi/tbb/flow_graph.h | 25 - .../oneapi/tbb/flow_graph_abstractions.h | 25 - .../pstl_offload/oneapi/tbb/global_control.h | 25 - include/pstl_offload/oneapi/tbb/info.h | 25 - include/pstl_offload/oneapi/tbb/memory_pool.h | 25 - include/pstl_offload/oneapi/tbb/mutex.h | 25 - include/pstl_offload/oneapi/tbb/null_mutex.h | 25 - .../pstl_offload/oneapi/tbb/null_rw_mutex.h | 25 - .../pstl_offload/oneapi/tbb/parallel_for.h | 25 - .../oneapi/tbb/parallel_for_each.h | 25 - .../pstl_offload/oneapi/tbb/parallel_invoke.h | 25 - .../oneapi/tbb/parallel_pipeline.h | 25 - .../pstl_offload/oneapi/tbb/parallel_reduce.h | 25 - .../pstl_offload/oneapi/tbb/parallel_scan.h | 25 - .../pstl_offload/oneapi/tbb/parallel_sort.h | 25 - include/pstl_offload/oneapi/tbb/partitioner.h | 25 - include/pstl_offload/oneapi/tbb/profiling.h | 25 - .../pstl_offload/oneapi/tbb/queuing_mutex.h | 25 - .../oneapi/tbb/queuing_rw_mutex.h | 25 - include/pstl_offload/oneapi/tbb/rw_mutex.h | 25 - .../oneapi/tbb/scalable_allocator.h | 25 - include/pstl_offload/oneapi/tbb/spin_mutex.h | 25 - .../pstl_offload/oneapi/tbb/spin_rw_mutex.h | 25 - include/pstl_offload/oneapi/tbb/task.h | 25 - include/pstl_offload/oneapi/tbb/task_arena.h | 25 - include/pstl_offload/oneapi/tbb/task_group.h | 25 - .../oneapi/tbb/task_scheduler_observer.h | 25 - .../pstl_offload/oneapi/tbb/tbb_allocator.h | 25 - .../pstl_offload/oneapi/tbb/tbbmalloc_proxy.h | 25 - include/pstl_offload/oneapi/tbb/tick_count.h | 25 - include/pstl_offload/oneapi/tbb/version.h | 25 - include/pstl_offload/optional | 25 - include/pstl_offload/ostream | 25 - include/pstl_offload/queue | 25 - include/pstl_offload/random | 25 - include/pstl_offload/ranges | 25 - include/pstl_offload/ratio | 25 - include/pstl_offload/regex | 25 - include/pstl_offload/scoped_allocator | 25 - include/pstl_offload/semaphore | 25 - include/pstl_offload/set | 25 - include/pstl_offload/shared_mutex | 25 - include/pstl_offload/source_location | 25 - include/pstl_offload/span | 25 - include/pstl_offload/sstream | 25 - include/pstl_offload/stack | 25 - include/pstl_offload/stdexcept | 25 - include/pstl_offload/stdlib.h | 25 - include/pstl_offload/stop_token | 25 - include/pstl_offload/streambuf | 25 - include/pstl_offload/string | 25 - include/pstl_offload/string_view | 25 - include/pstl_offload/strstream | 25 - include/pstl_offload/sycl/sycl.hpp | 25 - include/pstl_offload/syncstream | 25 - include/pstl_offload/system_error | 25 - include/pstl_offload/thread | 25 - include/pstl_offload/tuple | 25 - include/pstl_offload/type_traits | 25 - include/pstl_offload/typeindex | 25 - include/pstl_offload/typeinfo | 25 - include/pstl_offload/unordered_map | 25 - include/pstl_offload/unordered_set | 25 - include/pstl_offload/utility | 25 - include/pstl_offload/valarray | 25 - include/pstl_offload/variant | 25 - include/pstl_offload/vector | 25 - include/pstl_offload/version | 25 - src/CMakeLists.txt | 104 -- src/cmake/generate_vars.cmake | 21 - src/cmake/linux/vars.template.sh | 12 - src/cmake/windows/vars.template.bat | 22 - src/pstl_offload.cpp | 852 --------- src/win64.def | 14 - test/CMakeLists.txt | 22 - .../algorithms_redirection.pass.cpp | 1619 ----------------- .../general/free_after_unload.pass.cpp | 86 - .../general/free_after_unload_lib.cpp | 52 - .../general/free_after_unload_lib.h | 25 - .../selected_different_device.pass.cpp | 42 - .../headers.dpl/oneapi_dpl_algorithm.pass.cpp | 17 - .../headers.dpl/oneapi_dpl_array.pass.cpp | 16 - .../headers.dpl/oneapi_dpl_async.pass.cpp | 18 - .../headers.dpl/oneapi_dpl_cmath.pass.cpp | 16 - .../headers.dpl/oneapi_dpl_complex.pass.cpp | 16 - .../headers.dpl/oneapi_dpl_cstddef.pass.cpp | 16 - .../headers.dpl/oneapi_dpl_cstring.pass.cpp | 17 - .../oneapi_dpl_dynamic_selection.pass.cpp | 17 - .../headers.dpl/oneapi_dpl_execution.pass.cpp | 16 - .../oneapi_dpl_functional.pass.cpp | 16 - .../headers.dpl/oneapi_dpl_iterator.pass.cpp | 16 - .../headers.dpl/oneapi_dpl_limits.pass.cpp | 16 - .../headers.dpl/oneapi_dpl_memory.pass.cpp | 18 - .../headers.dpl/oneapi_dpl_numeric.pass.cpp | 17 - .../headers.dpl/oneapi_dpl_optional.pass.cpp | 16 - .../headers.dpl/oneapi_dpl_random.pass.cpp | 16 - .../headers.dpl/oneapi_dpl_ranges.pass.cpp | 18 - .../headers.dpl/oneapi_dpl_ratio.pass.cpp | 16 - .../headers.dpl/oneapi_dpl_tuple.pass.cpp | 16 - .../oneapi_dpl_type_traits.pass.cpp | 16 - .../headers.dpl/oneapi_dpl_utility.pass.cpp | 16 - .../algorithms/algorithm.pass.cpp | 17 - .../algorithms/execution.pass.cpp | 16 - .../headers.standard/atomic/atomic.pass.cpp | 16 - .../containers/array.pass.cpp | 16 - .../containers/deque.pass.cpp | 16 - .../containers/forward_list.pass.cpp | 16 - .../headers.standard/containers/list.pass.cpp | 16 - .../headers.standard/containers/map.pass.cpp | 16 - .../containers/queue.pass.cpp | 16 - .../containers/stack.pass.cpp | 16 - .../containers/std_set.pass.cpp | 16 - .../containers/unordered_map.pass.cpp | 16 - .../containers/unordered_set.pass.cpp | 16 - .../containers/vector.pass.cpp | 16 - .../dynamic_memory/memory.pass.cpp | 16 - .../dynamic_memory/new.pass.cpp | 16 - .../dynamic_memory/scoped_allocator.pass.cpp | 17 - .../dynamic_memory/stdlib_h.pass.cpp | 17 - .../error_handling/cassert.pass.cpp | 16 - .../error_handling/cerrno.pass.cpp | 16 - .../error_handling/exception.pass.cpp | 16 - .../error_handling/stdexcept.pass.cpp | 16 - .../error_handling/system_error.pass.cpp | 16 - .../filesystem/filesystem.pass.cpp | 16 - .../headers.standard/io/cstdio.pass.cpp | 16 - .../headers.standard/io/fstream.pass.cpp | 16 - .../headers.standard/io/iomanip.pass.cpp | 16 - .../headers/headers.standard/io/ios.pass.cpp | 17 - .../headers.standard/io/iostream.pass.cpp | 16 - .../headers.standard/io/istream.pass.cpp | 16 - .../headers.standard/io/ostream.pass.cpp | 16 - .../headers.standard/io/sstream.pass.cpp | 16 - .../headers.standard/io/streambuf.pass.cpp | 16 - .../headers.standard/io/strstream.pass.cpp | 17 - .../iterators/iterator.pass.cpp | 17 - .../localization/clocale.pass.cpp | 16 - .../localization/codecvt.pass.cpp | 17 - .../localization/locale.pass.cpp | 16 - .../numeric_limits/cfloat.pass.cpp | 16 - .../numeric_limits/cinttypes.pass.cpp | 16 - .../numeric_limits/climits.pass.cpp | 16 - .../numeric_limits/cstdint.pass.cpp | 16 - .../numeric_limits/limits.pass.cpp | 16 - .../headers.standard/numerics/cfenv.pass.cpp | 16 - .../numerics/cmath_header.pass.cpp | 16 - .../numerics/complex.pass.cpp | 16 - .../numerics/numeric.pass.cpp | 17 - .../headers.standard/numerics/random.pass.cpp | 16 - .../headers.standard/numerics/ratio.pass.cpp | 16 - .../numerics/valarray.pass.cpp | 16 - .../headers.standard/regex/regex.pass.cpp | 16 - .../requires_header_presence/barrier.pass.cpp | 18 - .../requires_header_presence/bit.pass.cpp | 18 - .../requires_header_presence/compare.pass.cpp | 18 - .../concepts.pass.cpp | 18 - .../requires_header_presence/latch.pass.cpp | 18 - .../memory_resource.pass.cpp | 18 - .../requires_header_presence/numbers.pass.cpp | 18 - .../requires_header_presence/ranges.pass.cpp | 19 - .../semaphore.pass.cpp | 18 - .../source_location.pass.cpp | 18 - .../requires_header_presence/span.pass.cpp | 18 - .../stop_token.pass.cpp | 18 - .../syncstream.pass.cpp | 18 - .../requires_header_presence/version.pass.cpp | 18 - .../headers.standard/strings/cctype.pass.cpp | 16 - .../strings/charconv.pass.cpp | 18 - .../headers.standard/strings/cstring.pass.cpp | 16 - .../headers.standard/strings/cuchar.pass.cpp | 16 - .../headers.standard/strings/cwchar.pass.cpp | 16 - .../headers.standard/strings/cwctype.pass.cpp | 16 - .../headers.standard/strings/string.pass.cpp | 16 - .../strings/string_view.pass.cpp | 16 - .../thread/condition_variable.pass.cpp | 16 - .../headers.standard/thread/future.pass.cpp | 17 - .../headers.standard/thread/mutex.pass.cpp | 16 - .../thread/shared_mutex.pass.cpp | 16 - .../headers.standard/thread/thread.pass.cpp | 16 - .../headers.standard/utilities/any.pass.cpp | 16 - .../utilities/bitset.pass.cpp | 16 - .../utilities/chrono.pass.cpp | 16 - .../utilities/csetjmp.pass.cpp | 16 - .../utilities/csignal.pass.cpp | 16 - .../utilities/cstdarg.pass.cpp | 16 - .../utilities/cstddef.pass.cpp | 16 - .../utilities/cstdlib.pass.cpp | 16 - .../headers.standard/utilities/ctime.pass.cpp | 16 - .../utilities/functional.pass.cpp | 16 - .../utilities/initializer_list.pass.cpp | 17 - .../utilities/optional.pass.cpp | 16 - .../headers.standard/utilities/tuple.pass.cpp | 16 - .../utilities/type_traits.pass.cpp | 16 - .../utilities/typeindex.pass.cpp | 16 - .../utilities/typeinfo.pass.cpp | 16 - .../utilities/utility.pass.cpp | 17 - .../utilities/variant.pass.cpp | 16 - .../headers.sycl/sycl_sycl_hpp.pass.cpp | 16 - .../oneapi_tbb_blocked_range2d_h.pass.cpp | 16 - .../oneapi_tbb_blocked_range3d_h.pass.cpp | 16 - .../oneapi_tbb_blocked_rangeNd_h.pass.cpp | 17 - .../oneapi_tbb_blocked_range_h.pass.cpp | 16 - ...api_tbb_collaborative_call_once_h.pass.cpp | 16 - .../oneapi_tbb_parallel_for_each_h.pass.cpp | 17 - .../oneapi_tbb_parallel_for_h.pass.cpp | 16 - .../oneapi_tbb_parallel_invoke_h.pass.cpp | 16 - .../oneapi_tbb_parallel_pipeline_h.pass.cpp | 16 - .../oneapi_tbb_parallel_reduce_h.pass.cpp | 18 - .../oneapi_tbb_parallel_scan_h.pass.cpp | 18 - .../oneapi_tbb_parallel_sort_h.pass.cpp | 17 - .../oneapi_tbb_partitioner_h.pass.cpp | 16 - .../oneapi_tbb_concurrent_hash_map_h.pass.cpp | 16 - ...oneapi_tbb_concurrent_lru_cache_h.pass.cpp | 19 - .../oneapi_tbb_concurrent_map_h.pass.cpp | 19 - ...i_tbb_concurrent_priority_queue_h.pass.cpp | 16 - .../oneapi_tbb_concurrent_queue_h.pass.cpp | 16 - .../oneapi_tbb_concurrent_set_h.pass.cpp | 19 - ...pi_tbb_concurrent_unordered_map_h.pass.cpp | 16 - ...pi_tbb_concurrent_unordered_set_h.pass.cpp | 16 - .../oneapi_tbb_concurrent_vector_h.pass.cpp | 16 - .../oneapi_tbb_flow_graph_h.pass.cpp | 16 - ...api_tbb_cache_aligned_allocator_h.pass.cpp | 16 - .../memory/oneapi_tbb_memory_pool_h.pass.cpp | 17 - .../oneapi_tbb_scalable_allocator_h.pass.cpp | 16 - .../oneapi_tbb_tbb_allocator_h.pass.cpp | 16 - .../mutexes/oneapi_tbb_mutex_h.pass.cpp | 16 - .../mutexes/oneapi_tbb_null_mutex_h.pass.cpp | 16 - .../oneapi_tbb_null_rw_mutex_h.pass.cpp | 16 - .../oneapi_tbb_queuing_mutex_h.pass.cpp | 16 - .../oneapi_tbb_queuing_rw_mutex_h.pass.cpp | 16 - .../mutexes/oneapi_tbb_rw_mutex_h.pass.cpp | 16 - .../mutexes/oneapi_tbb_spin_mutex_h.pass.cpp | 16 - .../oneapi_tbb_spin_rw_mutex_h.pass.cpp | 16 - .../headers.tbb/oneapi_tbb_info_h.pass.cpp | 16 - .../oneapi_tbb_profiling_h.pass.cpp | 16 - .../oneapi_tbb_tick_count_h.pass.cpp | 16 - .../headers.tbb/oneapi_tbb_version_h.pass.cpp | 16 - .../oneapi_tbb_global_control_h.pass.cpp | 16 - .../oneapi_tbb_task_arena_h.pass.cpp | 16 - .../oneapi_tbb_task_group_h.pass.cpp | 16 - .../task_scheduler/oneapi_tbb_task_h.pass.cpp | 16 - ...api_tbb_task_scheduler_observer_h.pass.cpp | 16 - .../tls/oneapi_tbb_combinable_h.pass.cpp | 19 - ..._tbb_enumerable_thread_specific_h.pass.cpp | 19 - test/pstl_offload/memory/allocation_utils.h | 131 -- .../memory/interop_allocs.pass.cpp | 79 - .../memory/interop_allocs_headers.h | 20 - .../memory/interop_allocs_system.cpp | 29 - .../memory/interop_allocs_usm.cpp | 24 - .../memory/usm_memory_alignment.pass.cpp | 201 -- .../memory/usm_memory_replacement.pass.cpp | 190 -- 359 files changed, 12723 deletions(-) delete mode 100644 include/pstl_offload/algorithm delete mode 100644 include/pstl_offload/any delete mode 100644 include/pstl_offload/array delete mode 100644 include/pstl_offload/atomic delete mode 100644 include/pstl_offload/barrier delete mode 100644 include/pstl_offload/bit delete mode 100644 include/pstl_offload/bitset delete mode 100644 include/pstl_offload/cassert delete mode 100644 include/pstl_offload/cctype delete mode 100644 include/pstl_offload/cerrno delete mode 100644 include/pstl_offload/cfenv delete mode 100644 include/pstl_offload/cfloat delete mode 100644 include/pstl_offload/charconv delete mode 100644 include/pstl_offload/chrono delete mode 100644 include/pstl_offload/cinttypes delete mode 100644 include/pstl_offload/climits delete mode 100644 include/pstl_offload/clocale delete mode 100644 include/pstl_offload/cmath delete mode 100644 include/pstl_offload/codecvt delete mode 100644 include/pstl_offload/compare delete mode 100644 include/pstl_offload/complex delete mode 100644 include/pstl_offload/concepts delete mode 100644 include/pstl_offload/condition_variable delete mode 100644 include/pstl_offload/coroutine delete mode 100644 include/pstl_offload/csetjmp delete mode 100644 include/pstl_offload/csignal delete mode 100644 include/pstl_offload/cstdarg delete mode 100644 include/pstl_offload/cstddef delete mode 100644 include/pstl_offload/cstdint delete mode 100644 include/pstl_offload/cstdio delete mode 100644 include/pstl_offload/cstdlib delete mode 100644 include/pstl_offload/cstring delete mode 100644 include/pstl_offload/ctime delete mode 100644 include/pstl_offload/cuchar delete mode 100644 include/pstl_offload/cwchar delete mode 100644 include/pstl_offload/cwctype delete mode 100644 include/pstl_offload/deque delete mode 100644 include/pstl_offload/exception delete mode 100644 include/pstl_offload/execution delete mode 100644 include/pstl_offload/filesystem delete mode 100644 include/pstl_offload/format delete mode 100644 include/pstl_offload/forward_list delete mode 100644 include/pstl_offload/fstream delete mode 100644 include/pstl_offload/functional delete mode 100644 include/pstl_offload/future delete mode 100644 include/pstl_offload/initializer_list delete mode 100644 include/pstl_offload/internal/algorithm_redirection_impl.h delete mode 100644 include/pstl_offload/internal/memory_redirection_impl.h delete mode 100644 include/pstl_offload/internal/numeric_redirection_impl.h delete mode 100644 include/pstl_offload/internal/usm_memory_replacement.h delete mode 100644 include/pstl_offload/internal/usm_memory_replacement_common.h delete mode 100644 include/pstl_offload/iomanip delete mode 100644 include/pstl_offload/ios delete mode 100644 include/pstl_offload/iosfwd delete mode 100644 include/pstl_offload/iostream delete mode 100644 include/pstl_offload/istream delete mode 100644 include/pstl_offload/iterator delete mode 100644 include/pstl_offload/latch delete mode 100644 include/pstl_offload/limits delete mode 100644 include/pstl_offload/list delete mode 100644 include/pstl_offload/locale delete mode 100644 include/pstl_offload/map delete mode 100644 include/pstl_offload/memory delete mode 100644 include/pstl_offload/memory_resource delete mode 100644 include/pstl_offload/mutex delete mode 100644 include/pstl_offload/new delete mode 100644 include/pstl_offload/numbers delete mode 100644 include/pstl_offload/numeric delete mode 100644 include/pstl_offload/oneapi/dpl/algorithm delete mode 100644 include/pstl_offload/oneapi/dpl/array delete mode 100644 include/pstl_offload/oneapi/dpl/async delete mode 100644 include/pstl_offload/oneapi/dpl/cmath delete mode 100644 include/pstl_offload/oneapi/dpl/complex delete mode 100644 include/pstl_offload/oneapi/dpl/cstddef delete mode 100644 include/pstl_offload/oneapi/dpl/cstring delete mode 100644 include/pstl_offload/oneapi/dpl/dynamic_selection delete mode 100644 include/pstl_offload/oneapi/dpl/execution delete mode 100644 include/pstl_offload/oneapi/dpl/functional delete mode 100644 include/pstl_offload/oneapi/dpl/iterator delete mode 100644 include/pstl_offload/oneapi/dpl/limits delete mode 100644 include/pstl_offload/oneapi/dpl/memory delete mode 100644 include/pstl_offload/oneapi/dpl/numeric delete mode 100644 include/pstl_offload/oneapi/dpl/optional delete mode 100644 include/pstl_offload/oneapi/dpl/random delete mode 100644 include/pstl_offload/oneapi/dpl/ranges delete mode 100644 include/pstl_offload/oneapi/dpl/ratio delete mode 100644 include/pstl_offload/oneapi/dpl/tuple delete mode 100644 include/pstl_offload/oneapi/dpl/type_traits delete mode 100644 include/pstl_offload/oneapi/dpl/utility delete mode 100644 include/pstl_offload/oneapi/tbb/blocked_range.h delete mode 100644 include/pstl_offload/oneapi/tbb/blocked_range2d.h delete mode 100644 include/pstl_offload/oneapi/tbb/blocked_range3d.h delete mode 100644 include/pstl_offload/oneapi/tbb/blocked_rangeNd.h delete mode 100644 include/pstl_offload/oneapi/tbb/cache_aligned_allocator.h delete mode 100644 include/pstl_offload/oneapi/tbb/collaborative_call_once.h delete mode 100644 include/pstl_offload/oneapi/tbb/combinable.h delete mode 100644 include/pstl_offload/oneapi/tbb/concurrent_hash_map.h delete mode 100644 include/pstl_offload/oneapi/tbb/concurrent_lru_cache.h delete mode 100644 include/pstl_offload/oneapi/tbb/concurrent_map.h delete mode 100644 include/pstl_offload/oneapi/tbb/concurrent_priority_queue.h delete mode 100644 include/pstl_offload/oneapi/tbb/concurrent_queue.h delete mode 100644 include/pstl_offload/oneapi/tbb/concurrent_set.h delete mode 100644 include/pstl_offload/oneapi/tbb/concurrent_unordered_map.h delete mode 100644 include/pstl_offload/oneapi/tbb/concurrent_unordered_set.h delete mode 100644 include/pstl_offload/oneapi/tbb/concurrent_vector.h delete mode 100644 include/pstl_offload/oneapi/tbb/enumerable_thread_specific.h delete mode 100644 include/pstl_offload/oneapi/tbb/flow_graph.h delete mode 100644 include/pstl_offload/oneapi/tbb/flow_graph_abstractions.h delete mode 100644 include/pstl_offload/oneapi/tbb/global_control.h delete mode 100644 include/pstl_offload/oneapi/tbb/info.h delete mode 100644 include/pstl_offload/oneapi/tbb/memory_pool.h delete mode 100644 include/pstl_offload/oneapi/tbb/mutex.h delete mode 100644 include/pstl_offload/oneapi/tbb/null_mutex.h delete mode 100644 include/pstl_offload/oneapi/tbb/null_rw_mutex.h delete mode 100644 include/pstl_offload/oneapi/tbb/parallel_for.h delete mode 100644 include/pstl_offload/oneapi/tbb/parallel_for_each.h delete mode 100644 include/pstl_offload/oneapi/tbb/parallel_invoke.h delete mode 100644 include/pstl_offload/oneapi/tbb/parallel_pipeline.h delete mode 100644 include/pstl_offload/oneapi/tbb/parallel_reduce.h delete mode 100644 include/pstl_offload/oneapi/tbb/parallel_scan.h delete mode 100644 include/pstl_offload/oneapi/tbb/parallel_sort.h delete mode 100644 include/pstl_offload/oneapi/tbb/partitioner.h delete mode 100644 include/pstl_offload/oneapi/tbb/profiling.h delete mode 100644 include/pstl_offload/oneapi/tbb/queuing_mutex.h delete mode 100644 include/pstl_offload/oneapi/tbb/queuing_rw_mutex.h delete mode 100644 include/pstl_offload/oneapi/tbb/rw_mutex.h delete mode 100644 include/pstl_offload/oneapi/tbb/scalable_allocator.h delete mode 100644 include/pstl_offload/oneapi/tbb/spin_mutex.h delete mode 100644 include/pstl_offload/oneapi/tbb/spin_rw_mutex.h delete mode 100644 include/pstl_offload/oneapi/tbb/task.h delete mode 100644 include/pstl_offload/oneapi/tbb/task_arena.h delete mode 100644 include/pstl_offload/oneapi/tbb/task_group.h delete mode 100644 include/pstl_offload/oneapi/tbb/task_scheduler_observer.h delete mode 100644 include/pstl_offload/oneapi/tbb/tbb_allocator.h delete mode 100644 include/pstl_offload/oneapi/tbb/tbbmalloc_proxy.h delete mode 100644 include/pstl_offload/oneapi/tbb/tick_count.h delete mode 100644 include/pstl_offload/oneapi/tbb/version.h delete mode 100644 include/pstl_offload/optional delete mode 100644 include/pstl_offload/ostream delete mode 100644 include/pstl_offload/queue delete mode 100644 include/pstl_offload/random delete mode 100644 include/pstl_offload/ranges delete mode 100644 include/pstl_offload/ratio delete mode 100644 include/pstl_offload/regex delete mode 100644 include/pstl_offload/scoped_allocator delete mode 100644 include/pstl_offload/semaphore delete mode 100644 include/pstl_offload/set delete mode 100644 include/pstl_offload/shared_mutex delete mode 100644 include/pstl_offload/source_location delete mode 100644 include/pstl_offload/span delete mode 100644 include/pstl_offload/sstream delete mode 100644 include/pstl_offload/stack delete mode 100644 include/pstl_offload/stdexcept delete mode 100644 include/pstl_offload/stdlib.h delete mode 100644 include/pstl_offload/stop_token delete mode 100644 include/pstl_offload/streambuf delete mode 100644 include/pstl_offload/string delete mode 100644 include/pstl_offload/string_view delete mode 100644 include/pstl_offload/strstream delete mode 100644 include/pstl_offload/sycl/sycl.hpp delete mode 100644 include/pstl_offload/syncstream delete mode 100644 include/pstl_offload/system_error delete mode 100644 include/pstl_offload/thread delete mode 100644 include/pstl_offload/tuple delete mode 100644 include/pstl_offload/type_traits delete mode 100644 include/pstl_offload/typeindex delete mode 100644 include/pstl_offload/typeinfo delete mode 100644 include/pstl_offload/unordered_map delete mode 100644 include/pstl_offload/unordered_set delete mode 100644 include/pstl_offload/utility delete mode 100644 include/pstl_offload/valarray delete mode 100644 include/pstl_offload/variant delete mode 100644 include/pstl_offload/vector delete mode 100644 include/pstl_offload/version delete mode 100644 src/CMakeLists.txt delete mode 100644 src/cmake/generate_vars.cmake delete mode 100644 src/cmake/linux/vars.template.sh delete mode 100644 src/cmake/windows/vars.template.bat delete mode 100644 src/pstl_offload.cpp delete mode 100644 src/win64.def delete mode 100644 test/pstl_offload/algorithms/algorithms_redirection.pass.cpp delete mode 100644 test/pstl_offload/general/free_after_unload.pass.cpp delete mode 100644 test/pstl_offload/general/free_after_unload_lib.cpp delete mode 100644 test/pstl_offload/general/free_after_unload_lib.h delete mode 100644 test/pstl_offload/general/selected_different_device.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.dpl/oneapi_dpl_algorithm.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.dpl/oneapi_dpl_array.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.dpl/oneapi_dpl_async.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.dpl/oneapi_dpl_cmath.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.dpl/oneapi_dpl_complex.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.dpl/oneapi_dpl_cstddef.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.dpl/oneapi_dpl_cstring.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.dpl/oneapi_dpl_dynamic_selection.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.dpl/oneapi_dpl_execution.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.dpl/oneapi_dpl_functional.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.dpl/oneapi_dpl_iterator.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.dpl/oneapi_dpl_limits.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.dpl/oneapi_dpl_memory.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.dpl/oneapi_dpl_numeric.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.dpl/oneapi_dpl_optional.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.dpl/oneapi_dpl_random.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.dpl/oneapi_dpl_ranges.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.dpl/oneapi_dpl_ratio.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.dpl/oneapi_dpl_tuple.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.dpl/oneapi_dpl_type_traits.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.dpl/oneapi_dpl_utility.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/algorithms/algorithm.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/algorithms/execution.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/atomic/atomic.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/containers/array.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/containers/deque.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/containers/forward_list.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/containers/list.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/containers/map.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/containers/queue.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/containers/stack.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/containers/std_set.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/containers/unordered_map.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/containers/unordered_set.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/containers/vector.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/dynamic_memory/memory.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/dynamic_memory/new.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/dynamic_memory/scoped_allocator.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/dynamic_memory/stdlib_h.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/error_handling/cassert.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/error_handling/cerrno.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/error_handling/exception.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/error_handling/stdexcept.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/error_handling/system_error.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/filesystem/filesystem.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/io/cstdio.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/io/fstream.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/io/iomanip.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/io/ios.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/io/iostream.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/io/istream.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/io/ostream.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/io/sstream.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/io/streambuf.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/io/strstream.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/iterators/iterator.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/localization/clocale.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/localization/codecvt.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/localization/locale.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/numeric_limits/cfloat.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/numeric_limits/cinttypes.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/numeric_limits/climits.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/numeric_limits/cstdint.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/numeric_limits/limits.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/numerics/cfenv.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/numerics/cmath_header.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/numerics/complex.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/numerics/numeric.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/numerics/random.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/numerics/ratio.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/numerics/valarray.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/regex/regex.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/requires_header_presence/barrier.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/requires_header_presence/bit.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/requires_header_presence/compare.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/requires_header_presence/concepts.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/requires_header_presence/latch.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/requires_header_presence/memory_resource.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/requires_header_presence/numbers.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/requires_header_presence/ranges.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/requires_header_presence/semaphore.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/requires_header_presence/source_location.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/requires_header_presence/span.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/requires_header_presence/stop_token.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/requires_header_presence/syncstream.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/requires_header_presence/version.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/strings/cctype.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/strings/charconv.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/strings/cstring.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/strings/cuchar.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/strings/cwchar.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/strings/cwctype.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/strings/string.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/strings/string_view.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/thread/condition_variable.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/thread/future.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/thread/mutex.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/thread/shared_mutex.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/thread/thread.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/utilities/any.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/utilities/bitset.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/utilities/chrono.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/utilities/csetjmp.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/utilities/csignal.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/utilities/cstdarg.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/utilities/cstddef.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/utilities/cstdlib.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/utilities/ctime.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/utilities/functional.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/utilities/initializer_list.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/utilities/optional.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/utilities/tuple.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/utilities/type_traits.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/utilities/typeindex.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/utilities/typeinfo.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/utilities/utility.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.standard/utilities/variant.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.sycl/sycl_sycl_hpp.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.tbb/algorithms/oneapi_tbb_blocked_range2d_h.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.tbb/algorithms/oneapi_tbb_blocked_range3d_h.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.tbb/algorithms/oneapi_tbb_blocked_rangeNd_h.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.tbb/algorithms/oneapi_tbb_blocked_range_h.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.tbb/algorithms/oneapi_tbb_collaborative_call_once_h.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.tbb/algorithms/oneapi_tbb_parallel_for_each_h.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.tbb/algorithms/oneapi_tbb_parallel_for_h.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.tbb/algorithms/oneapi_tbb_parallel_invoke_h.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.tbb/algorithms/oneapi_tbb_parallel_pipeline_h.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.tbb/algorithms/oneapi_tbb_parallel_reduce_h.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.tbb/algorithms/oneapi_tbb_parallel_scan_h.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.tbb/algorithms/oneapi_tbb_parallel_sort_h.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.tbb/algorithms/oneapi_tbb_partitioner_h.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.tbb/containers/oneapi_tbb_concurrent_hash_map_h.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.tbb/containers/oneapi_tbb_concurrent_lru_cache_h.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.tbb/containers/oneapi_tbb_concurrent_map_h.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.tbb/containers/oneapi_tbb_concurrent_priority_queue_h.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.tbb/containers/oneapi_tbb_concurrent_queue_h.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.tbb/containers/oneapi_tbb_concurrent_set_h.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.tbb/containers/oneapi_tbb_concurrent_unordered_map_h.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.tbb/containers/oneapi_tbb_concurrent_unordered_set_h.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.tbb/containers/oneapi_tbb_concurrent_vector_h.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.tbb/flow_graph/oneapi_tbb_flow_graph_h.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.tbb/memory/oneapi_tbb_cache_aligned_allocator_h.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.tbb/memory/oneapi_tbb_memory_pool_h.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.tbb/memory/oneapi_tbb_scalable_allocator_h.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.tbb/memory/oneapi_tbb_tbb_allocator_h.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.tbb/mutexes/oneapi_tbb_mutex_h.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.tbb/mutexes/oneapi_tbb_null_mutex_h.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.tbb/mutexes/oneapi_tbb_null_rw_mutex_h.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.tbb/mutexes/oneapi_tbb_queuing_mutex_h.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.tbb/mutexes/oneapi_tbb_queuing_rw_mutex_h.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.tbb/mutexes/oneapi_tbb_rw_mutex_h.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.tbb/mutexes/oneapi_tbb_spin_mutex_h.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.tbb/mutexes/oneapi_tbb_spin_rw_mutex_h.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.tbb/oneapi_tbb_info_h.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.tbb/oneapi_tbb_profiling_h.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.tbb/oneapi_tbb_tick_count_h.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.tbb/oneapi_tbb_version_h.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.tbb/task_scheduler/oneapi_tbb_global_control_h.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.tbb/task_scheduler/oneapi_tbb_task_arena_h.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.tbb/task_scheduler/oneapi_tbb_task_group_h.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.tbb/task_scheduler/oneapi_tbb_task_h.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.tbb/task_scheduler/oneapi_tbb_task_scheduler_observer_h.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.tbb/tls/oneapi_tbb_combinable_h.pass.cpp delete mode 100644 test/pstl_offload/headers/headers.tbb/tls/oneapi_tbb_enumerable_thread_specific_h.pass.cpp delete mode 100644 test/pstl_offload/memory/allocation_utils.h delete mode 100644 test/pstl_offload/memory/interop_allocs.pass.cpp delete mode 100644 test/pstl_offload/memory/interop_allocs_headers.h delete mode 100644 test/pstl_offload/memory/interop_allocs_system.cpp delete mode 100644 test/pstl_offload/memory/interop_allocs_usm.cpp delete mode 100644 test/pstl_offload/memory/usm_memory_alignment.pass.cpp delete mode 100644 test/pstl_offload/memory/usm_memory_replacement.pass.cpp diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0538af53952..43c1009cb76 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -222,119 +222,6 @@ jobs: make VERBOSE=1 -j${BUILD_CONCURRENCY} ${make_targets} ctest --timeout ${TEST_TIMEOUT} --output-on-failure ${ctest_flags} - linux-pstl-offload-testing: - name: PSTL offload ${{ matrix.device_type }},bknd=dpcpp,cmplr=${{ matrix.cxx_compiler }},${{ matrix.os }},std=с++${{ matrix.std }},cfg=${{ matrix.build_type }} - runs-on: ['${{ matrix.os }}'] - timeout-minutes: 60 - strategy: - fail-fast: false - matrix: - include: - - os: ubuntu-latest - cxx_compiler: icpx - std: 17 - build_type: release - device_type: cpu - steps: - - uses: actions/checkout@v4 - - name: Set up Intel APT repository - run: | - # https://www.intel.com/content/www/us/en/docs/oneapi/installation-guide-linux/2024-0/apt.html - wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB \ - | gpg --dearmor | sudo tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null - echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list - sudo apt-get update -y - - name: Install Intel® oneAPI Threading Building Blocks - run: | - sudo apt-get install intel-oneapi-tbb-devel -y - - name: Install Intel® oneAPI DPC++/C++ Compiler - run: | - sudo apt-get install intel-oneapi-compiler-dpcpp-cpp -y - # Avoid accidental use of a released version, keeping libpstloffload.so - sudo rm -rf ${LINUX_ONEAPI_PATH}/dpl/latest/include - - name: Run testing - shell: bash - run: | - set -x - source ${LINUX_ONEAPI_PATH}/setvars.sh - echo "::warning::CMake: $(cmake --version)" - echo "::warning::Compiler: $(${{ matrix.cxx_compiler }} --version)" - - make_targets="build-onedpl-pstloffload_smoke_tests-tests" - ctest_flags="-L pstloffload_smoke_tests" - - mkdir build && cd build - lscpu - device_type=${{ matrix.device_type }} - cmake -DCMAKE_CXX_STANDARD=${{ matrix.std }} -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \ - -DCMAKE_CXX_COMPILER=${{ matrix.cxx_compiler }} -DONEDPL_BACKEND=dpcpp \ - -D_ONEDPL_PSTL_OFFLOAD=$device_type .. - - make pstloffload - source vars.sh - - make VERBOSE=1 -j${BUILD_CONCURRENCY} ${make_targets} - - ctest --timeout ${TEST_TIMEOUT} --output-on-failure ${ctest_flags} - - windows-pstl-offload-testing: - name: PSTL offload ${{ matrix.device_type }},bknd=${{ matrix.backend }},cmplr=${{ matrix.cxx_compiler }},${{ matrix.os }},std=c++${{ matrix.std }},cfg=${{ matrix.build_type }} - runs-on: ['${{ matrix.os }}'] - timeout-minutes: 60 - strategy: - fail-fast: false - matrix: - include: - - os: windows-latest - cxx_compiler: icx-cl - std: 17 - build_type: release - backend: dpcpp - device_type: cpu - steps: - - uses: actions/checkout@v4 - - name: Install Intel® oneAPI Threading Building Blocks - if: (matrix.backend == 'tbb' || matrix.backend == 'dpcpp') - shell: cmd - run: | - curl %WINDOWS_TBB_DOWNLOAD_LINK% --output tbb_install.exe - tbb_install.exe -s -a --silent --eula accept -p=NEED_VS2019_INTEGRATION=0 -p=NEED_VS2022_INTEGRATION=0 - del tbb_install.exe - - name: Install Intel® oneAPI DPC++/C++ Compiler - shell: cmd - run: | - curl %WINDOWS_ICPX_DOWNLOAD_LINK% --output icpx_install.exe - icpx_install.exe -s -a --silent --eula accept -p=NEED_VS2019_INTEGRATION=0 -p=NEED_VS2022_INTEGRATION=0 - del icpx_install.exe - :: Avoid accidental use of a released version - rd /s /q "%WINDOWS_ONEAPI_PATH%\dpl" - - name: Run testing - shell: cmd - run: | - if exist "%WINDOWS_ONEAPI_PATH%\setvars.bat" ( - call "%WINDOWS_ONEAPI_PATH%\setvars.bat" - ) - if "${{ matrix.cxx_compiler }}" == "cl" ( - call "C:\Program Files (x86)\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64 - ) - powershell $output = cmake --version; Write-Host ::warning::CMake: $output - powershell $output = ${{ matrix.cxx_compiler }} --version; Write-Host ::warning::Compiler: $output - - set ninja_targets=build-onedpl-pstloffload_smoke_tests-tests - set ctest_flags= -L pstloffload_smoke_tests - - mkdir build && cd build - - cmake -G "Ninja" -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_CXX_STANDARD=${{ matrix.std }} -DCMAKE_CXX_COMPILER=${{ matrix.cxx_compiler }} -DONEDPL_BACKEND=${{ matrix.backend }} -D_ONEDPL_PSTL_OFFLOAD=${{ matrix.device_type }} .. || goto :short_circuit_fail - ninja -j 2 -v pstloffload || goto :short_circuit_fail - call .\vars.bat - ninja -j 2 -v %ninja_targets% || goto :short_circuit_fail - ctest --timeout %TEST_TIMEOUT% -C ${{ matrix.build_type }} --output-on-failure %ctest_flags% || goto :short_circuit_fail - exit /b 0 - :: modify the default behaviour of shell:cmd, which exits with the status of a last command, in order not to unintentially miss an error - :short_circuit_fail - exit /b %errorlevel% - windows-testing: name: ${{ matrix.device_type }},bknd=${{ matrix.backend }},cmplr=${{ matrix.cxx_compiler }},${{ matrix.os }},std=c++${{ matrix.std }},cfg=${{ matrix.build_type }} runs-on: ['${{ matrix.os }}'] diff --git a/CMakeLists.txt b/CMakeLists.txt index 61927a3aca9..ddfa2dc2246 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -373,30 +373,6 @@ if (NOT _ONEDPL_PSTL_OFFLOAD STREQUAL off) message(STATUS "Adding ${FSYCL_PSTL_OFFLOAD_OPTION} compiler option") target_compile_options(oneDPL INTERFACE ${FSYCL_PSTL_OFFLOAD_OPTION}) target_link_libraries(oneDPL INTERFACE ${FSYCL_PSTL_OFFLOAD_OPTION}) - else() - # TODO: remove this "manual" -fsycl-pstl-offload suboption substitution and replace with FATAL_ERROR - # message(FATAL_ERROR "${CMAKE_CXX_COMPILER} doesn't support ${FSYCL_PSTL_OFFLOAD_OPTION}") - message(STATUS "Adding manual ${FSYCL_PSTL_OFFLOAD_OPTION} compiler options") - if (_ONEDPL_PSTL_OFFLOAD STREQUAL default) - set(PSTL_OFFLOAD_MACRO_VALUE 1) - elseif (_ONEDPL_PSTL_OFFLOAD STREQUAL cpu) - set(PSTL_OFFLOAD_MACRO_VALUE 2) - elseif (_ONEDPL_PSTL_OFFLOAD STREQUAL gpu) - set(PSTL_OFFLOAD_MACRO_VALUE 3) - else() - message(FATAL_ERROR "Unknown value of _ONEDPL_PSTL_OFFLOAD = ${_ONEDPL_PSTL_OFFLOAD}") - endif() - - target_include_directories(oneDPL INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/include/pstl_offload) - target_compile_options(oneDPL INTERFACE "-D__SYCL_PSTL_OFFLOAD__=${PSTL_OFFLOAD_MACRO_VALUE}") - endif() - - add_subdirectory(src) - - # TODO remove explicit linkage with libpstloffload - if (NOT _fsycl_pstl_offload_option) - add_dependencies(oneDPL pstloffload) - target_link_libraries(oneDPL INTERFACE pstloffload) endif() endif() diff --git a/include/pstl_offload/algorithm b/include/pstl_offload/algorithm deleted file mode 100644 index a8aa0ea8462..00000000000 --- a/include/pstl_offload/algorithm +++ /dev/null @@ -1,26 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ALGORITHM - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ALGORITHM -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ALGORITHM -# include "internal/algorithm_redirection_impl.h" -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ALGORITHM -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ALGORITHM - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ALGORITHM diff --git a/include/pstl_offload/any b/include/pstl_offload/any deleted file mode 100644 index d7b99be8bcb..00000000000 --- a/include/pstl_offload/any +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ANY - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ANY -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ANY -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ANY -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ANY - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ANY diff --git a/include/pstl_offload/array b/include/pstl_offload/array deleted file mode 100644 index c42134dddbd..00000000000 --- a/include/pstl_offload/array +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ARRAY - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ARRAY -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ARRAY -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ARRAY -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ARRAY - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ARRAY diff --git a/include/pstl_offload/atomic b/include/pstl_offload/atomic deleted file mode 100644 index 1ef9dd2b1f0..00000000000 --- a/include/pstl_offload/atomic +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ATOMIC - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ATOMIC -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ATOMIC -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ATOMIC -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ATOMIC - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ATOMIC diff --git a/include/pstl_offload/barrier b/include/pstl_offload/barrier deleted file mode 100644 index eababce900f..00000000000 --- a/include/pstl_offload/barrier +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_BARRIER - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_BARRIER -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_BARRIER -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_BARRIER -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_BARRIER - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_BARRIER diff --git a/include/pstl_offload/bit b/include/pstl_offload/bit deleted file mode 100644 index 675474e5f67..00000000000 --- a/include/pstl_offload/bit +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_BIT - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_BIT -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_BIT -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_BIT -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_BIT - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_BIT diff --git a/include/pstl_offload/bitset b/include/pstl_offload/bitset deleted file mode 100644 index 9bda23c32b5..00000000000 --- a/include/pstl_offload/bitset +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_BITSET - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_BITSET -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_BITSET -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_BITSET -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_BITSET - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_BITSET diff --git a/include/pstl_offload/cassert b/include/pstl_offload/cassert deleted file mode 100644 index 5f3fb618f73..00000000000 --- a/include/pstl_offload/cassert +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CASSERT - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CASSERT -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CASSERT -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CASSERT -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CASSERT - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CASSERT diff --git a/include/pstl_offload/cctype b/include/pstl_offload/cctype deleted file mode 100644 index 706269bb0bc..00000000000 --- a/include/pstl_offload/cctype +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CCTYPE - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CCTYPE -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CCTYPE -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CCTYPE -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CCTYPE - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CCTYPE diff --git a/include/pstl_offload/cerrno b/include/pstl_offload/cerrno deleted file mode 100644 index bbed15c9881..00000000000 --- a/include/pstl_offload/cerrno +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CERRNO - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CERRNO -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CERRNO -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CERRNO -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CERRNO - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CERRNO diff --git a/include/pstl_offload/cfenv b/include/pstl_offload/cfenv deleted file mode 100644 index dbcca407e1b..00000000000 --- a/include/pstl_offload/cfenv +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CFENV - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CFENV -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CFENV -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CFENV -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CFENV - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CFENV diff --git a/include/pstl_offload/cfloat b/include/pstl_offload/cfloat deleted file mode 100644 index c5710cd7253..00000000000 --- a/include/pstl_offload/cfloat +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CFLOAT - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CFLOAT -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CFLOAT -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CFLOAT -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CFLOAT - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CFLOAT diff --git a/include/pstl_offload/charconv b/include/pstl_offload/charconv deleted file mode 100644 index 73f29ce7cef..00000000000 --- a/include/pstl_offload/charconv +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CHARCONV - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CHARCONV -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CHARCONV -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CHARCONV -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CHARCONV - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CHARCONV diff --git a/include/pstl_offload/chrono b/include/pstl_offload/chrono deleted file mode 100644 index c9c3af1a494..00000000000 --- a/include/pstl_offload/chrono +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CHRONO - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CHRONO -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CHRONO -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CHRONO -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CHRONO - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CHRONO diff --git a/include/pstl_offload/cinttypes b/include/pstl_offload/cinttypes deleted file mode 100644 index 5b2fc07cde0..00000000000 --- a/include/pstl_offload/cinttypes +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CINTTYPES - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CINTTYPES -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CINTTYPES -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CINTTYPES -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CINTTYPES - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CINTTYPES diff --git a/include/pstl_offload/climits b/include/pstl_offload/climits deleted file mode 100644 index 9e1d48ee732..00000000000 --- a/include/pstl_offload/climits +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CLIMITS - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CLIMITS -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CLIMITS -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CLIMITS -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CLIMITS - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CLIMITS diff --git a/include/pstl_offload/clocale b/include/pstl_offload/clocale deleted file mode 100644 index b45b0447168..00000000000 --- a/include/pstl_offload/clocale +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CLOCALE - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CLOCALE -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CLOCALE -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CLOCALE -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CLOCALE - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CLOCALE diff --git a/include/pstl_offload/cmath b/include/pstl_offload/cmath deleted file mode 100644 index 7ae0222cc9a..00000000000 --- a/include/pstl_offload/cmath +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CMATH - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CMATH -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CMATH -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CMATH -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CMATH - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CMATH diff --git a/include/pstl_offload/codecvt b/include/pstl_offload/codecvt deleted file mode 100644 index 7a5943d6bc1..00000000000 --- a/include/pstl_offload/codecvt +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CODECVT - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CODECVT -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CODECVT -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CODECVT -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CODECVT - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CODECVT diff --git a/include/pstl_offload/compare b/include/pstl_offload/compare deleted file mode 100644 index 55457fe60aa..00000000000 --- a/include/pstl_offload/compare +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_COMPARE - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_COMPARE -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_COMPARE -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_COMPARE -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_COMPARE - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_COMPARE diff --git a/include/pstl_offload/complex b/include/pstl_offload/complex deleted file mode 100644 index 443535c5c4f..00000000000 --- a/include/pstl_offload/complex +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_COMPLEX - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_COMPLEX -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_COMPLEX -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_COMPLEX -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_COMPLEX - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_COMPLEX diff --git a/include/pstl_offload/concepts b/include/pstl_offload/concepts deleted file mode 100644 index 8d0e117a1ab..00000000000 --- a/include/pstl_offload/concepts +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CONCEPTS - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CONCEPTS -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CONCEPTS -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CONCEPTS -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CONCEPTS - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CONCEPTS diff --git a/include/pstl_offload/condition_variable b/include/pstl_offload/condition_variable deleted file mode 100644 index bf9d0e7dbef..00000000000 --- a/include/pstl_offload/condition_variable +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CONDITION_VARIABLE - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CONDITION_VARIABLE -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CONDITION_VARIABLE -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CONDITION_VARIABLE -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CONDITION_VARIABLE - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CONDITION_VARIABLE diff --git a/include/pstl_offload/coroutine b/include/pstl_offload/coroutine deleted file mode 100644 index 393c607be80..00000000000 --- a/include/pstl_offload/coroutine +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_COROUTINE - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_COROUTINE -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_COROUTINE -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_COROUTINE -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_COROUTINE - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_COROUTINE diff --git a/include/pstl_offload/csetjmp b/include/pstl_offload/csetjmp deleted file mode 100644 index b8fe862810a..00000000000 --- a/include/pstl_offload/csetjmp +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CSETJMP - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CSETJMP -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CSETJMP -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CSETJMP -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CSETJMP - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CSETJMP diff --git a/include/pstl_offload/csignal b/include/pstl_offload/csignal deleted file mode 100644 index dcc61a5a34f..00000000000 --- a/include/pstl_offload/csignal +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CSIGNAL - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CSIGNAL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CSIGNAL -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CSIGNAL -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CSIGNAL - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CSIGNAL diff --git a/include/pstl_offload/cstdarg b/include/pstl_offload/cstdarg deleted file mode 100644 index 33280ca1462..00000000000 --- a/include/pstl_offload/cstdarg +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CSTDARG - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CSTDARG -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CSTDARG -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CSTDARG -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CSTDARG - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CSTDARG diff --git a/include/pstl_offload/cstddef b/include/pstl_offload/cstddef deleted file mode 100644 index ca10b501302..00000000000 --- a/include/pstl_offload/cstddef +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CSTDDEF - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CSTDDEF -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CSTDDEF -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CSTDDEF -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CSTDDEF - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CSTDDEF diff --git a/include/pstl_offload/cstdint b/include/pstl_offload/cstdint deleted file mode 100644 index 164757fb35c..00000000000 --- a/include/pstl_offload/cstdint +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CSTDINT - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CSTDINT -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CSTDINT -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CSTDINT -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CSTDINT - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CSTDINT diff --git a/include/pstl_offload/cstdio b/include/pstl_offload/cstdio deleted file mode 100644 index a073c4b221f..00000000000 --- a/include/pstl_offload/cstdio +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CSTDIO - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CSTDIO -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CSTDIO -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CSTDIO -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CSTDIO - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CSTDIO diff --git a/include/pstl_offload/cstdlib b/include/pstl_offload/cstdlib deleted file mode 100644 index ddb80d6341a..00000000000 --- a/include/pstl_offload/cstdlib +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CSTDLIB - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CSTDLIB -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CSTDLIB -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CSTDLIB -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CSTDLIB - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CSTDLIB diff --git a/include/pstl_offload/cstring b/include/pstl_offload/cstring deleted file mode 100644 index b4930cd478d..00000000000 --- a/include/pstl_offload/cstring +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CSTRING - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CSTRING -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CSTRING -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CSTRING -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CSTRING - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CSTRING diff --git a/include/pstl_offload/ctime b/include/pstl_offload/ctime deleted file mode 100644 index 89620c426b0..00000000000 --- a/include/pstl_offload/ctime +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CTIME - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CTIME -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CTIME -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CTIME -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CTIME - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CTIME diff --git a/include/pstl_offload/cuchar b/include/pstl_offload/cuchar deleted file mode 100644 index 460be8de643..00000000000 --- a/include/pstl_offload/cuchar +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CUCHAR - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CUCHAR -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CUCHAR -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CUCHAR -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CUCHAR - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CUCHAR diff --git a/include/pstl_offload/cwchar b/include/pstl_offload/cwchar deleted file mode 100644 index d8f23cda70c..00000000000 --- a/include/pstl_offload/cwchar +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CWCHAR - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CWCHAR -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CWCHAR -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CWCHAR -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CWCHAR - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CWCHAR diff --git a/include/pstl_offload/cwctype b/include/pstl_offload/cwctype deleted file mode 100644 index 1cb515d5e54..00000000000 --- a/include/pstl_offload/cwctype +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CWCTYPE - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CWCTYPE -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CWCTYPE -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CWCTYPE -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CWCTYPE - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_CWCTYPE diff --git a/include/pstl_offload/deque b/include/pstl_offload/deque deleted file mode 100644 index 4d0781a48b4..00000000000 --- a/include/pstl_offload/deque +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_DEQUE - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_DEQUE -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_DEQUE -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_DEQUE -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_DEQUE - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_DEQUE diff --git a/include/pstl_offload/exception b/include/pstl_offload/exception deleted file mode 100644 index eeb2dab3c0b..00000000000 --- a/include/pstl_offload/exception +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_EXCEPTION - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_EXCEPTION -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_EXCEPTION -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_EXCEPTION -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_EXCEPTION - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_EXCEPTION diff --git a/include/pstl_offload/execution b/include/pstl_offload/execution deleted file mode 100644 index fb3eaa8b443..00000000000 --- a/include/pstl_offload/execution +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_EXECUTION - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_EXECUTION -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_EXECUTION -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_EXECUTION -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_EXECUTION - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_EXECUTION diff --git a/include/pstl_offload/filesystem b/include/pstl_offload/filesystem deleted file mode 100644 index 25ef8ee3fcc..00000000000 --- a/include/pstl_offload/filesystem +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_FILESYSTEM - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_FILESYSTEM -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_FILESYSTEM -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_FILESYSTEM -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_FILESYSTEM - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_FILESYSTEM diff --git a/include/pstl_offload/format b/include/pstl_offload/format deleted file mode 100644 index 3c84af40e10..00000000000 --- a/include/pstl_offload/format +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_FORMAT - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_FORMAT -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_FORMAT -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_FORMAT -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_FORMAT - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_FORMAT diff --git a/include/pstl_offload/forward_list b/include/pstl_offload/forward_list deleted file mode 100644 index 281d92508e0..00000000000 --- a/include/pstl_offload/forward_list +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_FORWARD_LIST - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_FORWARD_LIST -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_FORWARD_LIST -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_FORWARD_LIST -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_FORWARD_LIST - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_FORWARD_LIST diff --git a/include/pstl_offload/fstream b/include/pstl_offload/fstream deleted file mode 100644 index a951d492231..00000000000 --- a/include/pstl_offload/fstream +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_FSTREAM - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_FSTREAM -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_FSTREAM -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_FSTREAM -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_FSTREAM - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_FSTREAM diff --git a/include/pstl_offload/functional b/include/pstl_offload/functional deleted file mode 100644 index 36792bcee01..00000000000 --- a/include/pstl_offload/functional +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_FUNCTIONAL - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_FUNCTIONAL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_FUNCTIONAL -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_FUNCTIONAL -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_FUNCTIONAL - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_FUNCTIONAL diff --git a/include/pstl_offload/future b/include/pstl_offload/future deleted file mode 100644 index e8586d92c82..00000000000 --- a/include/pstl_offload/future +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_FUTURE - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_FUTURE -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_FUTURE -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_FUTURE -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_FUTURE - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_FUTURE diff --git a/include/pstl_offload/initializer_list b/include/pstl_offload/initializer_list deleted file mode 100644 index a08aa1e61dd..00000000000 --- a/include/pstl_offload/initializer_list +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_INITIALIZER_LIST - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_INITIALIZER_LIST -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_INITIALIZER_LIST -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_INITIALIZER_LIST -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_INITIALIZER_LIST - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_INITIALIZER_LIST diff --git a/include/pstl_offload/internal/algorithm_redirection_impl.h b/include/pstl_offload/internal/algorithm_redirection_impl.h deleted file mode 100644 index 2e64ca73857..00000000000 --- a/include/pstl_offload/internal/algorithm_redirection_impl.h +++ /dev/null @@ -1,1032 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_INTERNAL_ALGORITHM_REDIRECTION_IMPL_H -#define _ONEDPL_PSTL_OFFLOAD_INTERNAL_ALGORITHM_REDIRECTION_IMPL_H - -#if !__SYCL_PSTL_OFFLOAD__ -# error "PSTL offload compiler mode should be enabled to use this header" -#endif - -#include -#include - -#include - -#include "usm_memory_replacement.h" - -namespace std -{ - -// All the algorithms below get the policy from static __offload_policy_holder object. -// They needs to be explicitly marked static because, otherwise, function templates behave -// like inline that can result in using only one device in all translation units no matter which -// PSTL offload option argument was used for the particular translation unit compilation - -template -static bool -any_of(const execution::parallel_unsequenced_policy&, _ForwardIterator __first, _ForwardIterator __last, - _Predicate __pred) -{ - return oneapi::dpl::any_of( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __pred); -} - -template -static bool -all_of(const execution::parallel_unsequenced_policy&, _ForwardIterator __first, _ForwardIterator __last, - _Predicate __pred) -{ - return oneapi::dpl::all_of( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __pred); -} - -template -static bool -none_of(const execution::parallel_unsequenced_policy&, _ForwardIterator __first, _ForwardIterator __last, - _Predicate __pred) -{ - return oneapi::dpl::none_of( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __pred); -} - -template -static void -for_each(const execution::parallel_unsequenced_policy&, _ForwardIterator __first, _ForwardIterator __last, - _Function __f) -{ - oneapi::dpl::for_each( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __f); -} - -template -static void -for_each_n(const execution::parallel_unsequenced_policy&, _ForwardIterator __first, _Size __n, _Function __f) -{ - oneapi::dpl::for_each_n( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __n, __f); -} - -template -static _ForwardIterator -find_if(const execution::parallel_unsequenced_policy&, _ForwardIterator __first, _ForwardIterator __last, - _Predicate __pred) -{ - return oneapi::dpl::find_if( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __pred); -} - -template -static _ForwardIterator -find_if_not(const execution::parallel_unsequenced_policy&, _ForwardIterator __first, _ForwardIterator __last, - _Predicate __pred) -{ - return oneapi::dpl::find_if_not( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __pred); -} - -template -static _ForwardIterator -find(const execution::parallel_unsequenced_policy&, _ForwardIterator __first, _ForwardIterator __last, - const _Tp& __value) -{ - return oneapi::dpl::find( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __value); -} - -template -static _ForwardIterator1 -find_end(const execution::parallel_unsequenced_policy&, _ForwardIterator1 __first, _ForwardIterator1 __last, - _ForwardIterator2 __s_first, _ForwardIterator2 __s_last, _BinaryPredicate __pred) -{ - return oneapi::dpl::find_end( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __s_first, __s_last, __pred); -} - -template -static _ForwardIterator1 -find_end(const execution::parallel_unsequenced_policy&, _ForwardIterator1 __first, _ForwardIterator1 __last, - _ForwardIterator2 __s_first, _ForwardIterator2 __s_last) -{ - return oneapi::dpl::find_end( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __s_first, __s_last); -} - -template -static _ForwardIterator1 -find_first_of(const execution::parallel_unsequenced_policy&, _ForwardIterator1 __first, _ForwardIterator1 __last, - _ForwardIterator2 __s_first, _ForwardIterator2 __s_last, _BinaryPredicate __pred) -{ - return oneapi::dpl::find_first_of( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __s_first, __s_last, __pred); -} - -template -static _ForwardIterator1 -find_first_of(const execution::parallel_unsequenced_policy&, _ForwardIterator1 __first, _ForwardIterator1 __last, - _ForwardIterator2 __s_first, _ForwardIterator2 __s_last) -{ - return oneapi::dpl::find_first_of( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __s_first, __s_last); -} - -template -static _ForwardIterator -adjacent_find(const execution::parallel_unsequenced_policy&, _ForwardIterator __first, _ForwardIterator __last) -{ - return oneapi::dpl::adjacent_find( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last); -} - -template -static _ForwardIterator -adjacent_find(const execution::parallel_unsequenced_policy&, _ForwardIterator __first, _ForwardIterator __last, - _BinaryPredicate __pred) -{ - return oneapi::dpl::adjacent_find( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __pred); -} - -template -static typename iterator_traits<_ForwardIterator>::difference_type -count(const execution::parallel_unsequenced_policy&, _ForwardIterator __first, _ForwardIterator __last, - const _Tp& __value) -{ - return oneapi::dpl::count( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __value); -} - -template -static typename iterator_traits<_ForwardIterator>::difference_type -count_if(const execution::parallel_unsequenced_policy&, _ForwardIterator __first, _ForwardIterator __last, - _Predicate __pred) -{ - return oneapi::dpl::count_if( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __pred); -} - -template -static _ForwardIterator1 -search(const execution::parallel_unsequenced_policy&, _ForwardIterator1 __first, _ForwardIterator1 __last, - _ForwardIterator2 __s_first, _ForwardIterator2 __s_last, _BinaryPredicate __pred) -{ - return oneapi::dpl::search( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __s_first, __s_last, __pred); -} - -template -static _ForwardIterator1 -search(const execution::parallel_unsequenced_policy&, _ForwardIterator1 __first, _ForwardIterator1 __last, - _ForwardIterator2 __s_first, _ForwardIterator2 __s_last) -{ - return oneapi::dpl::search( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __s_first, __s_last); -} - -template -static _ForwardIterator -search_n(const execution::parallel_unsequenced_policy&, _ForwardIterator __first, _ForwardIterator __last, - _Size __count, const _Tp& __value, _BinaryPredicate __pred) -{ - return oneapi::dpl::search_n( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __count, __value, __pred); -} - -template -static _ForwardIterator -search_n(const execution::parallel_unsequenced_policy&, _ForwardIterator __first, _ForwardIterator __last, - _Size __count, const _Tp& __value) -{ - return oneapi::dpl::search_n( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __count, __value); -} - -template -static _ForwardIterator2 -copy(const execution::parallel_unsequenced_policy&, _ForwardIterator1 __first, _ForwardIterator1 __last, - _ForwardIterator2 __result) -{ - return oneapi::dpl::copy( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __result); -} - -template -static _ForwardIterator2 -copy_n(const execution::parallel_unsequenced_policy&, _ForwardIterator1 __first, _Size __n, _ForwardIterator2 __result) -{ - return oneapi::dpl::copy_n( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __n, __result); -} - -template -static _ForwardIterator2 -copy_if(const execution::parallel_unsequenced_policy&, _ForwardIterator1 __first, _ForwardIterator1 __last, - _ForwardIterator2 __result, _Predicate __pred) -{ - return oneapi::dpl::copy_if( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __result, __pred); -} - -template -static _ForwardIterator2 -swap_ranges(const execution::parallel_unsequenced_policy&, _ForwardIterator1 __first1, _ForwardIterator1 __last1, - _ForwardIterator2 __first2) -{ - return oneapi::dpl::swap_ranges( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first1, __last1, __first2); -} - -template -static _ForwardIterator -transform(const execution::parallel_unsequenced_policy&, _ForwardIterator1 __first1, _ForwardIterator1 __last1, - _ForwardIterator2 __first2, _ForwardIterator __result, _BinaryOperation __op) -{ - return oneapi::dpl::transform( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first1, __last1, __first2, __result, __op); -} - -template -static _ForwardIterator2 -transform(const execution::parallel_unsequenced_policy&, _ForwardIterator1 __first, _ForwardIterator1 __last, - _ForwardIterator2 __result, _UnaryOperation __op) -{ - return oneapi::dpl::transform( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __result, __op); -} - -template -static void -replace_if(const execution::parallel_unsequenced_policy&, _ForwardIterator __first, _ForwardIterator __last, - _UnaryPredicate __pred, const _Tp& __new_value) -{ - oneapi::dpl::replace_if( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __pred, __new_value); -} - -template -static void -replace(const execution::parallel_unsequenced_policy&, _ForwardIterator __first, _ForwardIterator __last, - const _Tp& __old_value, const _Tp& __new_value) -{ - oneapi::dpl::replace( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __old_value, __new_value); -} - -template -static _ForwardIterator2 -replace_copy_if(const execution::parallel_unsequenced_policy&, _ForwardIterator1 __first, _ForwardIterator1 __last, - _ForwardIterator2 __result, _UnaryPredicate __pred, const _Tp& __new_value) -{ - return oneapi::dpl::replace_copy_if( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __result, __pred, __new_value); -} - -template -static _ForwardIterator2 -replace_copy(const execution::parallel_unsequenced_policy&, _ForwardIterator1 __first, _ForwardIterator1 __last, - _ForwardIterator2 __result, const _Tp& __old_value, const _Tp& __new_value) -{ - return oneapi::dpl::replace_copy( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __result, __old_value, __new_value); -} - -template -static void -fill(const execution::parallel_unsequenced_policy&, _ForwardIterator __first, _ForwardIterator __last, - const _Tp& __value) -{ - oneapi::dpl::fill( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __value); -} - -template -static _ForwardIterator -fill_n(const execution::parallel_unsequenced_policy&, _ForwardIterator __first, _Size __count, const _Tp& __value) -{ - return oneapi::dpl::fill_n( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __count, __value); -} - -template -static void -generate(const execution::parallel_unsequenced_policy&, _ForwardIterator __first, _ForwardIterator __last, - _Generator __g) -{ - oneapi::dpl::generate( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __g); -} - -template -static _ForwardIterator -generate_n(const execution::parallel_unsequenced_policy&, _ForwardIterator __first, _Size __count, _Generator __g) -{ - return oneapi::dpl::generate_n( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __count, __g); -} - -template -static _ForwardIterator2 -remove_copy_if(const execution::parallel_unsequenced_policy&, _ForwardIterator1 __first, _ForwardIterator1 __last, - _ForwardIterator2 __result, _Predicate __pred) -{ - return oneapi::dpl::remove_copy_if( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __result, __pred); -} - -template -static _ForwardIterator2 -remove_copy(const execution::parallel_unsequenced_policy&, _ForwardIterator1 __first, _ForwardIterator1 __last, - _ForwardIterator2 __result, const _Tp& __value) -{ - return oneapi::dpl::remove_copy( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __result, __value); -} - -template -static _ForwardIterator -remove_if(const execution::parallel_unsequenced_policy&, _ForwardIterator __first, _ForwardIterator __last, - _UnaryPredicate __pred) -{ - return oneapi::dpl::remove_if( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __pred); -} - -template -static _ForwardIterator -remove(const execution::parallel_unsequenced_policy&, _ForwardIterator __first, _ForwardIterator __last, - const _Tp& __value) -{ - return oneapi::dpl::remove( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __value); -} - -template -static _ForwardIterator -unique(const execution::parallel_unsequenced_policy&, _ForwardIterator __first, _ForwardIterator __last, - _BinaryPredicate __pred) -{ - return oneapi::dpl::unique( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __pred); -} - -template -static _ForwardIterator -unique(const execution::parallel_unsequenced_policy&, _ForwardIterator __first, _ForwardIterator __last) -{ - return oneapi::dpl::unique( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last); -} - -template -static _ForwardIterator2 -unique_copy(const execution::parallel_unsequenced_policy&, _ForwardIterator1 __first, _ForwardIterator1 __last, - _ForwardIterator2 __result, _BinaryPredicate __pred) -{ - return oneapi::dpl::unique_copy( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __result, __pred); -} - -template -static _ForwardIterator2 -unique_copy(const execution::parallel_unsequenced_policy&, _ForwardIterator1 __first, _ForwardIterator1 __last, - _ForwardIterator2 __result) -{ - return oneapi::dpl::unique_copy( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __result); -} - -template -static void -reverse(const execution::parallel_unsequenced_policy&, _BidirectionalIterator __first, _BidirectionalIterator __last) -{ - return oneapi::dpl::reverse( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last); -} - -template -static _ForwardIterator -reverse_copy(const execution::parallel_unsequenced_policy&, _BidirectionalIterator __first, - _BidirectionalIterator __last, _ForwardIterator __d_first) -{ - return oneapi::dpl::reverse_copy( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __d_first); -} - -template -static _ForwardIterator -rotate(const execution::parallel_unsequenced_policy&, _ForwardIterator __first, _ForwardIterator __middle, - _ForwardIterator __last) -{ - return oneapi::dpl::rotate( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __middle, __last); -} - -template -static _ForwardIterator2 -rotate_copy(const execution::parallel_unsequenced_policy&, _ForwardIterator1 __first, _ForwardIterator1 __middle, - _ForwardIterator1 __last, _ForwardIterator2 __result) -{ - return oneapi::dpl::rotate_copy( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __middle, __last, __result); -} - -template -static bool -is_partitioned(const execution::parallel_unsequenced_policy&, _ForwardIterator __first, _ForwardIterator __last, - _UnaryPredicate __pred) -{ - return oneapi::dpl::is_partitioned( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __pred); -} - -template -static _ForwardIterator -partition(const execution::parallel_unsequenced_policy&, _ForwardIterator __first, _ForwardIterator __last, - _UnaryPredicate __pred) -{ - return oneapi::dpl::partition( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __pred); -} - -template -static _BidirectionalIterator -stable_partition(const execution::parallel_unsequenced_policy&, _BidirectionalIterator __first, - _BidirectionalIterator __last, _UnaryPredicate __pred) -{ - return oneapi::dpl::stable_partition( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __pred); -} - -template -static pair<_ForwardIterator1, _ForwardIterator2> -partition_copy(const execution::parallel_unsequenced_policy&, _ForwardIterator __first, _ForwardIterator __last, - _ForwardIterator1 __out_true, _ForwardIterator2 __out_false, _UnaryPredicate __pred) -{ - return oneapi::dpl::partition_copy( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __out_true, __out_false, __pred); -} - -template -static void -sort(const execution::parallel_unsequenced_policy&, _RandomAccessIterator __first, _RandomAccessIterator __last, - _Compare __comp) -{ - oneapi::dpl::sort( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __comp); -} - -template -static void -sort(const execution::parallel_unsequenced_policy&, _RandomAccessIterator __first, _RandomAccessIterator __last) -{ - oneapi::dpl::sort( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last); -} - -template -static void -stable_sort(const execution::parallel_unsequenced_policy&, _RandomAccessIterator __first, _RandomAccessIterator __last, - _Compare __comp) -{ - oneapi::dpl::stable_sort( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __comp); -} - -template -static void -stable_sort(const execution::parallel_unsequenced_policy&, _RandomAccessIterator __first, _RandomAccessIterator __last) -{ - oneapi::dpl::stable_sort( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last); -} - -template -static pair<_ForwardIterator1, _ForwardIterator2> -mismatch(const execution::parallel_unsequenced_policy&, _ForwardIterator1 __first1, _ForwardIterator1 __last1, - _ForwardIterator2 __first2, _ForwardIterator2 __last2, _BinaryPredicate __pred) -{ - return oneapi::dpl::mismatch( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first1, __last1, __first2, __last2, __pred); -} - -template -static pair<_ForwardIterator1, _ForwardIterator2> -mismatch(const execution::parallel_unsequenced_policy&, _ForwardIterator1 __first1, _ForwardIterator1 __last1, - _ForwardIterator2 __first2, _BinaryPredicate __pred) -{ - return oneapi::dpl::mismatch( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first1, __last1, __first2, __pred); -} - -template -static pair<_ForwardIterator1, _ForwardIterator2> -mismatch(const execution::parallel_unsequenced_policy&, _ForwardIterator1 __first1, _ForwardIterator1 __last1, - _ForwardIterator2 __first2, _ForwardIterator2 __last2) -{ - return oneapi::dpl::mismatch( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first1, __last1, __first2, __last2); -} - -template -static pair<_ForwardIterator1, _ForwardIterator2> -mismatch(const execution::parallel_unsequenced_policy&, _ForwardIterator1 __first1, _ForwardIterator1 __last1, - _ForwardIterator2 __first2) -{ - return oneapi::dpl::mismatch( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first1, __last1, __first2); -} - -template -static bool -equal(const execution::parallel_unsequenced_policy&, _ForwardIterator1 __first1, _ForwardIterator1 __last1, - _ForwardIterator2 __first2, _BinaryPredicate __pred) -{ - return oneapi::dpl::equal( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first1, __last1, __first2, __pred); -} - -template -static bool -equal(const execution::parallel_unsequenced_policy&, _ForwardIterator1 __first1, _ForwardIterator1 __last1, - _ForwardIterator2 __first2) -{ - return oneapi::dpl::equal( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first1, __last1, __first2); -} - -template -static bool -equal(const execution::parallel_unsequenced_policy&, _ForwardIterator1 __first1, _ForwardIterator1 __last1, - _ForwardIterator2 __first2, _ForwardIterator2 __last2, _BinaryPredicate __pred) -{ - return oneapi::dpl::equal( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first1, __last1, __first2, __last2, __pred); -} - -template -static bool -equal(const execution::parallel_unsequenced_policy&, _ForwardIterator1 __first1, _ForwardIterator1 __last1, - _ForwardIterator2 __first2, _ForwardIterator2 __last2) -{ - return oneapi::dpl::equal( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first1, __last1, __first2, __last2); -} - -template -static _ForwardIterator2 -move(const execution::parallel_unsequenced_policy&, _ForwardIterator1 __first, _ForwardIterator1 __last, - _ForwardIterator2 __d_first) -{ - return oneapi::dpl::move( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __d_first); -} - -template -static void -partial_sort(const execution::parallel_unsequenced_policy&, _RandomAccessIterator __first, - _RandomAccessIterator __middle, _RandomAccessIterator __last, _Compare __comp) -{ - oneapi::dpl::partial_sort( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __middle, __last, __comp); -} - -template -static void -partial_sort(const execution::parallel_unsequenced_policy&, _RandomAccessIterator __first, - _RandomAccessIterator __middle, _RandomAccessIterator __last) -{ - oneapi::dpl::partial_sort( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __middle, __last); -} - -template -static _RandomAccessIterator -partial_sort_copy(const execution::parallel_unsequenced_policy&, _ForwardIterator __first, _ForwardIterator __last, - _RandomAccessIterator __d_first, _RandomAccessIterator __d_last, _Compare __comp) -{ - return oneapi::dpl::partial_sort_copy( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __d_first, __d_last, __comp); -} - -template -static _RandomAccessIterator -partial_sort_copy(const execution::parallel_unsequenced_policy&, _ForwardIterator __first, _ForwardIterator __last, - _RandomAccessIterator __d_first, _RandomAccessIterator __d_last) -{ - return oneapi::dpl::partial_sort_copy( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __d_first, __d_last); -} - -template -static _ForwardIterator -is_sorted_until(const execution::parallel_unsequenced_policy&, _ForwardIterator __first, _ForwardIterator __last, - _Compare __comp) -{ - return oneapi::dpl::is_sorted_until( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __comp); -} - -template -static _ForwardIterator -is_sorted_until(const execution::parallel_unsequenced_policy&, _ForwardIterator __first, _ForwardIterator __last) -{ - return oneapi::dpl::is_sorted_until( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last); -} - -template -static bool -is_sorted(const execution::parallel_unsequenced_policy&, _ForwardIterator __first, _ForwardIterator __last, - _Compare __comp) -{ - return oneapi::dpl::is_sorted( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __comp); -} - -template -static bool -is_sorted(const execution::parallel_unsequenced_policy&, _ForwardIterator __first, _ForwardIterator __last) -{ - return oneapi::dpl::is_sorted( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last); -} - -template -static _ForwardIterator -merge(const execution::parallel_unsequenced_policy&, _ForwardIterator1 __first1, _ForwardIterator1 __last1, - _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __d_first, _Compare __comp) -{ - return oneapi::dpl::merge( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first1, __last1, __first2, __last2, __d_first, __comp); -} - -template -static _ForwardIterator -merge(const execution::parallel_unsequenced_policy&, _ForwardIterator1 __first1, _ForwardIterator1 __last1, - _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __d_first) -{ - return oneapi::dpl::merge( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first1, __last1, __first2, __last2, __d_first); -} - -template -static void -inplace_merge(const execution::parallel_unsequenced_policy&, _BidirectionalIterator __first, - _BidirectionalIterator __middle, _BidirectionalIterator __last, _Compare __comp) -{ - oneapi::dpl::inplace_merge( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __middle, __last, __comp); -} - -template -static void -inplace_merge(const execution::parallel_unsequenced_policy&, _BidirectionalIterator __first, - _BidirectionalIterator __middle, _BidirectionalIterator __last) -{ - oneapi::dpl::inplace_merge( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __middle, __last); -} - -template -static bool -includes(const execution::parallel_unsequenced_policy&, _ForwardIterator1 __first1, _ForwardIterator1 __last1, - _ForwardIterator2 __first2, _ForwardIterator2 __last2, _Compare __comp) -{ - return oneapi::dpl::includes( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first1, __last1, __first2, __last2, __comp); -} - -template -static bool -includes(const execution::parallel_unsequenced_policy&, _ForwardIterator1 __first1, _ForwardIterator1 __last1, - _ForwardIterator2 __first2, _ForwardIterator2 __last2) -{ - return oneapi::dpl::includes( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first1, __last1, __first2, __last2); -} - -template -static _ForwardIterator -set_union(const execution::parallel_unsequenced_policy&, _ForwardIterator1 __first1, _ForwardIterator1 __last1, - _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result, _Compare __comp) -{ - return oneapi::dpl::set_union( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first1, __last1, __first2, __last2, __result, __comp); -} - -template -static _ForwardIterator -set_union(const execution::parallel_unsequenced_policy&, _ForwardIterator1 __first1, _ForwardIterator1 __last1, - _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result) -{ - return oneapi::dpl::set_union( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first1, __last1, __first2, __last2, __result); -} - -template -static _ForwardIterator -set_intersection(const execution::parallel_unsequenced_policy&, _ForwardIterator1 __first1, _ForwardIterator1 __last1, - _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result, _Compare __comp) -{ - return oneapi::dpl::set_intersection( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first1, __last1, __first2, __last2, __result, __comp); -} - -template -static _ForwardIterator -set_intersection(const execution::parallel_unsequenced_policy&, _ForwardIterator1 __first1, _ForwardIterator1 __last1, - _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result) -{ - return oneapi::dpl::set_intersection( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first1, __last1, __first2, __last2, __result); -} - -template -static _ForwardIterator -set_difference(const execution::parallel_unsequenced_policy&, _ForwardIterator1 __first1, _ForwardIterator1 __last1, - _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result, _Compare __comp) -{ - return oneapi::dpl::set_difference( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first1, __last1, __first2, __last2, __result, __comp); -} - -template -static _ForwardIterator -set_difference(const execution::parallel_unsequenced_policy&, _ForwardIterator1 __first1, _ForwardIterator1 __last1, - _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result) -{ - return oneapi::dpl::set_difference( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first1, __last1, __first2, __last2, __result); -} - -template -static _ForwardIterator -set_symmetric_difference(const execution::parallel_unsequenced_policy&, _ForwardIterator1 __first1, - _ForwardIterator1 __last1, _ForwardIterator2 __first2, _ForwardIterator2 __last2, - _ForwardIterator __result, _Compare __comp) -{ - return oneapi::dpl::set_symmetric_difference( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first1, __last1, __first2, __last2, __result, __comp); -} - -template -static _ForwardIterator -set_symmetric_difference(const execution::parallel_unsequenced_policy&, _ForwardIterator1 __first1, - _ForwardIterator1 __last1, _ForwardIterator2 __first2, _ForwardIterator2 __last2, - _ForwardIterator __result) -{ - return oneapi::dpl::set_symmetric_difference( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first1, __last1, __first2, __last2, __result); -} - -template -static _RandomAccessIterator -is_heap_until(const execution::parallel_unsequenced_policy&, _RandomAccessIterator __first, - _RandomAccessIterator __last, _Compare __comp) -{ - return oneapi::dpl::is_heap_until( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __comp); -} - -template -static _RandomAccessIterator -is_heap_until(const execution::parallel_unsequenced_policy&, _RandomAccessIterator __first, - _RandomAccessIterator __last) -{ - return oneapi::dpl::is_heap_until( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last); -} - -template -static bool -is_heap(const execution::parallel_unsequenced_policy&, _RandomAccessIterator __first, _RandomAccessIterator __last, - _Compare __comp) -{ - return oneapi::dpl::is_heap( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __comp); -} - -template -static bool -is_heap(const execution::parallel_unsequenced_policy&, _RandomAccessIterator __first, _RandomAccessIterator __last) -{ - return oneapi::dpl::is_heap( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last); -} - -template -static _ForwardIterator -min_element(const execution::parallel_unsequenced_policy&, _ForwardIterator __first, _ForwardIterator __last, - _Compare __comp) -{ - return oneapi::dpl::min_element( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __comp); -} - -template -static _ForwardIterator -min_element(const execution::parallel_unsequenced_policy&, _ForwardIterator __first, _ForwardIterator __last) -{ - return oneapi::dpl::min_element( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last); -} - -template -static _ForwardIterator -max_element(const execution::parallel_unsequenced_policy&, _ForwardIterator __first, _ForwardIterator __last, - _Compare __comp) -{ - return oneapi::dpl::max_element( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __comp); -} - -template -static _ForwardIterator -max_element(const execution::parallel_unsequenced_policy&, _ForwardIterator __first, _ForwardIterator __last) -{ - return oneapi::dpl::max_element( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last); -} - -template -static pair<_ForwardIterator, _ForwardIterator> -minmax_element(const execution::parallel_unsequenced_policy&, _ForwardIterator __first, _ForwardIterator __last, - _Compare __comp) -{ - return oneapi::dpl::minmax_element( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __comp); -} - -template -static pair<_ForwardIterator, _ForwardIterator> -minmax_element(const execution::parallel_unsequenced_policy&, _ForwardIterator __first, _ForwardIterator __last) -{ - return oneapi::dpl::minmax_element( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last); -} - -template -static void -nth_element(const execution::parallel_unsequenced_policy&, _RandomAccessIterator __first, _RandomAccessIterator __nth, - _RandomAccessIterator __last, _Compare __comp) -{ - return oneapi::dpl::nth_element( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __nth, __last, __comp); -} - -template -static void -nth_element(const execution::parallel_unsequenced_policy&, _RandomAccessIterator __first, _RandomAccessIterator __nth, - _RandomAccessIterator __last) -{ - return oneapi::dpl::nth_element( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __nth, __last); -} - -template -static bool -lexicographical_compare(const execution::parallel_unsequenced_policy&, _ForwardIterator1 __first1, - _ForwardIterator1 __last1, _ForwardIterator2 __first2, _ForwardIterator2 __last2, - _Compare __comp) -{ - return oneapi::dpl::lexicographical_compare( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first1, __last1, __first2, __last2, __comp); -} - -template -static bool -lexicographical_compare(const execution::parallel_unsequenced_policy&, _ForwardIterator1 __first1, - _ForwardIterator1 __last1, _ForwardIterator2 __first2, _ForwardIterator2 __last2) -{ - return oneapi::dpl::lexicographical_compare( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first1, __last1, __first2, __last2); -} - -template -static _ForwardIterator -shift_left(const execution::parallel_unsequenced_policy&, _ForwardIterator __first, _ForwardIterator __last, - typename iterator_traits<_ForwardIterator>::difference_type __n) -{ - return oneapi::dpl::shift_left( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __n); -} - -template -static _ForwardIterator -shift_right(const execution::parallel_unsequenced_policy&, _ForwardIterator __first, _ForwardIterator __last, - typename iterator_traits<_ForwardIterator>::difference_type __n) -{ - return oneapi::dpl::shift_right( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __n); -} - -} // namespace std - -#endif // _ONEDPL_PSTL_OFFLOAD_INTERNAL_ALGORITHM_REDIRECTION_IMPL_H diff --git a/include/pstl_offload/internal/memory_redirection_impl.h b/include/pstl_offload/internal/memory_redirection_impl.h deleted file mode 100644 index 2daef3efd29..00000000000 --- a/include/pstl_offload/internal/memory_redirection_impl.h +++ /dev/null @@ -1,149 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_INTERNAL_MEMORY_REDIRECTION_IMPL_H -#define _ONEDPL_PSTL_OFFLOAD_INTERNAL_MEMORY_REDIRECTION_IMPL_H - -#if !__SYCL_PSTL_OFFLOAD__ -# error "PSTL offload compiler mode should be enabled to use this header" -#endif - -#include - -#include - -#include "usm_memory_replacement.h" - -namespace std -{ - -// All the algorithms below get the policy from static __offload_policy_holder object. -// They needs to be explicitly marked static because, otherwise, function templates behave -// like inline that can result in using only one device in all translation units no matter which -// PSTL offload option argument was used for the particular translation unit compilation - -template -static _ForwardIterator -uninitialized_copy(const execution::parallel_unsequenced_policy&, _InputIterator __first, _InputIterator __last, - _ForwardIterator __result) -{ - return oneapi::dpl::uninitialized_copy( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __result); -} - -template -static _ForwardIterator -uninitialized_copy_n(const execution::parallel_unsequenced_policy&, _InputIterator __first, _Size __n, - _ForwardIterator __result) -{ - return oneapi::dpl::uninitialized_copy_n( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __n, __result); -} - -template -static _ForwardIterator -uninitialized_move(const execution::parallel_unsequenced_policy&, _InputIterator __first, _InputIterator __last, - _ForwardIterator __result) -{ - return oneapi::dpl::uninitialized_move( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __result); -} - -template -static _ForwardIterator -uninitialized_move_n(const execution::parallel_unsequenced_policy&, _InputIterator __first, _Size __n, - _ForwardIterator __result) -{ - return oneapi::dpl::uninitialized_move_n( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __n, __result); -} - -template -static void -uninitialized_fill(const execution::parallel_unsequenced_policy&, _ForwardIterator __first, _ForwardIterator __last, - const _Tp& __value) -{ - oneapi::dpl::uninitialized_fill( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __value); -} - -template -static _ForwardIterator -uninitialized_fill_n(const execution::parallel_unsequenced_policy&, _ForwardIterator __first, _Size __n, - const _Tp& __value) -{ - return oneapi::dpl::uninitialized_fill_n( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __n, __value); -} - -template -static void -destroy(const execution::parallel_unsequenced_policy&, _ForwardIterator __first, _ForwardIterator __last) -{ - oneapi::dpl::destroy( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last); -} - -template -static void -destroy_n(const execution::parallel_unsequenced_policy&, _ForwardIterator __first, _Size __n) -{ - oneapi::dpl::destroy_n( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __n); -} - -template -static void -uninitialized_default_construct(const execution::parallel_unsequenced_policy&, _ForwardIterator __first, - _ForwardIterator __last) -{ - oneapi::dpl::uninitialized_default_construct( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last); -} - -template -static void -uninitialized_default_construct_n(const execution::parallel_unsequenced_policy&, _ForwardIterator __first, _Size __n) -{ - oneapi::dpl::uninitialized_default_construct_n( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __n); -} - -template -static void -uninitialized_value_construct(const execution::parallel_unsequenced_policy&, _ForwardIterator __first, - _ForwardIterator __last) -{ - oneapi::dpl::uninitialized_value_construct( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last); -} - -template -static void -uninitialized_value_construct_n(const execution::parallel_unsequenced_policy&, _ForwardIterator __first, _Size __n) -{ - oneapi::dpl::uninitialized_value_construct_n( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __n); -} - -} // namespace std - -#endif // _ONEDPL_PSTL_OFFLOAD_INTERNAL_MEMORY_REDIRECTION_IMPL_H diff --git a/include/pstl_offload/internal/numeric_redirection_impl.h b/include/pstl_offload/internal/numeric_redirection_impl.h deleted file mode 100644 index ff56c1970ac..00000000000 --- a/include/pstl_offload/internal/numeric_redirection_impl.h +++ /dev/null @@ -1,194 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_INTERNAL_NUMERIC_REDIRECTION_IMPL_H -#define _ONEDPL_PSTL_OFFLOAD_INTERNAL_NUMERIC_REDIRECTION_IMPL_H - -#if !__SYCL_PSTL_OFFLOAD__ -# error "PSTL offload compiler mode should be enabled to use this header" -#endif - -#include - -#include - -#include "usm_memory_replacement.h" - -namespace std -{ - -// All the algorithms below get the policy from static __offload_policy_holder object. -// They needs to be explicitly marked static because, otherwise, function templates behave -// like inline that can result in using only one device in all translation units no matter which -// PSTL offload option argument was used for the particular translation unit compilation - -template -static _Tp -reduce(const execution::parallel_unsequenced_policy&, _ForwardIterator __first, _ForwardIterator __last, _Tp __init, - _BinaryOperation __binary_op) -{ - return oneapi::dpl::reduce( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __init, __binary_op); -} - -template -static _Tp -reduce(const execution::parallel_unsequenced_policy&, _ForwardIterator __first, _ForwardIterator __last, _Tp __init) -{ - return oneapi::dpl::reduce( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __init); -} - -template -static typename iterator_traits<_ForwardIterator>::value_type -reduce(const execution::parallel_unsequenced_policy&, _ForwardIterator __first, _ForwardIterator __last) -{ - return oneapi::dpl::reduce( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last); -} - -template -static _Tp -transform_reduce(const execution::parallel_unsequenced_policy&, _ForwardIterator1 __first1, _ForwardIterator1 __last1, - _ForwardIterator2 __first2, _Tp __init) -{ - return oneapi::dpl::transform_reduce( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first1, __last1, __first2, __init); -} - -template -static _Tp -transform_reduce(const execution::parallel_unsequenced_policy&, _ForwardIterator1 __first1, _ForwardIterator1 __last1, - _ForwardIterator2 __first2, _Tp __init, _BinaryOperation1 __binary_op1, _BinaryOperation2 __binary_op2) -{ - return oneapi::dpl::transform_reduce( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first1, __last1, __first2, __init, __binary_op1, __binary_op2); -} - -template -static _Tp -transform_reduce(const execution::parallel_unsequenced_policy&, _ForwardIterator __first, _ForwardIterator __last, - _Tp __init, _BinaryOperation __binary_op, _UnaryOperation __unary_op) -{ - return oneapi::dpl::transform_reduce( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __init, __binary_op, __unary_op); -} - -template -static _ForwardIterator2 -exclusive_scan(const execution::parallel_unsequenced_policy&, _ForwardIterator1 __first, _ForwardIterator1 __last, - _ForwardIterator2 __d_first, _Tp __init) -{ - return oneapi::dpl::exclusive_scan( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __d_first, __init); -} - -template -static _ForwardIterator2 -exclusive_scan(const execution::parallel_unsequenced_policy&, _ForwardIterator1 __first, _ForwardIterator1 __last, - _ForwardIterator2 __d_first, _Tp __init, _BinaryOperation __binary_op) -{ - return oneapi::dpl::exclusive_scan( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __d_first, __init, __binary_op); -} - -template -static _ForwardIterator2 -inclusive_scan(const execution::parallel_unsequenced_policy&, _ForwardIterator1 __first, _ForwardIterator1 __last, - _ForwardIterator2 __result) -{ - return oneapi::dpl::inclusive_scan( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __result); -} - -template -static _ForwardIterator2 -inclusive_scan(const execution::parallel_unsequenced_policy&, _ForwardIterator1 __first, _ForwardIterator1 __last, - _ForwardIterator2 __result, _BinaryOperation __binary_op) -{ - return oneapi::dpl::inclusive_scan( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __result, __binary_op); -} - -template -static _ForwardIterator2 -inclusive_scan(const execution::parallel_unsequenced_policy&, _ForwardIterator1 __first, _ForwardIterator1 __last, - _ForwardIterator2 __result, _BinaryOperation __binary_op, _Tp __init) -{ - return oneapi::dpl::inclusive_scan( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __result, __binary_op, __init); -} - -template -static _ForwardIterator2 -transform_exclusive_scan(const execution::parallel_unsequenced_policy&, _ForwardIterator1 __first, - _ForwardIterator1 __last, _ForwardIterator2 __result, _Tp __init, _BinaryOperation __binary_op, - _UnaryOperation __unary_op) -{ - return oneapi::dpl::transform_exclusive_scan( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __result, __init, __binary_op, __unary_op); -} - -template -static _ForwardIterator2 -transform_inclusive_scan(const execution::parallel_unsequenced_policy&, _ForwardIterator1 __first, - _ForwardIterator1 __last, _ForwardIterator2 __result, _BinaryOperation __binary_op, - _UnaryOperation __unary_op, _Tp __init) -{ - return oneapi::dpl::transform_inclusive_scan( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __result, __binary_op, __unary_op, __init); -} - -template -static _ForwardIterator2 -transform_inclusive_scan(const execution::parallel_unsequenced_policy&, _ForwardIterator1 __first, - _ForwardIterator1 __last, _ForwardIterator2 __result, _BinaryOperation __binary_op, - _UnaryOperation __unary_op) -{ - return oneapi::dpl::transform_inclusive_scan( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __result, __binary_op, __unary_op); -} - -template -static _ForwardIterator2 -adjacent_difference(const execution::parallel_unsequenced_policy&, _ForwardIterator1 __first, _ForwardIterator1 __last, - _ForwardIterator2 __d_first, _BinaryOperation __op) -{ - return oneapi::dpl::adjacent_difference( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __d_first, __op); -} - -template -static _ForwardIterator2 -adjacent_difference(const execution::parallel_unsequenced_policy&, _ForwardIterator1 __first, _ForwardIterator1 __last, - _ForwardIterator2 __d_first) -{ - return oneapi::dpl::adjacent_difference( - ::__pstl_offload::__offload_policy_holder_type::__get_policy(::__pstl_offload::__offload_policy_holder), - __first, __last, __d_first); -} - -} // namespace std - -#endif // _ONEDPL_PSTL_OFFLOAD_INTERNAL_NUMERIC_REDIRECTION_IMPL_H diff --git a/include/pstl_offload/internal/usm_memory_replacement.h b/include/pstl_offload/internal/usm_memory_replacement.h deleted file mode 100644 index 1fd9b3ce92f..00000000000 --- a/include/pstl_offload/internal/usm_memory_replacement.h +++ /dev/null @@ -1,470 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_INTERNAL_USM_MEMORY_REPLACEMENT_H -#define _ONEDPL_PSTL_OFFLOAD_INTERNAL_USM_MEMORY_REPLACEMENT_H - -#if !__SYCL_PSTL_OFFLOAD__ -# error "PSTL offload compiler mode should be enabled to use this header" -#endif - -#include -#include -#include -#include -#include // std::scoped_lock - -#include - -#include - -#include "usm_memory_replacement_common.h" - -#if _WIN64 -# include -# pragma comment(lib, "pstloffload.lib") -#endif - -namespace __pstl_offload -{ - -// allocation can be requested before static ctor or after static dtor runs, have a flag for that -// keep it out of __offload_policy_holder_type to not access object before ctor or after dtor -static std::atomic_bool __device_ready; - -// Under Windows, we must not use functions with explicit alignment for malloc replacement, as -// an allocated memory would be released by free() replacement, that has no alignment argument. -// Mark such allocations with special alignment. Use 0, as this is not valid alignment. -inline constexpr std::size_t __ignore_alignment = 0; - -static void -__set_device_status(bool __ready) -{ - __device_ready.store(__ready, std::memory_order_release); -} - -static auto -__get_offload_device_selector() -{ -#if __SYCL_PSTL_OFFLOAD__ == 1 - return sycl::default_selector_v; -#elif __SYCL_PSTL_OFFLOAD__ == 2 - return sycl::cpu_selector_v; -#elif __SYCL_PSTL_OFFLOAD__ == 3 - return sycl::gpu_selector_v; -#else -# error "PSTL offload is not enabled or the selected value is unsupported" -#endif -} - -static __spin_mutex __offload_policy_holder_mtx; - -class __offload_policy_holder_type -{ - using __set_device_status_func_type = void (*)(bool); - - public: - // Since the global object of __offload_policy_holder_type is static but the template constructor - // of the class is inline, we need to avoid calling static functions inside of the constructor - // and pass the pointer to exact function as an argument to guarantee that the correct offload device - // would be stored in each translation unit - template - __offload_policy_holder_type(const _DeviceSelector& __device_selector, - __set_device_status_func_type __set_device_status_func, __spin_mutex& __mtx) - : _M_set_device_status_func(__set_device_status_func) - { - sycl::device _device; - - try - { - _device = sycl::device(__device_selector); - } - catch (const sycl::exception& e) - { - // __device_selector call throws with e.code() == sycl::errc::runtime when device selection unable - // to get offload device with required type. Do not pass an exception, as ctor is called for - // a static object and the exception can't be processed. - // Remember the situation as empty _M_device and re-throw exception when asked for - // the policy from user's code. - // Re-throw in every other case, as we don't know the reason of an exception. - if (e.code() == sycl::errc::runtime) - { - return; - } - else - { - throw; - } - } - - std::scoped_lock __lock{__mtx}; - - _M_offload_device.__init(_device); - _M_offload_policy = oneapi::dpl::execution::device_policy<>(_device); - _M_set_device_status_func(true); - } - - ~__offload_policy_holder_type() - { - std::scoped_lock __lock{__offload_policy_holder_mtx}; - - _M_set_device_status_func(false); - } - - static auto - __get_policy(__offload_policy_holder_type& __this) - { - std::scoped_lock __lock{__offload_policy_holder_mtx}; - - if (!__device_ready.load(std::memory_order_acquire)) - { - throw sycl::exception(sycl::errc::runtime); - } - return __this._M_offload_policy; - } - - static __sycl_device_shared_ptr - __get_device_ptr(__offload_policy_holder_type& __this) - { - std::scoped_lock __lock{__offload_policy_holder_mtx}; - - if (__device_ready.load(std::memory_order_acquire)) - { - // it's safe to use copy ctor here, because we under __offload_policy_holder_mtx - // and ~__offload_policy_holder_type() has not been called - return __sycl_device_shared_ptr(__this._M_offload_device); - } - else - { - return __sycl_device_shared_ptr{}; - } - } - - private: - __sycl_device_shared_ptr _M_offload_device; - oneapi::dpl::execution::device_policy<> _M_offload_policy; - __set_device_status_func_type _M_set_device_status_func; -}; // class __offload_policy_holder_type - -static __offload_policy_holder_type __offload_policy_holder{__get_offload_device_selector(), &__set_device_status, - __offload_policy_holder_mtx}; - -#if __linux__ -inline void* -__original_aligned_alloc(std::size_t __alignment, std::size_t __size) -{ - using __aligned_alloc_func_type = void* (*)(std::size_t alignment, std::size_t size); - - static __aligned_alloc_func_type __orig_aligned_alloc = - __aligned_alloc_func_type(dlsym(RTLD_NEXT, "aligned_alloc")); - return __orig_aligned_alloc(__alignment, __size); -} -#endif // __linux__ - -static void* -__internal_aligned_alloc(std::size_t __size, std::size_t __alignment) -{ - if (__device_ready.load(std::memory_order_acquire)) - { - if (__sycl_device_shared_ptr __dev = __offload_policy_holder_type::__get_device_ptr(__offload_policy_holder)) - { - void* __res = __allocate_shared_for_device(std::move(__dev), __size, __alignment); - if (__res != nullptr && __alignment != 0) - assert((std::uintptr_t(__res) & (__alignment - 1)) == 0); - return __res; - } - } - // note size/alignment args order for aligned allocation between Windows/Linux -#if _WIN64 - // Under Windows, memory with explicitly set alignment must not be released by free() function, - // but rather with _aligned_free(), so have to use malloc() for non-extended alignment allocations. - void* __res = - (__ignore_alignment == __alignment) ? __original_malloc(__size) : __original_aligned_alloc(__size, __alignment); -#else - // can always use aligned allocation, not interop issue with free() - void* __res = - __original_aligned_alloc((__ignore_alignment == __alignment) ? alignof(std::max_align_t) : __alignment, __size); -#endif - if (__res != nullptr && __alignment != 0) - assert((std::uintptr_t(__res) & (__alignment - 1)) == 0); - return __res; -} - -// This function is called by C allocation functions (malloc, calloc, etc) -// and sets errno on failure consistently with original memory allocating behavior -static void* -__errno_handling_internal_aligned_alloc(std::size_t __size, std::size_t __alignment) -{ - void* __ptr = __internal_aligned_alloc(__size, __alignment); - if (__ptr == nullptr) - { - errno = ENOMEM; - } - return __ptr; -} - -static void* -__internal_operator_new(std::size_t __size, std::size_t __alignment) -{ - void* __res = __internal_aligned_alloc(__size, __alignment); - - while (__res == nullptr) - { - std::new_handler __handler = std::get_new_handler(); - if (__handler != nullptr) - { - __handler(); - } - else - { - throw std::bad_alloc{}; - } - __res = __internal_aligned_alloc(__size, __alignment); - } - - return __res; -} - -static void* -__internal_operator_new(std::size_t __size, std::size_t __alignment, const std::nothrow_t&) noexcept -{ - void* __res = nullptr; - try - { - __res = __internal_operator_new(__size, __alignment); - } - catch (...) - { - } - return __res; -} - -static bool -__verify_aligned_new_param(std::size_t __alignment) -{ - if (!__is_power_of_two(__alignment)) - { -#if _WIN64 - errno = EINVAL; - _invalid_parameter_noinfo(); -#endif - return false; - } - return true; -} - -} // namespace __pstl_offload - -extern "C" -{ - -inline void* __attribute__((always_inline)) malloc(std::size_t __size) -{ - return ::__pstl_offload::__errno_handling_internal_aligned_alloc(__size, __pstl_offload::__ignore_alignment); -} - -inline void* __attribute__((always_inline)) calloc(std::size_t __num, std::size_t __size) -{ - void* __res = nullptr; - - // Square root of maximal std::size_t value, values that are less never results in overflow during multiplication - constexpr std::size_t __min_overflow_multiplier = std::size_t(1) << (sizeof(std::size_t) * CHAR_BIT / 2); - std::size_t __allocate_size = __num * __size; - - // Check overflow on multiplication - if ((__num >= __min_overflow_multiplier || __size >= __min_overflow_multiplier) && - (__num != 0 && __allocate_size / __num != __size)) - { - errno = ENOMEM; - } - else - { - __res = ::__pstl_offload::__errno_handling_internal_aligned_alloc(__allocate_size, - __pstl_offload::__ignore_alignment); - } - - return __res ? std::memset(__res, 0, __allocate_size) : nullptr; -} - -inline void* __attribute__((always_inline)) realloc(void* __ptr, std::size_t __size) -{ - return ::__pstl_offload::__internal_realloc(__ptr, __size); -} - -#if __linux__ - -inline void* __attribute__((always_inline)) memalign(std::size_t __alignment, std::size_t __size) noexcept -{ - return ::__pstl_offload::__errno_handling_internal_aligned_alloc(__size, __alignment); -} - -inline int __attribute__((always_inline)) posix_memalign(void** __memptr, std::size_t __alignment, std::size_t __size) noexcept -{ - int __result = 0; - if (::__pstl_offload::__is_power_of_two(__alignment)) - { - void* __ptr = ::__pstl_offload::__internal_aligned_alloc(__size, __alignment); - - if (__ptr != nullptr) - { - *__memptr = __ptr; - } - else - { - __result = ENOMEM; - } - } - else - { - __result = EINVAL; - } - return __result; -} - -inline int __attribute__((always_inline)) mallopt(int /*param*/, int /*value*/) noexcept { return 1; } - -inline void* __attribute__((always_inline)) aligned_alloc(std::size_t __alignment, std::size_t __size) -{ - return ::__pstl_offload::__errno_handling_internal_aligned_alloc(__size, __alignment); -} - -inline void* __attribute__((always_inline)) __libc_malloc(std::size_t __size) -{ - return malloc(__size); -} - -inline void* __attribute__((always_inline)) __libc_calloc(std::size_t __num, std::size_t __size) -{ - return calloc(__num, __size); -} - -inline void* __attribute__((always_inline)) __libc_memalign(std::size_t __alignment, std::size_t __size) -{ - return memalign(__alignment, __size); -} - -inline void* __attribute__((always_inline)) __libc_realloc(void* __ptr, std::size_t __size) -{ - return realloc(__ptr, __size); -} - -inline void* __attribute__((always_inline)) valloc(std::size_t __size) -{ - return memalign(__pstl_offload::__get_memory_page_size(), __size); -} - -inline void* __attribute__((always_inline)) __libc_valloc(std::size_t __size) { return valloc(__size); } - -// __THROW to match system declaration of pvalloc -inline void* __attribute__((always_inline)) pvalloc(std::size_t __size) __THROW -{ - std::size_t __page_size = __pstl_offload::__get_memory_page_size(); - // align size up to the page size - __size = __size ? ((__size - 1) | (__page_size - 1)) + 1 : __page_size; - return memalign(__page_size, __size); -} - -inline void* __attribute__((always_inline)) __libc_pvalloc(std::size_t __size) { return pvalloc(__size); } - -#elif _WIN64 - -inline void* __attribute__((always_inline)) _aligned_malloc(std::size_t __size, std::size_t __alignment) -{ - // _aligned_malloc should reject zero or not power of two alignments - if (!::__pstl_offload::__verify_aligned_new_param(__alignment)) - { - return nullptr; - } - return ::__pstl_offload::__errno_handling_internal_aligned_alloc(__size, __alignment); -} - -inline void* __attribute__((always_inline)) _aligned_realloc(void* __ptr, std::size_t __size, std::size_t __alignment) -{ - // _aligned_realloc should reject zero or not power of two alignments, but not when it calls _aligned_free - if (__size && !::__pstl_offload::__verify_aligned_new_param(__alignment)) - { - return nullptr; - } - return ::__pstl_offload::__internal_aligned_realloc(__ptr, __size, __alignment); -} - -#endif - -} // extern "C" - -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Winline-new-delete" - -inline void* __attribute__((always_inline)) -operator new(std::size_t __size) -{ - return ::__pstl_offload::__internal_operator_new(__size, __pstl_offload::__ignore_alignment); -} - -inline void* __attribute__((always_inline)) -operator new[](std::size_t __size) -{ - return ::__pstl_offload::__internal_operator_new(__size, __pstl_offload::__ignore_alignment); -} - -inline void* __attribute__((always_inline)) -operator new(std::size_t __size, const std::nothrow_t&) noexcept -{ - return ::__pstl_offload::__internal_operator_new(__size, __pstl_offload::__ignore_alignment, std::nothrow); -} - -inline void* __attribute__((always_inline)) -operator new[](std::size_t __size, const std::nothrow_t&) noexcept -{ - return ::__pstl_offload::__internal_operator_new(__size, __pstl_offload::__ignore_alignment, std::nothrow); -} - -inline void* __attribute__((always_inline)) -operator new(std::size_t __size, std::align_val_t __al) -{ - if (!::__pstl_offload::__verify_aligned_new_param(std::size_t(__al))) - { - throw std::bad_alloc(); - } - return ::__pstl_offload::__internal_operator_new(__size, std::size_t(__al)); -} - -inline void* __attribute__((always_inline)) -operator new[](std::size_t __size, std::align_val_t __al) -{ - if (!::__pstl_offload::__verify_aligned_new_param(std::size_t(__al))) - { - throw std::bad_alloc(); - } - return ::__pstl_offload::__internal_operator_new(__size, std::size_t(__al)); -} - -inline void* __attribute__((always_inline)) -operator new(std::size_t __size, std::align_val_t __al, const std::nothrow_t&) noexcept -{ - if (!::__pstl_offload::__verify_aligned_new_param(std::size_t(__al))) - { - return nullptr; - } - return ::__pstl_offload::__internal_operator_new(__size, std::size_t(__al), std::nothrow); -} - -inline void* __attribute__((always_inline)) -operator new[](std::size_t __size, std::align_val_t __al, const std::nothrow_t&) noexcept -{ - if (!::__pstl_offload::__verify_aligned_new_param(std::size_t(__al))) - { - return nullptr; - } - return ::__pstl_offload::__internal_operator_new(__size, std::size_t(__al), std::nothrow); -} - -#pragma GCC diagnostic pop - -#endif // _ONEDPL_PSTL_OFFLOAD_INTERNAL_USM_MEMORY_REPLACEMENT_H diff --git a/include/pstl_offload/internal/usm_memory_replacement_common.h b/include/pstl_offload/internal/usm_memory_replacement_common.h deleted file mode 100644 index 07fc331c008..00000000000 --- a/include/pstl_offload/internal/usm_memory_replacement_common.h +++ /dev/null @@ -1,266 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_INTERNAL_USM_MEMORY_REPLACEMENT_COMMON_H -#define _ONEDPL_PSTL_OFFLOAD_INTERNAL_USM_MEMORY_REPLACEMENT_COMMON_H - -#include -#include -#include // std::this_thread::yield -#include -#include -#include -#include // for memcpy -#include - -#if __linux__ -# include -# include -#endif // __linux__ - -namespace __pstl_offload -{ - -constexpr bool -__is_power_of_two(std::size_t __number) -{ - return (__number != 0) && ((__number & __number - 1) == 0); -} - -// can't use std::shared_ptr, because commonly sizeof(std::shared_ptr) is 2*sizeof(void*) while -// sizeof(__block_header) must be power of 2 and with std::shared_ptr instead of -// __sycl_device_shared_ptr memory fragmentation increases drastically -class __sycl_device_shared_ptr -{ - // state is shared between TU with the context and all objects allocated in this TU - struct __shared_device - { - sycl::device _M_device; - // to keep reference to default context of the device as long as allocated memory objects exist - sycl::context _M_default_context; - std::atomic _M_cnt; - }; - - __shared_device* _M_shared_device; - - public: - __sycl_device_shared_ptr() : _M_shared_device(nullptr) {} - - explicit __sycl_device_shared_ptr(sycl::device _device) : _M_shared_device(nullptr) { __init(_device); } - - void - __init(sycl::device _device) - { - assert(!_M_shared_device); - _M_shared_device = new __shared_device{_device, _device.get_platform().ext_oneapi_get_default_context(), 1}; - } - - explicit operator bool() const { return _M_shared_device != nullptr; } - - bool - __is_device_created() const - { - return _M_shared_device != nullptr; - } - - sycl::device - __get_device() const - { - return _M_shared_device->_M_device; - } - - sycl::context - __get_context() const - { - return _M_shared_device->_M_default_context; - } - - __sycl_device_shared_ptr& - operator=(const __sycl_device_shared_ptr& __other) = delete; - - __sycl_device_shared_ptr(const __sycl_device_shared_ptr& __other) : _M_shared_device(__other._M_shared_device) - { - _M_shared_device->_M_cnt.fetch_add(1, std::memory_order_relaxed); - } - - __sycl_device_shared_ptr(__sycl_device_shared_ptr&& __other) : _M_shared_device(__other._M_shared_device) - { - __other._M_shared_device = nullptr; - } - - ~__sycl_device_shared_ptr() - { - if (_M_shared_device != nullptr && 1 == _M_shared_device->_M_cnt.fetch_add(-1, std::memory_order_acq_rel)) - { - delete _M_shared_device; - } - } -}; - -// Stripped down spin mutex. Propose is to implement mutex able to be used from zero-initialized -// memory without need in constructors. This allows to use the mutex in file-scope constructors -// and destructors. -class __spin_mutex -{ - std::atomic_flag _M_flag = ATOMIC_FLAG_INIT; - - public: - void - lock() - { - while (_M_flag.test_and_set(std::memory_order_acquire)) - { - // TODO: exponential backoff or switch to wait() from c++20 - std::this_thread::yield(); - } - } - - void - unlock() - { - _M_flag.clear(std::memory_order_release); - } -}; - -inline constexpr std::size_t __uniq_type_const = 0x23499abc405a9bccLLU; - -struct __block_header -{ - std::size_t _M_uniq_const; - void* _M_original_pointer; - __sycl_device_shared_ptr _M_device; - std::size_t _M_requested_number_of_bytes; -}; // struct __block_header - -static_assert(__is_power_of_two(sizeof(__block_header))); - -using __realloc_func_type = void* (*)(void*, std::size_t); -void* -__allocate_shared_for_device_large_alignment(__sycl_device_shared_ptr __device_ptr, std::size_t __size, - std::size_t __alignment); - -void* -__realloc_impl(void* __user_ptr, std::size_t __new_size); - -#if __linux__ - -inline std::size_t -__get_page_size() -{ - int ret = sysconf(_SC_PAGESIZE); - if (-1 == ret) - { - throw std::runtime_error(std::string("sysconf() failed with ") + std::to_string(errno)); - } - return ret; -} - -inline void* -__original_realloc(void* __user_ptr, std::size_t __new_size) -{ - static __realloc_func_type __orig_realloc = __realloc_func_type(dlsym(RTLD_NEXT, "realloc")); - return __orig_realloc(__user_ptr, __new_size); -} - -#elif _WIN64 - -// export to not have windows.h in public header -std::size_t -__get_page_size(); - -// have to export them, as original realloc/malloc/etc are locally replaced -// in case of usm_memory_replacement.h inclusion -void* -__original_realloc(void* __user_ptr, std::size_t __new_size); -void* __original_malloc(std::size_t); -void* -__original_aligned_alloc(std::size_t __size, std::size_t __alignment); -void* -__original_aligned_realloc(void* __user_ptr, std::size_t __size, std::size_t __alignment); -void* -__aligned_realloc_impl(void* __user_ptr, std::size_t __new_size, std::size_t __alignment); - -#endif - -inline std::size_t -__get_memory_page_size() -{ - static std::size_t __memory_page_size = __get_page_size(); - assert(__is_power_of_two(__memory_page_size)); - return __memory_page_size; -} - -inline bool -__same_memory_page(void* __ptr1, void* __ptr2) -{ - std::uintptr_t __page_size = __get_memory_page_size(); - return (std::uintptr_t(__ptr1) ^ std::uintptr_t(__ptr2)) < __page_size; -} - -inline void* -__allocate_shared_for_device(__sycl_device_shared_ptr __device_ptr, std::size_t __size, std::size_t __alignment) -{ - assert(__device_ptr.__is_device_created()); - // Impossible to guarantee that the returned pointer and memory header would be on the same memory - // page if the alignment for more than a memory page is requested, so process this case specifically - if (__alignment >= __get_memory_page_size()) - { - return __allocate_shared_for_device_large_alignment(std::move(__device_ptr), __size, __alignment); - } - - std::size_t __base_offset = std::max(__alignment, sizeof(__block_header)); - - // Check overflow on addition of __base_offset and __size - if (std::numeric_limits::max() - __base_offset < __size) - { - return nullptr; - } - - // Memory block allocated with sycl::aligned_alloc_shared should be aligned to at least sizeof(__block_header) * 2 - // to guarantee that header and header + sizeof(__block_header) (user pointer) would be placed in one memory page - std::size_t __usm_alignment = __base_offset << 1; - // Required number of bytes to store memory header and preserve alignment on returned pointer - // usm_alignment bytes are reserved to store memory header - std::size_t __usm_size = __size + __base_offset; - - void* __ptr = sycl::aligned_alloc_shared(__usm_alignment, __usm_size, __device_ptr.__get_device(), - __device_ptr.__get_context()); - - if (__ptr != nullptr) - { - void* __original_pointer = __ptr; - __ptr = static_cast(__ptr) + __base_offset; - __block_header* __header = static_cast<__block_header*>(__ptr) - 1; - assert(__same_memory_page(__ptr, __header)); - new (__header) __block_header{__uniq_type_const, __original_pointer, std::move(__device_ptr), __size}; - } - - return __ptr; -} - -static void* -__internal_realloc(void* __user_ptr, std::size_t __new_size) -{ - // std::malloc() might be overloaded in per-TU overload, so keep it here - return __user_ptr == nullptr ? std::malloc(__new_size) : __realloc_impl(__user_ptr, __new_size); -} - -#if _WIN64 - -static void* -__internal_aligned_realloc(void* __user_ptr, std::size_t __new_size, std::size_t __alignment) -{ - return __user_ptr == nullptr ? _aligned_malloc(__new_size, __alignment) - : __aligned_realloc_impl(__user_ptr, __new_size, __alignment); -} -#endif // _WIN64 - -} // namespace __pstl_offload - -#endif // _ONEDPL_PSTL_OFFLOAD_INTERNAL_USM_MEMORY_REPLACEMENT_COMMON_H diff --git a/include/pstl_offload/iomanip b/include/pstl_offload/iomanip deleted file mode 100644 index ea3137456c1..00000000000 --- a/include/pstl_offload/iomanip +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_IOMANIP - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_IOMANIP -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_IOMANIP -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_IOMANIP -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_IOMANIP - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_IOMANIP diff --git a/include/pstl_offload/ios b/include/pstl_offload/ios deleted file mode 100644 index 6522b6b2862..00000000000 --- a/include/pstl_offload/ios +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_IOS - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_IOS -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_IOS -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_IOS -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_IOS - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_IOS diff --git a/include/pstl_offload/iosfwd b/include/pstl_offload/iosfwd deleted file mode 100644 index 77f2dffa4cb..00000000000 --- a/include/pstl_offload/iosfwd +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_IOSFWD - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_IOSFWD -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_IOSFWD -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_IOSFWD -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_IOSFWD - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_IOSFWD diff --git a/include/pstl_offload/iostream b/include/pstl_offload/iostream deleted file mode 100644 index 6d32049d3f4..00000000000 --- a/include/pstl_offload/iostream +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_IOSTREAM - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_IOSTREAM -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_IOSTREAM -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_IOSTREAM -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_IOSTREAM - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_IOSTREAM diff --git a/include/pstl_offload/istream b/include/pstl_offload/istream deleted file mode 100644 index 2408da3cad1..00000000000 --- a/include/pstl_offload/istream +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ISTREAM - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ISTREAM -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ISTREAM -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ISTREAM -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ISTREAM - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ISTREAM diff --git a/include/pstl_offload/iterator b/include/pstl_offload/iterator deleted file mode 100644 index f147aec6283..00000000000 --- a/include/pstl_offload/iterator +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ITERATOR - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ITERATOR -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ITERATOR -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ITERATOR -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ITERATOR - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ITERATOR diff --git a/include/pstl_offload/latch b/include/pstl_offload/latch deleted file mode 100644 index a0824b7a29f..00000000000 --- a/include/pstl_offload/latch +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_LATCH - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_LATCH -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_LATCH -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_LATCH -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_LATCH - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_LATCH diff --git a/include/pstl_offload/limits b/include/pstl_offload/limits deleted file mode 100644 index 58e2a93e2ec..00000000000 --- a/include/pstl_offload/limits +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_LIMITS - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_LIMITS -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_LIMITS -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_LIMITS -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_LIMITS - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_LIMITS diff --git a/include/pstl_offload/list b/include/pstl_offload/list deleted file mode 100644 index 4e3389ddffc..00000000000 --- a/include/pstl_offload/list +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_LIST - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_LIST -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_LIST -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_LIST -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_LIST - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_LIST diff --git a/include/pstl_offload/locale b/include/pstl_offload/locale deleted file mode 100644 index 5f9de829eb5..00000000000 --- a/include/pstl_offload/locale +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_LOCALE - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_LOCALE -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_LOCALE -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_LOCALE -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_LOCALE - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_LOCALE diff --git a/include/pstl_offload/map b/include/pstl_offload/map deleted file mode 100644 index b67077f4c3e..00000000000 --- a/include/pstl_offload/map +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_MAP - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_MAP -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_MAP -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_MAP -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_MAP - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_MAP diff --git a/include/pstl_offload/memory b/include/pstl_offload/memory deleted file mode 100644 index 1805c7a9bee..00000000000 --- a/include/pstl_offload/memory +++ /dev/null @@ -1,26 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_MEMORY - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_MEMORY -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_MEMORY -# include "internal/memory_redirection_impl.h" -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_MEMORY -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_MEMORY - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_MEMORY diff --git a/include/pstl_offload/memory_resource b/include/pstl_offload/memory_resource deleted file mode 100644 index 6e4837d8e6b..00000000000 --- a/include/pstl_offload/memory_resource +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_MEMORY_RESOURCE - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_MEMORY_RESOURCE -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_MEMORY_RESOURCE -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_MEMORY_RESOURCE -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_MEMORY_RESOURCE - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_MEMORY_RESOURCE diff --git a/include/pstl_offload/mutex b/include/pstl_offload/mutex deleted file mode 100644 index 08c8b4db9f7..00000000000 --- a/include/pstl_offload/mutex +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_MUTEX - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_MUTEX -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_MUTEX -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_MUTEX -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_MUTEX - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_MUTEX diff --git a/include/pstl_offload/new b/include/pstl_offload/new deleted file mode 100644 index 6a1516b2368..00000000000 --- a/include/pstl_offload/new +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_NEW - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_NEW -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_NEW -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_NEW -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_NEW - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_NEW diff --git a/include/pstl_offload/numbers b/include/pstl_offload/numbers deleted file mode 100644 index e39f1a03535..00000000000 --- a/include/pstl_offload/numbers +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_NUMBERS - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_NUMBERS -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_NUMBERS -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_NUMBERS -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_NUMBERS - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_NUMBERS diff --git a/include/pstl_offload/numeric b/include/pstl_offload/numeric deleted file mode 100644 index cbf4232f169..00000000000 --- a/include/pstl_offload/numeric +++ /dev/null @@ -1,26 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_NUMERIC - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_NUMERIC -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_NUMERIC -# include "internal/numeric_redirection_impl.h" -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_NUMERIC -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_NUMERIC - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_NUMERIC diff --git a/include/pstl_offload/oneapi/dpl/algorithm b/include/pstl_offload/oneapi/dpl/algorithm deleted file mode 100644 index 09866a40d16..00000000000 --- a/include/pstl_offload/oneapi/dpl/algorithm +++ /dev/null @@ -1,26 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_ALGORITHM - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_ALGORITHM -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_ALGORITHM -# include "internal/algorithm_redirection_impl.h" -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_ALGORITHM -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_ALGORITHM - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_ALGORITHM diff --git a/include/pstl_offload/oneapi/dpl/array b/include/pstl_offload/oneapi/dpl/array deleted file mode 100644 index a1949ba3599..00000000000 --- a/include/pstl_offload/oneapi/dpl/array +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_ARRAY - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_ARRAY -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_ARRAY -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_ARRAY -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_ARRAY - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_ARRAY diff --git a/include/pstl_offload/oneapi/dpl/async b/include/pstl_offload/oneapi/dpl/async deleted file mode 100644 index 7da273db274..00000000000 --- a/include/pstl_offload/oneapi/dpl/async +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_ASYNC - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_ASYNC -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_ASYNC -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_ASYNC -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_ASYNC - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_ASYNC diff --git a/include/pstl_offload/oneapi/dpl/cmath b/include/pstl_offload/oneapi/dpl/cmath deleted file mode 100644 index f7de58e8458..00000000000 --- a/include/pstl_offload/oneapi/dpl/cmath +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_CMATH - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_CMATH -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_CMATH -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_CMATH -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_CMATH - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_CMATH diff --git a/include/pstl_offload/oneapi/dpl/complex b/include/pstl_offload/oneapi/dpl/complex deleted file mode 100644 index addb31a1fcf..00000000000 --- a/include/pstl_offload/oneapi/dpl/complex +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_COMPLEX - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_COMPLEX -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_COMPLEX -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_COMPLEX -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_COMPLEX - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_COMPLEX diff --git a/include/pstl_offload/oneapi/dpl/cstddef b/include/pstl_offload/oneapi/dpl/cstddef deleted file mode 100644 index 8e3599c5d4a..00000000000 --- a/include/pstl_offload/oneapi/dpl/cstddef +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_CSTDDEF - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_CSTDDEF -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_CSTDDEF -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_CSTDDEF -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_CSTDDEF - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_CSTDDEF diff --git a/include/pstl_offload/oneapi/dpl/cstring b/include/pstl_offload/oneapi/dpl/cstring deleted file mode 100644 index bcefd6f0380..00000000000 --- a/include/pstl_offload/oneapi/dpl/cstring +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_CSTRING - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_CSTRING -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_CSTRING -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_CSTRING -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_CSTRING - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_CSTRING diff --git a/include/pstl_offload/oneapi/dpl/dynamic_selection b/include/pstl_offload/oneapi/dpl/dynamic_selection deleted file mode 100644 index b5d968b1089..00000000000 --- a/include/pstl_offload/oneapi/dpl/dynamic_selection +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_DYNAMIC_SELECTION - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_DYNAMIC_SELECTION -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_DYNAMIC_SELECTION -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_DYNAMIC_SELECTION -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_DYNAMIC_SELECTION - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_DYNAMIC_SELECTION diff --git a/include/pstl_offload/oneapi/dpl/execution b/include/pstl_offload/oneapi/dpl/execution deleted file mode 100644 index 3548e4abffe..00000000000 --- a/include/pstl_offload/oneapi/dpl/execution +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_EXECUTION - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_EXECUTION -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_EXECUTION -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_EXECUTION -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_EXECUTION - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_EXECUTION diff --git a/include/pstl_offload/oneapi/dpl/functional b/include/pstl_offload/oneapi/dpl/functional deleted file mode 100644 index 86318f5cb4e..00000000000 --- a/include/pstl_offload/oneapi/dpl/functional +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_FUNCTIONAL - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_FUNCTIONAL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_FUNCTIONAL -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_FUNCTIONAL -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_FUNCTIONAL - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_FUNCTIONAL diff --git a/include/pstl_offload/oneapi/dpl/iterator b/include/pstl_offload/oneapi/dpl/iterator deleted file mode 100644 index 812c9f295b7..00000000000 --- a/include/pstl_offload/oneapi/dpl/iterator +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_ITERATOR - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_ITERATOR -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_ITERATOR -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_ITERATOR -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_ITERATOR - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_ITERATOR diff --git a/include/pstl_offload/oneapi/dpl/limits b/include/pstl_offload/oneapi/dpl/limits deleted file mode 100644 index 47079dfb78d..00000000000 --- a/include/pstl_offload/oneapi/dpl/limits +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_LIMITS - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_LIMITS -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_LIMITS -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_LIMITS -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_LIMITS - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_LIMITS diff --git a/include/pstl_offload/oneapi/dpl/memory b/include/pstl_offload/oneapi/dpl/memory deleted file mode 100644 index 075cff1689b..00000000000 --- a/include/pstl_offload/oneapi/dpl/memory +++ /dev/null @@ -1,26 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_MEMORY - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_MEMORY -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_MEMORY -# include "internal/memory_redirection_impl.h" -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_MEMORY -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_MEMORY - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_MEMORY diff --git a/include/pstl_offload/oneapi/dpl/numeric b/include/pstl_offload/oneapi/dpl/numeric deleted file mode 100644 index dd0e7a172d6..00000000000 --- a/include/pstl_offload/oneapi/dpl/numeric +++ /dev/null @@ -1,26 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_NUMERIC - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_NUMERIC -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_NUMERIC -# include "internal/numeric_redirection_impl.h" -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_NUMERIC -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_NUMERIC - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_NUMERIC diff --git a/include/pstl_offload/oneapi/dpl/optional b/include/pstl_offload/oneapi/dpl/optional deleted file mode 100644 index 0b32cf4502c..00000000000 --- a/include/pstl_offload/oneapi/dpl/optional +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_OPTIONAL - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_OPTIONAL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_OPTIONAL -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_OPTIONAL -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_OPTIONAL - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_OPTIONAL diff --git a/include/pstl_offload/oneapi/dpl/random b/include/pstl_offload/oneapi/dpl/random deleted file mode 100644 index b35cd6b0e02..00000000000 --- a/include/pstl_offload/oneapi/dpl/random +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_RANDOM - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_RANDOM -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_RANDOM -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_RANDOM -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_RANDOM - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_RANDOM diff --git a/include/pstl_offload/oneapi/dpl/ranges b/include/pstl_offload/oneapi/dpl/ranges deleted file mode 100644 index 7ff3e15140a..00000000000 --- a/include/pstl_offload/oneapi/dpl/ranges +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_RANGES - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_RANGES -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_RANGES -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_RANGES -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_RANGES - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_RANGES diff --git a/include/pstl_offload/oneapi/dpl/ratio b/include/pstl_offload/oneapi/dpl/ratio deleted file mode 100644 index 615ff114899..00000000000 --- a/include/pstl_offload/oneapi/dpl/ratio +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_RATIO - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_RATIO -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_RATIO -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_RATIO -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_RATIO - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_RATIO diff --git a/include/pstl_offload/oneapi/dpl/tuple b/include/pstl_offload/oneapi/dpl/tuple deleted file mode 100644 index 02c4fc2e081..00000000000 --- a/include/pstl_offload/oneapi/dpl/tuple +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_TUPLE - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_TUPLE -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_TUPLE -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_TUPLE -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_TUPLE - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_TUPLE diff --git a/include/pstl_offload/oneapi/dpl/type_traits b/include/pstl_offload/oneapi/dpl/type_traits deleted file mode 100644 index ac36d18b20e..00000000000 --- a/include/pstl_offload/oneapi/dpl/type_traits +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_TYPE_TRAITS - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_TYPE_TRAITS -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_TYPE_TRAITS -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_TYPE_TRAITS -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_TYPE_TRAITS - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_TYPE_TRAITS diff --git a/include/pstl_offload/oneapi/dpl/utility b/include/pstl_offload/oneapi/dpl/utility deleted file mode 100644 index 24a0ab027bb..00000000000 --- a/include/pstl_offload/oneapi/dpl/utility +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_UTILITY - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_UTILITY -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_UTILITY -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_UTILITY -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_UTILITY - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_DPL_UTILITY diff --git a/include/pstl_offload/oneapi/tbb/blocked_range.h b/include/pstl_offload/oneapi/tbb/blocked_range.h deleted file mode 100644 index 6be33091e58..00000000000 --- a/include/pstl_offload/oneapi/tbb/blocked_range.h +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_BLOCKED_RANGE_H - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_BLOCKED_RANGE_H -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_BLOCKED_RANGE_H -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_BLOCKED_RANGE_H -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_BLOCKED_RANGE_H - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_BLOCKED_RANGE_H diff --git a/include/pstl_offload/oneapi/tbb/blocked_range2d.h b/include/pstl_offload/oneapi/tbb/blocked_range2d.h deleted file mode 100644 index e99a93526a8..00000000000 --- a/include/pstl_offload/oneapi/tbb/blocked_range2d.h +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_BLOCKED_RANGE2D_H - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_BLOCKED_RANGE2D_H -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_BLOCKED_RANGE2D_H -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_BLOCKED_RANGE2D_H -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_BLOCKED_RANGE2D_H - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_BLOCKED_RANGE2D_H diff --git a/include/pstl_offload/oneapi/tbb/blocked_range3d.h b/include/pstl_offload/oneapi/tbb/blocked_range3d.h deleted file mode 100644 index 267e41ee8e7..00000000000 --- a/include/pstl_offload/oneapi/tbb/blocked_range3d.h +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_BLOCKED_RANGE3D_H - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_BLOCKED_RANGE3D_H -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_BLOCKED_RANGE3D_H -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_BLOCKED_RANGE3D_H -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_BLOCKED_RANGE3D_H - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_BLOCKED_RANGE3D_H diff --git a/include/pstl_offload/oneapi/tbb/blocked_rangeNd.h b/include/pstl_offload/oneapi/tbb/blocked_rangeNd.h deleted file mode 100644 index 872c349c406..00000000000 --- a/include/pstl_offload/oneapi/tbb/blocked_rangeNd.h +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_BLOCKED_RANGEND_H - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_BLOCKED_RANGEND_H -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_BLOCKED_RANGEND_H -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_BLOCKED_RANGEND_H -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_BLOCKED_RANGEND_H - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_BLOCKED_RANGEND_H diff --git a/include/pstl_offload/oneapi/tbb/cache_aligned_allocator.h b/include/pstl_offload/oneapi/tbb/cache_aligned_allocator.h deleted file mode 100644 index a3ebcd8b677..00000000000 --- a/include/pstl_offload/oneapi/tbb/cache_aligned_allocator.h +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CACHE_ALIGNED_ALLOCATOR_H - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CACHE_ALIGNED_ALLOCATOR_H -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CACHE_ALIGNED_ALLOCATOR_H -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CACHE_ALIGNED_ALLOCATOR_H -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CACHE_ALIGNED_ALLOCATOR_H - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CACHE_ALIGNED_ALLOCATOR_H diff --git a/include/pstl_offload/oneapi/tbb/collaborative_call_once.h b/include/pstl_offload/oneapi/tbb/collaborative_call_once.h deleted file mode 100644 index 901cdf2dcef..00000000000 --- a/include/pstl_offload/oneapi/tbb/collaborative_call_once.h +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_COLLABORATIVE_CALL_ONCE_H - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_COLLABORATIVE_CALL_ONCE_H -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_COLLABORATIVE_CALL_ONCE_H -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_COLLABORATIVE_CALL_ONCE_H -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_COLLABORATIVE_CALL_ONCE_H - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_COLLABORATIVE_CALL_ONCE_H diff --git a/include/pstl_offload/oneapi/tbb/combinable.h b/include/pstl_offload/oneapi/tbb/combinable.h deleted file mode 100644 index e8b37c0d97c..00000000000 --- a/include/pstl_offload/oneapi/tbb/combinable.h +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_COMBINABLE_H - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_COMBINABLE_H -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_COMBINABLE_H -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_COMBINABLE_H -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_COMBINABLE_H - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_COMBINABLE_H diff --git a/include/pstl_offload/oneapi/tbb/concurrent_hash_map.h b/include/pstl_offload/oneapi/tbb/concurrent_hash_map.h deleted file mode 100644 index ffb16821e4a..00000000000 --- a/include/pstl_offload/oneapi/tbb/concurrent_hash_map.h +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CONCURRENT_HASH_MAP_H - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CONCURRENT_HASH_MAP_H -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CONCURRENT_HASH_MAP_H -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CONCURRENT_HASH_MAP_H -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CONCURRENT_HASH_MAP_H - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CONCURRENT_HASH_MAP_H diff --git a/include/pstl_offload/oneapi/tbb/concurrent_lru_cache.h b/include/pstl_offload/oneapi/tbb/concurrent_lru_cache.h deleted file mode 100644 index d0e385037c0..00000000000 --- a/include/pstl_offload/oneapi/tbb/concurrent_lru_cache.h +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CONCURRENT_LRU_CACHE_H - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CONCURRENT_LRU_CACHE_H -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CONCURRENT_LRU_CACHE_H -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CONCURRENT_LRU_CACHE_H -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CONCURRENT_LRU_CACHE_H - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CONCURRENT_LRU_CACHE_H diff --git a/include/pstl_offload/oneapi/tbb/concurrent_map.h b/include/pstl_offload/oneapi/tbb/concurrent_map.h deleted file mode 100644 index 647e4ec3e84..00000000000 --- a/include/pstl_offload/oneapi/tbb/concurrent_map.h +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CONCURRENT_MAP_H - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CONCURRENT_MAP_H -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CONCURRENT_MAP_H -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CONCURRENT_MAP_H -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CONCURRENT_MAP_H - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CONCURRENT_MAP_H diff --git a/include/pstl_offload/oneapi/tbb/concurrent_priority_queue.h b/include/pstl_offload/oneapi/tbb/concurrent_priority_queue.h deleted file mode 100644 index ca92cd60124..00000000000 --- a/include/pstl_offload/oneapi/tbb/concurrent_priority_queue.h +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CONCURRENT_PRIORITY_QUEUE_H - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CONCURRENT_PRIORITY_QUEUE_H -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CONCURRENT_PRIORITY_QUEUE_H -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CONCURRENT_PRIORITY_QUEUE_H -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CONCURRENT_PRIORITY_QUEUE_H - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CONCURRENT_PRIORITY_QUEUE_H diff --git a/include/pstl_offload/oneapi/tbb/concurrent_queue.h b/include/pstl_offload/oneapi/tbb/concurrent_queue.h deleted file mode 100644 index 75cd1e74b32..00000000000 --- a/include/pstl_offload/oneapi/tbb/concurrent_queue.h +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CONCURRENT_QUEUE_H - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CONCURRENT_QUEUE_H -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CONCURRENT_QUEUE_H -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CONCURRENT_QUEUE_H -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CONCURRENT_QUEUE_H - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CONCURRENT_QUEUE_H diff --git a/include/pstl_offload/oneapi/tbb/concurrent_set.h b/include/pstl_offload/oneapi/tbb/concurrent_set.h deleted file mode 100644 index 8fac23a0b6b..00000000000 --- a/include/pstl_offload/oneapi/tbb/concurrent_set.h +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CONCURRENT_SET_H - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CONCURRENT_SET_H -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CONCURRENT_SET_H -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CONCURRENT_SET_H -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CONCURRENT_SET_H - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CONCURRENT_SET_H diff --git a/include/pstl_offload/oneapi/tbb/concurrent_unordered_map.h b/include/pstl_offload/oneapi/tbb/concurrent_unordered_map.h deleted file mode 100644 index cdc4f03b4f8..00000000000 --- a/include/pstl_offload/oneapi/tbb/concurrent_unordered_map.h +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CONCURRENT_UNORDERED_MAP_H - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CONCURRENT_UNORDERED_MAP_H -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CONCURRENT_UNORDERED_MAP_H -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CONCURRENT_UNORDERED_MAP_H -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CONCURRENT_UNORDERED_MAP_H - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CONCURRENT_UNORDERED_MAP_H diff --git a/include/pstl_offload/oneapi/tbb/concurrent_unordered_set.h b/include/pstl_offload/oneapi/tbb/concurrent_unordered_set.h deleted file mode 100644 index 815e095bd97..00000000000 --- a/include/pstl_offload/oneapi/tbb/concurrent_unordered_set.h +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CONCURRENT_UNORDERED_SET_H - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CONCURRENT_UNORDERED_SET_H -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CONCURRENT_UNORDERED_SET_H -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CONCURRENT_UNORDERED_SET_H -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CONCURRENT_UNORDERED_SET_H - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CONCURRENT_UNORDERED_SET_H diff --git a/include/pstl_offload/oneapi/tbb/concurrent_vector.h b/include/pstl_offload/oneapi/tbb/concurrent_vector.h deleted file mode 100644 index 747759fc1da..00000000000 --- a/include/pstl_offload/oneapi/tbb/concurrent_vector.h +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CONCURRENT_VECTOR_H - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CONCURRENT_VECTOR_H -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CONCURRENT_VECTOR_H -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CONCURRENT_VECTOR_H -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CONCURRENT_VECTOR_H - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_CONCURRENT_VECTOR_H diff --git a/include/pstl_offload/oneapi/tbb/enumerable_thread_specific.h b/include/pstl_offload/oneapi/tbb/enumerable_thread_specific.h deleted file mode 100644 index 7d7e0ac2f2b..00000000000 --- a/include/pstl_offload/oneapi/tbb/enumerable_thread_specific.h +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_ENUMERABLE_THREAD_SPECIFIC_H - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_ENUMERABLE_THREAD_SPECIFIC_H -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_ENUMERABLE_THREAD_SPECIFIC_H -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_ENUMERABLE_THREAD_SPECIFIC_H -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_ENUMERABLE_THREAD_SPECIFIC_H - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_ENUMERABLE_THREAD_SPECIFIC_H diff --git a/include/pstl_offload/oneapi/tbb/flow_graph.h b/include/pstl_offload/oneapi/tbb/flow_graph.h deleted file mode 100644 index eaf54a418ea..00000000000 --- a/include/pstl_offload/oneapi/tbb/flow_graph.h +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_FLOW_GRAPH_H - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_FLOW_GRAPH_H -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_FLOW_GRAPH_H -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_FLOW_GRAPH_H -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_FLOW_GRAPH_H - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_FLOW_GRAPH_H diff --git a/include/pstl_offload/oneapi/tbb/flow_graph_abstractions.h b/include/pstl_offload/oneapi/tbb/flow_graph_abstractions.h deleted file mode 100644 index adce56d2069..00000000000 --- a/include/pstl_offload/oneapi/tbb/flow_graph_abstractions.h +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_FLOW_GRAPH_ABSTRACTIONS_H - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_FLOW_GRAPH_ABSTRACTIONS_H -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_FLOW_GRAPH_ABSTRACTIONS_H -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_FLOW_GRAPH_ABSTRACTIONS_H -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_FLOW_GRAPH_ABSTRACTIONS_H - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_FLOW_GRAPH_ABSTRACTIONS_H diff --git a/include/pstl_offload/oneapi/tbb/global_control.h b/include/pstl_offload/oneapi/tbb/global_control.h deleted file mode 100644 index 23e395ea63a..00000000000 --- a/include/pstl_offload/oneapi/tbb/global_control.h +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_GLOBAL_CONTROL_H - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_GLOBAL_CONTROL_H -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_GLOBAL_CONTROL_H -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_GLOBAL_CONTROL_H -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_GLOBAL_CONTROL_H - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_GLOBAL_CONTROL_H diff --git a/include/pstl_offload/oneapi/tbb/info.h b/include/pstl_offload/oneapi/tbb/info.h deleted file mode 100644 index bc8a70ff9b5..00000000000 --- a/include/pstl_offload/oneapi/tbb/info.h +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_INFO_H - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_INFO_H -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_INFO_H -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_INFO_H -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_INFO_H - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_INFO_H diff --git a/include/pstl_offload/oneapi/tbb/memory_pool.h b/include/pstl_offload/oneapi/tbb/memory_pool.h deleted file mode 100644 index 2916fa84b33..00000000000 --- a/include/pstl_offload/oneapi/tbb/memory_pool.h +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_MEMORY_POOL_H - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_MEMORY_POOL_H -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_MEMORY_POOL_H -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_MEMORY_POOL_H -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_MEMORY_POOL_H - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_MEMORY_POOL_H diff --git a/include/pstl_offload/oneapi/tbb/mutex.h b/include/pstl_offload/oneapi/tbb/mutex.h deleted file mode 100644 index 2aef691f10e..00000000000 --- a/include/pstl_offload/oneapi/tbb/mutex.h +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_MUTEX_H - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_MUTEX_H -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_MUTEX_H -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_MUTEX_H -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_MUTEX_H - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_MUTEX_H diff --git a/include/pstl_offload/oneapi/tbb/null_mutex.h b/include/pstl_offload/oneapi/tbb/null_mutex.h deleted file mode 100644 index f287d8e763d..00000000000 --- a/include/pstl_offload/oneapi/tbb/null_mutex.h +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_NULL_MUTEX_H - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_NULL_MUTEX_H -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_NULL_MUTEX_H -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_NULL_MUTEX_H -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_NULL_MUTEX_H - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_NULL_MUTEX_H diff --git a/include/pstl_offload/oneapi/tbb/null_rw_mutex.h b/include/pstl_offload/oneapi/tbb/null_rw_mutex.h deleted file mode 100644 index 3a5fc566936..00000000000 --- a/include/pstl_offload/oneapi/tbb/null_rw_mutex.h +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_NULL_RW_MUTEX_H - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_NULL_RW_MUTEX_H -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_NULL_RW_MUTEX_H -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_NULL_RW_MUTEX_H -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_NULL_RW_MUTEX_H - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_NULL_RW_MUTEX_H diff --git a/include/pstl_offload/oneapi/tbb/parallel_for.h b/include/pstl_offload/oneapi/tbb/parallel_for.h deleted file mode 100644 index ab048196278..00000000000 --- a/include/pstl_offload/oneapi/tbb/parallel_for.h +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_PARALLEL_FOR_H - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_PARALLEL_FOR_H -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_PARALLEL_FOR_H -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_PARALLEL_FOR_H -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_PARALLEL_FOR_H - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_PARALLEL_FOR_H diff --git a/include/pstl_offload/oneapi/tbb/parallel_for_each.h b/include/pstl_offload/oneapi/tbb/parallel_for_each.h deleted file mode 100644 index 47c4968fee0..00000000000 --- a/include/pstl_offload/oneapi/tbb/parallel_for_each.h +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_PARALLEL_FOR_EACH_H - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_PARALLEL_FOR_EACH_H -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_PARALLEL_FOR_EACH_H -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_PARALLEL_FOR_EACH_H -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_PARALLEL_FOR_EACH_H - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_PARALLEL_FOR_EACH_H diff --git a/include/pstl_offload/oneapi/tbb/parallel_invoke.h b/include/pstl_offload/oneapi/tbb/parallel_invoke.h deleted file mode 100644 index c26d1c5a90d..00000000000 --- a/include/pstl_offload/oneapi/tbb/parallel_invoke.h +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_PARALLEL_INVOKE_H - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_PARALLEL_INVOKE_H -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_PARALLEL_INVOKE_H -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_PARALLEL_INVOKE_H -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_PARALLEL_INVOKE_H - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_PARALLEL_INVOKE_H diff --git a/include/pstl_offload/oneapi/tbb/parallel_pipeline.h b/include/pstl_offload/oneapi/tbb/parallel_pipeline.h deleted file mode 100644 index 93c68710e00..00000000000 --- a/include/pstl_offload/oneapi/tbb/parallel_pipeline.h +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_PARALLEL_PIPELINE_H - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_PARALLEL_PIPELINE_H -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_PARALLEL_PIPELINE_H -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_PARALLEL_PIPELINE_H -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_PARALLEL_PIPELINE_H - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_PARALLEL_PIPELINE_H diff --git a/include/pstl_offload/oneapi/tbb/parallel_reduce.h b/include/pstl_offload/oneapi/tbb/parallel_reduce.h deleted file mode 100644 index d2acb69ff54..00000000000 --- a/include/pstl_offload/oneapi/tbb/parallel_reduce.h +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_PARALLEL_REDUCE_H - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_PARALLEL_REDUCE_H -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_PARALLEL_REDUCE_H -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_PARALLEL_REDUCE_H -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_PARALLEL_REDUCE_H - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_PARALLEL_REDUCE_H diff --git a/include/pstl_offload/oneapi/tbb/parallel_scan.h b/include/pstl_offload/oneapi/tbb/parallel_scan.h deleted file mode 100644 index ea881adf918..00000000000 --- a/include/pstl_offload/oneapi/tbb/parallel_scan.h +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_PARALLEL_SCAN_H - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_PARALLEL_SCAN_H -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_PARALLEL_SCAN_H -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_PARALLEL_SCAN_H -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_PARALLEL_SCAN_H - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_PARALLEL_SCAN_H diff --git a/include/pstl_offload/oneapi/tbb/parallel_sort.h b/include/pstl_offload/oneapi/tbb/parallel_sort.h deleted file mode 100644 index a6f638a6ac4..00000000000 --- a/include/pstl_offload/oneapi/tbb/parallel_sort.h +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_PARALLEL_SORT_H - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_PARALLEL_SORT_H -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_PARALLEL_SORT_H -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_PARALLEL_SORT_H -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_PARALLEL_SORT_H - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_PARALLEL_SORT_H diff --git a/include/pstl_offload/oneapi/tbb/partitioner.h b/include/pstl_offload/oneapi/tbb/partitioner.h deleted file mode 100644 index ce70b400ec9..00000000000 --- a/include/pstl_offload/oneapi/tbb/partitioner.h +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_PARTITIONER_H - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_PARTITIONER_H -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_PARTITIONER_H -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_PARTITIONER_H -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_PARTITIONER_H - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_PARTITIONER_H diff --git a/include/pstl_offload/oneapi/tbb/profiling.h b/include/pstl_offload/oneapi/tbb/profiling.h deleted file mode 100644 index 5f4309985e8..00000000000 --- a/include/pstl_offload/oneapi/tbb/profiling.h +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_PROFILING_H - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_PROFILING_H -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_PROFILING_H -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_PROFILING_H -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_PROFILING_H - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_PROFILING_H diff --git a/include/pstl_offload/oneapi/tbb/queuing_mutex.h b/include/pstl_offload/oneapi/tbb/queuing_mutex.h deleted file mode 100644 index c7b7b2cff02..00000000000 --- a/include/pstl_offload/oneapi/tbb/queuing_mutex.h +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_QUEUING_MUTEX_H - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_QUEUING_MUTEX_H -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_QUEUING_MUTEX_H -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_QUEUING_MUTEX_H -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_QUEUING_MUTEX_H - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_QUEUING_MUTEX_H diff --git a/include/pstl_offload/oneapi/tbb/queuing_rw_mutex.h b/include/pstl_offload/oneapi/tbb/queuing_rw_mutex.h deleted file mode 100644 index fa7e1685133..00000000000 --- a/include/pstl_offload/oneapi/tbb/queuing_rw_mutex.h +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_QUEUING_RW_MUTEX_H - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_QUEUING_RW_MUTEX_H -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_QUEUING_RW_MUTEX_H -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_QUEUING_RW_MUTEX_H -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_QUEUING_RW_MUTEX_H - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_QUEUING_RW_MUTEX_H diff --git a/include/pstl_offload/oneapi/tbb/rw_mutex.h b/include/pstl_offload/oneapi/tbb/rw_mutex.h deleted file mode 100644 index 14f8ae7466b..00000000000 --- a/include/pstl_offload/oneapi/tbb/rw_mutex.h +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_RW_MUTEX_H - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_RW_MUTEX_H -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_RW_MUTEX_H -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_RW_MUTEX_H -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_RW_MUTEX_H - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_RW_MUTEX_H diff --git a/include/pstl_offload/oneapi/tbb/scalable_allocator.h b/include/pstl_offload/oneapi/tbb/scalable_allocator.h deleted file mode 100644 index d43eac8efac..00000000000 --- a/include/pstl_offload/oneapi/tbb/scalable_allocator.h +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_SCALABLE_ALLOCATOR_H - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_SCALABLE_ALLOCATOR_H -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_SCALABLE_ALLOCATOR_H -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_SCALABLE_ALLOCATOR_H -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_SCALABLE_ALLOCATOR_H - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_SCALABLE_ALLOCATOR_H diff --git a/include/pstl_offload/oneapi/tbb/spin_mutex.h b/include/pstl_offload/oneapi/tbb/spin_mutex.h deleted file mode 100644 index e46c4da35cf..00000000000 --- a/include/pstl_offload/oneapi/tbb/spin_mutex.h +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_SPIN_MUTEX_H - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_SPIN_MUTEX_H -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_SPIN_MUTEX_H -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_SPIN_MUTEX_H -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_SPIN_MUTEX_H - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_SPIN_MUTEX_H diff --git a/include/pstl_offload/oneapi/tbb/spin_rw_mutex.h b/include/pstl_offload/oneapi/tbb/spin_rw_mutex.h deleted file mode 100644 index 975095a83bd..00000000000 --- a/include/pstl_offload/oneapi/tbb/spin_rw_mutex.h +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_SPIN_RW_MUTEX_H - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_SPIN_RW_MUTEX_H -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_SPIN_RW_MUTEX_H -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_SPIN_RW_MUTEX_H -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_SPIN_RW_MUTEX_H - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_SPIN_RW_MUTEX_H diff --git a/include/pstl_offload/oneapi/tbb/task.h b/include/pstl_offload/oneapi/tbb/task.h deleted file mode 100644 index 545f987a8f7..00000000000 --- a/include/pstl_offload/oneapi/tbb/task.h +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_TASK_H - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_TASK_H -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_TASK_H -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_TASK_H -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_TASK_H - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_TASK_H diff --git a/include/pstl_offload/oneapi/tbb/task_arena.h b/include/pstl_offload/oneapi/tbb/task_arena.h deleted file mode 100644 index 565b34e6e7a..00000000000 --- a/include/pstl_offload/oneapi/tbb/task_arena.h +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_TASK_ARENA_H - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_TASK_ARENA_H -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_TASK_ARENA_H -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_TASK_ARENA_H -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_TASK_ARENA_H - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_TASK_ARENA_H diff --git a/include/pstl_offload/oneapi/tbb/task_group.h b/include/pstl_offload/oneapi/tbb/task_group.h deleted file mode 100644 index 689b3fa3d02..00000000000 --- a/include/pstl_offload/oneapi/tbb/task_group.h +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_TASK_GROUP_H - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_TASK_GROUP_H -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_TASK_GROUP_H -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_TASK_GROUP_H -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_TASK_GROUP_H - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_TASK_GROUP_H diff --git a/include/pstl_offload/oneapi/tbb/task_scheduler_observer.h b/include/pstl_offload/oneapi/tbb/task_scheduler_observer.h deleted file mode 100644 index f3dee819b69..00000000000 --- a/include/pstl_offload/oneapi/tbb/task_scheduler_observer.h +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_TASK_SCHEDULER_OBSERVER_H - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_TASK_SCHEDULER_OBSERVER_H -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_TASK_SCHEDULER_OBSERVER_H -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_TASK_SCHEDULER_OBSERVER_H -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_TASK_SCHEDULER_OBSERVER_H - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_TASK_SCHEDULER_OBSERVER_H diff --git a/include/pstl_offload/oneapi/tbb/tbb_allocator.h b/include/pstl_offload/oneapi/tbb/tbb_allocator.h deleted file mode 100644 index 1fe29523294..00000000000 --- a/include/pstl_offload/oneapi/tbb/tbb_allocator.h +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_TBB_ALLOCATOR_H - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_TBB_ALLOCATOR_H -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_TBB_ALLOCATOR_H -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_TBB_ALLOCATOR_H -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_TBB_ALLOCATOR_H - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_TBB_ALLOCATOR_H diff --git a/include/pstl_offload/oneapi/tbb/tbbmalloc_proxy.h b/include/pstl_offload/oneapi/tbb/tbbmalloc_proxy.h deleted file mode 100644 index c3add6b69ba..00000000000 --- a/include/pstl_offload/oneapi/tbb/tbbmalloc_proxy.h +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_TBBMALLOC_PROXY_H - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_TBBMALLOC_PROXY_H -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_TBBMALLOC_PROXY_H -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_TBBMALLOC_PROXY_H -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_TBBMALLOC_PROXY_H - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_TBBMALLOC_PROXY_H diff --git a/include/pstl_offload/oneapi/tbb/tick_count.h b/include/pstl_offload/oneapi/tbb/tick_count.h deleted file mode 100644 index 621ab37b0bc..00000000000 --- a/include/pstl_offload/oneapi/tbb/tick_count.h +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_TICK_COUNT_H - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_TICK_COUNT_H -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_TICK_COUNT_H -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_TICK_COUNT_H -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_TICK_COUNT_H - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_TICK_COUNT_H diff --git a/include/pstl_offload/oneapi/tbb/version.h b/include/pstl_offload/oneapi/tbb/version.h deleted file mode 100644 index 6d12f233a7a..00000000000 --- a/include/pstl_offload/oneapi/tbb/version.h +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_VERSION_H - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_VERSION_H -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_VERSION_H -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_VERSION_H -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_VERSION_H - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_ONEAPI_TBB_VERSION_H diff --git a/include/pstl_offload/optional b/include/pstl_offload/optional deleted file mode 100644 index 700d8b1ee7f..00000000000 --- a/include/pstl_offload/optional +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_OPTIONAL - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_OPTIONAL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_OPTIONAL -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_OPTIONAL -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_OPTIONAL - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_OPTIONAL diff --git a/include/pstl_offload/ostream b/include/pstl_offload/ostream deleted file mode 100644 index e0a81a92f14..00000000000 --- a/include/pstl_offload/ostream +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_OSTREAM - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_OSTREAM -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_OSTREAM -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_OSTREAM -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_OSTREAM - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_OSTREAM diff --git a/include/pstl_offload/queue b/include/pstl_offload/queue deleted file mode 100644 index 2b755b4a172..00000000000 --- a/include/pstl_offload/queue +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_QUEUE - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_QUEUE -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_QUEUE -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_QUEUE -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_QUEUE - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_QUEUE diff --git a/include/pstl_offload/random b/include/pstl_offload/random deleted file mode 100644 index d7858ce909e..00000000000 --- a/include/pstl_offload/random +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_RANDOM - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_RANDOM -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_RANDOM -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_RANDOM -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_RANDOM - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_RANDOM diff --git a/include/pstl_offload/ranges b/include/pstl_offload/ranges deleted file mode 100644 index 987de31ed78..00000000000 --- a/include/pstl_offload/ranges +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_RANGES - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_RANGES -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_RANGES -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_RANGES -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_RANGES - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_RANGES diff --git a/include/pstl_offload/ratio b/include/pstl_offload/ratio deleted file mode 100644 index b122c8e524b..00000000000 --- a/include/pstl_offload/ratio +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_RATIO - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_RATIO -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_RATIO -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_RATIO -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_RATIO - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_RATIO diff --git a/include/pstl_offload/regex b/include/pstl_offload/regex deleted file mode 100644 index 1090dfd7b26..00000000000 --- a/include/pstl_offload/regex +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_REGEX - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_REGEX -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_REGEX -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_REGEX -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_REGEX - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_REGEX diff --git a/include/pstl_offload/scoped_allocator b/include/pstl_offload/scoped_allocator deleted file mode 100644 index 582d850695f..00000000000 --- a/include/pstl_offload/scoped_allocator +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SCOPED_ALLOCATOR - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SCOPED_ALLOCATOR -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SCOPED_ALLOCATOR -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SCOPED_ALLOCATOR -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SCOPED_ALLOCATOR - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SCOPED_ALLOCATOR diff --git a/include/pstl_offload/semaphore b/include/pstl_offload/semaphore deleted file mode 100644 index 287a34fd918..00000000000 --- a/include/pstl_offload/semaphore +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SEMAPHORE - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SEMAPHORE -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SEMAPHORE -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SEMAPHORE -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SEMAPHORE - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SEMAPHORE diff --git a/include/pstl_offload/set b/include/pstl_offload/set deleted file mode 100644 index b9683abd50d..00000000000 --- a/include/pstl_offload/set +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SET - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SET -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SET -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SET -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SET - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SET diff --git a/include/pstl_offload/shared_mutex b/include/pstl_offload/shared_mutex deleted file mode 100644 index 1e2d4ebb43d..00000000000 --- a/include/pstl_offload/shared_mutex +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SHARED_MUTEX - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SHARED_MUTEX -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SHARED_MUTEX -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SHARED_MUTEX -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SHARED_MUTEX - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SHARED_MUTEX diff --git a/include/pstl_offload/source_location b/include/pstl_offload/source_location deleted file mode 100644 index 6261d223a0a..00000000000 --- a/include/pstl_offload/source_location +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SOURCE_LOCATION - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SOURCE_LOCATION -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SOURCE_LOCATION -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SOURCE_LOCATION -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SOURCE_LOCATION - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SOURCE_LOCATION diff --git a/include/pstl_offload/span b/include/pstl_offload/span deleted file mode 100644 index 9e03ea8e42a..00000000000 --- a/include/pstl_offload/span +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SPAN - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SPAN -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SPAN -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SPAN -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SPAN - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SPAN diff --git a/include/pstl_offload/sstream b/include/pstl_offload/sstream deleted file mode 100644 index 8cfea44b1f2..00000000000 --- a/include/pstl_offload/sstream +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SSTREAM - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SSTREAM -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SSTREAM -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SSTREAM -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SSTREAM - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SSTREAM diff --git a/include/pstl_offload/stack b/include/pstl_offload/stack deleted file mode 100644 index 7457ba5df57..00000000000 --- a/include/pstl_offload/stack +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_STACK - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_STACK -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_STACK -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_STACK -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_STACK - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_STACK diff --git a/include/pstl_offload/stdexcept b/include/pstl_offload/stdexcept deleted file mode 100644 index ab6dd4102e5..00000000000 --- a/include/pstl_offload/stdexcept +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_STDEXCEPT - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_STDEXCEPT -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_STDEXCEPT -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_STDEXCEPT -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_STDEXCEPT - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_STDEXCEPT diff --git a/include/pstl_offload/stdlib.h b/include/pstl_offload/stdlib.h deleted file mode 100644 index 061d7ea4232..00000000000 --- a/include/pstl_offload/stdlib.h +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_STDLIB_H - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_STDLIB_H -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_STDLIB_H -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_STDLIB_H -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_STDLIB_H - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_STDLIB_H diff --git a/include/pstl_offload/stop_token b/include/pstl_offload/stop_token deleted file mode 100644 index 49c21e23080..00000000000 --- a/include/pstl_offload/stop_token +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_STOP_TOKEN - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_STOP_TOKEN -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_STOP_TOKEN -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_STOP_TOKEN -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_STOP_TOKEN - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_STOP_TOKEN diff --git a/include/pstl_offload/streambuf b/include/pstl_offload/streambuf deleted file mode 100644 index 15f1e32fc80..00000000000 --- a/include/pstl_offload/streambuf +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_STREAMBUF - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_STREAMBUF -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_STREAMBUF -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_STREAMBUF -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_STREAMBUF - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_STREAMBUF diff --git a/include/pstl_offload/string b/include/pstl_offload/string deleted file mode 100644 index 8d284a53680..00000000000 --- a/include/pstl_offload/string +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_STRING - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_STRING -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_STRING -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_STRING -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_STRING - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_STRING diff --git a/include/pstl_offload/string_view b/include/pstl_offload/string_view deleted file mode 100644 index ec1eb7cde0b..00000000000 --- a/include/pstl_offload/string_view +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_STRING_VIEW - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_STRING_VIEW -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_STRING_VIEW -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_STRING_VIEW -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_STRING_VIEW - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_STRING_VIEW diff --git a/include/pstl_offload/strstream b/include/pstl_offload/strstream deleted file mode 100644 index 0fe2bae34fc..00000000000 --- a/include/pstl_offload/strstream +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_STRSTREAM - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_STRSTREAM -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_STRSTREAM -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_STRSTREAM -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_STRSTREAM - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_STRSTREAM diff --git a/include/pstl_offload/sycl/sycl.hpp b/include/pstl_offload/sycl/sycl.hpp deleted file mode 100644 index 586434109bf..00000000000 --- a/include/pstl_offload/sycl/sycl.hpp +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SYCL_SYCL_HPP - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SYCL_SYCL_HPP -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SYCL_SYCL_HPP -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SYCL_SYCL_HPP -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SYCL_SYCL_HPP - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SYCL_SYCL_HPP diff --git a/include/pstl_offload/syncstream b/include/pstl_offload/syncstream deleted file mode 100644 index a4824eca4af..00000000000 --- a/include/pstl_offload/syncstream +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SYNCSTREAM - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SYNCSTREAM -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SYNCSTREAM -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SYNCSTREAM -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SYNCSTREAM - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SYNCSTREAM diff --git a/include/pstl_offload/system_error b/include/pstl_offload/system_error deleted file mode 100644 index 86d63d7ed00..00000000000 --- a/include/pstl_offload/system_error +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SYSTEM_ERROR - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SYSTEM_ERROR -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SYSTEM_ERROR -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SYSTEM_ERROR -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SYSTEM_ERROR - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_SYSTEM_ERROR diff --git a/include/pstl_offload/thread b/include/pstl_offload/thread deleted file mode 100644 index 5d8391b667b..00000000000 --- a/include/pstl_offload/thread +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_THREAD - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_THREAD -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_THREAD -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_THREAD -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_THREAD - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_THREAD diff --git a/include/pstl_offload/tuple b/include/pstl_offload/tuple deleted file mode 100644 index ffbfb424b13..00000000000 --- a/include/pstl_offload/tuple +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_TUPLE - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_TUPLE -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_TUPLE -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_TUPLE -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_TUPLE - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_TUPLE diff --git a/include/pstl_offload/type_traits b/include/pstl_offload/type_traits deleted file mode 100644 index 4d1cbec2513..00000000000 --- a/include/pstl_offload/type_traits +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_TYPE_TRAITS - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_TYPE_TRAITS -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_TYPE_TRAITS -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_TYPE_TRAITS -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_TYPE_TRAITS - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_TYPE_TRAITS diff --git a/include/pstl_offload/typeindex b/include/pstl_offload/typeindex deleted file mode 100644 index fb08855e8fc..00000000000 --- a/include/pstl_offload/typeindex +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_TYPEINDEX - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_TYPEINDEX -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_TYPEINDEX -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_TYPEINDEX -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_TYPEINDEX - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_TYPEINDEX diff --git a/include/pstl_offload/typeinfo b/include/pstl_offload/typeinfo deleted file mode 100644 index 0e7a84a7646..00000000000 --- a/include/pstl_offload/typeinfo +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_TYPEINFO - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_TYPEINFO -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_TYPEINFO -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_TYPEINFO -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_TYPEINFO - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_TYPEINFO diff --git a/include/pstl_offload/unordered_map b/include/pstl_offload/unordered_map deleted file mode 100644 index 6517afe2801..00000000000 --- a/include/pstl_offload/unordered_map +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_UNORDERED_MAP - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_UNORDERED_MAP -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_UNORDERED_MAP -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_UNORDERED_MAP -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_UNORDERED_MAP - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_UNORDERED_MAP diff --git a/include/pstl_offload/unordered_set b/include/pstl_offload/unordered_set deleted file mode 100644 index 84448dcfda2..00000000000 --- a/include/pstl_offload/unordered_set +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_UNORDERED_SET - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_UNORDERED_SET -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_UNORDERED_SET -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_UNORDERED_SET -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_UNORDERED_SET - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_UNORDERED_SET diff --git a/include/pstl_offload/utility b/include/pstl_offload/utility deleted file mode 100644 index 1c71025ba99..00000000000 --- a/include/pstl_offload/utility +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_UTILITY - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_UTILITY -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_UTILITY -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_UTILITY -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_UTILITY - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_UTILITY diff --git a/include/pstl_offload/valarray b/include/pstl_offload/valarray deleted file mode 100644 index 3563b9e43dd..00000000000 --- a/include/pstl_offload/valarray +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_VALARRAY - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_VALARRAY -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_VALARRAY -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_VALARRAY -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_VALARRAY - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_VALARRAY diff --git a/include/pstl_offload/variant b/include/pstl_offload/variant deleted file mode 100644 index 8a7fb91981b..00000000000 --- a/include/pstl_offload/variant +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_VARIANT - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_VARIANT -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_VARIANT -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_VARIANT -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_VARIANT - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_VARIANT diff --git a/include/pstl_offload/vector b/include/pstl_offload/vector deleted file mode 100644 index f27f092ac8c..00000000000 --- a/include/pstl_offload/vector +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_VECTOR - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_VECTOR -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_VECTOR -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_VECTOR -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_VECTOR - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_VECTOR diff --git a/include/pstl_offload/version b/include/pstl_offload/version deleted file mode 100644 index 566fe7a263f..00000000000 --- a/include/pstl_offload/version +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_VERSION - -#ifndef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_VERSION -# define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include_next - -#ifdef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_VERSION -# include "internal/usm_memory_replacement.h" -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_VERSION -# undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_VERSION - -#endif // _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL_VERSION diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt deleted file mode 100644 index e6b4094ed65..00000000000 --- a/src/CMakeLists.txt +++ /dev/null @@ -1,104 +0,0 @@ -##===-- CMakeLists.txt ----------------------------------------------------===## -# -# Copyright (C) Intel Corporation -# -# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -# -##===----------------------------------------------------------------------===## - -if (CMAKE_HOST_WIN32) - set(VARS_TEMPLATE "${CMAKE_CURRENT_SOURCE_DIR}/cmake/windows/vars.template.bat") - set(OUTPUT_VARS "${CMAKE_BINARY_DIR}/vars.bat") -else() - set(VARS_TEMPLATE "${CMAKE_CURRENT_SOURCE_DIR}/cmake/linux/vars.template.sh") - set(OUTPUT_VARS "${CMAKE_BINARY_DIR}/vars.sh") -endif() - -# Skip the library build if it was built previously or should be taken from the package -if (NOT _ONEDPL_PSTL_OFFLOAD_BINARY_PATH) - message(STATUS "Adding PSTL offload library build stage") - - file(READ ${CMAKE_CURRENT_SOURCE_DIR}/pstl_offload.cpp _pstl_offload_version_info) - string(REGEX REPLACE ".*#define _PSTL_OFFLOAD_BINARY_VERSION_MAJOR ([0-9]+).*" "\\1" _pstl_offload_version_major "${_pstl_offload_version_info}") - string(REGEX REPLACE ".*#define _PSTL_OFFLOAD_BINARY_VERSION_MINOR ([0-9]+).*" "\\1" _pstl_offload_version_minor "${_pstl_offload_version_info}") - string(REGEX REPLACE ".*#define _PSTL_OFFLOAD_BINARY_VERSION_PATCH ([0-9]+).*" "\\1" _pstl_offload_version_patch "${_pstl_offload_version_info}") - - add_library(pstloffload SHARED ${CMAKE_CURRENT_SOURCE_DIR}/pstl_offload.cpp) - - if (CMAKE_HOST_WIN32) - set(EXTRA_COMPILE_FLAGS "/GS") - else() - # have to put -fPIC after -fPIE to support linking when TLS is in use - set(EXTRA_COMPILE_FLAGS -fPIE -fPIC -fstack-protector -Wremarks) - endif() - - target_compile_options(pstloffload PRIVATE - -fsycl - -Wall -Wextra -Wformat -Wformat-security -Werror - -mretpoline - ${EXTRA_COMPILE_FLAGS} - ) - - target_link_options(pstloffload PRIVATE -Wl,-z,relro) - - target_include_directories(pstloffload PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../include) - - set_target_properties(pstloffload PROPERTIES - VERSION ${_pstl_offload_version_major}.${_pstl_offload_version_minor}.${_pstl_offload_version_patch} - SOVERSION ${_pstl_offload_version_major} - CXX_VISIBILITY_PRESET hidden - VISIBILITY_INLINES_HIDDEN ON - ) - - add_custom_command(OUTPUT ${OUTPUT_VARS} COMMAND - ${CMAKE_COMMAND} - -DDPL_ROOT=${CMAKE_SOURCE_DIR} - -DVARS_TEMPLATE=${VARS_TEMPLATE} - -DOUTPUT_VARS=${OUTPUT_VARS} - -DPSTL_OFFLOAD_BINARY_PATH=${CMAKE_CURRENT_BINARY_DIR} - -P ${CMAKE_CURRENT_SOURCE_DIR}/cmake/generate_vars.cmake - ) - add_custom_target(set_env_vars DEPENDS ${OUTPUT_VARS}) - add_dependencies(pstloffload set_env_vars) - - if (CMAKE_HOST_WIN32) - include(ExternalProject) - find_program(NMAKE_EXE NAMES nmake REQUIRED) - set(DETOURS_PATH ${PROJECT_BINARY_DIR}/src/project_detours-prefix/src/project_detours) - ExternalProject_Add(project_detours - GIT_REPOSITORY https://github.com/microsoft/Detours.git - GIT_TAG 4b8c659f549b0ab21cf649377c7a84eb708f5e68 - INSTALL_COMMAND "" - CONFIGURE_COMMAND "" - # use CL to add additional flags to the Detours build - BUILD_COMMAND cd src && SET CL=/sdl - COMMAND ${NMAKE_EXE} - BUILD_IN_SOURCE on - STEP_TARGETS build - BUILD_BYPRODUCTS ${DETOURS_PATH}/lib.X64/detours.lib - ) - - message(STATUS "Using Detours from ${DETOURS_PATH}") - - add_library(detours STATIC IMPORTED) - set_property(TARGET detours PROPERTY IMPORTED_LOCATION ${DETOURS_PATH}/lib.X64/detours.lib) - add_dependencies(detours project_detours) - - target_include_directories(pstloffload PRIVATE ${DETOURS_PATH}/include) - target_link_libraries(pstloffload PRIVATE detours) - - set_target_properties(pstloffload PROPERTIES - LINK_FLAGS "${CMAKE_LINK_DEF_FILE_FLAG}\"${CMAKE_CURRENT_SOURCE_DIR}/win64.def\"" - LINK_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/win64.def" - ) - endif() -else() - message(STATUS "Skip PSTL offload library build") - message(STATUS "Generate vars for binaries in ${_ONEDPL_PSTL_OFFLOAD_BINARY_PATH}") - - # Setting parameters for generate_vars.cmake script - set(DPL_ROOT ${CMAKE_SOURCE_DIR}) - set(PSTL_OFFLOAD_BINARY_PATH ${_ONEDPL_PSTL_OFFLOAD_BINARY_PATH}) - - include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/generate_vars.cmake) -endif() diff --git a/src/cmake/generate_vars.cmake b/src/cmake/generate_vars.cmake deleted file mode 100644 index b21dd9c1999..00000000000 --- a/src/cmake/generate_vars.cmake +++ /dev/null @@ -1,21 +0,0 @@ -##===-- CMakeLists.txt ----------------------------------------------------===## -# -# Copyright (C) Intel Corporation -# -# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -# -##===----------------------------------------------------------------------===## - -# Required parameters: -# DPL_ROOT - value for DPLROOT environment variable -# VARS_TEMPLATE - incoming path to PSTL offload vars template -# OUTPUT_VARS - path to vars file to be generated -# PSTL_OFFLOAD_BINARY_PATH - path to PSTL offload binaries - -set(DPLROOT_REPLACEMENT "${DPL_ROOT}") -set(LIBRARY_PATH_REPLACEMENT "${PSTL_OFFLOAD_BINARY_PATH}") - -file(TO_NATIVE_PATH "${DPLROOT_REPLACEMENT}" DPLROOT_REPLACEMENT) -file(TO_NATIVE_PATH "${LIBRARY_PATH_REPLACEMENT}" LIBRARY_PATH_REPLACEMENT) - -configure_file(${VARS_TEMPLATE} ${OUTPUT_VARS} @ONLY) diff --git a/src/cmake/linux/vars.template.sh b/src/cmake/linux/vars.template.sh deleted file mode 100644 index 94bb5f58343..00000000000 --- a/src/cmake/linux/vars.template.sh +++ /dev/null @@ -1,12 +0,0 @@ -##===-- vars.template.sh---------------------------------------------------===## -# -# Copyright (C) Intel Corporation -# -# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -# -##===----------------------------------------------------------------------===## - -export DPL_ROOT=@DPLROOT_REPLACEMENT@ - -LIBRARY_PATH="@LIBRARY_PATH_REPLACEMENT@:${LIBRARY_PATH}"; export LIBRARY_PATH -LD_LIBRARY_PATH="@LIBRARY_PATH_REPLACEMENT@:${LD_LIBRARY_PATH}"; export LD_LIBRARY_PATH diff --git a/src/cmake/windows/vars.template.bat b/src/cmake/windows/vars.template.bat deleted file mode 100644 index 80cc50c0107..00000000000 --- a/src/cmake/windows/vars.template.bat +++ /dev/null @@ -1,22 +0,0 @@ -@echo off -REM -REM ===----------------------------------------------------------------------=== -REM -REM Copyright (C) 2023 Intel Corporation -REM -REM SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -REM -REM This file incorporates work covered by the following copyright and permission -REM notice: -REM -REM Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -REM See https://llvm.org/LICENSE.txt for license information. -REM -REM ===----------------------------------------------------------------------=== -REM - -set SYCL_ENABLE_DEFAULT_CONTEXTS=1 -set DPL_ROOT=@DPLROOT_REPLACEMENT@ - -set LIB=@LIBRARY_PATH_REPLACEMENT@;%LIB% -set PATH=@LIBRARY_PATH_REPLACEMENT@;%PATH% diff --git a/src/pstl_offload.cpp b/src/pstl_offload.cpp deleted file mode 100644 index 31b0f9b477c..00000000000 --- a/src/pstl_offload.cpp +++ /dev/null @@ -1,852 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include -#include // std::scoped_lock -#include -#include - -#include - -#define _PSTL_OFFLOAD_BINARY_VERSION_MAJOR 1 -#define _PSTL_OFFLOAD_BINARY_VERSION_MINOR 0 -#define _PSTL_OFFLOAD_BINARY_VERSION_PATCH 0 - -/* -Functions that allocates memory are replaced on per-TU base. For better reliability, releasing -functions are replaced globally and an origin of a releasing object is checked to call right -releasing function. realloc can do both allocation and releasing, so it must be both replaced -on per-TU base and globally, but with different semantics in wrt newly allocated memory. - -Global replacement under Linux is done during link-time or during load via LD_PRELOAD. To implememnt -global replacement under Windows the dynamic runtime libraries are instrumented with help of -Microsoft Detours. -*/ - -#if _WIN64 - -#define WIN32_LEAN_AND_MEAN -#define NOMINMAX -#include -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wignored-attributes" -#include -#pragma GCC diagnostic pop - -#define _PSTL_OFFLOAD_EXPORT - -#elif __linux__ - -#define _PSTL_OFFLOAD_EXPORT __attribute__((visibility("default"))) - -#endif - -namespace __pstl_offload -{ - -using __free_func_type = void (*)(void*); - -#if __linux__ - -// list of objects for delayed releasing -struct __delayed_free_list { - __delayed_free_list* _M_next; - void* _M_to_free; -}; - -// are we inside dlsym call? -static thread_local bool __dlsym_called = false; -// objects released inside of dlsym call -static thread_local __delayed_free_list* __delayed_free = nullptr; - -static void -__free_delayed_list(void* __ptr_to_free, __free_func_type __orig_free) -{ - // It's enough to check __delayed_free only at this point, - // as __delayed_free filled only inside dlsym(RTLD_NEXT, "free"). - while (__delayed_free) - { - __delayed_free_list* __next = __delayed_free->_M_next; - // it's possible that an object to be released during 1st call of __internal_free - // would be released 2nd time from inside nested dlsym call. To prevent "double free" - // situation, check for it explicitly. - if (__ptr_to_free != __delayed_free->_M_to_free) - { - __orig_free(__delayed_free->_M_to_free); - } - __orig_free(__delayed_free); - __delayed_free = __next; - } -} - -static __free_func_type -__get_original_free_checked(void* __ptr_to_free) -{ - __dlsym_called = true; - __free_func_type __orig_free = __free_func_type(dlsym(RTLD_NEXT, "free")); - __dlsym_called = false; - if (!__orig_free) - { - throw std::system_error(std::error_code(), dlerror()); - } - - // Releasing objects from delayed release list. - __free_delayed_list(__ptr_to_free, __orig_free); - - return __orig_free; -} - -static void -__original_free(void* __ptr_to_free) -{ - static __free_func_type __orig_free = __get_original_free_checked(__ptr_to_free); - __orig_free(__ptr_to_free); -} - -static std::size_t -__original_msize(void* __user_ptr) -{ - using __msize_func_type = std::size_t (*)(void*); - - static __msize_func_type __orig_msize = - __msize_func_type(dlsym(RTLD_NEXT, "malloc_usable_size")); - return __orig_msize(__user_ptr); -} - -static auto -__get_original_realloc() -{ - using __realloc_func_type = void* (*)(void*, std::size_t); - - static __realloc_func_type __orig_realloc = __realloc_func_type(dlsym(RTLD_NEXT, "realloc")); - return __orig_realloc; -} -#elif _WIN64 - -static __free_func_type __original_free_ptr = free; - -#endif - -inline bool -__is_ptr_page_aligned(void* __p) -{ - // using that __get_memory_page_size() returns only power of 2 values - return ((std::uintptr_t)__p & (__get_memory_page_size() - 1)) == 0; -} - -struct __hash_aligned_ptr -{ - std::uintptr_t operator()(void* __p) const - { - // We know that addresses are at least page-aligned, so, expecting page at least - // 4K-aligned, drop 11 right bits that are zeros, and treat rest as a pointer, - // hoping that an underlying Standard Library support this well. - constexpr unsigned __ptr_shift = 11; - // current page size is at least 4K - assert(__get_memory_page_size() >= (1 << __ptr_shift)); - return std::hash()((void*)((std::uintptr_t)__p >> __ptr_shift)); - } -}; - -template -struct __orig_free_allocator -{ - using value_type = T; - - __orig_free_allocator() = default; - - template - constexpr __orig_free_allocator(const __orig_free_allocator&) noexcept {} - - T* allocate(std::size_t __n) - { - T *ptr = static_cast(std::malloc(__n * sizeof(T))); - if (ptr == nullptr) - { - throw std::bad_alloc(); - } - return ptr; - } - - void deallocate(T* __ptr, std::size_t) noexcept - { -#if __linux__ - __original_free(__ptr); -#elif _WIN64 - __original_free_ptr(__ptr); -#endif - } - - template - friend bool operator==(const __orig_free_allocator&, const __orig_free_allocator&) { return true; } - template - friend bool operator!=(const __orig_free_allocator&, const __orig_free_allocator&) { return false; } -}; - -// this mutex protects only __large_aligned_ptrs_map, do not put it inside __large_aligned_ptrs_map -// to freely use after execution __large_aligned_ptrs_map's dtor -static __spin_mutex __large_aligned_ptrs_map_mtx; - -class __large_aligned_ptrs_map -{ -public: - struct __ptr_desc - { - __sycl_device_shared_ptr _M_device; - std::size_t _M_requested_number_of_bytes; - }; - -private: - // Find sycl::device and requested size by user pointer. Use __orig_free_allocator to not - // call global delete during delete processing (overloaded global delete includes - // __unregister_ptr call). - using __map_ptr_to_object_prop = - std::unordered_map, - __orig_free_allocator>>; - __map_ptr_to_object_prop* _M_map; - -public: - // We suppose that all users of libpstloffload have dependence on it, so it's impossible to - // register >=4K-aligned USM memory before ctor of static objects in libpstloffload is executed. - // So, no need for special support for adding to not-yet-created __large_aligned_ptrs_map. - // Suppose that _M_map contains zero before ctor run, so __unregister_ptr()/__get_size() can be - // used in this case. - __large_aligned_ptrs_map() - { - // must have lock because __unregister_ptr()/__get_size() can be called concurrently with ctor - std::scoped_lock __l(__large_aligned_ptrs_map_mtx); - _M_map = new __map_ptr_to_object_prop; - } - - // Do not destroy (i.e., intentionally leak) _M_map to able use it after static object dtor is - // executed. Global free/delete/realloc/etc are overloaded, so we need to use it even after - // static object dtor has been executed. - ~__large_aligned_ptrs_map() { } - - __large_aligned_ptrs_map(const __large_aligned_ptrs_map&) = delete; - __large_aligned_ptrs_map& operator=(const __large_aligned_ptrs_map&) = delete; - - static void - __register_ptr(__large_aligned_ptrs_map& __this, void* __ptr, std::size_t __size, __sycl_device_shared_ptr __device_ptr) - { - assert(__is_ptr_page_aligned(__ptr)); - - std::scoped_lock __l(__large_aligned_ptrs_map_mtx); - [[maybe_unused]] auto __ret = __this._M_map->emplace(__ptr, __ptr_desc{std::move(__device_ptr), __size}); - assert(__ret.second); // the pointer must be unique - } - - // nullopt means "it's not our pointer" - static std::optional<__ptr_desc> - __unregister_ptr(__large_aligned_ptrs_map& __this, void* __ptr) - { - // only page-aligned can be registered, so they may not be in the map - if (!__is_ptr_page_aligned(__ptr)) - { - return std::nullopt; - } - - std::scoped_lock __l(__large_aligned_ptrs_map_mtx); - if (!__this._M_map) - { - // ctor of static object not yet run, so it can't be our pointer - return std::nullopt; - } - auto __iter = __this._M_map->find(__ptr); - if (__iter == __this._M_map->end()) - { - return std::nullopt; - } - __ptr_desc __header = std::move(__iter->second); - __this._M_map->erase(__iter); - return __header; - } - - // nullopt means "it's not our pointer" - static std::optional - __get_size(__large_aligned_ptrs_map& __this, void* __ptr) - { - // only page-aligned can be registered - if (!__is_ptr_page_aligned(__ptr)) - { - return std::nullopt; - } - - std::scoped_lock __l(__large_aligned_ptrs_map_mtx); - if (!__this._M_map) - { - // ctor of static object not yet run, so it can't be our pointer - return std::nullopt; - } - auto __iter = __this._M_map->find(__ptr); - if (__iter == __this._M_map->end()) - { - return std::nullopt; - } - return __iter->second._M_requested_number_of_bytes; - } -}; - -static __large_aligned_ptrs_map __large_aligned_ptrs; - -static void -__free_usm_pointer(__block_header* __header) -{ - __header->_M_uniq_const = 0; - sycl::context __context = __header->_M_device.__get_context(); - void* __original_pointer = __header->_M_original_pointer; - __header->~__block_header(); - sycl::free(__original_pointer, __context); -} - -#if __linux__ - -static void -__internal_free(void* __user_ptr) -{ - if (__user_ptr != nullptr) - { - if (__block_header* __header = static_cast<__block_header*>(__user_ptr) - 1; - __same_memory_page(__user_ptr, __header) && __header->_M_uniq_const == __uniq_type_const) - { - __free_usm_pointer(__header); - return; - } - - if (std::optional<__large_aligned_ptrs_map::__ptr_desc> - __desc = __large_aligned_ptrs_map::__unregister_ptr(__large_aligned_ptrs, __user_ptr); - __desc.has_value()) - { - sycl::context __context = __desc->_M_device.__get_context(); - sycl::free(__user_ptr, __context); - return; - } - - if (__dlsym_called) - { - // Delay releasing till exit of dlsym. We do not overload malloc globally, - // so can use it safely. Do not use new to able to use free() during - // __delayed_free_list releasing. - void* __buf = malloc(sizeof(__delayed_free_list)); - if (!__buf) - { - throw std::bad_alloc(); - } - __delayed_free_list* __h = new (__buf) __delayed_free_list{__delayed_free, __user_ptr}; - __delayed_free = __h; - } - else - { - __original_free(__user_ptr); - } - } -} - -#elif _WIN64 - -#if _DEBUG -static void (*__original_free_dbg_ptr)(void* userData, int blockType) = _free_dbg; -#endif -static __realloc_func_type __original_realloc_ptr = realloc; -static __free_func_type __original_aligned_free_ptr = _aligned_free; -static size_t (*__original_msize)(void *) = _msize; -static size_t (*__original_aligned_msize_ptr)(void *, std::size_t alignment, std::size_t offset) = _aligned_msize; -static void* (*__original_aligned_realloc_ptr)(void *, std::size_t size, std::size_t alignment) = _aligned_realloc; -static void* (*__original_expand_ptr)(void *, std::size_t size) = _expand; - -static void -__internal_free_param(void* __user_ptr, __free_func_type __custom_free) -{ - if (__user_ptr != nullptr) - { - __block_header* __header = static_cast<__block_header*>(__user_ptr) - 1; - - if (__same_memory_page(__user_ptr, __header) && __header->_M_uniq_const == __uniq_type_const) - { - __free_usm_pointer(__header); - } - else - { - __custom_free(__user_ptr); - } - } -} - -static void -__internal_free(void* __user_ptr) -{ - __internal_free_param(__user_ptr, __original_free_ptr); -} - -#endif // _WIN64 - -static std::size_t -__internal_msize(void* __user_ptr) -{ - if (__user_ptr == nullptr) - { -#if _WIN64 - errno = EINVAL; - _invalid_parameter_noinfo(); - return -1; -#else - return 0; -#endif - } - - __block_header* __header = static_cast<__block_header*>(__user_ptr) - 1; - - if (__same_memory_page(__user_ptr, __header) && __header->_M_uniq_const == __uniq_type_const) - { - return __header->_M_requested_number_of_bytes; - } - - std::optional __size = __large_aligned_ptrs_map::__get_size(__large_aligned_ptrs, __user_ptr); - - return __size.has_value() ? *__size : __original_msize(__user_ptr); -} - -static void* -__realloc_allocate_shared(__sycl_device_shared_ptr __device_ptr, void* __user_ptr, std::size_t __old_size, std::size_t __new_size) -{ - void* __new_ptr = __allocate_shared_for_device(std::move(__device_ptr), __new_size, alignof(std::max_align_t)); - - if (__new_ptr != nullptr) - { - std::memcpy(__new_ptr, __user_ptr, std::min(__old_size, __new_size)); - } - else - { - errno = ENOMEM; - } - return __new_ptr; -} - -_PSTL_OFFLOAD_EXPORT void* -__realloc_impl(void* __user_ptr, std::size_t __new_size) -{ - assert(__user_ptr != nullptr); - - if (!__new_size) - { - __internal_free(__user_ptr); - return nullptr; - } - - if (__block_header* __header = static_cast<__block_header*>(__user_ptr) - 1; - __same_memory_page(__user_ptr, __header) && __header->_M_uniq_const == __uniq_type_const) - { - if (__header->_M_requested_number_of_bytes >= __new_size) - { - return __user_ptr; - } - - void* __result = __realloc_allocate_shared(__header->_M_device, __user_ptr, - __header->_M_requested_number_of_bytes, __new_size); - if (__result) - { - __free_usm_pointer(__header); - } - return __result; - } - - if (std::optional<__large_aligned_ptrs_map::__ptr_desc> - __desc = __large_aligned_ptrs_map::__unregister_ptr(__large_aligned_ptrs, __user_ptr); - __desc.has_value()) - { - void* __result = __realloc_allocate_shared(__desc->_M_device, __user_ptr, __desc->_M_requested_number_of_bytes, __new_size); - if (__result) - { - sycl::context __context = __desc->_M_device.__get_context(); - sycl::free(__user_ptr, __context); - } - return __result; - } - - // __user_ptr is not a USM pointer, use original realloc function -#if __linux__ - return __get_original_realloc()(__user_ptr, __new_size); -#elif _WIN64 - return __original_realloc(__user_ptr, __new_size); -#endif -} - -_PSTL_OFFLOAD_EXPORT void* -__allocate_shared_for_device_large_alignment(__sycl_device_shared_ptr __device_ptr, std::size_t __size, std::size_t __alignment) -{ - sycl::device __device = __device_ptr.__get_device(); - sycl::context __context = __device_ptr.__get_context(); - void* __ptr = sycl::aligned_alloc_shared(__alignment, __size, __device, __context); - - if (__ptr) - { - __large_aligned_ptrs_map::__register_ptr(__large_aligned_ptrs, __ptr, __size, std::move(__device_ptr)); - } - return __ptr; -} - -#if _WIN64 - -static void* -__realloc_allocate_aligned_shared(__sycl_device_shared_ptr __device_ptr, void* __user_ptr, - std::size_t __old_size, std::size_t __new_size, std::size_t __alignment) -{ - void* __new_ptr = __allocate_shared_for_device(std::move(__device_ptr), __new_size, __alignment); - - if (__new_ptr != nullptr) - { - std::memcpy(__new_ptr, __user_ptr, std::min(__old_size, __new_size)); - } - else - { - errno = ENOMEM; - } - return __new_ptr; -} - -void* -__aligned_realloc_impl(void* __user_ptr, std::size_t __new_size, std::size_t __alignment) -{ - assert(__user_ptr != nullptr); - - if (__new_size == 0) - { - _aligned_free(__user_ptr); - return nullptr; - } - - if (__block_header* __header = static_cast<__block_header*>(__user_ptr) - 1; - __same_memory_page(__user_ptr, __header) && __header->_M_uniq_const == __uniq_type_const) - { - if (__header->_M_requested_number_of_bytes >= __new_size && (std::uintptr_t)__user_ptr % __alignment == 0) - { - return __user_ptr; - } - void* __result = __realloc_allocate_aligned_shared(__header->_M_device, __user_ptr, - __header->_M_requested_number_of_bytes, __new_size, __alignment); - - if (__result != nullptr) - { - // Free previously allocated memory - __free_usm_pointer(__header); - } - return __result; - } - - if (std::optional<__large_aligned_ptrs_map::__ptr_desc> - __desc = __large_aligned_ptrs_map::__unregister_ptr(__large_aligned_ptrs, __user_ptr); - __desc.has_value()) - { - void* __result = __realloc_allocate_aligned_shared(__desc->_M_device, __user_ptr, - __desc->_M_requested_number_of_bytes, __new_size, __alignment); - - if (__result != nullptr) - { - sycl::context __context = __desc->_M_device.__get_context(); - sycl::free(__user_ptr, __context); - } - return __result; - } - - // __user_ptr is not a USM pointer, use original realloc function - return __original_aligned_realloc(__user_ptr, __new_size, __alignment); -} - -#if _DEBUG - -static void -__internal_free_dbg(void* __user_ptr, int __type) -{ - if (__user_ptr != nullptr) - { - __block_header* __header = static_cast<__block_header*>(__user_ptr) - 1; - - if (__same_memory_page(__user_ptr, __header) && __header->_M_uniq_const == __uniq_type_const) - { - __header->__free(); - } - else - { - __original_free_dbg_ptr(__user_ptr, __type); - } - } -} - -#endif // _DEBUG - -static std::size_t -__internal_aligned_msize(void* __user_ptr, std::size_t __alignment, std::size_t __offset) -{ - if (__user_ptr == nullptr || !__is_power_of_two(__alignment)) - { - errno = EINVAL; - _invalid_parameter_noinfo(); - return -1; - } - - std::size_t __res = 0; - __block_header* __header = static_cast<__block_header*>(__user_ptr) - 1; - - if (__same_memory_page(__user_ptr, __header) && __header->_M_uniq_const == __uniq_type_const) - { - __res = __header->_M_requested_number_of_bytes; - } - else - { - __res = __original_aligned_msize_ptr(__user_ptr, __alignment, __offset); - } - return __res; -} - -static void -__internal_aligned_free(void* __user_ptr) -{ - __internal_free_param(__user_ptr, __original_aligned_free_ptr); -} - -void* -__original_malloc(std::size_t size) -{ - return malloc(size); -} - -void* -__original_aligned_alloc(std::size_t size, std::size_t alignment) -{ - return _aligned_malloc(size, alignment); -} - -void* -__original_realloc(void* __user_ptr, std::size_t __new_size) -{ - return __original_realloc_ptr(__user_ptr, __new_size); -} - -void* -__original_aligned_realloc(void* __user_ptr, std::size_t __new_size, std::size_t __new_alignment) -{ - return __original_aligned_realloc_ptr(__user_ptr, __new_size, __new_alignment); -} - -static void* -__internal_expand(void* /*__user_ptr*/, std::size_t /*__size*/) -{ - // do not support _expand() - return nullptr; -} - -std::size_t -__get_page_size() -{ - static struct __system_info - { - SYSTEM_INFO _M_si; - __system_info() - { - GetSystemInfo(&_M_si); - } - } __info; - - return __info._M_si.dwPageSize; -} - -static bool -__do_functions_replacement() -{ - // May fail, because process commonly not started with DetourCreateProcessWithDll*. Ignore it. - DetourRestoreAfterWith(); - - LONG ret = DetourTransactionBegin(); - if (NO_ERROR != ret) - { - fprintf(stderr, "Failed function replacement: DetourTransactionBegin returns %ld\n", ret); - return false; - } - - // Operators from delete family is implemented by compiler with call to an appropriate free function. - // Those functions are in the dll and they are replaced, so no need to directly replaced delete. - // TODO: rarely-used _aligned_offset_* and _set*_invalid_parameter_handler functions are not supported yet -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wmicrosoft-cast" - ret = DetourAttach(&(PVOID&)__original_free_ptr, __internal_free); - if (NO_ERROR != ret) - { - fprintf(stderr, "Failed function replacement: free replacement failed with %ld\n", ret); - return false; - } -#if _DEBUG - // _free_dbg is called by delete in debug mode - ret = DetourAttach(&(PVOID&)__original_free_dbg_ptr, __internal_free_dbg); - if (NO_ERROR != ret) - { - fprintf(stderr, "Failed function replacement: _free_dbg replacement failed with %ld\n", ret); - return false; - } -#endif - ret = DetourAttach(&(PVOID&)__original_realloc_ptr, __internal_realloc); - if (NO_ERROR != ret) - { - fprintf(stderr, "Failed function replacement: realloc replacement failed with %ld\n", ret); - return false; - } - ret = DetourAttach(&(PVOID&)__original_aligned_free_ptr, __internal_aligned_free); - if (NO_ERROR != ret) - { - fprintf(stderr, "Failed function replacement: _aligned_free replacement failed with %ld\n", ret); - return false; - } - ret = DetourAttach(&(PVOID&)__original_msize, __internal_msize); - if (NO_ERROR != ret) - { - fprintf(stderr, "Failed function replacement: _msize replacement failed with %ld\n", ret); - return false; - } - ret = DetourAttach(&(PVOID&)__original_aligned_msize_ptr, __internal_aligned_msize); - if (NO_ERROR != ret) - { - fprintf(stderr, "Failed function replacement: _aligned_msize replacement failed with %ld\n", ret); - return false; - } - ret = DetourAttach(&(PVOID&)__original_aligned_realloc_ptr, __internal_aligned_realloc); - if (NO_ERROR != ret) - { - fprintf(stderr, "Failed function replacement: _aligned_realloc replacement failed with %ld\n", ret); - return false; - } - ret = DetourAttach(&(PVOID&)__original_expand_ptr, __internal_expand); - if (NO_ERROR != ret) - { - fprintf(stderr, "Failed function replacement: _expand replacement failed with %ld\n", ret); - return false; - } -#pragma GCC diagnostic pop - - ret = DetourTransactionCommit(); - if (NO_ERROR != ret) - { - fprintf(stderr, "Failed function replacement: DetourTransactionCommit returns %ld\n", ret); - return false; - } - return true; -} - -#endif // _WIN64 - -} // namespace __pstl_offload - -#if __linux__ -extern "C" -{ - -_PSTL_OFFLOAD_EXPORT void free(void* __ptr) -{ - ::__pstl_offload::__internal_free(__ptr); -} - -_PSTL_OFFLOAD_EXPORT void __libc_free(void *__ptr) -{ - ::__pstl_offload::__internal_free(__ptr); -} - -_PSTL_OFFLOAD_EXPORT void* realloc(void* __ptr, std::size_t __new_size) -{ - return ::__pstl_offload::__internal_realloc(__ptr, __new_size); -} - -_PSTL_OFFLOAD_EXPORT void* __libc_realloc(void* __ptr, std::size_t __new_size) -{ - return ::__pstl_offload::__internal_realloc(__ptr, __new_size); -} - -_PSTL_OFFLOAD_EXPORT std::size_t malloc_usable_size(void* __ptr) noexcept -{ - return ::__pstl_offload::__internal_msize(__ptr); -} - -} // extern "C" - -_PSTL_OFFLOAD_EXPORT void -operator delete(void* __ptr) noexcept -{ - ::__pstl_offload::__internal_free(__ptr); -} - -_PSTL_OFFLOAD_EXPORT void -operator delete[](void* __ptr) noexcept -{ - ::__pstl_offload::__internal_free(__ptr); -} - -_PSTL_OFFLOAD_EXPORT void -operator delete(void* __ptr, std::size_t) noexcept -{ - ::__pstl_offload::__internal_free(__ptr); -} - -_PSTL_OFFLOAD_EXPORT void -operator delete[](void* __ptr, std::size_t) noexcept -{ - ::__pstl_offload::__internal_free(__ptr); -} - -_PSTL_OFFLOAD_EXPORT void -operator delete(void* __ptr, std::size_t, std::align_val_t) noexcept -{ - ::__pstl_offload::__internal_free(__ptr); -} - -_PSTL_OFFLOAD_EXPORT void -operator delete[](void* __ptr, std::size_t, std::align_val_t) noexcept -{ - ::__pstl_offload::__internal_free(__ptr); -} - -_PSTL_OFFLOAD_EXPORT void -operator delete(void* __ptr, const std::nothrow_t&) noexcept -{ - ::__pstl_offload::__internal_free(__ptr); -} - -_PSTL_OFFLOAD_EXPORT void -operator delete[](void* __ptr, const std::nothrow_t&) noexcept -{ - ::__pstl_offload::__internal_free(__ptr); -} - -_PSTL_OFFLOAD_EXPORT void -operator delete(void* __ptr, std::align_val_t) noexcept -{ - ::__pstl_offload::__internal_free(__ptr); -} - -_PSTL_OFFLOAD_EXPORT void -operator delete[](void* __ptr, std::align_val_t) noexcept -{ - ::__pstl_offload::__internal_free(__ptr); -} - -#elif _WIN64 - -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wignored-attributes" -extern "C" BOOL WINAPI DllMain(HINSTANCE hInst, DWORD callReason, LPVOID reserved) -{ - BOOL ret = TRUE; - - if (callReason == DLL_PROCESS_ATTACH && reserved && hInst) - { - ret = __pstl_offload::__do_functions_replacement() ? TRUE : FALSE; - } - - return ret; -} -#pragma GCC diagnostic pop - -#endif // _WIN64 diff --git a/src/win64.def b/src/win64.def deleted file mode 100644 index 96aa8de2509..00000000000 --- a/src/win64.def +++ /dev/null @@ -1,14 +0,0 @@ -; Copyright (C) 2023 Intel Corporation -; -; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -; - -EXPORTS - -?__get_page_size@__pstl_offload@@YA_KXZ -?__original_malloc@__pstl_offload@@YAPEAX_K@Z -?__original_aligned_alloc@__pstl_offload@@YAPEAX_K0@Z -?__original_aligned_realloc@__pstl_offload@@YAPEAXPEAX_K1@Z -?__realloc_impl@__pstl_offload@@YAPEAXPEAX_K@Z -?__aligned_realloc_impl@__pstl_offload@@YAPEAXPEAX_K1@Z -?__allocate_shared_for_device_large_alignment@__pstl_offload@@YAPEAXV__sycl_device_shared_ptr@1@_K1@Z diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 2284c38f95e..45bf4680e57 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -140,7 +140,6 @@ macro(onedpl_construct_exec test_source_file _test_name switch_off_checked_itera if ("${_test_name}" STREQUAL selected_different_device.pass AND _ONEDPL_PSTL_OFFLOAD MATCHES "(cpu|gpu)") set_tests_properties(${_test_name} PROPERTIES ENVIRONMENT "${DEVICE_SELECTION_VARIABLE}=${ONEDPL_DEVICE_BACKEND}:${_ONEDPL_PSTL_OFFLOAD}") endif() - target_link_directories(${_test_name} PRIVATE "${PROJECT_BINARY_DIR}/src") elseif (DEFINED DEVICE_SELECTION_LINE) file(GLOB_RECURSE DS_TESTS "parallel_api/dynamic_selection/*.cpp") if (NOT "${DS_TESTS}" MATCHES "${_test_name}") # do not set SYCL_DEVICE_FILTER for dynamic selection tests @@ -275,24 +274,3 @@ foreach (_file IN LISTS UNIT_TESTS) endif() endforeach() - -# add additional TUs if required -if (TARGET interop_allocs.pass) - target_sources(interop_allocs.pass PRIVATE "${CMAKE_CURRENT_LIST_DIR}/pstl_offload/memory/interop_allocs_system.cpp" - "${CMAKE_CURRENT_LIST_DIR}/pstl_offload/memory/interop_allocs_usm.cpp") -endif() - -# we want to test configurations when our dynamic library loaded before pstloffload as well as after pstloffload -if (TARGET free_after_unload.pass) - add_library(free_after_unload_lib SHARED "${CMAKE_CURRENT_LIST_DIR}/pstl_offload/general/free_after_unload_lib.cpp") - target_include_directories(free_after_unload_lib PRIVATE "${CMAKE_CURRENT_LIST_DIR}") - target_link_libraries(free_after_unload.pass PRIVATE free_after_unload_lib) -endif() - -if (TARGET free_after_unload.pass.after_pstl_offload) - if (NOT TARGET free_after_unload_lib) - add_library(free_after_unload_lib SHARED "${CMAKE_CURRENT_LIST_DIR}/pstl_offload/general/free_after_unload_lib.cpp") - target_include_directories(free_after_unload_lib PRIVATE "${CMAKE_CURRENT_LIST_DIR}") - endif() - target_link_libraries(free_after_unload.pass.after_pstl_offload PRIVATE pstloffload free_after_unload_lib) -endif() diff --git a/test/pstl_offload/algorithms/algorithms_redirection.pass.cpp b/test/pstl_offload/algorithms/algorithms_redirection.pass.cpp deleted file mode 100644 index 1eac7c0df85..00000000000 --- a/test/pstl_offload/algorithms/algorithms_redirection.pass.cpp +++ /dev/null @@ -1,1619 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#if !__SYCL_PSTL_OFFLOAD__ -#error "PSTL offload compiler mode should be enabled to run this test" -#endif - -// ATTENTION: don't include oneDPL and unguarded standard headers -// to guarantee that intercepting overloads of oneapi::dpl:: algorithms -// appear before corresponding functions in oneDPL headers - -// The idea of the test is to check that each standard parallel algorithm -// call with std::execution::par_unseq policy results in -// oneapi::dpl::algorithm_name(device_policy, ...) call -// and hence the offload to the correct device would happen - -// To check that, special overloads for oneapi::dpl:: algorithms added -// BEFORE including the oneDPL - -// Define guard to include only standard part of the header -// without additional pstl offload part -#define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#include -#include -#include -#undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -namespace oneapi::dpl::execution { -inline namespace v1 { - -template -struct is_execution_policy; - -} // inline namespace v1 -} // namespace oneapi::dpl::execution - -struct not_iterator { - using difference_type = int; - using value_type = int; - using pointer = int*; - using reference = int&; - using iterator_category = std::random_access_iterator_tag; -}; - -template -using test_enable_if_execution_policy = std::enable_if_t< - oneapi::dpl::execution::is_execution_policy>::value, T>; - -enum class algorithm_id { - EMPTY_ID, - ANY_OF, - ALL_OF, - NONE_OF, - FOR_EACH, - FOR_EACH_N, - FIND_IF, - FIND_IF_NOT, - FIND, - FIND_END_PREDICATE, - FIND_END, - FIND_FIRST_OF_PREDICATE, - FIND_FIRST_OF, - ADJACENT_FIND_PREDICATE, - ADJACENT_FIND, - COUNT, - COUNT_IF, - SEARCH_PREDICATE, - SEARCH, - SEARCH_N_PREDICATE, - SEARCH_N, - COPY, - COPY_N, - COPY_IF, - SWAP_RANGES, - TRANSFORM_BINARYOP, - TRANSFORM_UNARYOP, - REPLACE_IF, - REPLACE, - REPLACE_COPY_IF, - REPLACE_COPY, - FILL, - FILL_N, - GENERATE, - GENERATE_N, - REMOVE_COPY_IF, - REMOVE_COPY, - REMOVE_IF, - REMOVE, - UNIQUE_PREDICATE, - UNIQUE, - UNIQUE_COPY_PREDICATE, - UNIQUE_COPY, - REVERSE, - REVERSE_COPY, - ROTATE, - ROTATE_COPY, - IS_PARTITIONED, - PARTITION, - STABLE_PARTITION, - PARTITION_COPY, - SORT_COMPARE, - SORT, - STABLE_SORT_COMPARE, - STABLE_SORT, - MISMATCH_4ITERS_PREDICATE, - MISMATCH_4ITERS, - MISMATCH_3ITERS_PREDICATE, - MISMATCH_3ITERS, - EQUAL_3ITERS_PREDICATE, - EQUAL_3ITERS, - EQUAL_4ITERS_PREDICATE, - EQUAL_4ITERS, - MOVE, - PARTIAL_SORT_COMPARE, - PARTIAL_SORT, - PARTIAL_SORT_COPY_COMPARE, - PARTIAL_SORT_COPY, - IS_SORTED_UNTIL_COMPARE, - IS_SORTED_UNTIL, - IS_SORTED_COMPARE, - IS_SORTED, - MERGE_COMPARE, - MERGE, - INPLACE_MERGE_COMPARE, - INPLACE_MERGE, - INCLUDES_COMPARE, - INCLUDES, - SET_UNION_COMPARE, - SET_UNION, - SET_INTERSECTION_COMPARE, - SET_INTERSECTION, - SET_DIFFERENCE_COMPARE, - SET_DIFFERENCE, - SET_SYMMETRIC_DIFFERENCE_COMPARE, - SET_SYMMETRIC_DIFFERENCE, - IS_HEAP_UNTIL_COMPARE, - IS_HEAP_UNTIL, - IS_HEAP_COMPARE, - IS_HEAP, - MIN_ELEMENT_COMPARE, - MIN_ELEMENT, - MAX_ELEMENT_COMPARE, - MAX_ELEMENT, - MINMAX_ELEMENT_COMPARE, - MINMAX_ELEMENT, - NTH_ELEMENT_COMPARE, - NTH_ELEMENT, - LEXICOGRAPHICAL_COMPARE_COMPARE, - LEXICOGRAPHICAL_COMPARE, - SHIFT_LEFT, - SHIFT_RIGHT, - UNINITIALIZED_COPY, - UNINITIALIZED_COPY_N, - UNINITIALIZED_MOVE, - UNINITIALIZED_MOVE_N, - UNINITIALIZED_FILL, - UNINITIALIZED_FILL_N, - DESTROY, - DESTROY_N, - UNINITIALIZED_DEFAULT_CONSTRUCT, - UNINITIALIZED_DEFAULT_CONSTRUCT_N, - UNINITIALIZED_VALUE_CONSTRUCT, - UNINITIALIZED_VALUE_CONSTRUCT_N, - REDUCE, - REDUCE_INIT, - REDUCE_INIT_BINARYOP, - TRANSFORM_REDUCE, - TRANSFORM_REDUCE_BINARYOP_BINARYOP, - TRANSFORM_REDUCE_BINARYOP_UNARYOP, - EXCLUSIVE_SCAN_INIT_BINARYOP, - EXCLUSIVE_SCAN_INIT, - INCLUSIVE_SCAN, - INCLUSIVE_SCAN_BINARYOP, - INCLUSIVE_SCAN_BINARYOP_INIT, - TRANSFORM_EXCLUSIVE_SCAN, - TRANSFORM_INCLUSIVE_SCAN_INIT, - TRANSFORM_INCLUSIVE_SCAN, - ADJACENT_DIFFERENCE, - ADJACENT_DIFFERENCE_BINARYOP -}; - -static algorithm_id algorithm_id_state = algorithm_id::EMPTY_ID; - -template -void check_policy(const _ExecutionPolicy& exec); - -void store_id(algorithm_id); - -namespace oneapi::dpl { - -template -test_enable_if_execution_policy<_ExecutionPolicy, bool> -any_of(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, _Predicate __pred) -{ - store_id(algorithm_id::ANY_OF); - check_policy(__exec); - return true; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, bool> -all_of(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, _Predicate __pred) -{ - store_id(algorithm_id::ALL_OF); - check_policy(__exec); - return true; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, bool> -none_of(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, _Predicate __pred) -{ - store_id(algorithm_id::NONE_OF); - check_policy(__exec); - return true; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy> -for_each(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, _Function __f) -{ - store_id(algorithm_id::FOR_EACH); - check_policy(__exec); -} - -template -test_enable_if_execution_policy<_ExecutionPolicy> -for_each_n(_ExecutionPolicy&& __exec, not_iterator __first, _Size __n, _Function __f) -{ - store_id(algorithm_id::FOR_EACH_N); - check_policy(__exec); -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, not_iterator> -find_if(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, _Predicate __pred) -{ - store_id(algorithm_id::FIND_IF); - check_policy(__exec); - return __first; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, not_iterator> -find_if_not(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, _Predicate __pred) -{ - store_id(algorithm_id::FIND_IF_NOT); - check_policy(__exec); - return __first; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, not_iterator> -find(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, const _Tp& __value) -{ - store_id(algorithm_id::FIND); - check_policy(__exec); - return __first; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, not_iterator> -find_end(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, _ForwardIterator2 __s_first, - _ForwardIterator2 __s_last, _BinaryPredicate __pred) -{ - store_id(algorithm_id::FIND_END_PREDICATE); - check_policy(__exec); - return __first; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, not_iterator> -find_end(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, _ForwardIterator2 __s_first, - _ForwardIterator2 __s_last) -{ - store_id(algorithm_id::FIND_END); - check_policy(__exec); - return __first; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, not_iterator> -find_first_of(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, - _ForwardIterator2 __s_first, _ForwardIterator2 __s_last, _BinaryPredicate __pred) -{ - store_id(algorithm_id::FIND_FIRST_OF_PREDICATE); - check_policy(__exec); - return __first; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, not_iterator> -find_first_of(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, - _ForwardIterator2 __s_first, _ForwardIterator2 __s_last) -{ - store_id(algorithm_id::FIND_FIRST_OF); - check_policy(__exec); - return __first; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, not_iterator> -adjacent_find(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last) -{ - store_id(algorithm_id::ADJACENT_FIND); - check_policy(__exec); - return __first; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, not_iterator> -adjacent_find(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, _BinaryPredicate __pred) -{ - store_id(algorithm_id::ADJACENT_FIND_PREDICATE); - check_policy(__exec); - return __first; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, typename std::iterator_traits::difference_type> -count(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, const _Tp& __value) -{ - store_id(algorithm_id::COUNT); - check_policy(__exec); - return 0; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, typename std::iterator_traits::difference_type> -count_if(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, _Predicate __pred) -{ - store_id(algorithm_id::COUNT_IF); - check_policy(__exec); - return 0; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, not_iterator> -search(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, - _ForwardIterator2 __s_first, _ForwardIterator2 __s_last, _BinaryPredicate __pred) -{ - store_id(algorithm_id::SEARCH_PREDICATE); - check_policy(__exec); - return __first; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, not_iterator> -search(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, - _ForwardIterator2 __s_first, _ForwardIterator2 __s_last) -{ - store_id(algorithm_id::SEARCH); - check_policy(__exec); - return __first; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, not_iterator> -search_n(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, _Size __count, - const _Tp& __value, _BinaryPredicate __pred) -{ - store_id(algorithm_id::SEARCH_N_PREDICATE); - check_policy(__exec); - return __first; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, not_iterator> -search_n(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, _Size __count, - const _Tp& __value) -{ - store_id(algorithm_id::SEARCH_N); - check_policy(__exec); - return __first; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> -copy(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, _ForwardIterator2 __result) -{ - store_id(algorithm_id::COPY); - check_policy(__exec); - return __result; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> -copy_n(_ExecutionPolicy&& __exec, not_iterator __first, _Size __n, _ForwardIterator2 __result) -{ - store_id(algorithm_id::COPY_N); - check_policy(__exec); - return __result; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> -copy_if(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, _ForwardIterator2 __result, - _Predicate __pred) -{ - store_id(algorithm_id::COPY_IF); - check_policy(__exec); - return __result; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> -swap_ranges(_ExecutionPolicy&& __exec, not_iterator __first1, not_iterator __last1, _ForwardIterator2 __first2) -{ - store_id(algorithm_id::SWAP_RANGES); - check_policy(__exec); - return __first2; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, not_iterator> -transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, - not_iterator __result, _BinaryOperation __op) -{ - store_id(algorithm_id::TRANSFORM_BINARYOP); - check_policy(__exec); - return __result; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> -transform(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, _ForwardIterator2 __result, - _UnaryOperation __op) -{ - store_id(algorithm_id::TRANSFORM_UNARYOP); - check_policy(__exec); - return __result; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy> -replace_if(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, _UnaryPredicate __pred, - const _Tp& __new_value) -{ - store_id(algorithm_id::REPLACE_IF); - check_policy(__exec); -} - -template -test_enable_if_execution_policy<_ExecutionPolicy> -replace(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, const _Tp& __old_value, - const _Tp& __new_value) -{ - store_id(algorithm_id::REPLACE); - check_policy(__exec); -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> -replace_copy_if(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, - _ForwardIterator2 __result, _UnaryPredicate __pred, const _Tp& __new_value) -{ - store_id(algorithm_id::REPLACE_COPY_IF); - check_policy(__exec); - return __result; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> -replace_copy(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, - _ForwardIterator2 __result, const _Tp& __old_value, const _Tp& __new_value) -{ - store_id(algorithm_id::REPLACE_COPY); - check_policy(__exec); - return __result; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy> -fill(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, const _Tp& __value) -{ - store_id(algorithm_id::FILL); - check_policy(__exec); -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, not_iterator> -fill_n(_ExecutionPolicy&& __exec, not_iterator __first, _Size __count, const _Tp& __value) -{ - store_id(algorithm_id::FILL_N); - check_policy(__exec); - return __first; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy> -generate(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, _Generator __g) -{ - store_id(algorithm_id::GENERATE); - check_policy(__exec); -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, not_iterator> -generate_n(_ExecutionPolicy&& __exec, not_iterator __first, _Size __count, _Generator __g) -{ - store_id(algorithm_id::GENERATE_N); - check_policy(__exec); - return __first; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> -remove_copy_if(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, - _ForwardIterator2 __result, _Predicate __pred) -{ - store_id(algorithm_id::REMOVE_COPY_IF); - check_policy(__exec); - return __result; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> -remove_copy(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, - _ForwardIterator2 __result, const _Tp& __value) -{ - store_id(algorithm_id::REMOVE_COPY); - check_policy(__exec); - return __result; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, not_iterator> -remove_if(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, _UnaryPredicate __pred) -{ - store_id(algorithm_id::REMOVE_IF); - check_policy(__exec); - return __first; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, not_iterator> -remove(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, const _Tp& __value) -{ - store_id(algorithm_id::REMOVE); - check_policy(__exec); - return __first; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, not_iterator> -unique(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, _BinaryPredicate __pred) -{ - store_id(algorithm_id::UNIQUE_PREDICATE); - check_policy(__exec); - return __first; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, not_iterator> -unique(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last) -{ - store_id(algorithm_id::UNIQUE); - check_policy(__exec); - return __first; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> -unique_copy(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, _ForwardIterator2 __result, - _BinaryPredicate __pred) -{ - store_id(algorithm_id::UNIQUE_COPY_PREDICATE); - check_policy(__exec); - return __result; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> -unique_copy(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, _ForwardIterator2 __result) -{ - store_id(algorithm_id::UNIQUE_COPY); - check_policy(__exec); - return __result; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy> -reverse(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last) -{ - store_id(algorithm_id::REVERSE); - check_policy(__exec); -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, not_iterator> -reverse_copy(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, - not_iterator __d_first) -{ - store_id(algorithm_id::REVERSE_COPY); - check_policy(__exec); - return __d_first; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, not_iterator> -rotate(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __middle, not_iterator __last) -{ - store_id(algorithm_id::ROTATE); - check_policy(__exec); - return __first; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> -rotate_copy(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __middle, not_iterator __last, - _ForwardIterator2 __result) -{ - store_id(algorithm_id::ROTATE_COPY); - check_policy(__exec); - return __result; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, bool> -is_partitioned(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, _UnaryPredicate __pred) -{ - store_id(algorithm_id::IS_PARTITIONED); - check_policy(__exec); - return true; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, not_iterator> -partition(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, _UnaryPredicate __pred) -{ - store_id(algorithm_id::PARTITION); - check_policy(__exec); - return __first; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, not_iterator> -stable_partition(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, _UnaryPredicate __pred) -{ - store_id(algorithm_id::STABLE_PARTITION); - check_policy(__exec); - return __first; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator1, _ForwardIterator2>> -partition_copy(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, - _ForwardIterator1 __out_true, _ForwardIterator2 __out_false, _UnaryPredicate __pred) -{ - store_id(algorithm_id::PARTITION_COPY); - check_policy(__exec); - return std::make_pair(__first, __first); -} - -template -test_enable_if_execution_policy<_ExecutionPolicy> -sort(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, _Compare __comp) -{ - store_id(algorithm_id::SORT_COMPARE); - check_policy(__exec); -} - -template -test_enable_if_execution_policy<_ExecutionPolicy> -sort(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last) -{ - store_id(algorithm_id::SORT); - check_policy(__exec); -} - -template -test_enable_if_execution_policy<_ExecutionPolicy> -stable_sort(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, _Compare __comp) -{ - store_id(algorithm_id::STABLE_SORT_COMPARE); - check_policy(__exec); -} - -template -test_enable_if_execution_policy<_ExecutionPolicy> -stable_sort(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last) -{ - store_id(algorithm_id::STABLE_SORT); - check_policy(__exec); -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, std::pair> -mismatch(_ExecutionPolicy&& __exec, not_iterator __first1, not_iterator __last1, - _ForwardIterator2 __first2, _ForwardIterator2 __last2, _BinaryPredicate __pred) -{ - store_id(algorithm_id::MISMATCH_4ITERS_PREDICATE); - check_policy(__exec); - return std::make_pair(__first1, __first2); -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, std::pair> -mismatch(_ExecutionPolicy&& __exec, not_iterator __first1, not_iterator __last1, - _ForwardIterator2 __first2, _BinaryPredicate __pred) -{ - store_id(algorithm_id::MISMATCH_3ITERS_PREDICATE); - check_policy(__exec); - return std::make_pair(__first1, __first2); -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, std::pair> -mismatch(_ExecutionPolicy&& __exec, not_iterator __first1, not_iterator __last1, - _ForwardIterator2 __first2, _ForwardIterator2 __last2) -{ - store_id(algorithm_id::MISMATCH_4ITERS); - check_policy(__exec); - return std::make_pair(__first1, __first2); -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, std::pair> -mismatch(_ExecutionPolicy&& __exec, not_iterator __first1, not_iterator __last1, _ForwardIterator2 __first2) -{ - store_id(algorithm_id::MISMATCH_3ITERS); - check_policy(__exec); - return std::make_pair(__first1, __first2); -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, bool> -equal(_ExecutionPolicy&& __exec, not_iterator __first1, not_iterator __last1, - _ForwardIterator2 __first2, _BinaryPredicate __pred) -{ - store_id(algorithm_id::EQUAL_3ITERS_PREDICATE); - check_policy(__exec); - return true; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, bool> -equal(_ExecutionPolicy&& __exec, not_iterator __first1, not_iterator __last1, _ForwardIterator2 __first2) -{ - store_id(algorithm_id::EQUAL_3ITERS); - check_policy(__exec); - return true; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, bool> -equal(_ExecutionPolicy&& __exec, not_iterator __first1, not_iterator __last1, - _ForwardIterator2 __first2, _ForwardIterator2 __last2, _BinaryPredicate __pred) -{ - store_id(algorithm_id::EQUAL_4ITERS_PREDICATE); - check_policy(__exec); - return true; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, bool> -equal(_ExecutionPolicy&& __exec, not_iterator __first1, not_iterator __last1, _ForwardIterator2 __first2, _ForwardIterator2 __last2) -{ - store_id(algorithm_id::EQUAL_4ITERS); - check_policy(__exec); - return true; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> -move(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, _ForwardIterator2 __d_first) -{ - store_id(algorithm_id::MOVE); - check_policy(__exec); - return __d_first; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy> -partial_sort(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __middle, not_iterator __last, - _Compare __comp) -{ - store_id(algorithm_id::PARTIAL_SORT_COMPARE); - check_policy(__exec); -} - -template -test_enable_if_execution_policy<_ExecutionPolicy> -partial_sort(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __middle, not_iterator __last) -{ - store_id(algorithm_id::PARTIAL_SORT); - check_policy(__exec); -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, not_iterator> -partial_sort_copy(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, - not_iterator __d_first, not_iterator __d_last, _Compare __comp) -{ - store_id(algorithm_id::PARTIAL_SORT_COPY_COMPARE); - check_policy(__exec); - return __first; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, not_iterator> -partial_sort_copy(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, - not_iterator __d_first, not_iterator __d_last) -{ - store_id(algorithm_id::PARTIAL_SORT_COPY); - check_policy(__exec); - return __first; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, not_iterator> -is_sorted_until(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, _Compare __comp) -{ - store_id(algorithm_id::IS_SORTED_UNTIL_COMPARE); - check_policy(__exec); - return __first; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, not_iterator> -is_sorted_until(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last) -{ - store_id(algorithm_id::IS_SORTED_UNTIL); - check_policy(__exec); - return __first; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, bool> -is_sorted(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, _Compare __comp) -{ - store_id(algorithm_id::IS_SORTED_COMPARE); - check_policy(__exec); - return true; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, bool> -is_sorted(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last) -{ - store_id(algorithm_id::IS_SORTED); - check_policy(__exec); - return true; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, not_iterator> -merge(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, - _ForwardIterator2 __first2, _ForwardIterator2 __last2, not_iterator __d_first, _Compare __comp) -{ - store_id(algorithm_id::MERGE_COMPARE); - check_policy(__exec); - return __d_first; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, not_iterator> -merge(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, - _ForwardIterator2 __first2, _ForwardIterator2 __last2, not_iterator __d_first) -{ - store_id(algorithm_id::MERGE); - check_policy(__exec); - return __d_first; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy> -inplace_merge(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __middle, - not_iterator __last, _Compare __comp) -{ - store_id(algorithm_id::INPLACE_MERGE_COMPARE); - check_policy(__exec); -} - -template -test_enable_if_execution_policy<_ExecutionPolicy> -inplace_merge(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __middle, - not_iterator __last) -{ - store_id(algorithm_id::INPLACE_MERGE); - check_policy(__exec); -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, bool> -includes(_ExecutionPolicy&& __exec, not_iterator __first1, not_iterator __last1, - _ForwardIterator2 __first2, _ForwardIterator2 __last2, _Compare __comp) -{ - store_id(algorithm_id::INCLUDES_COMPARE); - check_policy(__exec); - return true; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, bool> -includes(_ExecutionPolicy&& __exec, not_iterator __first1, not_iterator __last1, - _ForwardIterator2 __first2, _ForwardIterator2 __last2) -{ - store_id(algorithm_id::INCLUDES); - check_policy(__exec); - return true; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, not_iterator> -set_union(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, - _ForwardIterator2 __first2, _ForwardIterator2 __last2, not_iterator __result, _Compare __comp) -{ - store_id(algorithm_id::SET_UNION_COMPARE); - check_policy(__exec); - return __result; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, not_iterator> -set_union(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, - _ForwardIterator2 __first2, _ForwardIterator2 __last2, not_iterator __result) -{ - store_id(algorithm_id::SET_UNION); - check_policy(__exec); - return __result; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, not_iterator> -set_intersection(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, - _ForwardIterator2 __first2, _ForwardIterator2 __last2, not_iterator __result, _Compare __comp) -{ - store_id(algorithm_id::SET_INTERSECTION_COMPARE); - check_policy(__exec); - return __result; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, not_iterator> -set_intersection(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, - _ForwardIterator2 __first2, _ForwardIterator2 __last2, not_iterator __result) -{ - store_id(algorithm_id::SET_INTERSECTION); - check_policy(__exec); - return __result; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, not_iterator> -set_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, - _ForwardIterator2 __first2, _ForwardIterator2 __last2, not_iterator __result, _Compare __comp) -{ - store_id(algorithm_id::SET_DIFFERENCE_COMPARE); - check_policy(__exec); - return __result; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, not_iterator> -set_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, - _ForwardIterator2 __first2, _ForwardIterator2 __last2, not_iterator __result) -{ - store_id(algorithm_id::SET_DIFFERENCE); - check_policy(__exec); - return __result; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, not_iterator> -set_symmetric_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, - _ForwardIterator2 __first2, _ForwardIterator2 __last2, not_iterator __result, _Compare __comp) -{ - store_id(algorithm_id::SET_SYMMETRIC_DIFFERENCE_COMPARE); - check_policy(__exec); - return __result; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, not_iterator> -set_symmetric_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, - _ForwardIterator2 __first2, _ForwardIterator2 __last2, not_iterator __result) -{ - store_id(algorithm_id::SET_SYMMETRIC_DIFFERENCE); - check_policy(__exec); - return __result; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, not_iterator> -is_heap_until(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, _Compare __comp) -{ - store_id(algorithm_id::IS_HEAP_UNTIL_COMPARE); - check_policy(__exec); - return __first; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, not_iterator> -is_heap_until(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last) -{ - store_id(algorithm_id::IS_HEAP_UNTIL); - check_policy(__exec); - return __first; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, bool> -is_heap(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, _Compare __comp) -{ - store_id(algorithm_id::IS_HEAP_COMPARE); - check_policy(__exec); - return true; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, bool> -is_heap(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last) -{ - store_id(algorithm_id::IS_HEAP); - check_policy(__exec); - return true; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, not_iterator> -min_element(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, _Compare __comp) -{ - store_id(algorithm_id::MIN_ELEMENT_COMPARE); - check_policy(__exec); - return __first; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, not_iterator> -min_element(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last) -{ - store_id(algorithm_id::MIN_ELEMENT); - check_policy(__exec); - return __first; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, not_iterator> -max_element(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, _Compare __comp) -{ - store_id(algorithm_id::MAX_ELEMENT_COMPARE); - check_policy(__exec); - return __first; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, not_iterator> -max_element(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last) -{ - store_id(algorithm_id::MAX_ELEMENT); - check_policy(__exec); - return __first; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, std::pair> -minmax_element(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, _Compare __comp) -{ - store_id(algorithm_id::MINMAX_ELEMENT_COMPARE); - check_policy(__exec); - return std::make_pair(__first, __first); -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, std::pair> -minmax_element(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last) -{ - store_id(algorithm_id::MINMAX_ELEMENT); - check_policy(__exec); - return std::make_pair(__first, __first); -} - -template -test_enable_if_execution_policy<_ExecutionPolicy> -nth_element(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __nth, not_iterator __last, _Compare __comp) -{ - store_id(algorithm_id::NTH_ELEMENT_COMPARE); - check_policy(__exec); -} - -template -test_enable_if_execution_policy<_ExecutionPolicy> -nth_element(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __nth, not_iterator __last) -{ - store_id(algorithm_id::NTH_ELEMENT); - check_policy(__exec); -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, bool> -lexicographical_compare(_ExecutionPolicy&& __exec, not_iterator __first1, not_iterator __last1, - _ForwardIterator2 __first2, _ForwardIterator2 __last2, _Compare __comp) -{ - store_id(algorithm_id::LEXICOGRAPHICAL_COMPARE_COMPARE); - check_policy(__exec); - return true; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, bool> -lexicographical_compare(_ExecutionPolicy&& __exec, not_iterator __first1, not_iterator __last1, - _ForwardIterator2 __first2, _ForwardIterator2 __last2) -{ - store_id(algorithm_id::LEXICOGRAPHICAL_COMPARE); - check_policy(__exec); - return true; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, not_iterator> -shift_left(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, - typename std::iterator_traits::difference_type __n) -{ - store_id(algorithm_id::SHIFT_LEFT); - check_policy(__exec); - return __first; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, not_iterator> -shift_right(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, - typename std::iterator_traits::difference_type __n) -{ - store_id(algorithm_id::SHIFT_RIGHT); - check_policy(__exec); - return __first; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, not_iterator> -uninitialized_copy(_ExecutionPolicy&& __exec, _InputIterator __first, _InputIterator __last, - not_iterator __result) -{ - store_id(algorithm_id::UNINITIALIZED_COPY); - check_policy(__exec); - return __result; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, not_iterator> -uninitialized_copy_n(_ExecutionPolicy&& __exec, _InputIterator __first, _Size __n, not_iterator __result) -{ - store_id(algorithm_id::UNINITIALIZED_COPY_N); - check_policy(__exec); - return __result; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, not_iterator> -uninitialized_move(_ExecutionPolicy&& __exec, _InputIterator __first, _InputIterator __last, - not_iterator __result) -{ - store_id(algorithm_id::UNINITIALIZED_MOVE); - check_policy(__exec); - return __result; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, not_iterator> -uninitialized_move_n(_ExecutionPolicy&& __exec, _InputIterator __first, _Size __n, not_iterator __result) -{ - store_id(algorithm_id::UNINITIALIZED_MOVE_N); - check_policy(__exec); - return __result; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy> -uninitialized_fill(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, const _Tp& __value) -{ - store_id(algorithm_id::UNINITIALIZED_FILL); - check_policy(__exec); -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, not_iterator> -uninitialized_fill_n(_ExecutionPolicy&& __exec, not_iterator __first, _Size __n, const _Tp& __value) -{ - store_id(algorithm_id::UNINITIALIZED_FILL_N); - check_policy(__exec); - return __first; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy> -destroy(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last) -{ - store_id(algorithm_id::DESTROY); - check_policy(__exec); -} - -template -test_enable_if_execution_policy<_ExecutionPolicy> -destroy_n(_ExecutionPolicy&& __exec, not_iterator __first, _Size __n) -{ - store_id(algorithm_id::DESTROY_N); - check_policy(__exec); -} - -template -test_enable_if_execution_policy<_ExecutionPolicy> -uninitialized_default_construct(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last) -{ - store_id(algorithm_id::UNINITIALIZED_DEFAULT_CONSTRUCT); - check_policy(__exec); -} - -template -test_enable_if_execution_policy<_ExecutionPolicy> -uninitialized_default_construct_n(_ExecutionPolicy&& __exec, not_iterator __first, _Size __n) -{ - store_id(algorithm_id::UNINITIALIZED_DEFAULT_CONSTRUCT_N); - check_policy(__exec); -} - -template -test_enable_if_execution_policy<_ExecutionPolicy> -uninitialized_value_construct(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last) -{ - store_id(algorithm_id::UNINITIALIZED_VALUE_CONSTRUCT); - check_policy(__exec); -} - -template -test_enable_if_execution_policy<_ExecutionPolicy> -uninitialized_value_construct_n(_ExecutionPolicy&& __exec, not_iterator __first, _Size __n) -{ - store_id(algorithm_id::UNINITIALIZED_VALUE_CONSTRUCT_N); - check_policy(__exec); -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, _Tp> -reduce(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, _Tp __init, _BinaryOperation __binary_op) -{ - store_id(algorithm_id::REDUCE_INIT_BINARYOP); - check_policy(__exec); - return __init; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, _Tp> -reduce(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, _Tp __init) -{ - store_id(algorithm_id::REDUCE_INIT); - check_policy(__exec); - return __init; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, typename std::iterator_traits::value_type> -reduce(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last) -{ - store_id(algorithm_id::REDUCE); - check_policy(__exec); - return 0; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, _Tp> -transform_reduce(_ExecutionPolicy&& __exec, not_iterator __first1, not_iterator __last1, - _ForwardIterator2 __first2, _Tp __init) -{ - store_id(algorithm_id::TRANSFORM_REDUCE); - check_policy(__exec); - return __init; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, _Tp> -transform_reduce(_ExecutionPolicy&& __exec, not_iterator __first1, not_iterator __last1, _ForwardIterator2 __first2, - _Tp __init, _BinaryOperation1 __binary_op1, _BinaryOperation2 __binary_op2) -{ - store_id(algorithm_id::TRANSFORM_REDUCE_BINARYOP_BINARYOP); - check_policy(__exec); - return __init; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, _Tp> -transform_reduce(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, _Tp __init, - _BinaryOperation __binary_op, _UnaryOperation __unary_op) -{ - store_id(algorithm_id::TRANSFORM_REDUCE_BINARYOP_UNARYOP); - check_policy(__exec); - return __init; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> -exclusive_scan(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, - _ForwardIterator2 __d_first, _Tp __init) -{ - store_id(algorithm_id::EXCLUSIVE_SCAN_INIT); - check_policy(__exec); - return __d_first; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> -exclusive_scan(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, - _ForwardIterator2 __d_first, _Tp __init, _BinaryOperation __binary_op) -{ - store_id(algorithm_id::EXCLUSIVE_SCAN_INIT_BINARYOP); - check_policy(__exec); - return __d_first; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> -inclusive_scan(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, - _ForwardIterator2 __result) -{ - store_id(algorithm_id::INCLUSIVE_SCAN); - check_policy(__exec); - return __result; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> -inclusive_scan(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, - _ForwardIterator2 __result, _BinaryOperation __binary_op) -{ - store_id(algorithm_id::INCLUSIVE_SCAN_BINARYOP); - check_policy(__exec); - return __result; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> -inclusive_scan(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, - _ForwardIterator2 __result, _BinaryOperation __binary_op, _Tp __init) -{ - store_id(algorithm_id::INCLUSIVE_SCAN_BINARYOP_INIT); - check_policy(__exec); - return __result; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> -transform_exclusive_scan(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, - _ForwardIterator2 __result, _Tp __init, _BinaryOperation __binary_op, _UnaryOperation __unary_op) -{ - store_id(algorithm_id::TRANSFORM_EXCLUSIVE_SCAN); - check_policy(__exec); - return __result; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> -transform_inclusive_scan(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, - _ForwardIterator2 __result, _BinaryOperation __binary_op, _UnaryOperation __unary_op, _Tp __init) -{ - store_id(algorithm_id::TRANSFORM_INCLUSIVE_SCAN_INIT); - check_policy(__exec); - return __result; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> -transform_inclusive_scan(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, - _ForwardIterator2 __result, _BinaryOperation __binary_op, _UnaryOperation __unary_op) -{ - store_id(algorithm_id::TRANSFORM_INCLUSIVE_SCAN); - check_policy(__exec); - return __result; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> -adjacent_difference(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, - _ForwardIterator2 __d_first, _BinaryOperation __op) -{ - store_id(algorithm_id::ADJACENT_DIFFERENCE_BINARYOP); - check_policy(__exec); - return __d_first; -} - -template -test_enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> -adjacent_difference(_ExecutionPolicy&& __exec, not_iterator __first, not_iterator __last, - _ForwardIterator2 __d_first) -{ - store_id(algorithm_id::ADJACENT_DIFFERENCE); - check_policy(__exec); - return __d_first; -} - -} // namespace oneapi::dpl - -#include - -#include -#include -#include -#include - -#include -#include - -void store_id(algorithm_id __id) { - EXPECT_TRUE(algorithm_id_state == algorithm_id::EMPTY_ID, "algorithm_id contains non empty value"); - algorithm_id_state = __id; -} - -template -struct is_device_policy_impl : std::false_type {}; - -template -struct is_device_policy_impl> : std::true_type {}; - -template -struct is_device_policy : is_device_policy_impl> {}; - -template -void check_policy(const _ExecutionPolicy& __policy) { - static_assert(is_device_policy>::value, "Algorithm was redirected with unexpected policy type"); - EXPECT_TRUE(__policy.queue().get_device() == TestUtils::get_pstl_offload_device(), "The passed policy is associated with the wrong device"); -} - -template -void test_algorithm(_RunAlgorithmBody __run_algorithm, _AlgorithmArgs&&... __args) { - EXPECT_TRUE(algorithm_id_state == algorithm_id::EMPTY_ID, "algorithm_id was not reset"); - __run_algorithm(std::execution::par_unseq, std::forward<_AlgorithmArgs>(__args)...); - - EXPECT_TRUE(algorithm_id_state != algorithm_id::EMPTY_ID, "Algorithm was not redirected"); - EXPECT_TRUE(algorithm_id_state == _AlgorithmId, "Algorithm was redirected to the wrong oneDPL algorithm"); - algorithm_id_state = algorithm_id::EMPTY_ID; -} - -#define ALGORITHM_WRAPPER(ALGORITHM_NAME) [](auto&&... args) { std::ALGORITHM_NAME(std::forward(args)...); } - -int main() { - not_iterator iter; - auto binary_predicate = [](int, int) { return true; }; - auto unary_predicate = [](int) { return true; }; - - // Testing - test_algorithm(ALGORITHM_WRAPPER(any_of), iter, iter, binary_predicate); - test_algorithm(ALGORITHM_WRAPPER(all_of), iter, iter, binary_predicate); - test_algorithm(ALGORITHM_WRAPPER(none_of), iter, iter, binary_predicate); - - { - auto function = [](int) {}; - test_algorithm(ALGORITHM_WRAPPER(for_each), iter, iter, function); - test_algorithm(ALGORITHM_WRAPPER(for_each_n), iter, 5, function); - } - - test_algorithm(ALGORITHM_WRAPPER(find_if), iter, iter, unary_predicate); - test_algorithm(ALGORITHM_WRAPPER(find_if_not), iter, iter, unary_predicate); - test_algorithm(ALGORITHM_WRAPPER(find), iter, iter, 1); - test_algorithm(ALGORITHM_WRAPPER(find_end), iter, iter, iter, iter, binary_predicate); - test_algorithm(ALGORITHM_WRAPPER(find_end), iter, iter, iter, iter); - test_algorithm(ALGORITHM_WRAPPER(find_first_of), iter, iter, iter, iter, binary_predicate); - test_algorithm(ALGORITHM_WRAPPER(find_first_of), iter, iter, iter, iter); - test_algorithm(ALGORITHM_WRAPPER(adjacent_find), iter, iter, binary_predicate); - test_algorithm(ALGORITHM_WRAPPER(adjacent_find), iter, iter); - - test_algorithm(ALGORITHM_WRAPPER(count), iter, iter, 0); - test_algorithm(ALGORITHM_WRAPPER(count_if), iter, iter, unary_predicate); - test_algorithm(ALGORITHM_WRAPPER(search), iter, iter, iter, iter, binary_predicate); - test_algorithm(ALGORITHM_WRAPPER(search), iter, iter, iter, iter); - test_algorithm(ALGORITHM_WRAPPER(search_n), iter, iter, 5, 0, binary_predicate); - test_algorithm(ALGORITHM_WRAPPER(search_n), iter, iter, 5, 0); - - test_algorithm(ALGORITHM_WRAPPER(copy), iter, iter, iter); - test_algorithm(ALGORITHM_WRAPPER(copy_n), iter, 5, iter); - test_algorithm(ALGORITHM_WRAPPER(copy_if), iter, iter, iter, unary_predicate); - test_algorithm(ALGORITHM_WRAPPER(swap_ranges), iter, iter, iter); - - test_algorithm(ALGORITHM_WRAPPER(transform), iter, iter, iter, iter, binary_predicate); - test_algorithm(ALGORITHM_WRAPPER(transform), iter, iter, iter, unary_predicate); - - test_algorithm(ALGORITHM_WRAPPER(replace_if), iter, iter, unary_predicate, 5); - test_algorithm(ALGORITHM_WRAPPER(replace), iter, iter, 5, 0); - test_algorithm(ALGORITHM_WRAPPER(replace_copy_if), iter, iter, iter, unary_predicate, 5); - test_algorithm(ALGORITHM_WRAPPER(replace_copy), iter, iter, iter, 5, 0); - - test_algorithm(ALGORITHM_WRAPPER(fill), iter, iter, 0); - test_algorithm(ALGORITHM_WRAPPER(fill_n), iter, 5, 0); - - { - auto gen = []() { return 1; }; - test_algorithm(ALGORITHM_WRAPPER(generate), iter, iter, gen); - test_algorithm(ALGORITHM_WRAPPER(generate_n), iter, 5, gen); - } - - test_algorithm(ALGORITHM_WRAPPER(remove_copy_if), iter, iter, iter, unary_predicate); - test_algorithm(ALGORITHM_WRAPPER(remove_copy), iter, iter, iter, 0); - test_algorithm(ALGORITHM_WRAPPER(remove_if), iter, iter, unary_predicate); - test_algorithm(ALGORITHM_WRAPPER(remove), iter, iter, 5); - - test_algorithm(ALGORITHM_WRAPPER(unique), iter, iter, binary_predicate); - test_algorithm(ALGORITHM_WRAPPER(unique), iter, iter); - test_algorithm(ALGORITHM_WRAPPER(unique_copy), iter, iter, iter, binary_predicate); - test_algorithm(ALGORITHM_WRAPPER(unique_copy), iter, iter, iter); - - test_algorithm(ALGORITHM_WRAPPER(reverse), iter, iter); - test_algorithm(ALGORITHM_WRAPPER(reverse_copy), iter, iter, iter); - test_algorithm(ALGORITHM_WRAPPER(rotate), iter, iter, iter); - test_algorithm(ALGORITHM_WRAPPER(rotate_copy), iter, iter, iter, iter); - - test_algorithm(ALGORITHM_WRAPPER(is_partitioned), iter, iter, unary_predicate); - test_algorithm(ALGORITHM_WRAPPER(partition), iter, iter, unary_predicate); - test_algorithm(ALGORITHM_WRAPPER(stable_partition), iter, iter, unary_predicate); - test_algorithm(ALGORITHM_WRAPPER(partition_copy), iter, iter, iter, iter, unary_predicate); - - test_algorithm(ALGORITHM_WRAPPER(sort), iter, iter, binary_predicate); - test_algorithm(ALGORITHM_WRAPPER(sort), iter, iter); - test_algorithm(ALGORITHM_WRAPPER(stable_sort), iter, iter, binary_predicate); - test_algorithm(ALGORITHM_WRAPPER(stable_sort), iter, iter); - - test_algorithm(ALGORITHM_WRAPPER(mismatch), iter, iter, iter, iter, binary_predicate); - test_algorithm(ALGORITHM_WRAPPER(mismatch), iter, iter, iter, binary_predicate); - test_algorithm(ALGORITHM_WRAPPER(mismatch), iter, iter, iter, iter); - test_algorithm(ALGORITHM_WRAPPER(mismatch), iter, iter, iter); - - test_algorithm(ALGORITHM_WRAPPER(equal), iter, iter, iter, iter, binary_predicate); - test_algorithm(ALGORITHM_WRAPPER(equal), iter, iter, iter, binary_predicate); - test_algorithm(ALGORITHM_WRAPPER(equal), iter, iter, iter, iter); - test_algorithm(ALGORITHM_WRAPPER(equal), iter, iter, iter); - - test_algorithm(ALGORITHM_WRAPPER(move), iter, iter, iter); - - test_algorithm(ALGORITHM_WRAPPER(partial_sort), iter, iter, iter, binary_predicate); - test_algorithm(ALGORITHM_WRAPPER(partial_sort), iter, iter, iter); - test_algorithm(ALGORITHM_WRAPPER(partial_sort_copy), iter, iter, iter, iter, binary_predicate); - test_algorithm(ALGORITHM_WRAPPER(partial_sort_copy), iter, iter, iter, iter); - - test_algorithm(ALGORITHM_WRAPPER(is_sorted_until), iter, iter, binary_predicate); - test_algorithm(ALGORITHM_WRAPPER(is_sorted_until), iter, iter); - test_algorithm(ALGORITHM_WRAPPER(is_sorted), iter, iter, binary_predicate); - test_algorithm(ALGORITHM_WRAPPER(is_sorted), iter, iter); - - test_algorithm(ALGORITHM_WRAPPER(merge), iter, iter, iter, iter, iter, binary_predicate); - test_algorithm(ALGORITHM_WRAPPER(merge), iter, iter, iter, iter, iter); - test_algorithm(ALGORITHM_WRAPPER(inplace_merge), iter, iter, iter, binary_predicate); - test_algorithm(ALGORITHM_WRAPPER(inplace_merge), iter, iter, iter); - - test_algorithm(ALGORITHM_WRAPPER(includes), iter, iter, iter, iter, binary_predicate); - test_algorithm(ALGORITHM_WRAPPER(includes), iter, iter, iter, iter); - - test_algorithm(ALGORITHM_WRAPPER(set_union), iter, iter, iter, iter, iter, binary_predicate); - test_algorithm(ALGORITHM_WRAPPER(set_union), iter, iter, iter, iter, iter); - test_algorithm(ALGORITHM_WRAPPER(set_intersection), iter, iter, iter, iter, iter, binary_predicate); - test_algorithm(ALGORITHM_WRAPPER(set_intersection), iter, iter, iter, iter, iter); - test_algorithm(ALGORITHM_WRAPPER(set_difference), iter, iter, iter, iter, iter, binary_predicate); - test_algorithm(ALGORITHM_WRAPPER(set_difference), iter, iter, iter, iter, iter); - test_algorithm(ALGORITHM_WRAPPER(set_symmetric_difference), iter, iter, iter, iter, iter, binary_predicate); - test_algorithm(ALGORITHM_WRAPPER(set_symmetric_difference), iter, iter, iter, iter, iter); - - test_algorithm(ALGORITHM_WRAPPER(is_heap_until), iter, iter, binary_predicate); - test_algorithm(ALGORITHM_WRAPPER(is_heap_until), iter, iter); - test_algorithm(ALGORITHM_WRAPPER(is_heap), iter, iter, binary_predicate); - test_algorithm(ALGORITHM_WRAPPER(is_heap), iter, iter); - - test_algorithm(ALGORITHM_WRAPPER(min_element), iter, iter, binary_predicate); - test_algorithm(ALGORITHM_WRAPPER(min_element), iter, iter); - test_algorithm(ALGORITHM_WRAPPER(max_element), iter, iter, binary_predicate); - test_algorithm(ALGORITHM_WRAPPER(max_element), iter, iter); - test_algorithm(ALGORITHM_WRAPPER(minmax_element), iter, iter, binary_predicate); - test_algorithm(ALGORITHM_WRAPPER(minmax_element), iter, iter); - test_algorithm(ALGORITHM_WRAPPER(nth_element), iter, iter, iter, binary_predicate); - test_algorithm(ALGORITHM_WRAPPER(nth_element), iter, iter, iter); - - test_algorithm(ALGORITHM_WRAPPER(lexicographical_compare), iter, iter, iter, iter, binary_predicate); - test_algorithm(ALGORITHM_WRAPPER(lexicographical_compare), iter, iter, iter, iter); - - test_algorithm(ALGORITHM_WRAPPER(shift_left), iter, iter, 0); - test_algorithm(ALGORITHM_WRAPPER(shift_right), iter, iter, 0); - - // // Testing - test_algorithm(ALGORITHM_WRAPPER(uninitialized_copy), iter, iter, iter); - test_algorithm(ALGORITHM_WRAPPER(uninitialized_copy_n), iter, 0, iter); - test_algorithm(ALGORITHM_WRAPPER(uninitialized_move), iter, iter, iter); - test_algorithm(ALGORITHM_WRAPPER(uninitialized_move_n), iter, 0, iter); - test_algorithm(ALGORITHM_WRAPPER(uninitialized_fill), iter, iter, 0); - test_algorithm(ALGORITHM_WRAPPER(uninitialized_fill_n), iter, 0, 0); - - test_algorithm(ALGORITHM_WRAPPER(destroy), iter, iter); - test_algorithm(ALGORITHM_WRAPPER(destroy_n), iter, 0); - - test_algorithm(ALGORITHM_WRAPPER(uninitialized_default_construct), iter, iter); - test_algorithm(ALGORITHM_WRAPPER(uninitialized_default_construct_n), iter, 0); - test_algorithm(ALGORITHM_WRAPPER(uninitialized_value_construct), iter, iter); - test_algorithm(ALGORITHM_WRAPPER(uninitialized_value_construct_n), iter, 0); - - // // Testing - test_algorithm(ALGORITHM_WRAPPER(reduce), iter, iter, 0, binary_predicate); - test_algorithm(ALGORITHM_WRAPPER(reduce), iter, iter, 0); - test_algorithm(ALGORITHM_WRAPPER(reduce), iter, iter); - - test_algorithm(ALGORITHM_WRAPPER(transform_reduce), iter, iter, iter, 0); - test_algorithm(ALGORITHM_WRAPPER(transform_reduce), iter, iter, iter, 0, binary_predicate, binary_predicate); - test_algorithm(ALGORITHM_WRAPPER(transform_reduce), iter, iter, 0, binary_predicate, unary_predicate); - - test_algorithm(ALGORITHM_WRAPPER(exclusive_scan), iter, iter, iter, 0); - test_algorithm(ALGORITHM_WRAPPER(exclusive_scan), iter, iter, iter, 0, binary_predicate); - - test_algorithm(ALGORITHM_WRAPPER(inclusive_scan), iter, iter, iter); - test_algorithm(ALGORITHM_WRAPPER(inclusive_scan), iter, iter, iter, binary_predicate); - test_algorithm(ALGORITHM_WRAPPER(inclusive_scan), iter, iter, iter, binary_predicate, 0); - - test_algorithm(ALGORITHM_WRAPPER(transform_exclusive_scan), iter, iter, iter, 0, binary_predicate, unary_predicate); - test_algorithm(ALGORITHM_WRAPPER(transform_inclusive_scan), iter, iter, iter, binary_predicate, unary_predicate); - test_algorithm(ALGORITHM_WRAPPER(transform_inclusive_scan), iter, iter, iter, binary_predicate, unary_predicate, 0); - - test_algorithm(ALGORITHM_WRAPPER(adjacent_difference), iter, iter, iter, binary_predicate); - test_algorithm(ALGORITHM_WRAPPER(adjacent_difference), iter, iter, iter); - - return TestUtils::done(); -} diff --git a/test/pstl_offload/general/free_after_unload.pass.cpp b/test/pstl_offload/general/free_after_unload.pass.cpp deleted file mode 100644 index f9f0544f98d..00000000000 --- a/test/pstl_offload/general/free_after_unload.pass.cpp +++ /dev/null @@ -1,86 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#if !__SYCL_PSTL_OFFLOAD__ -#error "PSTL offload compiler mode should be enabled to run this test" -#endif - -static void do_allocation(); - -// Check that it's possible to allocate memory after dtor of __offload_policy_holder executed. -// For that, the declaration must be done before the header's inclusion. -struct CallAllocInDtor -{ - ~CallAllocInDtor() - { - do_allocation(); - } -}; - -static CallAllocInDtor call_alloc_in_dtor; - -#include -#include -#include -#include "sycl/sycl.hpp" - -#include "support/utils.h" - -#include "free_after_unload_lib.h" - -// Test possibility to release memory when allocating TU is gone, and so static dtors in it -// have been executed. - -int main() -{ - sycl::context memory_context = TestUtils::get_pstl_offload_device().get_platform().ext_oneapi_get_default_context(); - - pointers ptrs{malloc(8), new (std::align_val_t(8 * 1024)) int{}, -#if __linux__ - std::aligned_alloc(8 * 1024, 10) -#elif _WIN64 - _aligned_malloc(10, 8 * 1024) -#endif - }; - - EXPECT_TRUE(ptrs.malloc_allocated, "Can't get memory while allocating with overloaded malloc"); - EXPECT_TRUE(ptrs.aligned_new_allocated, "Can't get memory while allocating with overloaded aligned new"); - EXPECT_TRUE(ptrs.aligned_alloc_allocated, "Can't get memory while allocating with overloaded aligned_alloc"); - - EXPECT_TRUE(sycl::get_pointer_type(ptrs.malloc_allocated, memory_context) == sycl::usm::alloc::shared, "Wrong pointer type while allocating with malloc"); - EXPECT_TRUE(sycl::get_pointer_type(ptrs.aligned_new_allocated, memory_context) == sycl::usm::alloc::shared, "Wrong pointer type while allocating with aligned new"); - EXPECT_TRUE(sycl::get_pointer_type(ptrs.aligned_alloc_allocated, memory_context) == sycl::usm::alloc::shared, "Wrong pointer type while allocating with aligned_alloc"); - register_mem_to_later_release(&ptrs); - - return TestUtils::done(); -} - - -void do_allocation() -{ - // linked with libsycl, so can safely use sycl in dtor - sycl::context memory_context = TestUtils::get_pstl_offload_device().get_platform().ext_oneapi_get_default_context(); - - constexpr std::size_t size = 1024; - void *ptr = malloc(size); - EXPECT_TRUE(ptr, "Can't get memory while allocating in dtor"); - EXPECT_TRUE(sycl::get_pointer_type(ptr, memory_context) == sycl::usm::alloc::unknown, "Wrong pointer type while allocating in dtor"); - memset(ptr, 1, size); - void *ptr1 = realloc(ptr, 2*size); - for (std::size_t i = 0; i < size; i++) - EXPECT_TRUE(static_cast(ptr1)[i] == 1, "Data broken after realloc in dtor"); -#if __linux__ - size_t sz_ptr1 = malloc_usable_size(ptr1); -#elif _WIN64 - size_t sz_ptr1 = _msize(ptr1); -#endif - EXPECT_TRUE(sz_ptr1 >= 2*size, "Invalid size after realloc in dtor"); - - free(ptr1); -} diff --git a/test/pstl_offload/general/free_after_unload_lib.cpp b/test/pstl_offload/general/free_after_unload_lib.cpp deleted file mode 100644 index 0be4ac511de..00000000000 --- a/test/pstl_offload/general/free_after_unload_lib.cpp +++ /dev/null @@ -1,52 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#if __SYCL_PSTL_OFFLOAD__ -#error "PSTL offload must be not enabled for this TU" -#endif - -#include -#include -#include -#include -#include "support/utils.h" - -#include "free_after_unload_lib.h" - -static pointers ptrs; - -void register_mem_to_later_release(pointers* p) -{ - ptrs = *p; -} - -struct DelayedReleaser -{ - ~DelayedReleaser() - { - free(ptrs.malloc_allocated); - ::operator delete (ptrs.aligned_new_allocated, std::align_val_t(8 * 1024)); - - constexpr std::size_t updated_size = 1024; -#if __linux__ - void* p = realloc(ptrs.aligned_alloc_allocated, updated_size); - EXPECT_TRUE(p, "reallocation failed"); - EXPECT_TRUE(malloc_usable_size(p) >= updated_size, "Invalid size after reallocation"); - free(p); -#elif _WIN64 - constexpr std::size_t updated_alignment = 64 * 1024; - void* p = _aligned_realloc(ptrs.aligned_alloc_allocated, updated_size, updated_alignment); - EXPECT_TRUE(p, "_aligned_realloc failed"); - EXPECT_TRUE(_aligned_msize(p, updated_alignment, 0) >= updated_size, "Invalid size after reallocation"); - _aligned_free(p); -#endif - } -}; - -static DelayedReleaser delayed_releaser; diff --git a/test/pstl_offload/general/free_after_unload_lib.h b/test/pstl_offload/general/free_after_unload_lib.h deleted file mode 100644 index 637fd1c1a5a..00000000000 --- a/test/pstl_offload/general/free_after_unload_lib.h +++ /dev/null @@ -1,25 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _FREE_AFTER_UNLOAD_LIB_HEADERS_H -#define _FREE_AFTER_UNLOAD_LIB_HEADERS_H - -struct pointers -{ - void* malloc_allocated; - int* aligned_new_allocated; - void* aligned_alloc_allocated; -}; - -#if free_after_unload_lib_EXPORTS && _WIN64 -__declspec(dllexport) -#endif -void register_mem_to_later_release(pointers*); - -#endif // _FREE_AFTER_UNLOAD_LIB_HEADERS_H diff --git a/test/pstl_offload/general/selected_different_device.pass.cpp b/test/pstl_offload/general/selected_different_device.pass.cpp deleted file mode 100644 index d6086e4dd4c..00000000000 --- a/test/pstl_offload/general/selected_different_device.pass.cpp +++ /dev/null @@ -1,42 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#if __SYCL_PSTL_OFFLOAD__ == 2 - #undef __SYCL_PSTL_OFFLOAD__ - #define __SYCL_PSTL_OFFLOAD__ 3 -#elif __SYCL_PSTL_OFFLOAD__ == 3 - #undef __SYCL_PSTL_OFFLOAD__ - #define __SYCL_PSTL_OFFLOAD__ 2 -#elif __SYCL_PSTL_OFFLOAD__ != 1 -#error "PSTL offload is not enabled or the selected value is unsupported" -#endif - -#include -#include "support/utils.h" - -// The test assumes that ONEAPI_DEVICE_SELECTOR is set according to __SYCL_PSTL_OFFLOAD__ -// and check that changed __SYCL_PSTL_OFFLOAD__ leads to an exception exactly from parallel algorithm. -int main() { -#if __SYCL_PSTL_OFFLOAD__ == 1 - // skip test when value of _ONEDPL_PSTL_OFFLOAD is default - // as ONEAPI_DEVICE_SELECTOR allows any offload policy in this case - return TestUtils::done(0); // to get Skipped -#else - std::size_t num = 10LLU * 1024 * 1024; - int* ptr = new int[num]; - try { - std::fill(std::execution::par_unseq, ptr, ptr + num, 7); - EXPECT_TRUE(false, "Device must be unavailable, expecting exception from std::fill()."); - } catch (const sycl::exception &) { - } - delete[] ptr; - - return TestUtils::done(); -#endif -} diff --git a/test/pstl_offload/headers/headers.dpl/oneapi_dpl_algorithm.pass.cpp b/test/pstl_offload/headers/headers.dpl/oneapi_dpl_algorithm.pass.cpp deleted file mode 100644 index 14e809301a6..00000000000 --- a/test/pstl_offload/headers/headers.dpl/oneapi_dpl_algorithm.pass.cpp +++ /dev/null @@ -1,17 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - int array[3] = {3, 2, 1}; - oneapi::dpl::sort(oneapi::dpl::execution::seq, array, array + 3); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.dpl/oneapi_dpl_array.pass.cpp b/test/pstl_offload/headers/headers.dpl/oneapi_dpl_array.pass.cpp deleted file mode 100644 index 46cb8c5a41b..00000000000 --- a/test/pstl_offload/headers/headers.dpl/oneapi_dpl_array.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] oneapi::dpl::array arr = {1}; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.dpl/oneapi_dpl_async.pass.cpp b/test/pstl_offload/headers/headers.dpl/oneapi_dpl_async.pass.cpp deleted file mode 100644 index 4481301e88a..00000000000 --- a/test/pstl_offload/headers/headers.dpl/oneapi_dpl_async.pass.cpp +++ /dev/null @@ -1,18 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - int array[] = {1, 2, 3}; - using return_type = decltype(oneapi::dpl::experimental::fill_async(oneapi::dpl::execution::dpcpp_default, - array, array + 3, 0)); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.dpl/oneapi_dpl_cmath.pass.cpp b/test/pstl_offload/headers/headers.dpl/oneapi_dpl_cmath.pass.cpp deleted file mode 100644 index 42ef0ec9ccf..00000000000 --- a/test/pstl_offload/headers/headers.dpl/oneapi_dpl_cmath.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] auto с = oneapi::dpl::cos(0); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.dpl/oneapi_dpl_complex.pass.cpp b/test/pstl_offload/headers/headers.dpl/oneapi_dpl_complex.pass.cpp deleted file mode 100644 index 1a88ee220ae..00000000000 --- a/test/pstl_offload/headers/headers.dpl/oneapi_dpl_complex.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] oneapi::dpl::complex n{0, 0}; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.dpl/oneapi_dpl_cstddef.pass.cpp b/test/pstl_offload/headers/headers.dpl/oneapi_dpl_cstddef.pass.cpp deleted file mode 100644 index 637da7cae9a..00000000000 --- a/test/pstl_offload/headers/headers.dpl/oneapi_dpl_cstddef.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] oneapi::dpl::size_t s = 0; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.dpl/oneapi_dpl_cstring.pass.cpp b/test/pstl_offload/headers/headers.dpl/oneapi_dpl_cstring.pass.cpp deleted file mode 100644 index 6332eb67903..00000000000 --- a/test/pstl_offload/headers/headers.dpl/oneapi_dpl_cstring.pass.cpp +++ /dev/null @@ -1,17 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - unsigned char a = 1; - [[maybe_unused]] auto res = oneapi::dpl::memcmp(&a, &a, 1); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.dpl/oneapi_dpl_dynamic_selection.pass.cpp b/test/pstl_offload/headers/headers.dpl/oneapi_dpl_dynamic_selection.pass.cpp deleted file mode 100644 index 01a1425d380..00000000000 --- a/test/pstl_offload/headers/headers.dpl/oneapi_dpl_dynamic_selection.pass.cpp +++ /dev/null @@ -1,17 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - using namespace oneapi::dpl::experimental; - [[maybe_unused]] std::size_t r = sizeof(fixed_resource_policy); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.dpl/oneapi_dpl_execution.pass.cpp b/test/pstl_offload/headers/headers.dpl/oneapi_dpl_execution.pass.cpp deleted file mode 100644 index c14f5720ffb..00000000000 --- a/test/pstl_offload/headers/headers.dpl/oneapi_dpl_execution.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - static_assert(oneapi::dpl::execution::is_execution_policy_v); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.dpl/oneapi_dpl_functional.pass.cpp b/test/pstl_offload/headers/headers.dpl/oneapi_dpl_functional.pass.cpp deleted file mode 100644 index 075462d0e03..00000000000 --- a/test/pstl_offload/headers/headers.dpl/oneapi_dpl_functional.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] auto res = oneapi::dpl::plus{}(1, 2); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.dpl/oneapi_dpl_iterator.pass.cpp b/test/pstl_offload/headers/headers.dpl/oneapi_dpl_iterator.pass.cpp deleted file mode 100644 index 4b1f2275492..00000000000 --- a/test/pstl_offload/headers/headers.dpl/oneapi_dpl_iterator.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] auto index = *oneapi::dpl::counting_iterator(0); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.dpl/oneapi_dpl_limits.pass.cpp b/test/pstl_offload/headers/headers.dpl/oneapi_dpl_limits.pass.cpp deleted file mode 100644 index d7258e6f039..00000000000 --- a/test/pstl_offload/headers/headers.dpl/oneapi_dpl_limits.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] auto max = oneapi::dpl::numeric_limits::max(); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.dpl/oneapi_dpl_memory.pass.cpp b/test/pstl_offload/headers/headers.dpl/oneapi_dpl_memory.pass.cpp deleted file mode 100644 index 6e46f6428d8..00000000000 --- a/test/pstl_offload/headers/headers.dpl/oneapi_dpl_memory.pass.cpp +++ /dev/null @@ -1,18 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - int* i = reinterpret_cast(::operator new(sizeof(int))); - oneapi::dpl::uninitialized_default_construct_n(oneapi::dpl::execution::seq, i, 1); - ::operator delete(i); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.dpl/oneapi_dpl_numeric.pass.cpp b/test/pstl_offload/headers/headers.dpl/oneapi_dpl_numeric.pass.cpp deleted file mode 100644 index 91477dbd926..00000000000 --- a/test/pstl_offload/headers/headers.dpl/oneapi_dpl_numeric.pass.cpp +++ /dev/null @@ -1,17 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - int array[] = {1, 2, 3}; - [[maybe_unused]] auto sum = oneapi::dpl::reduce(oneapi::dpl::execution::seq, array, array + 3); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.dpl/oneapi_dpl_optional.pass.cpp b/test/pstl_offload/headers/headers.dpl/oneapi_dpl_optional.pass.cpp deleted file mode 100644 index 7d043fe7318..00000000000 --- a/test/pstl_offload/headers/headers.dpl/oneapi_dpl_optional.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] auto o = oneapi::dpl::make_optional(0); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.dpl/oneapi_dpl_random.pass.cpp b/test/pstl_offload/headers/headers.dpl/oneapi_dpl_random.pass.cpp deleted file mode 100644 index 0ea044cf58e..00000000000 --- a/test/pstl_offload/headers/headers.dpl/oneapi_dpl_random.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] oneapi::dpl::minstd_rand0 gen; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.dpl/oneapi_dpl_ranges.pass.cpp b/test/pstl_offload/headers/headers.dpl/oneapi_dpl_ranges.pass.cpp deleted file mode 100644 index 560599f8e0b..00000000000 --- a/test/pstl_offload/headers/headers.dpl/oneapi_dpl_ranges.pass.cpp +++ /dev/null @@ -1,18 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include -#include "support/utils.h" - -int main() { - sycl::buffer buf(10); - oneapi::dpl::experimental::ranges::sort(oneapi::dpl::execution::dpcpp_default, buf); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.dpl/oneapi_dpl_ratio.pass.cpp b/test/pstl_offload/headers/headers.dpl/oneapi_dpl_ratio.pass.cpp deleted file mode 100644 index 9203296a126..00000000000 --- a/test/pstl_offload/headers/headers.dpl/oneapi_dpl_ratio.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] oneapi::dpl::ratio<1, 10> r; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.dpl/oneapi_dpl_tuple.pass.cpp b/test/pstl_offload/headers/headers.dpl/oneapi_dpl_tuple.pass.cpp deleted file mode 100644 index ead3f837584..00000000000 --- a/test/pstl_offload/headers/headers.dpl/oneapi_dpl_tuple.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] auto t = oneapi::dpl::make_tuple(1, 2); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.dpl/oneapi_dpl_type_traits.pass.cpp b/test/pstl_offload/headers/headers.dpl/oneapi_dpl_type_traits.pass.cpp deleted file mode 100644 index 1f5f2e3877d..00000000000 --- a/test/pstl_offload/headers/headers.dpl/oneapi_dpl_type_traits.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - static_assert(oneapi::dpl::is_same_v); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.dpl/oneapi_dpl_utility.pass.cpp b/test/pstl_offload/headers/headers.dpl/oneapi_dpl_utility.pass.cpp deleted file mode 100644 index 8e52b1444da..00000000000 --- a/test/pstl_offload/headers/headers.dpl/oneapi_dpl_utility.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] auto b = oneapi::dpl::make_pair(1, 2); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/algorithms/algorithm.pass.cpp b/test/pstl_offload/headers/headers.standard/algorithms/algorithm.pass.cpp deleted file mode 100644 index b20eef8b72f..00000000000 --- a/test/pstl_offload/headers/headers.standard/algorithms/algorithm.pass.cpp +++ /dev/null @@ -1,17 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - int array[3] = {3, 2, 1}; - std::sort(array, array + 3); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/algorithms/execution.pass.cpp b/test/pstl_offload/headers/headers.standard/algorithms/execution.pass.cpp deleted file mode 100644 index 7998c1204ed..00000000000 --- a/test/pstl_offload/headers/headers.standard/algorithms/execution.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - static_assert(std::is_execution_policy_v); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/atomic/atomic.pass.cpp b/test/pstl_offload/headers/headers.standard/atomic/atomic.pass.cpp deleted file mode 100644 index 39f17803bb0..00000000000 --- a/test/pstl_offload/headers/headers.standard/atomic/atomic.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::atomic a = 0; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/containers/array.pass.cpp b/test/pstl_offload/headers/headers.standard/containers/array.pass.cpp deleted file mode 100644 index 795daacf841..00000000000 --- a/test/pstl_offload/headers/headers.standard/containers/array.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::array a; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/containers/deque.pass.cpp b/test/pstl_offload/headers/headers.standard/containers/deque.pass.cpp deleted file mode 100644 index 369a7b5f4bc..00000000000 --- a/test/pstl_offload/headers/headers.standard/containers/deque.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::deque d; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/containers/forward_list.pass.cpp b/test/pstl_offload/headers/headers.standard/containers/forward_list.pass.cpp deleted file mode 100644 index ec17afa528d..00000000000 --- a/test/pstl_offload/headers/headers.standard/containers/forward_list.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::forward_list fl; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/containers/list.pass.cpp b/test/pstl_offload/headers/headers.standard/containers/list.pass.cpp deleted file mode 100644 index 078b8ad7f68..00000000000 --- a/test/pstl_offload/headers/headers.standard/containers/list.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::list fl; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/containers/map.pass.cpp b/test/pstl_offload/headers/headers.standard/containers/map.pass.cpp deleted file mode 100644 index 25a834aedd8..00000000000 --- a/test/pstl_offload/headers/headers.standard/containers/map.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::map m; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/containers/queue.pass.cpp b/test/pstl_offload/headers/headers.standard/containers/queue.pass.cpp deleted file mode 100644 index 19bceb407e4..00000000000 --- a/test/pstl_offload/headers/headers.standard/containers/queue.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::queue q; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/containers/stack.pass.cpp b/test/pstl_offload/headers/headers.standard/containers/stack.pass.cpp deleted file mode 100644 index 9ffbfb79c97..00000000000 --- a/test/pstl_offload/headers/headers.standard/containers/stack.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::stack s; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/containers/std_set.pass.cpp b/test/pstl_offload/headers/headers.standard/containers/std_set.pass.cpp deleted file mode 100644 index db0a1277c26..00000000000 --- a/test/pstl_offload/headers/headers.standard/containers/std_set.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::set s; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/containers/unordered_map.pass.cpp b/test/pstl_offload/headers/headers.standard/containers/unordered_map.pass.cpp deleted file mode 100644 index be86e6aae94..00000000000 --- a/test/pstl_offload/headers/headers.standard/containers/unordered_map.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::unordered_map um; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/containers/unordered_set.pass.cpp b/test/pstl_offload/headers/headers.standard/containers/unordered_set.pass.cpp deleted file mode 100644 index b3e56afee37..00000000000 --- a/test/pstl_offload/headers/headers.standard/containers/unordered_set.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::unordered_set us; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/containers/vector.pass.cpp b/test/pstl_offload/headers/headers.standard/containers/vector.pass.cpp deleted file mode 100644 index 59964215c49..00000000000 --- a/test/pstl_offload/headers/headers.standard/containers/vector.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::vector a; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/dynamic_memory/memory.pass.cpp b/test/pstl_offload/headers/headers.standard/dynamic_memory/memory.pass.cpp deleted file mode 100644 index 208225df304..00000000000 --- a/test/pstl_offload/headers/headers.standard/dynamic_memory/memory.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::unique_ptr uptr; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/dynamic_memory/new.pass.cpp b/test/pstl_offload/headers/headers.standard/dynamic_memory/new.pass.cpp deleted file mode 100644 index 940276b7294..00000000000 --- a/test/pstl_offload/headers/headers.standard/dynamic_memory/new.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::size_t r = sizeof(std::new_handler); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/dynamic_memory/scoped_allocator.pass.cpp b/test/pstl_offload/headers/headers.standard/dynamic_memory/scoped_allocator.pass.cpp deleted file mode 100644 index c33706bf31f..00000000000 --- a/test/pstl_offload/headers/headers.standard/dynamic_memory/scoped_allocator.pass.cpp +++ /dev/null @@ -1,17 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::scoped_allocator_adaptor> scoped; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/dynamic_memory/stdlib_h.pass.cpp b/test/pstl_offload/headers/headers.standard/dynamic_memory/stdlib_h.pass.cpp deleted file mode 100644 index 7701178395a..00000000000 --- a/test/pstl_offload/headers/headers.standard/dynamic_memory/stdlib_h.pass.cpp +++ /dev/null @@ -1,17 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - void* ptr = malloc(1); - free(ptr); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/error_handling/cassert.pass.cpp b/test/pstl_offload/headers/headers.standard/error_handling/cassert.pass.cpp deleted file mode 100644 index cce68279d70..00000000000 --- a/test/pstl_offload/headers/headers.standard/error_handling/cassert.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - assert(1 == 1); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/error_handling/cerrno.pass.cpp b/test/pstl_offload/headers/headers.standard/error_handling/cerrno.pass.cpp deleted file mode 100644 index cbcea7c3f6d..00000000000 --- a/test/pstl_offload/headers/headers.standard/error_handling/cerrno.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] auto err = errno; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/error_handling/exception.pass.cpp b/test/pstl_offload/headers/headers.standard/error_handling/exception.pass.cpp deleted file mode 100644 index b8e3d6c3717..00000000000 --- a/test/pstl_offload/headers/headers.standard/error_handling/exception.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::exception ex; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/error_handling/stdexcept.pass.cpp b/test/pstl_offload/headers/headers.standard/error_handling/stdexcept.pass.cpp deleted file mode 100644 index c8062841546..00000000000 --- a/test/pstl_offload/headers/headers.standard/error_handling/stdexcept.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::logic_error err{"error"}; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/error_handling/system_error.pass.cpp b/test/pstl_offload/headers/headers.standard/error_handling/system_error.pass.cpp deleted file mode 100644 index 92e17997946..00000000000 --- a/test/pstl_offload/headers/headers.standard/error_handling/system_error.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::system_error err{std::error_code{}}; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/filesystem/filesystem.pass.cpp b/test/pstl_offload/headers/headers.standard/filesystem/filesystem.pass.cpp deleted file mode 100644 index ab23c6533e6..00000000000 --- a/test/pstl_offload/headers/headers.standard/filesystem/filesystem.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::filesystem::path p1; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/io/cstdio.pass.cpp b/test/pstl_offload/headers/headers.standard/io/cstdio.pass.cpp deleted file mode 100644 index b81707fac1e..00000000000 --- a/test/pstl_offload/headers/headers.standard/io/cstdio.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::size_t r = sizeof(stdout); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/io/fstream.pass.cpp b/test/pstl_offload/headers/headers.standard/io/fstream.pass.cpp deleted file mode 100644 index d611c179a3a..00000000000 --- a/test/pstl_offload/headers/headers.standard/io/fstream.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::fstream stream; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/io/iomanip.pass.cpp b/test/pstl_offload/headers/headers.standard/io/iomanip.pass.cpp deleted file mode 100644 index 4497fe0b9cc..00000000000 --- a/test/pstl_offload/headers/headers.standard/io/iomanip.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] auto r = std::setw(0); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/io/ios.pass.cpp b/test/pstl_offload/headers/headers.standard/io/ios.pass.cpp deleted file mode 100644 index 914b8004016..00000000000 --- a/test/pstl_offload/headers/headers.standard/io/ios.pass.cpp +++ /dev/null @@ -1,17 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::size_t r = sizeof(std::ios); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/io/iostream.pass.cpp b/test/pstl_offload/headers/headers.standard/io/iostream.pass.cpp deleted file mode 100644 index 82e68e67ac5..00000000000 --- a/test/pstl_offload/headers/headers.standard/io/iostream.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::ostream& stream = std::cout; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/io/istream.pass.cpp b/test/pstl_offload/headers/headers.standard/io/istream.pass.cpp deleted file mode 100644 index d9ad687685c..00000000000 --- a/test/pstl_offload/headers/headers.standard/io/istream.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::size_t r = sizeof(std::istream); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/io/ostream.pass.cpp b/test/pstl_offload/headers/headers.standard/io/ostream.pass.cpp deleted file mode 100644 index 6e6962229bf..00000000000 --- a/test/pstl_offload/headers/headers.standard/io/ostream.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::size_t r = sizeof(std::ostream); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/io/sstream.pass.cpp b/test/pstl_offload/headers/headers.standard/io/sstream.pass.cpp deleted file mode 100644 index cb069e5a734..00000000000 --- a/test/pstl_offload/headers/headers.standard/io/sstream.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::size_t r = sizeof(std::stringbuf); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/io/streambuf.pass.cpp b/test/pstl_offload/headers/headers.standard/io/streambuf.pass.cpp deleted file mode 100644 index 2ef14c6c1b6..00000000000 --- a/test/pstl_offload/headers/headers.standard/io/streambuf.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::size_t r = sizeof(std::streambuf); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/io/strstream.pass.cpp b/test/pstl_offload/headers/headers.standard/io/strstream.pass.cpp deleted file mode 100644 index c7bb3a5e551..00000000000 --- a/test/pstl_offload/headers/headers.standard/io/strstream.pass.cpp +++ /dev/null @@ -1,17 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - // TODO: header is deprecated in C++98 - [[maybe_unused]] std::size_t r = sizeof(std::strstream); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/iterators/iterator.pass.cpp b/test/pstl_offload/headers/headers.standard/iterators/iterator.pass.cpp deleted file mode 100644 index 4bec88627b7..00000000000 --- a/test/pstl_offload/headers/headers.standard/iterators/iterator.pass.cpp +++ /dev/null @@ -1,17 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - int array[3]; - [[maybe_unused]] auto it = std::begin(array); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/localization/clocale.pass.cpp b/test/pstl_offload/headers/headers.standard/localization/clocale.pass.cpp deleted file mode 100644 index 8ab7277cf36..00000000000 --- a/test/pstl_offload/headers/headers.standard/localization/clocale.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::size_t r = sizeof(std::lconv); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/localization/codecvt.pass.cpp b/test/pstl_offload/headers/headers.standard/localization/codecvt.pass.cpp deleted file mode 100644 index 158d549aed9..00000000000 --- a/test/pstl_offload/headers/headers.standard/localization/codecvt.pass.cpp +++ /dev/null @@ -1,17 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - // TODO: header is deprecated in C++17 - [[maybe_unused]] auto mode = std::codecvt_mode::little_endian; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/localization/locale.pass.cpp b/test/pstl_offload/headers/headers.standard/localization/locale.pass.cpp deleted file mode 100644 index 20970ba9c2d..00000000000 --- a/test/pstl_offload/headers/headers.standard/localization/locale.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::size_t r = sizeof(std::locale); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/numeric_limits/cfloat.pass.cpp b/test/pstl_offload/headers/headers.standard/numeric_limits/cfloat.pass.cpp deleted file mode 100644 index 1dfddd05d40..00000000000 --- a/test/pstl_offload/headers/headers.standard/numeric_limits/cfloat.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] auto m = FLT_MIN; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/numeric_limits/cinttypes.pass.cpp b/test/pstl_offload/headers/headers.standard/numeric_limits/cinttypes.pass.cpp deleted file mode 100644 index 13eb2cf7741..00000000000 --- a/test/pstl_offload/headers/headers.standard/numeric_limits/cinttypes.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::imaxdiv_t imaxdiv; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/numeric_limits/climits.pass.cpp b/test/pstl_offload/headers/headers.standard/numeric_limits/climits.pass.cpp deleted file mode 100644 index d487cc82dd4..00000000000 --- a/test/pstl_offload/headers/headers.standard/numeric_limits/climits.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] auto bit = CHAR_BIT; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/numeric_limits/cstdint.pass.cpp b/test/pstl_offload/headers/headers.standard/numeric_limits/cstdint.pass.cpp deleted file mode 100644 index 977027cfc7a..00000000000 --- a/test/pstl_offload/headers/headers.standard/numeric_limits/cstdint.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::size_t r = sizeof(std::int8_t); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/numeric_limits/limits.pass.cpp b/test/pstl_offload/headers/headers.standard/numeric_limits/limits.pass.cpp deleted file mode 100644 index 276b6c65f75..00000000000 --- a/test/pstl_offload/headers/headers.standard/numeric_limits/limits.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] auto is_signed = std::numeric_limits::is_signed; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/numerics/cfenv.pass.cpp b/test/pstl_offload/headers/headers.standard/numerics/cfenv.pass.cpp deleted file mode 100644 index f9fcdc153d0..00000000000 --- a/test/pstl_offload/headers/headers.standard/numerics/cfenv.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] int i = std::feclearexcept(0); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/numerics/cmath_header.pass.cpp b/test/pstl_offload/headers/headers.standard/numerics/cmath_header.pass.cpp deleted file mode 100644 index 4825ca421d7..00000000000 --- a/test/pstl_offload/headers/headers.standard/numerics/cmath_header.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] auto a = abs(1); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/numerics/complex.pass.cpp b/test/pstl_offload/headers/headers.standard/numerics/complex.pass.cpp deleted file mode 100644 index 44cfad7170d..00000000000 --- a/test/pstl_offload/headers/headers.standard/numerics/complex.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::complex c(0, 0); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/numerics/numeric.pass.cpp b/test/pstl_offload/headers/headers.standard/numerics/numeric.pass.cpp deleted file mode 100644 index 698848b598c..00000000000 --- a/test/pstl_offload/headers/headers.standard/numerics/numeric.pass.cpp +++ /dev/null @@ -1,17 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - int array[2] = {0, 0}; - [[maybe_unused]] auto res = std::accumulate(array, array + 2, 0); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/numerics/random.pass.cpp b/test/pstl_offload/headers/headers.standard/numerics/random.pass.cpp deleted file mode 100644 index a1560d5efa3..00000000000 --- a/test/pstl_offload/headers/headers.standard/numerics/random.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] auto max = std::mt19937::max(); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/numerics/ratio.pass.cpp b/test/pstl_offload/headers/headers.standard/numerics/ratio.pass.cpp deleted file mode 100644 index c43372e9edc..00000000000 --- a/test/pstl_offload/headers/headers.standard/numerics/ratio.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::ratio<1, 10> r; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/numerics/valarray.pass.cpp b/test/pstl_offload/headers/headers.standard/numerics/valarray.pass.cpp deleted file mode 100644 index ae1f2755c08..00000000000 --- a/test/pstl_offload/headers/headers.standard/numerics/valarray.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::valarray va; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/regex/regex.pass.cpp b/test/pstl_offload/headers/headers.standard/regex/regex.pass.cpp deleted file mode 100644 index f728d03d8c5..00000000000 --- a/test/pstl_offload/headers/headers.standard/regex/regex.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::size_t r = sizeof(std::regex); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/requires_header_presence/barrier.pass.cpp b/test/pstl_offload/headers/headers.standard/requires_header_presence/barrier.pass.cpp deleted file mode 100644 index 58636d10e79..00000000000 --- a/test/pstl_offload/headers/headers.standard/requires_header_presence/barrier.pass.cpp +++ /dev/null @@ -1,18 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { -#if __cpp_lib_barrier >= 202302L - [[maybe_unused]] auto m = std::barrier<>::max(); -#endif - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/requires_header_presence/bit.pass.cpp b/test/pstl_offload/headers/headers.standard/requires_header_presence/bit.pass.cpp deleted file mode 100644 index 8055e612a87..00000000000 --- a/test/pstl_offload/headers/headers.standard/requires_header_presence/bit.pass.cpp +++ /dev/null @@ -1,18 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { -#if __cpp_lib_endian >= 201907L - [[maybe_unused]] auto endian = std::endian::native; -#endif - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/requires_header_presence/compare.pass.cpp b/test/pstl_offload/headers/headers.standard/requires_header_presence/compare.pass.cpp deleted file mode 100644 index 6118125b77e..00000000000 --- a/test/pstl_offload/headers/headers.standard/requires_header_presence/compare.pass.cpp +++ /dev/null @@ -1,18 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { -#if __cpp_lib_three_way_comparison >= 201907L - [[maybe_unused]] std::size_t r = sizeof(std::strong_ordering); -#endif - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/requires_header_presence/concepts.pass.cpp b/test/pstl_offload/headers/headers.standard/requires_header_presence/concepts.pass.cpp deleted file mode 100644 index c433f6af069..00000000000 --- a/test/pstl_offload/headers/headers.standard/requires_header_presence/concepts.pass.cpp +++ /dev/null @@ -1,18 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { -#if __cpp_lib_concepts >= 202002L - static_assert(!std::same_as); -#endif - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/requires_header_presence/latch.pass.cpp b/test/pstl_offload/headers/headers.standard/requires_header_presence/latch.pass.cpp deleted file mode 100644 index 1b76f7fb1a1..00000000000 --- a/test/pstl_offload/headers/headers.standard/requires_header_presence/latch.pass.cpp +++ /dev/null @@ -1,18 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { -#if __cpp_lib_latch >= 201907L - [[maybe_unused]] std::latch l(1); -#endif - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/requires_header_presence/memory_resource.pass.cpp b/test/pstl_offload/headers/headers.standard/requires_header_presence/memory_resource.pass.cpp deleted file mode 100644 index 0d8b63096f7..00000000000 --- a/test/pstl_offload/headers/headers.standard/requires_header_presence/memory_resource.pass.cpp +++ /dev/null @@ -1,18 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { -#if __cpp_lib_memory_resource >= 201603L - [[maybe_unused]] std::pmr::memory_resource* res = std::pmr::get_default_resource(); -#endif - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/requires_header_presence/numbers.pass.cpp b/test/pstl_offload/headers/headers.standard/requires_header_presence/numbers.pass.cpp deleted file mode 100644 index b3d079df8da..00000000000 --- a/test/pstl_offload/headers/headers.standard/requires_header_presence/numbers.pass.cpp +++ /dev/null @@ -1,18 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { -#if __cpp_lib_math_constants >= 201907L - [[maybe_unused]] auto phi = std::numbers::phi; -#endif - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/requires_header_presence/ranges.pass.cpp b/test/pstl_offload/headers/headers.standard/requires_header_presence/ranges.pass.cpp deleted file mode 100644 index 005cd8433b7..00000000000 --- a/test/pstl_offload/headers/headers.standard/requires_header_presence/ranges.pass.cpp +++ /dev/null @@ -1,19 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { -#if __cpp_lib_ranges >= 202302L - int array[1]; - [[maybe_unused]] auto empty = std::ranges::empty(array); -#endif - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/requires_header_presence/semaphore.pass.cpp b/test/pstl_offload/headers/headers.standard/requires_header_presence/semaphore.pass.cpp deleted file mode 100644 index d49a93404b7..00000000000 --- a/test/pstl_offload/headers/headers.standard/requires_header_presence/semaphore.pass.cpp +++ /dev/null @@ -1,18 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { -#if __cpp_lib_semaphore >= 201907L - [[maybe_unused]] auto max = std::binary_semaphore::max(); -#endif - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/requires_header_presence/source_location.pass.cpp b/test/pstl_offload/headers/headers.standard/requires_header_presence/source_location.pass.cpp deleted file mode 100644 index c7eeb256550..00000000000 --- a/test/pstl_offload/headers/headers.standard/requires_header_presence/source_location.pass.cpp +++ /dev/null @@ -1,18 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { -#if __cpp_lib_source_location >= 201907L - [[maybe_unused]] std::size_t r = sizeof(std::source_location); -#endif - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/requires_header_presence/span.pass.cpp b/test/pstl_offload/headers/headers.standard/requires_header_presence/span.pass.cpp deleted file mode 100644 index 53749badc97..00000000000 --- a/test/pstl_offload/headers/headers.standard/requires_header_presence/span.pass.cpp +++ /dev/null @@ -1,18 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { -#if __cpp_lib_span >= 202002L - [[maybe_unused]] std::span s; -#endif - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/requires_header_presence/stop_token.pass.cpp b/test/pstl_offload/headers/headers.standard/requires_header_presence/stop_token.pass.cpp deleted file mode 100644 index 42aa26915ee..00000000000 --- a/test/pstl_offload/headers/headers.standard/requires_header_presence/stop_token.pass.cpp +++ /dev/null @@ -1,18 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { -#if __cpp_lib_jthread >= 201911L - [[maybe_unused]] std::size_t r = sizeof(std::stop_token); -#endif - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/requires_header_presence/syncstream.pass.cpp b/test/pstl_offload/headers/headers.standard/requires_header_presence/syncstream.pass.cpp deleted file mode 100644 index 8a0b3ddebf5..00000000000 --- a/test/pstl_offload/headers/headers.standard/requires_header_presence/syncstream.pass.cpp +++ /dev/null @@ -1,18 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { -#if __cpp_lib_syncbuf >= 201803L - [[maybe_unused]] std::size_t r = sizeof(std::syncbuf); -#endif - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/requires_header_presence/version.pass.cpp b/test/pstl_offload/headers/headers.standard/requires_header_presence/version.pass.cpp deleted file mode 100644 index cbf43116fe0..00000000000 --- a/test/pstl_offload/headers/headers.standard/requires_header_presence/version.pass.cpp +++ /dev/null @@ -1,18 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - // Relying on the implementation details that if header is present, - // C++14 feature testing macros are defined independently of -std= compiler option - [[maybe_unused]] std::size_t r = __cpp_lib_transformation_trait_aliases; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/strings/cctype.pass.cpp b/test/pstl_offload/headers/headers.standard/strings/cctype.pass.cpp deleted file mode 100644 index 385f1d80113..00000000000 --- a/test/pstl_offload/headers/headers.standard/strings/cctype.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] auto res = std::tolower(1); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/strings/charconv.pass.cpp b/test/pstl_offload/headers/headers.standard/strings/charconv.pass.cpp deleted file mode 100644 index d87c553552b..00000000000 --- a/test/pstl_offload/headers/headers.standard/strings/charconv.pass.cpp +++ /dev/null @@ -1,18 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - const char* str = "1"; - int n = 1; - [[maybe_unused]] auto f = std::from_chars(str, str + 1, n); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/strings/cstring.pass.cpp b/test/pstl_offload/headers/headers.standard/strings/cstring.pass.cpp deleted file mode 100644 index 519d15c321f..00000000000 --- a/test/pstl_offload/headers/headers.standard/strings/cstring.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - using type = decltype(std::strcpy(nullptr, nullptr)); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/strings/cuchar.pass.cpp b/test/pstl_offload/headers/headers.standard/strings/cuchar.pass.cpp deleted file mode 100644 index 4d12092eef3..00000000000 --- a/test/pstl_offload/headers/headers.standard/strings/cuchar.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::size_t r = sizeof(mbstate_t); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/strings/cwchar.pass.cpp b/test/pstl_offload/headers/headers.standard/strings/cwchar.pass.cpp deleted file mode 100644 index ba8f465f4db..00000000000 --- a/test/pstl_offload/headers/headers.standard/strings/cwchar.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] auto n = NULL; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/strings/cwctype.pass.cpp b/test/pstl_offload/headers/headers.standard/strings/cwctype.pass.cpp deleted file mode 100644 index a4b84606506..00000000000 --- a/test/pstl_offload/headers/headers.standard/strings/cwctype.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::size_t r = sizeof(wctrans_t); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/strings/string.pass.cpp b/test/pstl_offload/headers/headers.standard/strings/string.pass.cpp deleted file mode 100644 index 4a97f52cd2a..00000000000 --- a/test/pstl_offload/headers/headers.standard/strings/string.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::string s; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/strings/string_view.pass.cpp b/test/pstl_offload/headers/headers.standard/strings/string_view.pass.cpp deleted file mode 100644 index a3f558e8536..00000000000 --- a/test/pstl_offload/headers/headers.standard/strings/string_view.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::string_view sv; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/thread/condition_variable.pass.cpp b/test/pstl_offload/headers/headers.standard/thread/condition_variable.pass.cpp deleted file mode 100644 index abc6f7c6b27..00000000000 --- a/test/pstl_offload/headers/headers.standard/thread/condition_variable.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::condition_variable cv; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/thread/future.pass.cpp b/test/pstl_offload/headers/headers.standard/thread/future.pass.cpp deleted file mode 100644 index 4962cf9271e..00000000000 --- a/test/pstl_offload/headers/headers.standard/thread/future.pass.cpp +++ /dev/null @@ -1,17 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - auto ft = std::async([]() { return 0; }); - ft.wait(); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/thread/mutex.pass.cpp b/test/pstl_offload/headers/headers.standard/thread/mutex.pass.cpp deleted file mode 100644 index e1184381b2f..00000000000 --- a/test/pstl_offload/headers/headers.standard/thread/mutex.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::mutex m; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/thread/shared_mutex.pass.cpp b/test/pstl_offload/headers/headers.standard/thread/shared_mutex.pass.cpp deleted file mode 100644 index a91208807ec..00000000000 --- a/test/pstl_offload/headers/headers.standard/thread/shared_mutex.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::shared_mutex m; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/thread/thread.pass.cpp b/test/pstl_offload/headers/headers.standard/thread/thread.pass.cpp deleted file mode 100644 index e3d0cdb9e64..00000000000 --- a/test/pstl_offload/headers/headers.standard/thread/thread.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::size_t r = sizeof(std::thread); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/utilities/any.pass.cpp b/test/pstl_offload/headers/headers.standard/utilities/any.pass.cpp deleted file mode 100644 index d48e40cc806..00000000000 --- a/test/pstl_offload/headers/headers.standard/utilities/any.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::any a; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/utilities/bitset.pass.cpp b/test/pstl_offload/headers/headers.standard/utilities/bitset.pass.cpp deleted file mode 100644 index 4aed6f51384..00000000000 --- a/test/pstl_offload/headers/headers.standard/utilities/bitset.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::bitset<1> bt; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/utilities/chrono.pass.cpp b/test/pstl_offload/headers/headers.standard/utilities/chrono.pass.cpp deleted file mode 100644 index d533d6f596e..00000000000 --- a/test/pstl_offload/headers/headers.standard/utilities/chrono.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] auto tp1 = std::chrono::high_resolution_clock::now(); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/utilities/csetjmp.pass.cpp b/test/pstl_offload/headers/headers.standard/utilities/csetjmp.pass.cpp deleted file mode 100644 index 4f760a9a210..00000000000 --- a/test/pstl_offload/headers/headers.standard/utilities/csetjmp.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::size_t r = sizeof(std::jmp_buf); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/utilities/csignal.pass.cpp b/test/pstl_offload/headers/headers.standard/utilities/csignal.pass.cpp deleted file mode 100644 index 9c0a967cf7f..00000000000 --- a/test/pstl_offload/headers/headers.standard/utilities/csignal.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::size_t r = sizeof(sig_atomic_t); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/utilities/cstdarg.pass.cpp b/test/pstl_offload/headers/headers.standard/utilities/cstdarg.pass.cpp deleted file mode 100644 index 721e2ad8f20..00000000000 --- a/test/pstl_offload/headers/headers.standard/utilities/cstdarg.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::size_t r = sizeof(va_list); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/utilities/cstddef.pass.cpp b/test/pstl_offload/headers/headers.standard/utilities/cstddef.pass.cpp deleted file mode 100644 index fc1610d22f3..00000000000 --- a/test/pstl_offload/headers/headers.standard/utilities/cstddef.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::size_t r = sizeof(std::ptrdiff_t); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/utilities/cstdlib.pass.cpp b/test/pstl_offload/headers/headers.standard/utilities/cstdlib.pass.cpp deleted file mode 100644 index 8f522e138c1..00000000000 --- a/test/pstl_offload/headers/headers.standard/utilities/cstdlib.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - using type = div_t; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/utilities/ctime.pass.cpp b/test/pstl_offload/headers/headers.standard/utilities/ctime.pass.cpp deleted file mode 100644 index 2dea821e9ea..00000000000 --- a/test/pstl_offload/headers/headers.standard/utilities/ctime.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] auto ptr = &ctime; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/utilities/functional.pass.cpp b/test/pstl_offload/headers/headers.standard/utilities/functional.pass.cpp deleted file mode 100644 index a2b23e1949f..00000000000 --- a/test/pstl_offload/headers/headers.standard/utilities/functional.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] bool are_equal = std::equal_to<>{}(1, 2); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/utilities/initializer_list.pass.cpp b/test/pstl_offload/headers/headers.standard/utilities/initializer_list.pass.cpp deleted file mode 100644 index f125692e5d7..00000000000 --- a/test/pstl_offload/headers/headers.standard/utilities/initializer_list.pass.cpp +++ /dev/null @@ -1,17 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - auto init_list = {1, 2, 3}; - [[maybe_unused]] auto it = init_list.begin(); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/utilities/optional.pass.cpp b/test/pstl_offload/headers/headers.standard/utilities/optional.pass.cpp deleted file mode 100644 index a9f6a0f775a..00000000000 --- a/test/pstl_offload/headers/headers.standard/utilities/optional.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::optional opt; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/utilities/tuple.pass.cpp b/test/pstl_offload/headers/headers.standard/utilities/tuple.pass.cpp deleted file mode 100644 index 9a7a412b65c..00000000000 --- a/test/pstl_offload/headers/headers.standard/utilities/tuple.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::tuple tpl = {1}; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/utilities/type_traits.pass.cpp b/test/pstl_offload/headers/headers.standard/utilities/type_traits.pass.cpp deleted file mode 100644 index cb0103248cf..00000000000 --- a/test/pstl_offload/headers/headers.standard/utilities/type_traits.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] auto are_same = std::is_same_v; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/utilities/typeindex.pass.cpp b/test/pstl_offload/headers/headers.standard/utilities/typeindex.pass.cpp deleted file mode 100644 index 93ff5c5f9e5..00000000000 --- a/test/pstl_offload/headers/headers.standard/utilities/typeindex.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::type_index t1(typeid(int)); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/utilities/typeinfo.pass.cpp b/test/pstl_offload/headers/headers.standard/utilities/typeinfo.pass.cpp deleted file mode 100644 index caf44f4be41..00000000000 --- a/test/pstl_offload/headers/headers.standard/utilities/typeinfo.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] auto are_equal = (typeid(int) == typeid(float)); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/utilities/utility.pass.cpp b/test/pstl_offload/headers/headers.standard/utilities/utility.pass.cpp deleted file mode 100644 index fd6e9f6d379..00000000000 --- a/test/pstl_offload/headers/headers.standard/utilities/utility.pass.cpp +++ /dev/null @@ -1,17 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - int a = 1, b = 2; - std::swap(a, b); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.standard/utilities/variant.pass.cpp b/test/pstl_offload/headers/headers.standard/utilities/variant.pass.cpp deleted file mode 100644 index bacbc435667..00000000000 --- a/test/pstl_offload/headers/headers.standard/utilities/variant.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::variant v = 1; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.sycl/sycl_sycl_hpp.pass.cpp b/test/pstl_offload/headers/headers.sycl/sycl_sycl_hpp.pass.cpp deleted file mode 100644 index b8f4fe5b219..00000000000 --- a/test/pstl_offload/headers/headers.sycl/sycl_sycl_hpp.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] sycl::queue q1; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.tbb/algorithms/oneapi_tbb_blocked_range2d_h.pass.cpp b/test/pstl_offload/headers/headers.tbb/algorithms/oneapi_tbb_blocked_range2d_h.pass.cpp deleted file mode 100644 index 5284cf3899e..00000000000 --- a/test/pstl_offload/headers/headers.tbb/algorithms/oneapi_tbb_blocked_range2d_h.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] oneapi::tbb::blocked_range2d br(0, 10, 0, 10); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.tbb/algorithms/oneapi_tbb_blocked_range3d_h.pass.cpp b/test/pstl_offload/headers/headers.tbb/algorithms/oneapi_tbb_blocked_range3d_h.pass.cpp deleted file mode 100644 index f05189152e1..00000000000 --- a/test/pstl_offload/headers/headers.tbb/algorithms/oneapi_tbb_blocked_range3d_h.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] oneapi::tbb::blocked_range3d br(0, 10, 0, 10, 0, 10); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.tbb/algorithms/oneapi_tbb_blocked_rangeNd_h.pass.cpp b/test/pstl_offload/headers/headers.tbb/algorithms/oneapi_tbb_blocked_rangeNd_h.pass.cpp deleted file mode 100644 index 56789e21205..00000000000 --- a/test/pstl_offload/headers/headers.tbb/algorithms/oneapi_tbb_blocked_rangeNd_h.pass.cpp +++ /dev/null @@ -1,17 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#define TBB_PREVIEW_BLOCKED_RANGE_ND 1 -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] oneapi::tbb::blocked_rangeNd br({0, 10}); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.tbb/algorithms/oneapi_tbb_blocked_range_h.pass.cpp b/test/pstl_offload/headers/headers.tbb/algorithms/oneapi_tbb_blocked_range_h.pass.cpp deleted file mode 100644 index 0be4affcf91..00000000000 --- a/test/pstl_offload/headers/headers.tbb/algorithms/oneapi_tbb_blocked_range_h.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] oneapi::tbb::blocked_range br(0, 10); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.tbb/algorithms/oneapi_tbb_collaborative_call_once_h.pass.cpp b/test/pstl_offload/headers/headers.tbb/algorithms/oneapi_tbb_collaborative_call_once_h.pass.cpp deleted file mode 100644 index 75d48610844..00000000000 --- a/test/pstl_offload/headers/headers.tbb/algorithms/oneapi_tbb_collaborative_call_once_h.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::size_t r = sizeof(oneapi::tbb::collaborative_once_flag); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.tbb/algorithms/oneapi_tbb_parallel_for_each_h.pass.cpp b/test/pstl_offload/headers/headers.tbb/algorithms/oneapi_tbb_parallel_for_each_h.pass.cpp deleted file mode 100644 index 255a5296b77..00000000000 --- a/test/pstl_offload/headers/headers.tbb/algorithms/oneapi_tbb_parallel_for_each_h.pass.cpp +++ /dev/null @@ -1,17 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - int array[3]; - oneapi::tbb::parallel_for_each(array, array + 3, [](int){}); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.tbb/algorithms/oneapi_tbb_parallel_for_h.pass.cpp b/test/pstl_offload/headers/headers.tbb/algorithms/oneapi_tbb_parallel_for_h.pass.cpp deleted file mode 100644 index 65e6c4d46b5..00000000000 --- a/test/pstl_offload/headers/headers.tbb/algorithms/oneapi_tbb_parallel_for_h.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - oneapi::tbb::parallel_for(1, 100, [](int index) {}); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.tbb/algorithms/oneapi_tbb_parallel_invoke_h.pass.cpp b/test/pstl_offload/headers/headers.tbb/algorithms/oneapi_tbb_parallel_invoke_h.pass.cpp deleted file mode 100644 index c2ec449c4a1..00000000000 --- a/test/pstl_offload/headers/headers.tbb/algorithms/oneapi_tbb_parallel_invoke_h.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - oneapi::tbb::parallel_invoke([](){}, [](){}); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.tbb/algorithms/oneapi_tbb_parallel_pipeline_h.pass.cpp b/test/pstl_offload/headers/headers.tbb/algorithms/oneapi_tbb_parallel_pipeline_h.pass.cpp deleted file mode 100644 index 22f07bd4289..00000000000 --- a/test/pstl_offload/headers/headers.tbb/algorithms/oneapi_tbb_parallel_pipeline_h.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::size_t r = sizeof(oneapi::tbb::filter); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.tbb/algorithms/oneapi_tbb_parallel_reduce_h.pass.cpp b/test/pstl_offload/headers/headers.tbb/algorithms/oneapi_tbb_parallel_reduce_h.pass.cpp deleted file mode 100644 index e148405e6e8..00000000000 --- a/test/pstl_offload/headers/headers.tbb/algorithms/oneapi_tbb_parallel_reduce_h.pass.cpp +++ /dev/null @@ -1,18 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include -#include "support/utils.h" - -int main() { - oneapi::tbb::blocked_range range{0, 10}; - oneapi::tbb::parallel_reduce(range, 0, [](const auto&, int a) { return a; }, [](int a, int) { return a; }); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.tbb/algorithms/oneapi_tbb_parallel_scan_h.pass.cpp b/test/pstl_offload/headers/headers.tbb/algorithms/oneapi_tbb_parallel_scan_h.pass.cpp deleted file mode 100644 index 21ef845f88c..00000000000 --- a/test/pstl_offload/headers/headers.tbb/algorithms/oneapi_tbb_parallel_scan_h.pass.cpp +++ /dev/null @@ -1,18 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include -#include "support/utils.h" - -int main() { - oneapi::tbb::blocked_range range{0, 10}; - oneapi::tbb::parallel_scan(range, 0, [](const auto&, int a, bool) { return a; }, [](int a, int) { return a; }); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.tbb/algorithms/oneapi_tbb_parallel_sort_h.pass.cpp b/test/pstl_offload/headers/headers.tbb/algorithms/oneapi_tbb_parallel_sort_h.pass.cpp deleted file mode 100644 index 2f853a45264..00000000000 --- a/test/pstl_offload/headers/headers.tbb/algorithms/oneapi_tbb_parallel_sort_h.pass.cpp +++ /dev/null @@ -1,17 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - int array[3]; - oneapi::tbb::parallel_sort(array, array + 3); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.tbb/algorithms/oneapi_tbb_partitioner_h.pass.cpp b/test/pstl_offload/headers/headers.tbb/algorithms/oneapi_tbb_partitioner_h.pass.cpp deleted file mode 100644 index f0e3c6a77c6..00000000000 --- a/test/pstl_offload/headers/headers.tbb/algorithms/oneapi_tbb_partitioner_h.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] oneapi::tbb::auto_partitioner ap; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.tbb/containers/oneapi_tbb_concurrent_hash_map_h.pass.cpp b/test/pstl_offload/headers/headers.tbb/containers/oneapi_tbb_concurrent_hash_map_h.pass.cpp deleted file mode 100644 index bcc7324c25e..00000000000 --- a/test/pstl_offload/headers/headers.tbb/containers/oneapi_tbb_concurrent_hash_map_h.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] oneapi::tbb::concurrent_hash_map chmap; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.tbb/containers/oneapi_tbb_concurrent_lru_cache_h.pass.cpp b/test/pstl_offload/headers/headers.tbb/containers/oneapi_tbb_concurrent_lru_cache_h.pass.cpp deleted file mode 100644 index 6fe707c8085..00000000000 --- a/test/pstl_offload/headers/headers.tbb/containers/oneapi_tbb_concurrent_lru_cache_h.pass.cpp +++ /dev/null @@ -1,19 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#define TBB_PREVIEW_CONCURRENT_LRU_CACHE 1 -#include -#include "support/utils.h" - -float foo(int) { return 1.f; } - -int main() { - [[maybe_unused]] oneapi::tbb::concurrent_lru_cache cache(&foo, 1); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.tbb/containers/oneapi_tbb_concurrent_map_h.pass.cpp b/test/pstl_offload/headers/headers.tbb/containers/oneapi_tbb_concurrent_map_h.pass.cpp deleted file mode 100644 index 9b2152fe5d9..00000000000 --- a/test/pstl_offload/headers/headers.tbb/containers/oneapi_tbb_concurrent_map_h.pass.cpp +++ /dev/null @@ -1,19 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -// TBB ETS includes windows.h, that define max macro conflicting with max() from -// see https://github.com/oneapi-src/oneTBB/issues/832 -#define NOMINMAX 1 -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] oneapi::tbb::concurrent_map cmap; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.tbb/containers/oneapi_tbb_concurrent_priority_queue_h.pass.cpp b/test/pstl_offload/headers/headers.tbb/containers/oneapi_tbb_concurrent_priority_queue_h.pass.cpp deleted file mode 100644 index 4d44d4da444..00000000000 --- a/test/pstl_offload/headers/headers.tbb/containers/oneapi_tbb_concurrent_priority_queue_h.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] oneapi::tbb::concurrent_priority_queue cpq; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.tbb/containers/oneapi_tbb_concurrent_queue_h.pass.cpp b/test/pstl_offload/headers/headers.tbb/containers/oneapi_tbb_concurrent_queue_h.pass.cpp deleted file mode 100644 index e17a8f57744..00000000000 --- a/test/pstl_offload/headers/headers.tbb/containers/oneapi_tbb_concurrent_queue_h.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] oneapi::tbb::concurrent_queue cq; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.tbb/containers/oneapi_tbb_concurrent_set_h.pass.cpp b/test/pstl_offload/headers/headers.tbb/containers/oneapi_tbb_concurrent_set_h.pass.cpp deleted file mode 100644 index f6f312f123b..00000000000 --- a/test/pstl_offload/headers/headers.tbb/containers/oneapi_tbb_concurrent_set_h.pass.cpp +++ /dev/null @@ -1,19 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -// TBB ETS includes windows.h, that define max macro conflicting with max() from -// see https://github.com/oneapi-src/oneTBB/issues/832 -#define NOMINMAX 1 -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] oneapi::tbb::concurrent_set cset; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.tbb/containers/oneapi_tbb_concurrent_unordered_map_h.pass.cpp b/test/pstl_offload/headers/headers.tbb/containers/oneapi_tbb_concurrent_unordered_map_h.pass.cpp deleted file mode 100644 index 81216d40b83..00000000000 --- a/test/pstl_offload/headers/headers.tbb/containers/oneapi_tbb_concurrent_unordered_map_h.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] oneapi::tbb::concurrent_unordered_map cumap; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.tbb/containers/oneapi_tbb_concurrent_unordered_set_h.pass.cpp b/test/pstl_offload/headers/headers.tbb/containers/oneapi_tbb_concurrent_unordered_set_h.pass.cpp deleted file mode 100644 index bf13669bccb..00000000000 --- a/test/pstl_offload/headers/headers.tbb/containers/oneapi_tbb_concurrent_unordered_set_h.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] oneapi::tbb::concurrent_unordered_set cuset; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.tbb/containers/oneapi_tbb_concurrent_vector_h.pass.cpp b/test/pstl_offload/headers/headers.tbb/containers/oneapi_tbb_concurrent_vector_h.pass.cpp deleted file mode 100644 index 85712a0fafc..00000000000 --- a/test/pstl_offload/headers/headers.tbb/containers/oneapi_tbb_concurrent_vector_h.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] oneapi::tbb::concurrent_vector cv; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.tbb/flow_graph/oneapi_tbb_flow_graph_h.pass.cpp b/test/pstl_offload/headers/headers.tbb/flow_graph/oneapi_tbb_flow_graph_h.pass.cpp deleted file mode 100644 index 12fec5af333..00000000000 --- a/test/pstl_offload/headers/headers.tbb/flow_graph/oneapi_tbb_flow_graph_h.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] oneapi::tbb::flow::graph g; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.tbb/memory/oneapi_tbb_cache_aligned_allocator_h.pass.cpp b/test/pstl_offload/headers/headers.tbb/memory/oneapi_tbb_cache_aligned_allocator_h.pass.cpp deleted file mode 100644 index 30a327df1c8..00000000000 --- a/test/pstl_offload/headers/headers.tbb/memory/oneapi_tbb_cache_aligned_allocator_h.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] oneapi::tbb::cache_aligned_allocator alloc; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.tbb/memory/oneapi_tbb_memory_pool_h.pass.cpp b/test/pstl_offload/headers/headers.tbb/memory/oneapi_tbb_memory_pool_h.pass.cpp deleted file mode 100644 index 4fa27304202..00000000000 --- a/test/pstl_offload/headers/headers.tbb/memory/oneapi_tbb_memory_pool_h.pass.cpp +++ /dev/null @@ -1,17 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#define TBB_PREVIEW_MEMORY_POOL 1 -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::size_t r = sizeof(oneapi::tbb::fixed_pool); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.tbb/memory/oneapi_tbb_scalable_allocator_h.pass.cpp b/test/pstl_offload/headers/headers.tbb/memory/oneapi_tbb_scalable_allocator_h.pass.cpp deleted file mode 100644 index 2e90ae18940..00000000000 --- a/test/pstl_offload/headers/headers.tbb/memory/oneapi_tbb_scalable_allocator_h.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] oneapi::tbb::scalable_allocator alloc; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.tbb/memory/oneapi_tbb_tbb_allocator_h.pass.cpp b/test/pstl_offload/headers/headers.tbb/memory/oneapi_tbb_tbb_allocator_h.pass.cpp deleted file mode 100644 index e0bd85dc049..00000000000 --- a/test/pstl_offload/headers/headers.tbb/memory/oneapi_tbb_tbb_allocator_h.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] oneapi::tbb::tbb_allocator alloc; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.tbb/mutexes/oneapi_tbb_mutex_h.pass.cpp b/test/pstl_offload/headers/headers.tbb/mutexes/oneapi_tbb_mutex_h.pass.cpp deleted file mode 100644 index cacd51be7b4..00000000000 --- a/test/pstl_offload/headers/headers.tbb/mutexes/oneapi_tbb_mutex_h.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] oneapi::tbb::mutex m; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.tbb/mutexes/oneapi_tbb_null_mutex_h.pass.cpp b/test/pstl_offload/headers/headers.tbb/mutexes/oneapi_tbb_null_mutex_h.pass.cpp deleted file mode 100644 index b47f86b224b..00000000000 --- a/test/pstl_offload/headers/headers.tbb/mutexes/oneapi_tbb_null_mutex_h.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] oneapi::tbb::null_mutex m; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.tbb/mutexes/oneapi_tbb_null_rw_mutex_h.pass.cpp b/test/pstl_offload/headers/headers.tbb/mutexes/oneapi_tbb_null_rw_mutex_h.pass.cpp deleted file mode 100644 index 4a36a18e92a..00000000000 --- a/test/pstl_offload/headers/headers.tbb/mutexes/oneapi_tbb_null_rw_mutex_h.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] oneapi::tbb::null_rw_mutex m; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.tbb/mutexes/oneapi_tbb_queuing_mutex_h.pass.cpp b/test/pstl_offload/headers/headers.tbb/mutexes/oneapi_tbb_queuing_mutex_h.pass.cpp deleted file mode 100644 index 37d9d1a629d..00000000000 --- a/test/pstl_offload/headers/headers.tbb/mutexes/oneapi_tbb_queuing_mutex_h.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] oneapi::tbb::queuing_mutex m; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.tbb/mutexes/oneapi_tbb_queuing_rw_mutex_h.pass.cpp b/test/pstl_offload/headers/headers.tbb/mutexes/oneapi_tbb_queuing_rw_mutex_h.pass.cpp deleted file mode 100644 index 5fb4dc4b59e..00000000000 --- a/test/pstl_offload/headers/headers.tbb/mutexes/oneapi_tbb_queuing_rw_mutex_h.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] oneapi::tbb::queuing_rw_mutex m; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.tbb/mutexes/oneapi_tbb_rw_mutex_h.pass.cpp b/test/pstl_offload/headers/headers.tbb/mutexes/oneapi_tbb_rw_mutex_h.pass.cpp deleted file mode 100644 index d1a468f3179..00000000000 --- a/test/pstl_offload/headers/headers.tbb/mutexes/oneapi_tbb_rw_mutex_h.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] oneapi::tbb::rw_mutex m; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.tbb/mutexes/oneapi_tbb_spin_mutex_h.pass.cpp b/test/pstl_offload/headers/headers.tbb/mutexes/oneapi_tbb_spin_mutex_h.pass.cpp deleted file mode 100644 index 6b07b4c7c31..00000000000 --- a/test/pstl_offload/headers/headers.tbb/mutexes/oneapi_tbb_spin_mutex_h.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] oneapi::tbb::spin_mutex m; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.tbb/mutexes/oneapi_tbb_spin_rw_mutex_h.pass.cpp b/test/pstl_offload/headers/headers.tbb/mutexes/oneapi_tbb_spin_rw_mutex_h.pass.cpp deleted file mode 100644 index 7e0bc668fe1..00000000000 --- a/test/pstl_offload/headers/headers.tbb/mutexes/oneapi_tbb_spin_rw_mutex_h.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] oneapi::tbb::spin_rw_mutex m; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.tbb/oneapi_tbb_info_h.pass.cpp b/test/pstl_offload/headers/headers.tbb/oneapi_tbb_info_h.pass.cpp deleted file mode 100644 index 5021a5d9f9b..00000000000 --- a/test/pstl_offload/headers/headers.tbb/oneapi_tbb_info_h.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::size_t r = sizeof(oneapi::tbb::numa_node_id); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.tbb/oneapi_tbb_profiling_h.pass.cpp b/test/pstl_offload/headers/headers.tbb/oneapi_tbb_profiling_h.pass.cpp deleted file mode 100644 index 7bb7d8519a1..00000000000 --- a/test/pstl_offload/headers/headers.tbb/oneapi_tbb_profiling_h.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::size_t r = sizeof(oneapi::tbb::profiling::event); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.tbb/oneapi_tbb_tick_count_h.pass.cpp b/test/pstl_offload/headers/headers.tbb/oneapi_tbb_tick_count_h.pass.cpp deleted file mode 100644 index 3d4d76b1498..00000000000 --- a/test/pstl_offload/headers/headers.tbb/oneapi_tbb_tick_count_h.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] auto tc = oneapi::tbb::tick_count::now(); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.tbb/oneapi_tbb_version_h.pass.cpp b/test/pstl_offload/headers/headers.tbb/oneapi_tbb_version_h.pass.cpp deleted file mode 100644 index c391cbb799e..00000000000 --- a/test/pstl_offload/headers/headers.tbb/oneapi_tbb_version_h.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::size_t r = TBB_VERSION_MAJOR; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.tbb/task_scheduler/oneapi_tbb_global_control_h.pass.cpp b/test/pstl_offload/headers/headers.tbb/task_scheduler/oneapi_tbb_global_control_h.pass.cpp deleted file mode 100644 index 8e083f0dab3..00000000000 --- a/test/pstl_offload/headers/headers.tbb/task_scheduler/oneapi_tbb_global_control_h.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] oneapi::tbb::global_control gc(oneapi::tbb::global_control::max_allowed_parallelism, 1); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.tbb/task_scheduler/oneapi_tbb_task_arena_h.pass.cpp b/test/pstl_offload/headers/headers.tbb/task_scheduler/oneapi_tbb_task_arena_h.pass.cpp deleted file mode 100644 index 901bbb82d2c..00000000000 --- a/test/pstl_offload/headers/headers.tbb/task_scheduler/oneapi_tbb_task_arena_h.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] oneapi::tbb::task_arena arena; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.tbb/task_scheduler/oneapi_tbb_task_group_h.pass.cpp b/test/pstl_offload/headers/headers.tbb/task_scheduler/oneapi_tbb_task_group_h.pass.cpp deleted file mode 100644 index 37a9c8245b2..00000000000 --- a/test/pstl_offload/headers/headers.tbb/task_scheduler/oneapi_tbb_task_group_h.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] oneapi::tbb::task_group tg; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.tbb/task_scheduler/oneapi_tbb_task_h.pass.cpp b/test/pstl_offload/headers/headers.tbb/task_scheduler/oneapi_tbb_task_h.pass.cpp deleted file mode 100644 index 7bf7e7f0377..00000000000 --- a/test/pstl_offload/headers/headers.tbb/task_scheduler/oneapi_tbb_task_h.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] auto r = oneapi::tbb::task::current_context(); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.tbb/task_scheduler/oneapi_tbb_task_scheduler_observer_h.pass.cpp b/test/pstl_offload/headers/headers.tbb/task_scheduler/oneapi_tbb_task_scheduler_observer_h.pass.cpp deleted file mode 100644 index e16afd553ab..00000000000 --- a/test/pstl_offload/headers/headers.tbb/task_scheduler/oneapi_tbb_task_scheduler_observer_h.pass.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] std::size_t r = sizeof(oneapi::tbb::task_scheduler_observer); - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.tbb/tls/oneapi_tbb_combinable_h.pass.cpp b/test/pstl_offload/headers/headers.tbb/tls/oneapi_tbb_combinable_h.pass.cpp deleted file mode 100644 index ecace15c873..00000000000 --- a/test/pstl_offload/headers/headers.tbb/tls/oneapi_tbb_combinable_h.pass.cpp +++ /dev/null @@ -1,19 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -// TBB ETS includes windows.h, that define max macro conflicting with max() from -// see https://github.com/oneapi-src/oneTBB/issues/832 -#define NOMINMAX 1 -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] oneapi::tbb::combinable cb; - return TestUtils::done(); -} diff --git a/test/pstl_offload/headers/headers.tbb/tls/oneapi_tbb_enumerable_thread_specific_h.pass.cpp b/test/pstl_offload/headers/headers.tbb/tls/oneapi_tbb_enumerable_thread_specific_h.pass.cpp deleted file mode 100644 index decfb48d3d8..00000000000 --- a/test/pstl_offload/headers/headers.tbb/tls/oneapi_tbb_enumerable_thread_specific_h.pass.cpp +++ /dev/null @@ -1,19 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -// TBB ETS includes windows.h, that define max macro conflicting with max() from -// see https://github.com/oneapi-src/oneTBB/issues/832 -#define NOMINMAX 1 -#include -#include "support/utils.h" - -int main() { - [[maybe_unused]] oneapi::tbb::enumerable_thread_specific ets; - return TestUtils::done(); -} diff --git a/test/pstl_offload/memory/allocation_utils.h b/test/pstl_offload/memory/allocation_utils.h deleted file mode 100644 index 16879c38a44..00000000000 --- a/test/pstl_offload/memory/allocation_utils.h +++ /dev/null @@ -1,131 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _ALLOCATION_UTILS_H -#define _ALLOCATION_UTILS_H - -#if __linux__ -extern "C" -{ -void *__libc_malloc(std::size_t); -void *__libc_calloc(std::size_t, std::size_t); -void *__libc_memalign(std::size_t, std::size_t); -void *__libc_realloc(void *, std::size_t); -} -#endif // __linux__ - -#if !__cpp_sized_deallocation -// Intel* oneAPI DPC++/C++ Compiler doesn't set __cpp_sized_deallocation, -// so provide declaration, as we have sized deallocations in the global overload -void operator delete(void* __ptr, std::size_t) noexcept; -void operator delete[](void* __ptr, std::size_t) noexcept; -#endif // __cpp_sized_deallocation - -struct allocs { - void* malloc_ptr; - void* calloc_ptr; - void* realloc_ptr; - void* memalign_ptr; -#if __linux__ - void* posix_memalign_ptr; - void* aligned_alloc_ptr; - - void* libc_malloc_ptr; - void* libc_calloc_ptr; - void* libc_realloc_ptr; - void* libc_memalign_ptr; -#elif _WIN64 - void* aligned_realloc_ptr; -#endif // __linux__ - - void* new_ptr; - void* arr_new_ptr; - void* nothrow_new_ptr; - void* arr_nothrow_new_ptr; - void* aligned_new_ptr; - void* aligned_nothrow_new_ptr; - void* aligned_arr_new_ptr; - void* aligned_nothrow_arr_new_ptr; - - static constexpr std::size_t alloc_size = 1024; - static constexpr std::size_t alignment = 16; -}; - -static allocs perform_allocations_impl() { - allocs na; - na.malloc_ptr = malloc(allocs::alloc_size); - na.calloc_ptr = calloc(allocs::alloc_size, allocs::alloc_size); - na.realloc_ptr = realloc(nullptr, allocs::alloc_size); -#if __linux__ - EXPECT_TRUE(malloc_usable_size(na.malloc_ptr) >= allocs::alloc_size, "Invalid object size"); - na.memalign_ptr = memalign(allocs::alignment, allocs::alloc_size); - posix_memalign(&na.posix_memalign_ptr, allocs::alignment, allocs::alloc_size); - na.aligned_alloc_ptr = aligned_alloc(allocs::alignment, allocs::alloc_size); - na.libc_malloc_ptr = __libc_malloc(allocs::alloc_size); - na.libc_calloc_ptr = __libc_calloc(allocs::alloc_size, allocs::alloc_size); - na.libc_realloc_ptr = __libc_realloc(nullptr, allocs::alloc_size); - na.libc_memalign_ptr = __libc_memalign(allocs::alignment, allocs::alloc_size); -#elif _WIN64 - na.memalign_ptr = _aligned_malloc(allocs::alloc_size, allocs::alignment); - na.aligned_realloc_ptr = _aligned_realloc(nullptr, allocs::alloc_size, allocs::alignment); -#endif // __linux__ - - na.new_ptr = ::operator new(allocs::alloc_size); - na.arr_new_ptr = ::operator new[](allocs::alloc_size); - na.nothrow_new_ptr = ::operator new(allocs::alloc_size, std::nothrow); - na.arr_nothrow_new_ptr = ::operator new[](allocs::alloc_size, std::nothrow); - na.aligned_new_ptr = ::operator new(allocs::alloc_size, std::align_val_t(allocs::alignment)); - na.aligned_nothrow_new_ptr = - ::operator new(allocs::alloc_size, std::align_val_t(allocs::alignment), std::nothrow); - na.aligned_arr_new_ptr = ::operator new[](allocs::alloc_size, std::align_val_t(allocs::alignment)); - na.aligned_nothrow_arr_new_ptr = - ::operator new[](allocs::alloc_size, std::align_val_t(allocs::alignment), std::nothrow); - return na; -} - -static void perform_deallocations_impl(const allocs& na) { -#if __linux__ - EXPECT_TRUE(malloc_usable_size(na.malloc_ptr) >= allocs::alloc_size, "Incorrect return value of malloc_usable_size"); -#elif _WIN64 - EXPECT_TRUE(_msize(na.malloc_ptr) >= allocs::alloc_size, "Incorrect return value of _msize"); -#endif - free(na.malloc_ptr); - free(na.calloc_ptr); - free(na.realloc_ptr); -#if __linux__ - free(na.memalign_ptr); - free(na.posix_memalign_ptr); - free(na.aligned_alloc_ptr); - free(na.libc_malloc_ptr); - free(na.libc_calloc_ptr); - free(na.libc_realloc_ptr); - free(na.libc_memalign_ptr); -#elif _WIN64 - EXPECT_TRUE(_aligned_msize(na.memalign_ptr, allocs::alignment, /*offset*/0) >= allocs::alloc_size, - "Invalid size reported by _aligned_msize"); - _aligned_free(na.memalign_ptr); - _aligned_realloc(na.aligned_realloc_ptr, /*size*/0, /*alignment*/0); -#endif // __linux__ - - operator delete(na.new_ptr); - operator delete[](na.arr_new_ptr); - operator delete(na.nothrow_new_ptr, allocs::alloc_size); - operator delete[](na.arr_nothrow_new_ptr, allocs::alloc_size); - operator delete(na.aligned_new_ptr, std::align_val_t(allocs::alignment)); - operator delete(na.aligned_nothrow_new_ptr, std::align_val_t(allocs::alignment)); - operator delete[](na.aligned_arr_new_ptr, std::align_val_t(allocs::alignment)); - operator delete[](na.aligned_nothrow_arr_new_ptr, std::align_val_t(allocs::alignment)); -} - -allocs perform_system_allocations(); -void perform_system_deallocations(const allocs&); -allocs perform_usm_allocations(); -void perform_usm_deallocations(const allocs&); - -#endif // _ALLOCATION_UTILS_H diff --git a/test/pstl_offload/memory/interop_allocs.pass.cpp b/test/pstl_offload/memory/interop_allocs.pass.cpp deleted file mode 100644 index db7671477cd..00000000000 --- a/test/pstl_offload/memory/interop_allocs.pass.cpp +++ /dev/null @@ -1,79 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#if !__SYCL_PSTL_OFFLOAD__ -#error "PSTL offload compiler mode should be enabled to run this test" -#endif - -#include "interop_allocs_headers.h" -#include "allocation_utils.h" - -static sycl::context memory_context = TestUtils::get_pstl_offload_device().get_platform().ext_oneapi_get_default_context(); - -void check_memory_ownership(const allocs &na, sycl::usm::alloc expected_type) { - EXPECT_TRUE(sycl::get_pointer_type(na.malloc_ptr, memory_context) == expected_type, - "Unexpected pointer type"); - EXPECT_TRUE(sycl::get_pointer_type(na.calloc_ptr, memory_context) == expected_type, - "Unexpected pointer type"); - EXPECT_TRUE(sycl::get_pointer_type(na.realloc_ptr, memory_context) == expected_type, - "Unexpected pointer type"); - EXPECT_TRUE(sycl::get_pointer_type(na.memalign_ptr, memory_context) == expected_type, - "Unexpected pointer type"); -#if __linux__ - EXPECT_TRUE(sycl::get_pointer_type(na.posix_memalign_ptr, memory_context) == expected_type, - "Unexpected pointer type"); - EXPECT_TRUE(sycl::get_pointer_type(na.aligned_alloc_ptr, memory_context) == expected_type, - "Unexpected pointer type"); - EXPECT_TRUE(sycl::get_pointer_type(na.libc_malloc_ptr, memory_context) == expected_type, - "Unexpected pointer type"); - EXPECT_TRUE(sycl::get_pointer_type(na.libc_calloc_ptr, memory_context) == expected_type, - "Unexpected pointer type"); - EXPECT_TRUE(sycl::get_pointer_type(na.libc_realloc_ptr, memory_context) == expected_type, - "Unexpected pointer type"); - EXPECT_TRUE(sycl::get_pointer_type(na.libc_memalign_ptr, memory_context) == expected_type, - "Unexpected pointer type"); -#elif _WIN64 - EXPECT_TRUE(sycl::get_pointer_type(na.aligned_realloc_ptr, memory_context) == expected_type, - "Unexpected pointer type"); -#endif // __linux__ - - EXPECT_TRUE(sycl::get_pointer_type(na.new_ptr, memory_context) == expected_type, - "Unexpected pointer type"); - EXPECT_TRUE(sycl::get_pointer_type(na.arr_new_ptr, memory_context) == expected_type, - "Unexpected pointer type"); - EXPECT_TRUE(sycl::get_pointer_type(na.nothrow_new_ptr, memory_context) == expected_type, - "Unexpected pointer type"); - EXPECT_TRUE(sycl::get_pointer_type(na.arr_nothrow_new_ptr, memory_context) == expected_type, - "Unexpected pointer type"); - EXPECT_TRUE(sycl::get_pointer_type(na.aligned_new_ptr, memory_context) == expected_type, - "Unexpected pointer type"); - EXPECT_TRUE(sycl::get_pointer_type(na.aligned_nothrow_new_ptr, memory_context) == expected_type, - "Unexpected pointer type"); - EXPECT_TRUE(sycl::get_pointer_type(na.aligned_arr_new_ptr, memory_context) == expected_type, - "Unexpected pointer type"); - EXPECT_TRUE(sycl::get_pointer_type(na.aligned_nothrow_arr_new_ptr, memory_context) == expected_type, - "Unexpected pointer type"); -} - -int main() { - // check the ability to release system memory allocated inside another translation unit without local allocation redirection - { - allocs na = perform_system_allocations(); - check_memory_ownership(na, sycl::usm::alloc::unknown); - perform_usm_deallocations(na); - } - // check the ability to release USM memory inside another translation unit without local allocation redirection - { - allocs na = perform_usm_allocations(); - check_memory_ownership(na, sycl::usm::alloc::shared); - perform_system_deallocations(na); - } - - return TestUtils::done(); -} diff --git a/test/pstl_offload/memory/interop_allocs_headers.h b/test/pstl_offload/memory/interop_allocs_headers.h deleted file mode 100644 index 4c091601ef6..00000000000 --- a/test/pstl_offload/memory/interop_allocs_headers.h +++ /dev/null @@ -1,20 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#ifndef _INTEROP_ALLOCS_HEADERS_H -#define _INTEROP_ALLOCS_HEADERS_H - -#include -#include -#if __linux__ -#include -#endif -#include "support/utils.h" - -#endif // _INTEROP_ALLOCS_HEADERS_H diff --git a/test/pstl_offload/memory/interop_allocs_system.cpp b/test/pstl_offload/memory/interop_allocs_system.cpp deleted file mode 100644 index 7b210eb2f33..00000000000 --- a/test/pstl_offload/memory/interop_allocs_system.cpp +++ /dev/null @@ -1,29 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#if !__SYCL_PSTL_OFFLOAD__ -#error "PSTL offload compiler mode should be enabled to run this test" -#endif - -// in this translation unit (TU) we use system allocations while compiling with pstl offload option, -// it should be no redirection to USM, that is done in another TU - -#define _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL -#include "interop_allocs_headers.h" -#undef _ONEDPL_PSTL_OFFLOAD_TOP_LEVEL - -#include "allocation_utils.h" - -allocs perform_system_allocations() { - return perform_allocations_impl(); -} - -void perform_system_deallocations(const allocs& na) { - perform_deallocations_impl(na); -} diff --git a/test/pstl_offload/memory/interop_allocs_usm.cpp b/test/pstl_offload/memory/interop_allocs_usm.cpp deleted file mode 100644 index 3a2320fc9c0..00000000000 --- a/test/pstl_offload/memory/interop_allocs_usm.cpp +++ /dev/null @@ -1,24 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#if !__SYCL_PSTL_OFFLOAD__ -#error "PSTL offload compiler mode should be enabled to run this test" -#endif - -// in this translation unit we use USM allocations -#include "interop_allocs_headers.h" -#include "allocation_utils.h" - -allocs perform_usm_allocations() { - return perform_allocations_impl(); -} - -void perform_usm_deallocations(const allocs& na) { - perform_deallocations_impl(na); -} diff --git a/test/pstl_offload/memory/usm_memory_alignment.pass.cpp b/test/pstl_offload/memory/usm_memory_alignment.pass.cpp deleted file mode 100644 index 6c8f2e7f9d6..00000000000 --- a/test/pstl_offload/memory/usm_memory_alignment.pass.cpp +++ /dev/null @@ -1,201 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#if !__SYCL_PSTL_OFFLOAD__ -#error "PSTL offload compiler mode should be enabled to run this test" -#endif - -#include -#include -#include // for malloc_usable_size - -#include "support/utils.h" -#if _WIN64 -#include - -static std::size_t get_page_size_impl() { - SYSTEM_INFO si; - GetSystemInfo(&si); - return si.dwPageSize; -} - -#endif - -static std::size_t get_page_size() { -#if __linux__ - static std::size_t page_size = sysconf(_SC_PAGESIZE); -#elif _WIN64 - static std::size_t page_size = get_page_size_impl(); -#endif - return page_size; -} - -template -void test_alignment_allocation(AllocatingFunction allocate, DeallocatingFunction deallocate) { - for (std::size_t alignment = 1; alignment < 16 * get_page_size(); alignment <<= 1) { - const std::size_t sizes[] = { 1, 2, 8, 24, alignment / 2, alignment, alignment * 2}; - - for (std::size_t size : sizes) { - void* ptr = allocate(size, alignment); - EXPECT_TRUE(ptr != nullptr, "nullptr returned by allocation"); - EXPECT_TRUE(std::uintptr_t(ptr) % alignment == 0, "The returned pointer is not properly aligned"); - deallocate(ptr, size, alignment); - } - } -} - -#if __linux__ -// aligned_alloc requires size to be integral multiple of alignment -// test_alignment_allocation tests different sizes values because other functions -// only requires the alignment to be power of two -void test_aligned_alloc_alignment() { - int cnt = 0; - for (std::size_t alignment = 1; alignment < 16*get_page_size(); alignment <<= 1) { - const std::size_t sizes[] = { alignment, alignment * 2, alignment * 3}; - - for (std::size_t size : sizes) { - void* ptr = aligned_alloc(alignment, size); - EXPECT_TRUE(ptr, "The returned pointer is nullptr"); - EXPECT_TRUE(std::uintptr_t(ptr) % alignment == 0, "The returned pointer is not properly aligned"); - EXPECT_TRUE(malloc_usable_size(ptr) >= size, "Invalid reported size"); - - // check that aligned object might be reallocated - constexpr std::size_t delta = 13; - std::size_t new_size = (++cnt % 2) && size > delta ? size - delta : size + delta; - ptr = realloc(ptr, new_size); - EXPECT_TRUE(ptr, "The returned pointer is nullptr"); - EXPECT_TRUE(malloc_usable_size(ptr) >= new_size, "Invalid reported size"); - - free(ptr); - } - } -} -#endif - -void test_new_alignment() { - auto new_allocate = [](std::size_t size, std::size_t alignment) { - return ::operator new(size, std::align_val_t(alignment)); - }; - auto new_nothrow_allocate = [](std::size_t size, std::size_t alignment) { - return ::operator new(size, std::align_val_t(alignment), std::nothrow); - }; - - auto new_array_allocate = [](std::size_t size, std::size_t alignment) { - return ::operator new[](size, std::align_val_t(alignment)); - }; - auto new_array_nothrow_allocate = [](std::size_t size, std::size_t alignment) { - return ::operator new[](size, std::align_val_t(alignment), std::nothrow); - }; - - auto delete_deallocate = [](void* ptr, std::size_t, std::size_t alignment) { - return ::operator delete(ptr, std::align_val_t(alignment)); - }; - auto delete_nothrow_deallocate = [](void* ptr, std::size_t, std::size_t alignment) { - return ::operator delete(ptr, std::align_val_t(alignment), std::nothrow); - }; - - auto delete_array_deallocate = [](void* ptr, std::size_t, std::size_t alignment) { - return ::operator delete[](ptr, std::align_val_t(alignment)); - }; - auto delete_array_nothrow_deallocate = [](void* ptr, std::size_t, std::size_t alignment) { - return ::operator delete[](ptr, std::align_val_t(alignment), std::nothrow); - }; - - test_alignment_allocation(new_allocate, delete_deallocate); - test_alignment_allocation(new_array_allocate, delete_array_deallocate); - - test_alignment_allocation(new_nothrow_allocate, delete_nothrow_deallocate); - test_alignment_allocation(new_array_nothrow_allocate, delete_array_nothrow_deallocate); -} - -// check only presence of the overloads -void test_page_aligned_allocations() { - void* ptr = valloc(8); - EXPECT_TRUE(ptr, "The returned pointer is nullptr"); - EXPECT_TRUE(std::uintptr_t(ptr) % get_page_size() == 0, "The returned pointer is not properly aligned"); - free(ptr); - ptr = __libc_valloc(8); - EXPECT_TRUE(ptr, "The returned pointer is nullptr"); - EXPECT_TRUE(std::uintptr_t(ptr) % get_page_size() == 0, "The returned pointer is not properly aligned"); - free(ptr); - - ptr = pvalloc(8); - EXPECT_TRUE(ptr, "The returned pointer is nullptr"); - EXPECT_TRUE(std::uintptr_t(ptr) % get_page_size() == 0, "The returned pointer is not properly aligned"); - free(ptr); - ptr = __libc_pvalloc(8); - EXPECT_TRUE(ptr, "The returned pointer is nullptr"); - EXPECT_TRUE(std::uintptr_t(ptr) % get_page_size() == 0, "The returned pointer is not properly aligned"); - free(ptr); -} - - -int main() { -#if __linux__ - auto aligned_alloc_allocate = [](std::size_t size, std::size_t alignment) - { - return aligned_alloc(alignment, size); - }; - auto memalign_allocate = [](std::size_t size, std::size_t alignment) { - return memalign(alignment, size); - }; - auto posix_memalign_allocate = [](std::size_t size, std::size_t alignment) { - void* ptr = nullptr; - posix_memalign(&ptr, alignment, size); - return ptr; - }; - auto __libc_memalign_allocate = [](std::size_t size, std::size_t alignment) { - return __libc_memalign(alignment, size); - }; - - auto free_deallocate = [](void* ptr, std::size_t, std::size_t) { - free(ptr); - }; - - test_alignment_allocation(memalign_allocate, free_deallocate); - test_alignment_allocation(posix_memalign_allocate, free_deallocate); - test_alignment_allocation(__libc_memalign_allocate, free_deallocate); - test_page_aligned_allocations(); - test_aligned_alloc_alignment(); -#elif _WIN64 - auto _aligned_malloc_allocate = [](std::size_t size, std::size_t alignment) { - return _aligned_malloc(size, alignment); - }; - auto _aligned_free_deallocate = [](void* ptr, std::size_t, std::size_t) { - _aligned_free(ptr); - }; - - test_alignment_allocation(_aligned_malloc_allocate, _aligned_free_deallocate); - - auto _aligned_realloc_allocate = [](std::size_t size, std::size_t alignment) { - return _aligned_realloc(nullptr, size, alignment); - }; - auto _aligned_realloc_existing_allocate = [](std::size_t size, std::size_t alignment) { - // "It's an error to reallocate memory and change the alignment of a block.", - // so have to re-use the alignment. - void* ptr = _aligned_malloc(size, alignment); - EXPECT_TRUE(ptr, "nullptr returned"); - EXPECT_TRUE(std::uintptr_t(ptr) % alignment == 0, "The returned pointer is not properly aligned"); - // this can be called with zero size, but _aligned_realloc() in zero case became _aligned_free() - return _aligned_realloc(ptr, size ? size : 1, alignment); - }; - auto _aligned_realloc_deallocate = [](void* ptr, std::size_t size, std::size_t alignment) { - EXPECT_TRUE(_aligned_msize(ptr, alignment, 0) >= size, "Invalid size returned by _aligned_msize"); - void * ret = _aligned_realloc(ptr, 0, alignment); - EXPECT_TRUE(ret == nullptr, "_aligned_realloc(ptr, 0, alignment) must return nullptr"); - }; - - test_alignment_allocation(_aligned_realloc_allocate, _aligned_realloc_deallocate); - test_alignment_allocation(_aligned_realloc_existing_allocate, _aligned_realloc_deallocate); -#endif - - test_new_alignment(); - - return TestUtils::done(); -} diff --git a/test/pstl_offload/memory/usm_memory_replacement.pass.cpp b/test/pstl_offload/memory/usm_memory_replacement.pass.cpp deleted file mode 100644 index 43474e8452d..00000000000 --- a/test/pstl_offload/memory/usm_memory_replacement.pass.cpp +++ /dev/null @@ -1,190 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// Copyright (C) 2023 Intel Corporation -// -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#if !__SYCL_PSTL_OFFLOAD__ -#error "PSTL offload compiler mode should be enabled to run this test" -#endif - -#if _WIN64 -// strcpy is used in the test -#define _CRT_SECURE_NO_WARNINGS 1 -#endif -#include -#include -#include - -#include "sycl/sycl.hpp" - -#include "support/utils.h" - -#if __linux__ -#include -#endif - -static sycl::context memory_context = TestUtils::get_pstl_offload_device().get_platform().ext_oneapi_get_default_context(); - -template -void test_new(std::size_t count, NewArgs... new_args) { - void* ptr = ::operator new(count, new_args...); - void* ptr_array = ::operator new[](count, new_args...); - - EXPECT_TRUE(sycl::get_pointer_type(ptr, memory_context) == sycl::usm::alloc::shared, "Wrong pointer type while allocating with new"); - EXPECT_TRUE(sycl::get_pointer_type(ptr_array, memory_context) == sycl::usm::alloc::shared, "Wrong pointer type while allocating with new[]"); - - ::operator delete[](ptr_array, new_args...); - ::operator delete(ptr, new_args...); -} - -int main() { - constexpr std::size_t num = 4; - constexpr std::size_t size = sizeof(int) * num; - constexpr std::size_t alignment = 8; - -#if __linux__ - { - void* ptr = aligned_alloc(alignment, size); - EXPECT_TRUE(sycl::get_pointer_type(ptr, memory_context) == sycl::usm::alloc::shared, "Wrong pointer type while allocating with aligned_alloc"); - free(ptr); - } -#elif _WIN64 - { - void* ptr = _aligned_malloc(size, alignment); - EXPECT_TRUE(sycl::get_pointer_type(ptr, memory_context) == sycl::usm::alloc::shared, "Wrong pointer type while allocating with aligned_alloc"); - EXPECT_TRUE(_aligned_msize(ptr, alignment, 0) >= size, "Invalid size reported by _aligned_msize"); - _aligned_free(ptr); - } -#endif - { - void* ptr = calloc(num, sizeof(int)); - EXPECT_TRUE(sycl::get_pointer_type(ptr, memory_context) == sycl::usm::alloc::shared, "Wrong pointer type while allocating with calloc"); - for (std::size_t i = 0; i < num; ++i) { - EXPECT_TRUE(*(static_cast(ptr) + i) == 0, "Memory was not filled with zeros by calloc"); - } - free(ptr); - - // Overflow test - ptr = calloc(std::numeric_limits::max(), sizeof(int)); - EXPECT_TRUE(ptr == nullptr, "Overflow was not handled by calloc"); - } - { - void* ptr = malloc(size); - EXPECT_TRUE(sycl::get_pointer_type(ptr, memory_context) == sycl::usm::alloc::shared, "Wrong pointer type while allocating with malloc"); - free(ptr); - } - { - constexpr char test_string[] = "teststring"; - static_assert(sizeof(test_string) < size, "Incorrect test setup"); - - void* ptr = nullptr; - ptr = realloc(ptr, size); - EXPECT_TRUE(sycl::get_pointer_type(ptr, memory_context) == sycl::usm::alloc::shared, "Wrong pointer type while allocating with realloc"); - std::strcpy(static_cast(ptr), test_string); -#if __linux__ - EXPECT_TRUE(malloc_usable_size(ptr) >= size, "Invalid reported size"); -#endif - - ptr = realloc(ptr, size * 2); - EXPECT_TRUE(sycl::get_pointer_type(ptr, memory_context) == sycl::usm::alloc::shared, "Wrong pointer type while allocating more memory with realloc"); - EXPECT_TRUE(std::strcmp(static_cast(ptr), test_string) == 0, "Memory was not copied into new memory while doing realloc"); -#if __linux__ - EXPECT_TRUE(malloc_usable_size(ptr) >= size * 2, "Invalid reported size"); -#endif - - ptr = realloc(ptr, size); - EXPECT_TRUE(sycl::get_pointer_type(ptr, memory_context) == sycl::usm::alloc::shared, "Wrong pointer type while allocating less memory with realloc"); - EXPECT_TRUE(std::strcmp(static_cast(ptr), test_string) == 0, "Memory was not copied into new memory while doing realloc"); - // According to SUS, "If size is 0, either a null pointer or a unique pointer that can be - // successfully passed to free() is returned.", but our implementation must return nullptr. - ptr = realloc(ptr, 0); - EXPECT_TRUE(ptr == nullptr , "Non-null returned while releasing memory with realloc"); - } -#if __linux__ - { - constexpr char test_string[] = "teststring"; - static_assert(sizeof(test_string) < size, "Incorrect test setup"); - - void* ptr = nullptr; - ptr = __libc_realloc(ptr, size); - EXPECT_TRUE(sycl::get_pointer_type(ptr, memory_context) == sycl::usm::alloc::shared, "Wrong pointer type while allocating with __libc_realloc"); - std::strcpy(static_cast(ptr), test_string); - - ptr = __libc_realloc(ptr, size * 2); - EXPECT_TRUE(sycl::get_pointer_type(ptr, memory_context) == sycl::usm::alloc::shared, "Wrong pointer type while allocating more memory with __libc_realloc"); - EXPECT_TRUE(std::strcmp(static_cast(ptr), test_string) == 0, "Memory was not copied into new memory while doing __libc_realloc"); - - ptr = __libc_realloc(ptr, size); - EXPECT_TRUE(sycl::get_pointer_type(ptr, memory_context) == sycl::usm::alloc::shared, "Wrong pointer type while allocating less memory with __libc_realloc"); - EXPECT_TRUE(std::strcmp(static_cast(ptr), test_string) == 0, "Memory was not copied into new memory while doing __libc_realloc"); - free(ptr); - } - { - void* ptr = memalign(alignment, size); - EXPECT_TRUE(sycl::get_pointer_type(ptr, memory_context) == sycl::usm::alloc::shared, "Wrong pointer type while allocating with memalign"); - free(ptr); - } - { - void* ptr = nullptr; - int err = posix_memalign(&ptr, alignment, size); - EXPECT_TRUE(err == 0, "Unsuccessful posix_memalign"); - EXPECT_TRUE(sycl::get_pointer_type(ptr, memory_context) == sycl::usm::alloc::shared, "Wrong pointer type while allocating with posix_memalign"); - free(ptr); - - // Check with alignment that is not power of two - ptr = nullptr; - err = posix_memalign(&ptr, 3, size); - EXPECT_TRUE(ptr == nullptr, "posix_memalign was successful with alignment that is not power of two"); - EXPECT_TRUE(err == EINVAL, "Incorrect errno after posix_memalign with alignment that is not power of two"); - } - { - void* ptr = __libc_calloc(num, size); - EXPECT_TRUE(sycl::get_pointer_type(ptr, memory_context) == sycl::usm::alloc::shared, "Wrong pointer type while allocating with __libc_calloc"); - for (std::size_t i = 0; i < num; ++i) { - EXPECT_TRUE(*(static_cast(ptr) + i) == 0, "Memory was not filled with zeros by __libc_calloc"); - } - free(ptr); - - // Overflow test - ptr = __libc_calloc(std::numeric_limits::max(), sizeof(int)); - EXPECT_TRUE(ptr == nullptr, "Overflow was not handled by __libc_calloc"); - } - { - void* ptr = __libc_malloc(size); - EXPECT_TRUE(sycl::get_pointer_type(ptr, memory_context) == sycl::usm::alloc::shared, "Wrong pointer type while allocating with __libc_malloc"); - free(ptr); - } - { - void* ptr = __libc_memalign(alignment, size); - EXPECT_TRUE(sycl::get_pointer_type(ptr, memory_context) == sycl::usm::alloc::shared, "Wrong pointer type while allocating with __libc_memalign"); - free(ptr); - } -#endif // __linux__ - { - void* ptr = malloc(size); -#if __linux__ - EXPECT_TRUE(malloc_usable_size(ptr) >= size, "Incorrect return value of malloc_usable_size"); - #elif _WIN64 - EXPECT_TRUE(_msize(ptr) >= size, "Incorrect return value of _msize"); -#endif // _WIN64 - free(ptr); - } - - test_new(size); - test_new(size, std::align_val_t(alignment)); - test_new(size, std::nothrow); - test_new(size, std::align_val_t(alignment), std::nothrow); - - // Overflow test, replaced malloc always allocates more bytes than requested - { - void* ptr = malloc(std::numeric_limits::max()); - EXPECT_TRUE(ptr == nullptr, "Overflow in malloc was not handled"); - EXPECT_TRUE(errno == ENOMEM, "Incorrect errno"); - } - - return TestUtils::done(); -}