From 9d732854e00f1eededb6f14782f292a329ba8855 Mon Sep 17 00:00:00 2001 From: Alexey Sachkov Date: Tue, 27 May 2025 18:07:08 +0200 Subject: [PATCH 1/3] [SYCL] Implement `sycl_khr_includes` extension --- sycl/include/sycl/define_vendors.hpp | 1 - .../sycl/detail/is_device_copyable.hpp | 5 - sycl/include/sycl/khr/includes/accessor.hpp | 16 ++ sycl/include/sycl/khr/includes/atomic.hpp | 17 ++ sycl/include/sycl/khr/includes/backend.hpp | 16 ++ sycl/include/sycl/khr/includes/bit.hpp | 16 ++ sycl/include/sycl/khr/includes/buffer.hpp | 16 ++ sycl/include/sycl/khr/includes/byte.hpp | 16 ++ sycl/include/sycl/khr/includes/context.hpp | 16 ++ sycl/include/sycl/khr/includes/device.hpp | 17 ++ sycl/include/sycl/khr/includes/event.hpp | 16 ++ sycl/include/sycl/khr/includes/exception.hpp | 17 ++ sycl/include/sycl/khr/includes/functional.hpp | 16 ++ .../sycl/khr/includes/group_algorithms.hpp | 16 ++ sycl/include/sycl/khr/includes/groups.hpp | 19 ++ sycl/include/sycl/khr/includes/half.hpp | 16 ++ sycl/include/sycl/khr/includes/handler.hpp | 16 ++ .../khr/includes/hierarchical_parallelism.hpp | 17 ++ sycl/include/sycl/khr/includes/images.hpp | 18 ++ .../include/sycl/khr/includes/index_space.hpp | 20 ++ .../sycl/khr/includes/interop_handle.hpp | 16 ++ .../sycl/khr/includes/kernel_bundle.hpp | 18 ++ .../sycl/khr/includes/kernel_handler.hpp | 16 ++ sycl/include/sycl/khr/includes/marray.hpp | 16 ++ sycl/include/sycl/khr/includes/math.hpp | 16 ++ sycl/include/sycl/khr/includes/multi_ptr.hpp | 16 ++ sycl/include/sycl/khr/includes/platform.hpp | 16 ++ .../sycl/khr/includes/property_list.hpp | 16 ++ sycl/include/sycl/khr/includes/queue.hpp | 17 ++ sycl/include/sycl/khr/includes/reduction.hpp | 17 ++ sycl/include/sycl/khr/includes/span.hpp | 16 ++ sycl/include/sycl/khr/includes/stream.hpp | 16 ++ .../include/sycl/khr/includes/type_traits.hpp | 16 ++ sycl/include/sycl/khr/includes/usm.hpp | 17 ++ sycl/include/sycl/khr/includes/vec.hpp | 16 ++ sycl/include/sycl/khr/includes/version.hpp | 38 ++++ sycl/include/sycl/sycl.hpp | 3 + sycl/source/feature_test.hpp.in | 1 + .../sycl_khr_includes_accessor.hpp.cpp | 93 +++++++++ .../sycl_khr_includes_atomic.hpp.cpp | 39 ++++ .../sycl_khr_includes_bit.hpp.cpp | 12 ++ .../sycl_khr_includes_buffer.hpp.cpp | 45 +++++ .../sycl_khr_includes_byte.hpp.cpp | 12 ++ .../sycl_khr_includes_context.hpp.cpp | 70 +++++++ .../sycl_khr_includes_device.hpp.cpp | 67 ++++++ .../sycl_khr_includes_event.hpp.cpp | 62 ++++++ .../sycl_khr_includes_exception.hpp.cpp | 17 ++ .../sycl_khr_includes_functional.hpp.cpp | 13 ++ ...sycl_khr_includes_group_algorithms.hpp.cpp | 59 ++++++ .../sycl_khr_includes_groups.hpp.cpp | 61 ++++++ .../sycl_khr_includes_half.hpp.cpp | 19 ++ .../sycl_khr_includes_handler.hpp.cpp | 155 ++++++++++++++ ..._includes_hierarchical_parallelism.hpp.cpp | 37 ++++ .../sycl_khr_includes_images.hpp.cpp | 112 ++++++++++ .../sycl_khr_includes_index_space.hpp.cpp | 38 ++++ .../sycl_khr_includes_interop_handle.hpp.cpp | 120 +++++++++++ .../sycl_khr_includes_kernel_bundle.hpp.cpp | 159 +++++++++++++++ .../sycl_khr_includes_kernel_handler.hpp.cpp | 17 ++ .../sycl_khr_includes_marray.hpp.cpp | 19 ++ .../sycl_khr_includes_math.hpp.cpp | 53 +++++ .../sycl_khr_includes_multi_ptr.hpp.cpp | 22 ++ .../sycl_khr_includes_platform.hpp.cpp | 66 ++++++ .../sycl_khr_includes_property_list.hpp.cpp | 19 ++ .../sycl_khr_includes_queue.hpp.cpp | 161 +++++++++++++++ .../sycl_khr_includes_reduction.hpp.cpp | 191 ++++++++++++++++++ .../sycl_khr_includes_span.hpp.cpp | 16 ++ .../sycl_khr_includes_stream.hpp.cpp | 174 ++++++++++++++++ .../sycl_khr_includes_type_traits.hpp.cpp | 17 ++ .../sycl_khr_includes_usm.hpp.cpp | 178 ++++++++++++++++ .../sycl_khr_includes_vec.hpp.cpp | 31 +++ .../sycl_khr_includes_version.hpp.cpp | 10 + sycl/test/include_deps/update_test.sh | 37 ++++ 72 files changed, 2789 insertions(+), 6 deletions(-) create mode 100644 sycl/include/sycl/khr/includes/accessor.hpp create mode 100644 sycl/include/sycl/khr/includes/atomic.hpp create mode 100644 sycl/include/sycl/khr/includes/backend.hpp create mode 100644 sycl/include/sycl/khr/includes/bit.hpp create mode 100644 sycl/include/sycl/khr/includes/buffer.hpp create mode 100644 sycl/include/sycl/khr/includes/byte.hpp create mode 100644 sycl/include/sycl/khr/includes/context.hpp create mode 100644 sycl/include/sycl/khr/includes/device.hpp create mode 100644 sycl/include/sycl/khr/includes/event.hpp create mode 100644 sycl/include/sycl/khr/includes/exception.hpp create mode 100644 sycl/include/sycl/khr/includes/functional.hpp create mode 100644 sycl/include/sycl/khr/includes/group_algorithms.hpp create mode 100644 sycl/include/sycl/khr/includes/groups.hpp create mode 100644 sycl/include/sycl/khr/includes/half.hpp create mode 100644 sycl/include/sycl/khr/includes/handler.hpp create mode 100644 sycl/include/sycl/khr/includes/hierarchical_parallelism.hpp create mode 100644 sycl/include/sycl/khr/includes/images.hpp create mode 100644 sycl/include/sycl/khr/includes/index_space.hpp create mode 100644 sycl/include/sycl/khr/includes/interop_handle.hpp create mode 100644 sycl/include/sycl/khr/includes/kernel_bundle.hpp create mode 100644 sycl/include/sycl/khr/includes/kernel_handler.hpp create mode 100644 sycl/include/sycl/khr/includes/marray.hpp create mode 100644 sycl/include/sycl/khr/includes/math.hpp create mode 100644 sycl/include/sycl/khr/includes/multi_ptr.hpp create mode 100644 sycl/include/sycl/khr/includes/platform.hpp create mode 100644 sycl/include/sycl/khr/includes/property_list.hpp create mode 100644 sycl/include/sycl/khr/includes/queue.hpp create mode 100644 sycl/include/sycl/khr/includes/reduction.hpp create mode 100644 sycl/include/sycl/khr/includes/span.hpp create mode 100644 sycl/include/sycl/khr/includes/stream.hpp create mode 100644 sycl/include/sycl/khr/includes/type_traits.hpp create mode 100644 sycl/include/sycl/khr/includes/usm.hpp create mode 100644 sycl/include/sycl/khr/includes/vec.hpp create mode 100644 sycl/include/sycl/khr/includes/version.hpp create mode 100644 sycl/test/include_deps/sycl_khr_includes_accessor.hpp.cpp create mode 100644 sycl/test/include_deps/sycl_khr_includes_atomic.hpp.cpp create mode 100644 sycl/test/include_deps/sycl_khr_includes_bit.hpp.cpp create mode 100644 sycl/test/include_deps/sycl_khr_includes_buffer.hpp.cpp create mode 100644 sycl/test/include_deps/sycl_khr_includes_byte.hpp.cpp create mode 100644 sycl/test/include_deps/sycl_khr_includes_context.hpp.cpp create mode 100644 sycl/test/include_deps/sycl_khr_includes_device.hpp.cpp create mode 100644 sycl/test/include_deps/sycl_khr_includes_event.hpp.cpp create mode 100644 sycl/test/include_deps/sycl_khr_includes_exception.hpp.cpp create mode 100644 sycl/test/include_deps/sycl_khr_includes_functional.hpp.cpp create mode 100644 sycl/test/include_deps/sycl_khr_includes_group_algorithms.hpp.cpp create mode 100644 sycl/test/include_deps/sycl_khr_includes_groups.hpp.cpp create mode 100644 sycl/test/include_deps/sycl_khr_includes_half.hpp.cpp create mode 100644 sycl/test/include_deps/sycl_khr_includes_handler.hpp.cpp create mode 100644 sycl/test/include_deps/sycl_khr_includes_hierarchical_parallelism.hpp.cpp create mode 100644 sycl/test/include_deps/sycl_khr_includes_images.hpp.cpp create mode 100644 sycl/test/include_deps/sycl_khr_includes_index_space.hpp.cpp create mode 100644 sycl/test/include_deps/sycl_khr_includes_interop_handle.hpp.cpp create mode 100644 sycl/test/include_deps/sycl_khr_includes_kernel_bundle.hpp.cpp create mode 100644 sycl/test/include_deps/sycl_khr_includes_kernel_handler.hpp.cpp create mode 100644 sycl/test/include_deps/sycl_khr_includes_marray.hpp.cpp create mode 100644 sycl/test/include_deps/sycl_khr_includes_math.hpp.cpp create mode 100644 sycl/test/include_deps/sycl_khr_includes_multi_ptr.hpp.cpp create mode 100644 sycl/test/include_deps/sycl_khr_includes_platform.hpp.cpp create mode 100644 sycl/test/include_deps/sycl_khr_includes_property_list.hpp.cpp create mode 100644 sycl/test/include_deps/sycl_khr_includes_queue.hpp.cpp create mode 100644 sycl/test/include_deps/sycl_khr_includes_reduction.hpp.cpp create mode 100644 sycl/test/include_deps/sycl_khr_includes_span.hpp.cpp create mode 100644 sycl/test/include_deps/sycl_khr_includes_stream.hpp.cpp create mode 100644 sycl/test/include_deps/sycl_khr_includes_type_traits.hpp.cpp create mode 100644 sycl/test/include_deps/sycl_khr_includes_usm.hpp.cpp create mode 100644 sycl/test/include_deps/sycl_khr_includes_vec.hpp.cpp create mode 100644 sycl/test/include_deps/sycl_khr_includes_version.hpp.cpp diff --git a/sycl/include/sycl/define_vendors.hpp b/sycl/include/sycl/define_vendors.hpp index ed32eccada025..d91e542870c4c 100644 --- a/sycl/include/sycl/define_vendors.hpp +++ b/sycl/include/sycl/define_vendors.hpp @@ -9,5 +9,4 @@ #pragma once #define SYCL_IMPLEMENTATION_ONEAPI -#define SYCL_FEATURE_SET_FULL #define SYCL_IMPLEMENTATION_INTEL diff --git a/sycl/include/sycl/detail/is_device_copyable.hpp b/sycl/include/sycl/detail/is_device_copyable.hpp index ea036779546a6..c7229055e3af9 100644 --- a/sycl/include/sycl/detail/is_device_copyable.hpp +++ b/sycl/include/sycl/detail/is_device_copyable.hpp @@ -14,11 +14,6 @@ #include #include -/// This macro must be defined to 1 when SYCL implementation allows user -/// applications to explicitly declare certain class types as device copyable -/// by adding specializations of is_device_copyable type trait class. -#define SYCL_DEVICE_COPYABLE 1 - namespace sycl { inline namespace _V1 { /// is_device_copyable is a user specializable class template to indicate diff --git a/sycl/include/sycl/khr/includes/accessor.hpp b/sycl/include/sycl/khr/includes/accessor.hpp new file mode 100644 index 0000000000000..15c4bdd8aec83 --- /dev/null +++ b/sycl/include/sycl/khr/includes/accessor.hpp @@ -0,0 +1,16 @@ +//===----------------------------------------------------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#ifndef __SYCL_KHR_INCLUDES_ACCESSOR +#define __SYCL_KHR_INCLUDES_ACCESSOR + +#include "version.hpp" + +#include + +#endif // __SYCL_KHR_INCLUDES_ACCESSOR diff --git a/sycl/include/sycl/khr/includes/atomic.hpp b/sycl/include/sycl/khr/includes/atomic.hpp new file mode 100644 index 0000000000000..31d229a964253 --- /dev/null +++ b/sycl/include/sycl/khr/includes/atomic.hpp @@ -0,0 +1,17 @@ +//===----------------------------------------------------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#ifndef __SYCL_KHR_INCLUDES_ATOMIC +#define __SYCL_KHR_INCLUDES_ATOMIC + +#include "version.hpp" + +#include +#include + +#endif // __SYCL_KHR_INCLUDES_ATOMIC diff --git a/sycl/include/sycl/khr/includes/backend.hpp b/sycl/include/sycl/khr/includes/backend.hpp new file mode 100644 index 0000000000000..631871ec859bb --- /dev/null +++ b/sycl/include/sycl/khr/includes/backend.hpp @@ -0,0 +1,16 @@ +//===----------------------------------------------------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#ifndef __SYCL_KHR_INCLUDES_BACKEND +#define __SYCL_KHR_INCLUDES_BACKEND + +#include "version.hpp" + +#include + +#endif // __SYCL_KHR_INCLUDES_BACKEND diff --git a/sycl/include/sycl/khr/includes/bit.hpp b/sycl/include/sycl/khr/includes/bit.hpp new file mode 100644 index 0000000000000..a7e59760eb05d --- /dev/null +++ b/sycl/include/sycl/khr/includes/bit.hpp @@ -0,0 +1,16 @@ +//===----------------------------------------------------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#ifndef __SYCL_KHR_INCLUDES_BIT +#define __SYCL_KHR_INCLUDES_BIT + +#include "version.hpp" + +#include + +#endif // __SYCL_KHR_INCLUDES_BIT diff --git a/sycl/include/sycl/khr/includes/buffer.hpp b/sycl/include/sycl/khr/includes/buffer.hpp new file mode 100644 index 0000000000000..75ba709096429 --- /dev/null +++ b/sycl/include/sycl/khr/includes/buffer.hpp @@ -0,0 +1,16 @@ +//===----------------------------------------------------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#ifndef __SYCL_KHR_INCLUDES_BUFFER +#define __SYCL_KHR_INCLUDES_BUFFER + +#include "version.hpp" + +#include + +#endif // __SYCL_KHR_INCLUDES_BUFFER diff --git a/sycl/include/sycl/khr/includes/byte.hpp b/sycl/include/sycl/khr/includes/byte.hpp new file mode 100644 index 0000000000000..d5e2ef98973f6 --- /dev/null +++ b/sycl/include/sycl/khr/includes/byte.hpp @@ -0,0 +1,16 @@ +//===----------------------------------------------------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#ifndef __SYCL_KHR_INCLUDES_BYTE +#define __SYCL_KHR_INCLUDES_BYTE + +#include "version.hpp" + +#include + +#endif // __SYCL_KHR_INCLUDES_BYTE diff --git a/sycl/include/sycl/khr/includes/context.hpp b/sycl/include/sycl/khr/includes/context.hpp new file mode 100644 index 0000000000000..5c7493b41c063 --- /dev/null +++ b/sycl/include/sycl/khr/includes/context.hpp @@ -0,0 +1,16 @@ +//===----------------------------------------------------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#ifndef __SYCL_KHR_INCLUDES_CONTEXT +#define __SYCL_KHR_INCLUDES_CONTEXT + +#include "version.hpp" + +#include + +#endif // __SYCL_KHR_INCLUDES_CONTEXT diff --git a/sycl/include/sycl/khr/includes/device.hpp b/sycl/include/sycl/khr/includes/device.hpp new file mode 100644 index 0000000000000..7c7f3cd78b8cb --- /dev/null +++ b/sycl/include/sycl/khr/includes/device.hpp @@ -0,0 +1,17 @@ +//===----------------------------------------------------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#ifndef __SYCL_KHR_INCLUDES_DEVICE +#define __SYCL_KHR_INCLUDES_DEVICE + +#include "version.hpp" + +#include +#include + +#endif // __SYCL_KHR_INCLUDES_DEVICE diff --git a/sycl/include/sycl/khr/includes/event.hpp b/sycl/include/sycl/khr/includes/event.hpp new file mode 100644 index 0000000000000..cc16e288c4d5d --- /dev/null +++ b/sycl/include/sycl/khr/includes/event.hpp @@ -0,0 +1,16 @@ +//===----------------------------------------------------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#ifndef __SYCL_KHR_INCLUDES_EVENT +#define __SYCL_KHR_INCLUDES_EVENT + +#include "version.hpp" + +#include + +#endif // __SYCL_KHR_INCLUDES_EVENT diff --git a/sycl/include/sycl/khr/includes/exception.hpp b/sycl/include/sycl/khr/includes/exception.hpp new file mode 100644 index 0000000000000..2134b93547783 --- /dev/null +++ b/sycl/include/sycl/khr/includes/exception.hpp @@ -0,0 +1,17 @@ +//===----------------------------------------------------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#ifndef __SYCL_KHR_INCLUDES_EXCEPTION +#define __SYCL_KHR_INCLUDES_EXCEPTION + +#include "version.hpp" + +#include +#include + +#endif // __SYCL_KHR_INCLUDES_EXCEPTION diff --git a/sycl/include/sycl/khr/includes/functional.hpp b/sycl/include/sycl/khr/includes/functional.hpp new file mode 100644 index 0000000000000..6e25ddb3c1843 --- /dev/null +++ b/sycl/include/sycl/khr/includes/functional.hpp @@ -0,0 +1,16 @@ +//===----------------------------------------------------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#ifndef __SYCL_KHR_INCLUDES_FUNCTIONAL +#define __SYCL_KHR_INCLUDES_FUNCTIONAL + +#include "version.hpp" + +#include + +#endif // __SYCL_KHR_INCLUDES_FUNCTIONAL diff --git a/sycl/include/sycl/khr/includes/group_algorithms.hpp b/sycl/include/sycl/khr/includes/group_algorithms.hpp new file mode 100644 index 0000000000000..bf9f972b73bd7 --- /dev/null +++ b/sycl/include/sycl/khr/includes/group_algorithms.hpp @@ -0,0 +1,16 @@ +//===----------------------------------------------------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#ifndef __SYCL_KHR_INCLUDES_GROUP_ALGORITHMS +#define __SYCL_KHR_INCLUDES_GROUP_ALGORITHMS + +#include "version.hpp" + +#include + +#endif // __SYCL_KHR_INCLUDES_GROUP_ALGORITHMS diff --git a/sycl/include/sycl/khr/includes/groups.hpp b/sycl/include/sycl/khr/includes/groups.hpp new file mode 100644 index 0000000000000..033d3e3c40edf --- /dev/null +++ b/sycl/include/sycl/khr/includes/groups.hpp @@ -0,0 +1,19 @@ +//===----------------------------------------------------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#ifndef __SYCL_KHR_INCLUDES_GROUPS +#define __SYCL_KHR_INCLUDES_GROUPS + +#include "version.hpp" + +#include +#include +#include +#include + +#endif // __SYCL_KHR_INCLUDES_GROUPS diff --git a/sycl/include/sycl/khr/includes/half.hpp b/sycl/include/sycl/khr/includes/half.hpp new file mode 100644 index 0000000000000..bc591cca93bda --- /dev/null +++ b/sycl/include/sycl/khr/includes/half.hpp @@ -0,0 +1,16 @@ +//===----------------------------------------------------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#ifndef __SYCL_KHR_INCLUDES_HALF +#define __SYCL_KHR_INCLUDES_HALF + +#include "version.hpp" + +#include + +#endif // __SYCL_KHR_INCLUDES_HALF diff --git a/sycl/include/sycl/khr/includes/handler.hpp b/sycl/include/sycl/khr/includes/handler.hpp new file mode 100644 index 0000000000000..0558dd388ff43 --- /dev/null +++ b/sycl/include/sycl/khr/includes/handler.hpp @@ -0,0 +1,16 @@ +//===----------------------------------------------------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#ifndef __SYCL_KHR_INCLUDES_HANDLER +#define __SYCL_KHR_INCLUDES_HANDLER + +#include "version.hpp" + +#include + +#endif // __SYCL_KHR_INCLUDES_HANDLER diff --git a/sycl/include/sycl/khr/includes/hierarchical_parallelism.hpp b/sycl/include/sycl/khr/includes/hierarchical_parallelism.hpp new file mode 100644 index 0000000000000..017f7f7b4e4bb --- /dev/null +++ b/sycl/include/sycl/khr/includes/hierarchical_parallelism.hpp @@ -0,0 +1,17 @@ +//===----------------------------------------------------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#ifndef __SYCL_KHR_INCLUDES_HIERARCHICAL_PARALLELISM +#define __SYCL_KHR_INCLUDES_HIERARCHICAL_PARALLELISM + +#include "version.hpp" + +#include +#include + +#endif // __SYCL_KHR_INCLUDES_HIERARCHICAL_PARALLELISM diff --git a/sycl/include/sycl/khr/includes/images.hpp b/sycl/include/sycl/khr/includes/images.hpp new file mode 100644 index 0000000000000..1ea47eba3959b --- /dev/null +++ b/sycl/include/sycl/khr/includes/images.hpp @@ -0,0 +1,18 @@ +//==------------------ image --- SYCL images ------------------*- C++ -*---==// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#ifndef __SYCL_KHR_INCLUDES_IMAGE +#define __SYCL_KHR_INCLUDES_IMAGE + +#include "version.hpp" + +#include +#include +#include + +#endif // __SYCL_KHR_INCLUDES_IMAGE diff --git a/sycl/include/sycl/khr/includes/index_space.hpp b/sycl/include/sycl/khr/includes/index_space.hpp new file mode 100644 index 0000000000000..b1210110a561c --- /dev/null +++ b/sycl/include/sycl/khr/includes/index_space.hpp @@ -0,0 +1,20 @@ +//===----------------------------------------------------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#ifndef __SYCL_KHR_INCLUDES_INDEX_SPACE +#define __SYCL_KHR_INCLUDES_INDEX_SPACE + +#include "version.hpp" + +#include +#include +#include +#include +#include + +#endif // __SYCL_KHR_INCLUDES_INDEX_SPACE diff --git a/sycl/include/sycl/khr/includes/interop_handle.hpp b/sycl/include/sycl/khr/includes/interop_handle.hpp new file mode 100644 index 0000000000000..e94f9ec50f3a1 --- /dev/null +++ b/sycl/include/sycl/khr/includes/interop_handle.hpp @@ -0,0 +1,16 @@ +//===----------------------------------------------------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#ifndef __SYCL_KHR_INCLUDES_INTEROP_HANDLE +#define __SYCL_KHR_INCLUDES_INTEROP_HANDLE + +#include "version.hpp" + +#include + +#endif // __SYCL_KHR_INCLUDES_INTEROP_HANDLE diff --git a/sycl/include/sycl/khr/includes/kernel_bundle.hpp b/sycl/include/sycl/khr/includes/kernel_bundle.hpp new file mode 100644 index 0000000000000..1938c5a2015a5 --- /dev/null +++ b/sycl/include/sycl/khr/includes/kernel_bundle.hpp @@ -0,0 +1,18 @@ +//===----------------------------------------------------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#ifndef __SYCL_KHR_INCLUDES_KERNEL_BUNDLE +#define __SYCL_KHR_INCLUDES_KERNEL_BUNDLE + +#include "version.hpp" + +#include +#include +#include + +#endif // __SYCL_KHR_INCLUDES_KERNEL_BUNDLE diff --git a/sycl/include/sycl/khr/includes/kernel_handler.hpp b/sycl/include/sycl/khr/includes/kernel_handler.hpp new file mode 100644 index 0000000000000..c55436577dda8 --- /dev/null +++ b/sycl/include/sycl/khr/includes/kernel_handler.hpp @@ -0,0 +1,16 @@ +//===----------------------------------------------------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#ifndef __SYCL_KHR_INCLUDES_KERNEL_HANDLER +#define __SYCL_KHR_INCLUDES_KERNEL_HANDLER + +#include "version.hpp" + +#include + +#endif // __SYCL_KHR_INCLUDES_KERNEL_HANDLER diff --git a/sycl/include/sycl/khr/includes/marray.hpp b/sycl/include/sycl/khr/includes/marray.hpp new file mode 100644 index 0000000000000..0c4f3549cade5 --- /dev/null +++ b/sycl/include/sycl/khr/includes/marray.hpp @@ -0,0 +1,16 @@ +//===----------------------------------------------------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#ifndef __SYCL_KHR_INCLUDES_MARRAY +#define __SYCL_KHR_INCLUDES_MARRAY + +#include "version.hpp" + +#include + +#endif // __SYCL_KHR_INCLUDES_MARRAY diff --git a/sycl/include/sycl/khr/includes/math.hpp b/sycl/include/sycl/khr/includes/math.hpp new file mode 100644 index 0000000000000..411765cd5d6a9 --- /dev/null +++ b/sycl/include/sycl/khr/includes/math.hpp @@ -0,0 +1,16 @@ +//===----------------------------------------------------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#ifndef __SYCL_KHR_INCLUDES_MATH +#define __SYCL_KHR_INCLUDES_MATH + +#include "version.hpp" + +#include + +#endif // __SYCL_KHR_INCLUDES_MATH diff --git a/sycl/include/sycl/khr/includes/multi_ptr.hpp b/sycl/include/sycl/khr/includes/multi_ptr.hpp new file mode 100644 index 0000000000000..fc25d487156a7 --- /dev/null +++ b/sycl/include/sycl/khr/includes/multi_ptr.hpp @@ -0,0 +1,16 @@ +//===----------------------------------------------------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#ifndef __SYCL_KHR_INCLUDES_MULTI_PTR +#define __SYCL_KHR_INCLUDES_MULTI_PTR + +#include "version.hpp" + +#include + +#endif // __SYCL_KHR_INCLUDES_MULTI_PTR diff --git a/sycl/include/sycl/khr/includes/platform.hpp b/sycl/include/sycl/khr/includes/platform.hpp new file mode 100644 index 0000000000000..a8902795916f5 --- /dev/null +++ b/sycl/include/sycl/khr/includes/platform.hpp @@ -0,0 +1,16 @@ +//===----------------------------------------------------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#ifndef __SYCL_KHR_INCLUDES_PLATFORM +#define __SYCL_KHR_INCLUDES_PLATFORM + +#include "version.hpp" + +#include + +#endif // __SYCL_KHR_INCLUDES_PLATFORM diff --git a/sycl/include/sycl/khr/includes/property_list.hpp b/sycl/include/sycl/khr/includes/property_list.hpp new file mode 100644 index 0000000000000..e21e5f9de7c2d --- /dev/null +++ b/sycl/include/sycl/khr/includes/property_list.hpp @@ -0,0 +1,16 @@ +//===----------------------------------------------------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#ifndef __SYCL_KHR_INCLUDES_PROPERTY_LIST +#define __SYCL_KHR_INCLUDES_PROPERTY_LIST + +#include "version.hpp" + +#include + +#endif // __SYCL_KHR_INCLUDES_PROPERTY_LIST diff --git a/sycl/include/sycl/khr/includes/queue.hpp b/sycl/include/sycl/khr/includes/queue.hpp new file mode 100644 index 0000000000000..10a70465a2871 --- /dev/null +++ b/sycl/include/sycl/khr/includes/queue.hpp @@ -0,0 +1,17 @@ +//===----------------------------------------------------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#ifndef __SYCL_KHR_INCLUDES_QUEUE +#define __SYCL_KHR_INCLUDES_QUEUE + +#include "version.hpp" + +#include +#include + +#endif // __SYCL_KHR_INCLUDES_QUEUE diff --git a/sycl/include/sycl/khr/includes/reduction.hpp b/sycl/include/sycl/khr/includes/reduction.hpp new file mode 100644 index 0000000000000..80d9c37c2f73a --- /dev/null +++ b/sycl/include/sycl/khr/includes/reduction.hpp @@ -0,0 +1,17 @@ +//===----------------------------------------------------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#ifndef __SYCL_KHR_INCLUDES_REDUCTION +#define __SYCL_KHR_INCLUDES_REDUCTION + +#include "version.hpp" + +#include +#include + +#endif // __SYCL_KHR_INCLUDES_REDUCTION diff --git a/sycl/include/sycl/khr/includes/span.hpp b/sycl/include/sycl/khr/includes/span.hpp new file mode 100644 index 0000000000000..d54b29d32336b --- /dev/null +++ b/sycl/include/sycl/khr/includes/span.hpp @@ -0,0 +1,16 @@ +//===----------------------------------------------------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#ifndef __SYCL_KHR_INCLUDES_SPAN +#define __SYCL_KHR_INCLUDES_SPAN + +#include "version.hpp" + +#include + +#endif // __SYCL_KHR_INCLUDES_SPAN diff --git a/sycl/include/sycl/khr/includes/stream.hpp b/sycl/include/sycl/khr/includes/stream.hpp new file mode 100644 index 0000000000000..b8bd74758120d --- /dev/null +++ b/sycl/include/sycl/khr/includes/stream.hpp @@ -0,0 +1,16 @@ +//===----------------------------------------------------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#ifndef __SYCL_KHR_INCLUDES_STREAM +#define __SYCL_KHR_INCLUDES_STREAM + +#include "version.hpp" + +#include + +#endif // __SYCL_KHR_INCLUDES_STREAM diff --git a/sycl/include/sycl/khr/includes/type_traits.hpp b/sycl/include/sycl/khr/includes/type_traits.hpp new file mode 100644 index 0000000000000..b3e6edcae736b --- /dev/null +++ b/sycl/include/sycl/khr/includes/type_traits.hpp @@ -0,0 +1,16 @@ +//===----------------------------------------------------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#ifndef __SYCL_KHR_INCLUDES_TYPE_TRAITS +#define __SYCL_KHR_INCLUDES_TYPE_TRAITS + +#include "version.hpp" + +#include + +#endif // __SYCL_KHR_INCLUDES_TYPE_TRAITS diff --git a/sycl/include/sycl/khr/includes/usm.hpp b/sycl/include/sycl/khr/includes/usm.hpp new file mode 100644 index 0000000000000..64ab00c8151c2 --- /dev/null +++ b/sycl/include/sycl/khr/includes/usm.hpp @@ -0,0 +1,17 @@ +//===----------------------------------------------------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#ifndef __SYCL_KHR_INCLUDES_USM +#define __SYCL_KHR_INCLUDES_USM + +#include "version.hpp" + +#include +#include + +#endif // __SYCL_KHR_INCLUDES_USM diff --git a/sycl/include/sycl/khr/includes/vec.hpp b/sycl/include/sycl/khr/includes/vec.hpp new file mode 100644 index 0000000000000..6dda5243b73ea --- /dev/null +++ b/sycl/include/sycl/khr/includes/vec.hpp @@ -0,0 +1,16 @@ +//===----------------------------------------------------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#ifndef __SYCL_KHR_INCLUDES_VEC +#define __SYCL_KHR_INCLUDES_VEC + +#include "version.hpp" + +#include + +#endif // __SYCL_KHR_INCLUDES_VEC diff --git a/sycl/include/sycl/khr/includes/version.hpp b/sycl/include/sycl/khr/includes/version.hpp new file mode 100644 index 0000000000000..a15704c4fdfae --- /dev/null +++ b/sycl/include/sycl/khr/includes/version.hpp @@ -0,0 +1,38 @@ +//==-------- version --- SYCL preprocessor definitions ---------*- C++ -*---==// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#ifndef __SYCL_KHR_INCLUDES_VERSION +#define __SYCL_KHR_INCLUDES_VERSION + +// SYCL_LANGUAGE_VERSION is currently defined by the compiler. If we ever change +// that, then it must be defined in this header (directly, or indirectly) +#ifndef SYCL_LANGUAGE_VERSION +// Can't build sycl-ls - it seems like it uses sycl.hpp with a 3rd-party +// compiler. +// Ideally, this should be set by the compiler, because it allows to specify +// a version. +// However, we may need to have some fallback here if someone includes SYCL +// headers into their host applications and use 3rd-party compilers. +// #error "SYCL_LANGUAGE_VERSION is not defined, please report this as a bug" +#endif + +/// We support everything from the specification +#define SYCL_FEATURE_SET_FULL 1 + +/// This macro must be defined to 1 when SYCL implementation allows user +/// applications to explicitly declare certain class types as device copyable +/// by adding specializations of is_device_copyable type trait class. +#define SYCL_DEVICE_COPYABLE 1 + +// SYCL_EXTERNAL definition +#include + +// Extension-provided macro +#include + +#endif // __SYCL_KHR_INCLUDES_VERSION diff --git a/sycl/include/sycl/sycl.hpp b/sycl/include/sycl/sycl.hpp index a09870dd77c30..ec3708a32cf63 100644 --- a/sycl/include/sycl/sycl.hpp +++ b/sycl/include/sycl/sycl.hpp @@ -32,6 +32,9 @@ can be disabled by setting SYCL_DISABLE_FSYCL_SYCLHPP_WARNING macro.") #undef __SYCL_TOSTRING #undef __SYCL_STRINGIFY +// All SYCL macro are provided through this header +#include + #include #include diff --git a/sycl/source/feature_test.hpp.in b/sycl/source/feature_test.hpp.in index f89754b9cb465..f4e21f60ee760 100644 --- a/sycl/source/feature_test.hpp.in +++ b/sycl/source/feature_test.hpp.in @@ -134,6 +134,7 @@ inline namespace _V1 { #define SYCL_KHR_WORK_ITEM_QUERIES 1 #define SYCL_KHR_STATIC_ADDRSPACE_CAST 1 #define SYCL_KHR_DYNAMIC_ADDRSPACE_CAST 1 +#define SYCL_KHR_INCLUDES 1 #endif #ifndef __has_include diff --git a/sycl/test/include_deps/sycl_khr_includes_accessor.hpp.cpp b/sycl/test/include_deps/sycl_khr_includes_accessor.hpp.cpp new file mode 100644 index 0000000000000..80e875ea10bed --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_accessor.hpp.cpp @@ -0,0 +1,93 @@ +// Use update_test.sh to (re-)generate the checks +// REQUIRES: linux +// RUN: bash %S/deps_known.sh sycl/khr/includes/accessor.hpp | FileCheck %s + +// CHECK-LABEL: Dependencies for : +// CHECK-NEXT: /dev/null: /dev/null +// CHECK-NEXT: khr/includes/accessor.hpp +// CHECK-NEXT: khr/includes/version.hpp +// CHECK-NEXT: detail/defines_elementary.hpp +// CHECK-NEXT: feature_test.hpp +// CHECK-NEXT: accessor.hpp +// CHECK-NEXT: access/access.hpp +// CHECK-NEXT: buffer.hpp +// CHECK-NEXT: backend_types.hpp +// CHECK-NEXT: stl_wrappers/cstdlib +// CHECK-NEXT: detail/array.hpp +// CHECK-NEXT: detail/common.hpp +// CHECK-NEXT: detail/export.hpp +// CHECK-NEXT: stl_wrappers/cassert +// CHECK-NEXT: stl_wrappers/assert.h +// CHECK-NEXT: __spirv/spirv_vars.hpp +// CHECK-NEXT: detail/fwd/accessor.hpp +// CHECK-NEXT: detail/defines.hpp +// CHECK-NEXT: detail/helpers.hpp +// CHECK-NEXT: __spirv/spirv_types.hpp +// CHECK-NEXT: memory_enums.hpp +// CHECK-NEXT: detail/iostream_proxy.hpp +// CHECK-NEXT: detail/is_device_copyable.hpp +// CHECK-NEXT: detail/owner_less_base.hpp +// CHECK-NEXT: detail/impl_utils.hpp +// CHECK-NEXT: ext/oneapi/weak_object_base.hpp +// CHECK-NEXT: detail/property_helper.hpp +// CHECK-NEXT: detail/stl_type_traits.hpp +// CHECK-NEXT: detail/sycl_mem_obj_allocator.hpp +// CHECK-NEXT: detail/aligned_allocator.hpp +// CHECK-NEXT: detail/os_util.hpp +// CHECK-NEXT: ext/oneapi/accessor_property_list.hpp +// CHECK-NEXT: detail/property_list_base.hpp +// CHECK-NEXT: exception.hpp +// CHECK-NEXT: detail/string.hpp +// CHECK-NEXT: property_list.hpp +// CHECK-NEXT: properties/property_traits.hpp +// CHECK-NEXT: id.hpp +// CHECK-NEXT: range.hpp +// CHECK-NEXT: ur_api.h +// CHECK-NEXT: detail/accessor_iterator.hpp +// CHECK-NEXT: detail/generic_type_traits.hpp +// CHECK-NEXT: aliases.hpp +// CHECK-NEXT: bit_cast.hpp +// CHECK-NEXT: detail/fwd/half.hpp +// CHECK-NEXT: detail/type_traits.hpp +// CHECK-NEXT: detail/type_traits/vec_marray_traits.hpp +// CHECK-NEXT: detail/fwd/multi_ptr.hpp +// CHECK-NEXT: detail/handler_proxy.hpp +// CHECK-NEXT: multi_ptr.hpp +// CHECK-NEXT: detail/address_space_cast.hpp +// CHECK-NEXT: pointers.hpp +// CHECK-NEXT: properties/accessor_properties.hpp +// CHECK-NEXT: properties/runtime_accessor_properties.def +// CHECK-NEXT: properties/buffer_properties.hpp +// CHECK-NEXT: context.hpp +// CHECK-NEXT: async_handler.hpp +// CHECK-NEXT: detail/info_desc_helpers.hpp +// CHECK-NEXT: aspects.hpp +// CHECK-NEXT: info/aspects.def +// CHECK-NEXT: info/aspects_deprecated.def +// CHECK-NEXT: info/info_desc.hpp +// CHECK-NEXT: ext/oneapi/experimental/device_architecture.hpp +// CHECK-NEXT: ext/oneapi/experimental/device_architecture.def +// CHECK-NEXT: ext/oneapi/experimental/forward_progress.hpp +// CHECK-NEXT: ext/oneapi/matrix/query-types.hpp +// CHECK-NEXT: ext/oneapi/bfloat16.hpp +// CHECK-NEXT: half_type.hpp +// CHECK-NEXT: ext/oneapi/matrix/matrix-unified-utils.hpp +// CHECK-NEXT: info/platform_traits.def +// CHECK-NEXT: info/context_traits.def +// CHECK-NEXT: info/device_traits_2020_deprecated.def +// CHECK-NEXT: info/device_traits_deprecated.def +// CHECK-NEXT: info/device_traits.def +// CHECK-NEXT: info/queue_traits.def +// CHECK-NEXT: info/kernel_traits.def +// CHECK-NEXT: info/kernel_device_specific_traits.def +// CHECK-NEXT: info/event_traits.def +// CHECK-NEXT: info/event_profiling_traits.def +// CHECK-NEXT: info/ext_codeplay_device_traits.def +// CHECK-NEXT: info/ext_intel_device_traits.def +// CHECK-NEXT: info/ext_intel_kernel_info_traits.def +// CHECK-NEXT: info/ext_oneapi_device_traits.def +// CHECK-NEXT: info/ext_oneapi_kernel_queue_specific_traits.def +// CHECK-NEXT: info/sycl_backend_traits.def +// CHECK-NEXT: usm/usm_enums.hpp +// CHECK-NEXT: properties/buffer_properties.def +// CHECK-EMPTY: diff --git a/sycl/test/include_deps/sycl_khr_includes_atomic.hpp.cpp b/sycl/test/include_deps/sycl_khr_includes_atomic.hpp.cpp new file mode 100644 index 0000000000000..834f5ab3cd479 --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_atomic.hpp.cpp @@ -0,0 +1,39 @@ +// Use update_test.sh to (re-)generate the checks +// REQUIRES: linux +// RUN: bash %S/deps_known.sh sycl/khr/includes/atomic.hpp | FileCheck %s + +// CHECK-LABEL: Dependencies for : +// CHECK-NEXT: /dev/null: /dev/null +// CHECK-NEXT: khr/includes/atomic.hpp +// CHECK-NEXT: khr/includes/version.hpp +// CHECK-NEXT: detail/defines_elementary.hpp +// CHECK-NEXT: feature_test.hpp +// CHECK-NEXT: atomic_fence.hpp +// CHECK-NEXT: memory_enums.hpp +// CHECK-NEXT: detail/spirv.hpp +// CHECK-NEXT: __spirv/spirv_ops.hpp +// CHECK-NEXT: __spirv/spirv_types.hpp +// CHECK-NEXT: detail/defines.hpp +// CHECK-NEXT: detail/export.hpp +// CHECK-NEXT: access/access.hpp +// CHECK-NEXT: detail/generic_type_traits.hpp +// CHECK-NEXT: aliases.hpp +// CHECK-NEXT: bit_cast.hpp +// CHECK-NEXT: detail/fwd/half.hpp +// CHECK-NEXT: detail/type_traits.hpp +// CHECK-NEXT: detail/type_traits/vec_marray_traits.hpp +// CHECK-NEXT: detail/fwd/multi_ptr.hpp +// CHECK-NEXT: id.hpp +// CHECK-NEXT: detail/array.hpp +// CHECK-NEXT: range.hpp +// CHECK-NEXT: multi_ptr.hpp +// CHECK-NEXT: detail/address_space_cast.hpp +// CHECK-NEXT: detail/fwd/accessor.hpp +// CHECK-NEXT: stl_wrappers/cstdlib +// CHECK-NEXT: detail/memcpy.hpp +// CHECK-NEXT: atomic_ref.hpp +// CHECK-NEXT: aspects.hpp +// CHECK-NEXT: info/aspects.def +// CHECK-NEXT: info/aspects_deprecated.def +// CHECK-NEXT: ext/oneapi/experimental/address_cast.hpp +// CHECK-EMPTY: diff --git a/sycl/test/include_deps/sycl_khr_includes_bit.hpp.cpp b/sycl/test/include_deps/sycl_khr_includes_bit.hpp.cpp new file mode 100644 index 0000000000000..bf8697a593020 --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_bit.hpp.cpp @@ -0,0 +1,12 @@ +// Use update_test.sh to (re-)generate the checks +// REQUIRES: linux +// RUN: bash %S/deps_known.sh sycl/khr/includes/bit.hpp | FileCheck %s + +// CHECK-LABEL: Dependencies for : +// CHECK-NEXT: /dev/null: /dev/null +// CHECK-NEXT: khr/includes/bit.hpp +// CHECK-NEXT: khr/includes/version.hpp +// CHECK-NEXT: detail/defines_elementary.hpp +// CHECK-NEXT: feature_test.hpp +// CHECK-NEXT: bit_cast.hpp +// CHECK-EMPTY: diff --git a/sycl/test/include_deps/sycl_khr_includes_buffer.hpp.cpp b/sycl/test/include_deps/sycl_khr_includes_buffer.hpp.cpp new file mode 100644 index 0000000000000..75940ddcfd5aa --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_buffer.hpp.cpp @@ -0,0 +1,45 @@ +// Use update_test.sh to (re-)generate the checks +// REQUIRES: linux +// RUN: bash %S/deps_known.sh sycl/khr/includes/buffer.hpp | FileCheck %s + +// CHECK-LABEL: Dependencies for : +// CHECK-NEXT: /dev/null: /dev/null +// CHECK-NEXT: khr/includes/buffer.hpp +// CHECK-NEXT: khr/includes/version.hpp +// CHECK-NEXT: detail/defines_elementary.hpp +// CHECK-NEXT: feature_test.hpp +// CHECK-NEXT: buffer.hpp +// CHECK-NEXT: access/access.hpp +// CHECK-NEXT: backend_types.hpp +// CHECK-NEXT: stl_wrappers/cstdlib +// CHECK-NEXT: detail/array.hpp +// CHECK-NEXT: detail/common.hpp +// CHECK-NEXT: detail/export.hpp +// CHECK-NEXT: stl_wrappers/cassert +// CHECK-NEXT: stl_wrappers/assert.h +// CHECK-NEXT: __spirv/spirv_vars.hpp +// CHECK-NEXT: detail/fwd/accessor.hpp +// CHECK-NEXT: detail/defines.hpp +// CHECK-NEXT: detail/helpers.hpp +// CHECK-NEXT: __spirv/spirv_types.hpp +// CHECK-NEXT: memory_enums.hpp +// CHECK-NEXT: detail/iostream_proxy.hpp +// CHECK-NEXT: detail/is_device_copyable.hpp +// CHECK-NEXT: detail/owner_less_base.hpp +// CHECK-NEXT: detail/impl_utils.hpp +// CHECK-NEXT: ext/oneapi/weak_object_base.hpp +// CHECK-NEXT: detail/property_helper.hpp +// CHECK-NEXT: detail/stl_type_traits.hpp +// CHECK-NEXT: detail/sycl_mem_obj_allocator.hpp +// CHECK-NEXT: detail/aligned_allocator.hpp +// CHECK-NEXT: detail/os_util.hpp +// CHECK-NEXT: ext/oneapi/accessor_property_list.hpp +// CHECK-NEXT: detail/property_list_base.hpp +// CHECK-NEXT: exception.hpp +// CHECK-NEXT: detail/string.hpp +// CHECK-NEXT: property_list.hpp +// CHECK-NEXT: properties/property_traits.hpp +// CHECK-NEXT: id.hpp +// CHECK-NEXT: range.hpp +// CHECK-NEXT: ur_api.h +// CHECK-EMPTY: diff --git a/sycl/test/include_deps/sycl_khr_includes_byte.hpp.cpp b/sycl/test/include_deps/sycl_khr_includes_byte.hpp.cpp new file mode 100644 index 0000000000000..a399cd9d18b1d --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_byte.hpp.cpp @@ -0,0 +1,12 @@ +// Use update_test.sh to (re-)generate the checks +// REQUIRES: linux +// RUN: bash %S/deps_known.sh sycl/khr/includes/byte.hpp | FileCheck %s + +// CHECK-LABEL: Dependencies for : +// CHECK-NEXT: /dev/null: /dev/null +// CHECK-NEXT: khr/includes/byte.hpp +// CHECK-NEXT: khr/includes/version.hpp +// CHECK-NEXT: detail/defines_elementary.hpp +// CHECK-NEXT: feature_test.hpp +// CHECK-NEXT: aliases.hpp +// CHECK-EMPTY: diff --git a/sycl/test/include_deps/sycl_khr_includes_context.hpp.cpp b/sycl/test/include_deps/sycl_khr_includes_context.hpp.cpp new file mode 100644 index 0000000000000..ddaf62e33ae82 --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_context.hpp.cpp @@ -0,0 +1,70 @@ +// Use update_test.sh to (re-)generate the checks +// REQUIRES: linux +// RUN: bash %S/deps_known.sh sycl/khr/includes/context.hpp | FileCheck %s + +// CHECK-LABEL: Dependencies for : +// CHECK-NEXT: /dev/null: /dev/null +// CHECK-NEXT: khr/includes/context.hpp +// CHECK-NEXT: khr/includes/version.hpp +// CHECK-NEXT: detail/defines_elementary.hpp +// CHECK-NEXT: feature_test.hpp +// CHECK-NEXT: context.hpp +// CHECK-NEXT: async_handler.hpp +// CHECK-NEXT: stl_wrappers/cstdlib +// CHECK-NEXT: backend_types.hpp +// CHECK-NEXT: detail/export.hpp +// CHECK-NEXT: detail/info_desc_helpers.hpp +// CHECK-NEXT: aspects.hpp +// CHECK-NEXT: detail/defines.hpp +// CHECK-NEXT: info/aspects.def +// CHECK-NEXT: info/aspects_deprecated.def +// CHECK-NEXT: id.hpp +// CHECK-NEXT: detail/array.hpp +// CHECK-NEXT: range.hpp +// CHECK-NEXT: info/info_desc.hpp +// CHECK-NEXT: ur_api.h +// CHECK-NEXT: detail/type_traits.hpp +// CHECK-NEXT: detail/type_traits/vec_marray_traits.hpp +// CHECK-NEXT: detail/fwd/multi_ptr.hpp +// CHECK-NEXT: access/access.hpp +// CHECK-NEXT: ext/oneapi/experimental/device_architecture.hpp +// CHECK-NEXT: ext/oneapi/experimental/device_architecture.def +// CHECK-NEXT: ext/oneapi/experimental/forward_progress.hpp +// CHECK-NEXT: ext/oneapi/matrix/query-types.hpp +// CHECK-NEXT: ext/oneapi/bfloat16.hpp +// CHECK-NEXT: aliases.hpp +// CHECK-NEXT: bit_cast.hpp +// CHECK-NEXT: half_type.hpp +// CHECK-NEXT: detail/fwd/half.hpp +// CHECK-NEXT: ext/oneapi/matrix/matrix-unified-utils.hpp +// CHECK-NEXT: __spirv/spirv_types.hpp +// CHECK-NEXT: info/platform_traits.def +// CHECK-NEXT: info/context_traits.def +// CHECK-NEXT: info/device_traits_2020_deprecated.def +// CHECK-NEXT: info/device_traits_deprecated.def +// CHECK-NEXT: info/device_traits.def +// CHECK-NEXT: info/queue_traits.def +// CHECK-NEXT: info/kernel_traits.def +// CHECK-NEXT: info/kernel_device_specific_traits.def +// CHECK-NEXT: info/event_traits.def +// CHECK-NEXT: info/event_profiling_traits.def +// CHECK-NEXT: info/ext_codeplay_device_traits.def +// CHECK-NEXT: info/ext_intel_device_traits.def +// CHECK-NEXT: info/ext_intel_kernel_info_traits.def +// CHECK-NEXT: info/ext_oneapi_device_traits.def +// CHECK-NEXT: info/ext_oneapi_kernel_queue_specific_traits.def +// CHECK-NEXT: info/sycl_backend_traits.def +// CHECK-NEXT: detail/owner_less_base.hpp +// CHECK-NEXT: detail/impl_utils.hpp +// CHECK-NEXT: stl_wrappers/cassert +// CHECK-NEXT: stl_wrappers/assert.h +// CHECK-NEXT: __spirv/spirv_vars.hpp +// CHECK-NEXT: ext/oneapi/weak_object_base.hpp +// CHECK-NEXT: property_list.hpp +// CHECK-NEXT: detail/property_helper.hpp +// CHECK-NEXT: detail/property_list_base.hpp +// CHECK-NEXT: exception.hpp +// CHECK-NEXT: detail/string.hpp +// CHECK-NEXT: properties/property_traits.hpp +// CHECK-NEXT: usm/usm_enums.hpp +// CHECK-EMPTY: diff --git a/sycl/test/include_deps/sycl_khr_includes_device.hpp.cpp b/sycl/test/include_deps/sycl_khr_includes_device.hpp.cpp new file mode 100644 index 0000000000000..50af4752c8837 --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_device.hpp.cpp @@ -0,0 +1,67 @@ +// Use update_test.sh to (re-)generate the checks +// REQUIRES: linux +// RUN: bash %S/deps_known.sh sycl/khr/includes/device.hpp | FileCheck %s + +// CHECK-LABEL: Dependencies for : +// CHECK-NEXT: /dev/null: /dev/null +// CHECK-NEXT: khr/includes/device.hpp +// CHECK-NEXT: khr/includes/version.hpp +// CHECK-NEXT: detail/defines_elementary.hpp +// CHECK-NEXT: feature_test.hpp +// CHECK-NEXT: aspects.hpp +// CHECK-NEXT: detail/defines.hpp +// CHECK-NEXT: info/aspects.def +// CHECK-NEXT: info/aspects_deprecated.def +// CHECK-NEXT: device.hpp +// CHECK-NEXT: backend_types.hpp +// CHECK-NEXT: stl_wrappers/cstdlib +// CHECK-NEXT: detail/export.hpp +// CHECK-NEXT: detail/info_desc_helpers.hpp +// CHECK-NEXT: id.hpp +// CHECK-NEXT: detail/array.hpp +// CHECK-NEXT: range.hpp +// CHECK-NEXT: info/info_desc.hpp +// CHECK-NEXT: ur_api.h +// CHECK-NEXT: detail/type_traits.hpp +// CHECK-NEXT: detail/type_traits/vec_marray_traits.hpp +// CHECK-NEXT: detail/fwd/multi_ptr.hpp +// CHECK-NEXT: access/access.hpp +// CHECK-NEXT: ext/oneapi/experimental/device_architecture.hpp +// CHECK-NEXT: ext/oneapi/experimental/device_architecture.def +// CHECK-NEXT: ext/oneapi/experimental/forward_progress.hpp +// CHECK-NEXT: ext/oneapi/matrix/query-types.hpp +// CHECK-NEXT: ext/oneapi/bfloat16.hpp +// CHECK-NEXT: aliases.hpp +// CHECK-NEXT: bit_cast.hpp +// CHECK-NEXT: half_type.hpp +// CHECK-NEXT: detail/fwd/half.hpp +// CHECK-NEXT: ext/oneapi/matrix/matrix-unified-utils.hpp +// CHECK-NEXT: __spirv/spirv_types.hpp +// CHECK-NEXT: info/platform_traits.def +// CHECK-NEXT: info/context_traits.def +// CHECK-NEXT: info/device_traits_2020_deprecated.def +// CHECK-NEXT: info/device_traits_deprecated.def +// CHECK-NEXT: info/device_traits.def +// CHECK-NEXT: info/queue_traits.def +// CHECK-NEXT: info/kernel_traits.def +// CHECK-NEXT: info/kernel_device_specific_traits.def +// CHECK-NEXT: info/event_traits.def +// CHECK-NEXT: info/event_profiling_traits.def +// CHECK-NEXT: info/ext_codeplay_device_traits.def +// CHECK-NEXT: info/ext_intel_device_traits.def +// CHECK-NEXT: info/ext_intel_kernel_info_traits.def +// CHECK-NEXT: info/ext_oneapi_device_traits.def +// CHECK-NEXT: info/ext_oneapi_kernel_queue_specific_traits.def +// CHECK-NEXT: info/sycl_backend_traits.def +// CHECK-NEXT: detail/owner_less_base.hpp +// CHECK-NEXT: detail/impl_utils.hpp +// CHECK-NEXT: stl_wrappers/cassert +// CHECK-NEXT: stl_wrappers/assert.h +// CHECK-NEXT: __spirv/spirv_vars.hpp +// CHECK-NEXT: ext/oneapi/weak_object_base.hpp +// CHECK-NEXT: detail/string.hpp +// CHECK-NEXT: detail/string_view.hpp +// CHECK-NEXT: detail/util.hpp +// CHECK-NEXT: device_selector.hpp +// CHECK-NEXT: kernel_bundle_enums.hpp +// CHECK-EMPTY: diff --git a/sycl/test/include_deps/sycl_khr_includes_event.hpp.cpp b/sycl/test/include_deps/sycl_khr_includes_event.hpp.cpp new file mode 100644 index 0000000000000..2e2db9ccc221a --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_event.hpp.cpp @@ -0,0 +1,62 @@ +// Use update_test.sh to (re-)generate the checks +// REQUIRES: linux +// RUN: bash %S/deps_known.sh sycl/khr/includes/event.hpp | FileCheck %s + +// CHECK-LABEL: Dependencies for : +// CHECK-NEXT: /dev/null: /dev/null +// CHECK-NEXT: khr/includes/event.hpp +// CHECK-NEXT: khr/includes/version.hpp +// CHECK-NEXT: detail/defines_elementary.hpp +// CHECK-NEXT: feature_test.hpp +// CHECK-NEXT: event.hpp +// CHECK-NEXT: backend_types.hpp +// CHECK-NEXT: stl_wrappers/cstdlib +// CHECK-NEXT: detail/export.hpp +// CHECK-NEXT: detail/info_desc_helpers.hpp +// CHECK-NEXT: aspects.hpp +// CHECK-NEXT: detail/defines.hpp +// CHECK-NEXT: info/aspects.def +// CHECK-NEXT: info/aspects_deprecated.def +// CHECK-NEXT: id.hpp +// CHECK-NEXT: detail/array.hpp +// CHECK-NEXT: range.hpp +// CHECK-NEXT: info/info_desc.hpp +// CHECK-NEXT: ur_api.h +// CHECK-NEXT: detail/type_traits.hpp +// CHECK-NEXT: detail/type_traits/vec_marray_traits.hpp +// CHECK-NEXT: detail/fwd/multi_ptr.hpp +// CHECK-NEXT: access/access.hpp +// CHECK-NEXT: ext/oneapi/experimental/device_architecture.hpp +// CHECK-NEXT: ext/oneapi/experimental/device_architecture.def +// CHECK-NEXT: ext/oneapi/experimental/forward_progress.hpp +// CHECK-NEXT: ext/oneapi/matrix/query-types.hpp +// CHECK-NEXT: ext/oneapi/bfloat16.hpp +// CHECK-NEXT: aliases.hpp +// CHECK-NEXT: bit_cast.hpp +// CHECK-NEXT: half_type.hpp +// CHECK-NEXT: detail/fwd/half.hpp +// CHECK-NEXT: ext/oneapi/matrix/matrix-unified-utils.hpp +// CHECK-NEXT: __spirv/spirv_types.hpp +// CHECK-NEXT: info/platform_traits.def +// CHECK-NEXT: info/context_traits.def +// CHECK-NEXT: info/device_traits_2020_deprecated.def +// CHECK-NEXT: info/device_traits_deprecated.def +// CHECK-NEXT: info/device_traits.def +// CHECK-NEXT: info/queue_traits.def +// CHECK-NEXT: info/kernel_traits.def +// CHECK-NEXT: info/kernel_device_specific_traits.def +// CHECK-NEXT: info/event_traits.def +// CHECK-NEXT: info/event_profiling_traits.def +// CHECK-NEXT: info/ext_codeplay_device_traits.def +// CHECK-NEXT: info/ext_intel_device_traits.def +// CHECK-NEXT: info/ext_intel_kernel_info_traits.def +// CHECK-NEXT: info/ext_oneapi_device_traits.def +// CHECK-NEXT: info/ext_oneapi_kernel_queue_specific_traits.def +// CHECK-NEXT: info/sycl_backend_traits.def +// CHECK-NEXT: detail/owner_less_base.hpp +// CHECK-NEXT: detail/impl_utils.hpp +// CHECK-NEXT: stl_wrappers/cassert +// CHECK-NEXT: stl_wrappers/assert.h +// CHECK-NEXT: __spirv/spirv_vars.hpp +// CHECK-NEXT: ext/oneapi/weak_object_base.hpp +// CHECK-EMPTY: diff --git a/sycl/test/include_deps/sycl_khr_includes_exception.hpp.cpp b/sycl/test/include_deps/sycl_khr_includes_exception.hpp.cpp new file mode 100644 index 0000000000000..cffad7c652484 --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_exception.hpp.cpp @@ -0,0 +1,17 @@ +// Use update_test.sh to (re-)generate the checks +// REQUIRES: linux +// RUN: bash %S/deps_known.sh sycl/khr/includes/exception.hpp | FileCheck %s + +// CHECK-LABEL: Dependencies for : +// CHECK-NEXT: /dev/null: /dev/null +// CHECK-NEXT: khr/includes/exception.hpp +// CHECK-NEXT: khr/includes/version.hpp +// CHECK-NEXT: detail/defines_elementary.hpp +// CHECK-NEXT: feature_test.hpp +// CHECK-NEXT: exception.hpp +// CHECK-NEXT: detail/export.hpp +// CHECK-NEXT: detail/string.hpp +// CHECK-NEXT: stl_wrappers/cstdlib +// CHECK-NEXT: exception_list.hpp +// CHECK-NEXT: detail/iostream_proxy.hpp +// CHECK-EMPTY: diff --git a/sycl/test/include_deps/sycl_khr_includes_functional.hpp.cpp b/sycl/test/include_deps/sycl_khr_includes_functional.hpp.cpp new file mode 100644 index 0000000000000..692e49c927e57 --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_functional.hpp.cpp @@ -0,0 +1,13 @@ +// Use update_test.sh to (re-)generate the checks +// REQUIRES: linux +// RUN: bash %S/deps_known.sh sycl/khr/includes/functional.hpp | FileCheck %s + +// CHECK-LABEL: Dependencies for : +// CHECK-NEXT: /dev/null: /dev/null +// CHECK-NEXT: khr/includes/functional.hpp +// CHECK-NEXT: khr/includes/version.hpp +// CHECK-NEXT: detail/defines_elementary.hpp +// CHECK-NEXT: feature_test.hpp +// CHECK-NEXT: functional.hpp +// CHECK-NEXT: stl_wrappers/cstdlib +// CHECK-EMPTY: diff --git a/sycl/test/include_deps/sycl_khr_includes_group_algorithms.hpp.cpp b/sycl/test/include_deps/sycl_khr_includes_group_algorithms.hpp.cpp new file mode 100644 index 0000000000000..e1a20d28f6246 --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_group_algorithms.hpp.cpp @@ -0,0 +1,59 @@ +// Use update_test.sh to (re-)generate the checks +// REQUIRES: linux +// RUN: bash %S/deps_known.sh sycl/khr/includes/group_algorithms.hpp | FileCheck %s + +// CHECK-LABEL: Dependencies for : +// CHECK-NEXT: /dev/null: /dev/null +// CHECK-NEXT: khr/includes/group_algorithms.hpp +// CHECK-NEXT: khr/includes/version.hpp +// CHECK-NEXT: detail/defines_elementary.hpp +// CHECK-NEXT: feature_test.hpp +// CHECK-NEXT: group_algorithm.hpp +// CHECK-NEXT: detail/array.hpp +// CHECK-NEXT: detail/helpers.hpp +// CHECK-NEXT: __spirv/spirv_types.hpp +// CHECK-NEXT: detail/defines.hpp +// CHECK-NEXT: access/access.hpp +// CHECK-NEXT: detail/export.hpp +// CHECK-NEXT: memory_enums.hpp +// CHECK-NEXT: __spirv/spirv_vars.hpp +// CHECK-NEXT: detail/item_base.hpp +// CHECK-NEXT: id.hpp +// CHECK-NEXT: range.hpp +// CHECK-NEXT: detail/type_traits.hpp +// CHECK-NEXT: detail/type_traits/vec_marray_traits.hpp +// CHECK-NEXT: detail/fwd/multi_ptr.hpp +// CHECK-NEXT: exception.hpp +// CHECK-NEXT: detail/string.hpp +// CHECK-NEXT: stl_wrappers/cstdlib +// CHECK-NEXT: functional.hpp +// CHECK-NEXT: group.hpp +// CHECK-NEXT: detail/common.hpp +// CHECK-NEXT: stl_wrappers/cassert +// CHECK-NEXT: stl_wrappers/assert.h +// CHECK-NEXT: detail/generic_type_traits.hpp +// CHECK-NEXT: aliases.hpp +// CHECK-NEXT: bit_cast.hpp +// CHECK-NEXT: detail/fwd/half.hpp +// CHECK-NEXT: device_event.hpp +// CHECK-NEXT: item.hpp +// CHECK-NEXT: pointers.hpp +// CHECK-NEXT: half_type.hpp +// CHECK-NEXT: aspects.hpp +// CHECK-NEXT: info/aspects.def +// CHECK-NEXT: info/aspects_deprecated.def +// CHECK-NEXT: known_identity.hpp +// CHECK-NEXT: marray.hpp +// CHECK-NEXT: vector.hpp +// CHECK-NEXT: detail/named_swizzles_mixin.hpp +// CHECK-NEXT: detail/vector_arith.hpp +// CHECK-NEXT: detail/fwd/accessor.hpp +// CHECK-NEXT: detail/memcpy.hpp +// CHECK-NEXT: nd_item.hpp +// CHECK-NEXT: nd_range.hpp +// CHECK-NEXT: ext/oneapi/functional.hpp +// CHECK-NEXT: detail/spirv.hpp +// CHECK-NEXT: __spirv/spirv_ops.hpp +// CHECK-NEXT: multi_ptr.hpp +// CHECK-NEXT: detail/address_space_cast.hpp +// CHECK-EMPTY: diff --git a/sycl/test/include_deps/sycl_khr_includes_groups.hpp.cpp b/sycl/test/include_deps/sycl_khr_includes_groups.hpp.cpp new file mode 100644 index 0000000000000..bef233a3cca27 --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_groups.hpp.cpp @@ -0,0 +1,61 @@ +// Use update_test.sh to (re-)generate the checks +// REQUIRES: linux +// RUN: bash %S/deps_known.sh sycl/khr/includes/groups.hpp | FileCheck %s + +// CHECK-LABEL: Dependencies for : +// CHECK-NEXT: /dev/null: /dev/null +// CHECK-NEXT: khr/includes/groups.hpp +// CHECK-NEXT: khr/includes/version.hpp +// CHECK-NEXT: detail/defines_elementary.hpp +// CHECK-NEXT: feature_test.hpp +// CHECK-NEXT: group.hpp +// CHECK-NEXT: __spirv/spirv_types.hpp +// CHECK-NEXT: detail/defines.hpp +// CHECK-NEXT: access/access.hpp +// CHECK-NEXT: detail/common.hpp +// CHECK-NEXT: detail/export.hpp +// CHECK-NEXT: stl_wrappers/cassert +// CHECK-NEXT: stl_wrappers/assert.h +// CHECK-NEXT: __spirv/spirv_vars.hpp +// CHECK-NEXT: detail/fwd/multi_ptr.hpp +// CHECK-NEXT: detail/generic_type_traits.hpp +// CHECK-NEXT: aliases.hpp +// CHECK-NEXT: bit_cast.hpp +// CHECK-NEXT: detail/fwd/half.hpp +// CHECK-NEXT: detail/type_traits.hpp +// CHECK-NEXT: detail/type_traits/vec_marray_traits.hpp +// CHECK-NEXT: detail/helpers.hpp +// CHECK-NEXT: memory_enums.hpp +// CHECK-NEXT: device_event.hpp +// CHECK-NEXT: id.hpp +// CHECK-NEXT: detail/array.hpp +// CHECK-NEXT: range.hpp +// CHECK-NEXT: item.hpp +// CHECK-NEXT: detail/item_base.hpp +// CHECK-NEXT: pointers.hpp +// CHECK-NEXT: group_algorithm.hpp +// CHECK-NEXT: exception.hpp +// CHECK-NEXT: detail/string.hpp +// CHECK-NEXT: stl_wrappers/cstdlib +// CHECK-NEXT: functional.hpp +// CHECK-NEXT: half_type.hpp +// CHECK-NEXT: aspects.hpp +// CHECK-NEXT: info/aspects.def +// CHECK-NEXT: info/aspects_deprecated.def +// CHECK-NEXT: known_identity.hpp +// CHECK-NEXT: marray.hpp +// CHECK-NEXT: vector.hpp +// CHECK-NEXT: detail/named_swizzles_mixin.hpp +// CHECK-NEXT: detail/vector_arith.hpp +// CHECK-NEXT: detail/fwd/accessor.hpp +// CHECK-NEXT: detail/memcpy.hpp +// CHECK-NEXT: nd_item.hpp +// CHECK-NEXT: nd_range.hpp +// CHECK-NEXT: ext/oneapi/functional.hpp +// CHECK-NEXT: detail/spirv.hpp +// CHECK-NEXT: __spirv/spirv_ops.hpp +// CHECK-NEXT: multi_ptr.hpp +// CHECK-NEXT: detail/address_space_cast.hpp +// CHECK-NEXT: group_barrier.hpp +// CHECK-NEXT: sub_group.hpp +// CHECK-EMPTY: diff --git a/sycl/test/include_deps/sycl_khr_includes_half.hpp.cpp b/sycl/test/include_deps/sycl_khr_includes_half.hpp.cpp new file mode 100644 index 0000000000000..f6026b94c8697 --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_half.hpp.cpp @@ -0,0 +1,19 @@ +// Use update_test.sh to (re-)generate the checks +// REQUIRES: linux +// RUN: bash %S/deps_known.sh sycl/khr/includes/half.hpp | FileCheck %s + +// CHECK-LABEL: Dependencies for : +// CHECK-NEXT: /dev/null: /dev/null +// CHECK-NEXT: khr/includes/half.hpp +// CHECK-NEXT: khr/includes/version.hpp +// CHECK-NEXT: detail/defines_elementary.hpp +// CHECK-NEXT: feature_test.hpp +// CHECK-NEXT: half_type.hpp +// CHECK-NEXT: bit_cast.hpp +// CHECK-NEXT: detail/export.hpp +// CHECK-NEXT: detail/fwd/half.hpp +// CHECK-NEXT: aspects.hpp +// CHECK-NEXT: detail/defines.hpp +// CHECK-NEXT: info/aspects.def +// CHECK-NEXT: info/aspects_deprecated.def +// CHECK-EMPTY: diff --git a/sycl/test/include_deps/sycl_khr_includes_handler.hpp.cpp b/sycl/test/include_deps/sycl_khr_includes_handler.hpp.cpp new file mode 100644 index 0000000000000..9d5f05f24d95d --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_handler.hpp.cpp @@ -0,0 +1,155 @@ +// Use update_test.sh to (re-)generate the checks +// REQUIRES: linux +// RUN: bash %S/deps_known.sh sycl/khr/includes/handler.hpp | FileCheck %s + +// CHECK-LABEL: Dependencies for : +// CHECK-NEXT: /dev/null: /dev/null +// CHECK-NEXT: khr/includes/handler.hpp +// CHECK-NEXT: khr/includes/version.hpp +// CHECK-NEXT: detail/defines_elementary.hpp +// CHECK-NEXT: feature_test.hpp +// CHECK-NEXT: handler.hpp +// CHECK-NEXT: access/access.hpp +// CHECK-NEXT: accessor.hpp +// CHECK-NEXT: buffer.hpp +// CHECK-NEXT: backend_types.hpp +// CHECK-NEXT: stl_wrappers/cstdlib +// CHECK-NEXT: detail/array.hpp +// CHECK-NEXT: detail/common.hpp +// CHECK-NEXT: detail/export.hpp +// CHECK-NEXT: stl_wrappers/cassert +// CHECK-NEXT: stl_wrappers/assert.h +// CHECK-NEXT: __spirv/spirv_vars.hpp +// CHECK-NEXT: detail/fwd/accessor.hpp +// CHECK-NEXT: detail/defines.hpp +// CHECK-NEXT: detail/helpers.hpp +// CHECK-NEXT: __spirv/spirv_types.hpp +// CHECK-NEXT: memory_enums.hpp +// CHECK-NEXT: detail/iostream_proxy.hpp +// CHECK-NEXT: detail/is_device_copyable.hpp +// CHECK-NEXT: detail/owner_less_base.hpp +// CHECK-NEXT: detail/impl_utils.hpp +// CHECK-NEXT: ext/oneapi/weak_object_base.hpp +// CHECK-NEXT: detail/property_helper.hpp +// CHECK-NEXT: detail/stl_type_traits.hpp +// CHECK-NEXT: detail/sycl_mem_obj_allocator.hpp +// CHECK-NEXT: detail/aligned_allocator.hpp +// CHECK-NEXT: detail/os_util.hpp +// CHECK-NEXT: ext/oneapi/accessor_property_list.hpp +// CHECK-NEXT: detail/property_list_base.hpp +// CHECK-NEXT: exception.hpp +// CHECK-NEXT: detail/string.hpp +// CHECK-NEXT: property_list.hpp +// CHECK-NEXT: properties/property_traits.hpp +// CHECK-NEXT: id.hpp +// CHECK-NEXT: range.hpp +// CHECK-NEXT: ur_api.h +// CHECK-NEXT: detail/accessor_iterator.hpp +// CHECK-NEXT: detail/generic_type_traits.hpp +// CHECK-NEXT: aliases.hpp +// CHECK-NEXT: bit_cast.hpp +// CHECK-NEXT: detail/fwd/half.hpp +// CHECK-NEXT: detail/type_traits.hpp +// CHECK-NEXT: detail/type_traits/vec_marray_traits.hpp +// CHECK-NEXT: detail/fwd/multi_ptr.hpp +// CHECK-NEXT: detail/handler_proxy.hpp +// CHECK-NEXT: multi_ptr.hpp +// CHECK-NEXT: detail/address_space_cast.hpp +// CHECK-NEXT: pointers.hpp +// CHECK-NEXT: properties/accessor_properties.hpp +// CHECK-NEXT: properties/runtime_accessor_properties.def +// CHECK-NEXT: properties/buffer_properties.hpp +// CHECK-NEXT: context.hpp +// CHECK-NEXT: async_handler.hpp +// CHECK-NEXT: detail/info_desc_helpers.hpp +// CHECK-NEXT: aspects.hpp +// CHECK-NEXT: info/aspects.def +// CHECK-NEXT: info/aspects_deprecated.def +// CHECK-NEXT: info/info_desc.hpp +// CHECK-NEXT: ext/oneapi/experimental/device_architecture.hpp +// CHECK-NEXT: ext/oneapi/experimental/device_architecture.def +// CHECK-NEXT: ext/oneapi/experimental/forward_progress.hpp +// CHECK-NEXT: ext/oneapi/matrix/query-types.hpp +// CHECK-NEXT: ext/oneapi/bfloat16.hpp +// CHECK-NEXT: half_type.hpp +// CHECK-NEXT: ext/oneapi/matrix/matrix-unified-utils.hpp +// CHECK-NEXT: info/platform_traits.def +// CHECK-NEXT: info/context_traits.def +// CHECK-NEXT: info/device_traits_2020_deprecated.def +// CHECK-NEXT: info/device_traits_deprecated.def +// CHECK-NEXT: info/device_traits.def +// CHECK-NEXT: info/queue_traits.def +// CHECK-NEXT: info/kernel_traits.def +// CHECK-NEXT: info/kernel_device_specific_traits.def +// CHECK-NEXT: info/event_traits.def +// CHECK-NEXT: info/event_profiling_traits.def +// CHECK-NEXT: info/ext_codeplay_device_traits.def +// CHECK-NEXT: info/ext_intel_device_traits.def +// CHECK-NEXT: info/ext_intel_kernel_info_traits.def +// CHECK-NEXT: info/ext_oneapi_device_traits.def +// CHECK-NEXT: info/ext_oneapi_kernel_queue_specific_traits.def +// CHECK-NEXT: info/sycl_backend_traits.def +// CHECK-NEXT: usm/usm_enums.hpp +// CHECK-NEXT: properties/buffer_properties.def +// CHECK-NEXT: detail/cl.h +// CHECK-NEXT: CL/cl.h +// CHECK-NEXT: CL/cl_version.h +// CHECK-NEXT: CL/cl_platform.h +// CHECK-NEXT: CL/cl_ext.h +// CHECK-NEXT: detail/get_device_kernel_info.hpp +// CHECK-NEXT: detail/compile_time_kernel_info.hpp +// CHECK-NEXT: detail/kernel_desc.hpp +// CHECK-NEXT: detail/string_view.hpp +// CHECK-NEXT: detail/id_queries_fit_in_int.hpp +// CHECK-NEXT: detail/kernel_launch_helper.hpp +// CHECK-NEXT: detail/cg_types.hpp +// CHECK-NEXT: detail/host_profiling_info.hpp +// CHECK-NEXT: detail/item_base.hpp +// CHECK-NEXT: group.hpp +// CHECK-NEXT: device_event.hpp +// CHECK-NEXT: item.hpp +// CHECK-NEXT: h_item.hpp +// CHECK-NEXT: kernel_handler.hpp +// CHECK-NEXT: nd_item.hpp +// CHECK-NEXT: nd_range.hpp +// CHECK-NEXT: ext/intel/experimental/fp_control_kernel_properties.hpp +// CHECK-NEXT: ext/oneapi/properties/property.hpp +// CHECK-NEXT: ext/oneapi/properties/property_value.hpp +// CHECK-NEXT: ext/intel/experimental/kernel_execution_properties.hpp +// CHECK-NEXT: ext/oneapi/experimental/virtual_functions.hpp +// CHECK-NEXT: ext/oneapi/properties/property_utils.hpp +// CHECK-NEXT: ext/oneapi/kernel_properties/properties.hpp +// CHECK-NEXT: ext/oneapi/properties/properties.hpp +// CHECK-NEXT: ext/oneapi/work_group_scratch_memory.hpp +// CHECK-NEXT: detail/sycl_local_mem_builtins.hpp +// CHECK-NEXT: detail/kernel_name_str_t.hpp +// CHECK-NEXT: detail/reduction_forward.hpp +// CHECK-NEXT: detail/ur.hpp +// CHECK-NEXT: ur_api_funcs.def +// CHECK-NEXT: device.hpp +// CHECK-NEXT: detail/util.hpp +// CHECK-NEXT: device_selector.hpp +// CHECK-NEXT: kernel_bundle_enums.hpp +// CHECK-NEXT: event.hpp +// CHECK-NEXT: ext/oneapi/bindless_images_interop.hpp +// CHECK-NEXT: ext/oneapi/interop_common.hpp +// CHECK-NEXT: ext/oneapi/bindless_images_mem_handle.hpp +// CHECK-NEXT: ext/oneapi/device_global/device_global.hpp +// CHECK-NEXT: ext/oneapi/device_global/properties.hpp +// CHECK-NEXT: ext/oneapi/experimental/cluster_group_prop.hpp +// CHECK-NEXT: ext/oneapi/experimental/graph.hpp +// CHECK-NEXT: ext/oneapi/experimental/graph/command_graph.hpp +// CHECK-NEXT: ext/oneapi/experimental/graph/common.hpp +// CHECK-NEXT: ext/oneapi/experimental/graph/executable_graph.hpp +// CHECK-NEXT: ext/oneapi/experimental/graph/node.hpp +// CHECK-NEXT: ext/oneapi/experimental/detail/properties/graph_properties.hpp +// CHECK-NEXT: ext/oneapi/experimental/detail/properties/graph_properties.def +// CHECK-NEXT: ext/oneapi/experimental/detail/properties/node_properties.def +// CHECK-NEXT: ext/oneapi/experimental/graph/modifiable_graph.hpp +// CHECK-NEXT: ext/oneapi/experimental/graph/dynamic.hpp +// CHECK-NEXT: ext/oneapi/experimental/work_group_memory.hpp +// CHECK-NEXT: ext/oneapi/experimental/raw_kernel_arg.hpp +// CHECK-NEXT: ext/oneapi/experimental/use_root_sync_prop.hpp +// CHECK-NEXT: kernel.hpp +// CHECK-NEXT: sampler.hpp +// CHECK-EMPTY: diff --git a/sycl/test/include_deps/sycl_khr_includes_hierarchical_parallelism.hpp.cpp b/sycl/test/include_deps/sycl_khr_includes_hierarchical_parallelism.hpp.cpp new file mode 100644 index 0000000000000..57ec281201378 --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_hierarchical_parallelism.hpp.cpp @@ -0,0 +1,37 @@ +// Use update_test.sh to (re-)generate the checks +// REQUIRES: linux +// RUN: bash %S/deps_known.sh sycl/khr/includes/hierarchical_parallelism.hpp | FileCheck %s + +// CHECK-LABEL: Dependencies for : +// CHECK-NEXT: /dev/null: /dev/null +// CHECK-NEXT: khr/includes/hierarchical_parallelism.hpp +// CHECK-NEXT: khr/includes/version.hpp +// CHECK-NEXT: detail/defines_elementary.hpp +// CHECK-NEXT: feature_test.hpp +// CHECK-NEXT: group.hpp +// CHECK-NEXT: __spirv/spirv_types.hpp +// CHECK-NEXT: detail/defines.hpp +// CHECK-NEXT: access/access.hpp +// CHECK-NEXT: detail/common.hpp +// CHECK-NEXT: detail/export.hpp +// CHECK-NEXT: stl_wrappers/cassert +// CHECK-NEXT: stl_wrappers/assert.h +// CHECK-NEXT: __spirv/spirv_vars.hpp +// CHECK-NEXT: detail/fwd/multi_ptr.hpp +// CHECK-NEXT: detail/generic_type_traits.hpp +// CHECK-NEXT: aliases.hpp +// CHECK-NEXT: bit_cast.hpp +// CHECK-NEXT: detail/fwd/half.hpp +// CHECK-NEXT: detail/type_traits.hpp +// CHECK-NEXT: detail/type_traits/vec_marray_traits.hpp +// CHECK-NEXT: detail/helpers.hpp +// CHECK-NEXT: memory_enums.hpp +// CHECK-NEXT: device_event.hpp +// CHECK-NEXT: id.hpp +// CHECK-NEXT: detail/array.hpp +// CHECK-NEXT: range.hpp +// CHECK-NEXT: item.hpp +// CHECK-NEXT: detail/item_base.hpp +// CHECK-NEXT: pointers.hpp +// CHECK-NEXT: h_item.hpp +// CHECK-EMPTY: diff --git a/sycl/test/include_deps/sycl_khr_includes_images.hpp.cpp b/sycl/test/include_deps/sycl_khr_includes_images.hpp.cpp new file mode 100644 index 0000000000000..f55af841a1749 --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_images.hpp.cpp @@ -0,0 +1,112 @@ +// Use update_test.sh to (re-)generate the checks +// REQUIRES: linux +// RUN: bash %S/deps_known.sh sycl/khr/includes/images.hpp | FileCheck %s + +// CHECK-LABEL: Dependencies for : +// CHECK-NEXT: /dev/null: /dev/null +// CHECK-NEXT: khr/includes/images.hpp +// CHECK-NEXT: khr/includes/version.hpp +// CHECK-NEXT: detail/defines_elementary.hpp +// CHECK-NEXT: feature_test.hpp +// CHECK-NEXT: accessor_image.hpp +// CHECK-NEXT: accessor.hpp +// CHECK-NEXT: access/access.hpp +// CHECK-NEXT: buffer.hpp +// CHECK-NEXT: backend_types.hpp +// CHECK-NEXT: stl_wrappers/cstdlib +// CHECK-NEXT: detail/array.hpp +// CHECK-NEXT: detail/common.hpp +// CHECK-NEXT: detail/export.hpp +// CHECK-NEXT: stl_wrappers/cassert +// CHECK-NEXT: stl_wrappers/assert.h +// CHECK-NEXT: __spirv/spirv_vars.hpp +// CHECK-NEXT: detail/fwd/accessor.hpp +// CHECK-NEXT: detail/defines.hpp +// CHECK-NEXT: detail/helpers.hpp +// CHECK-NEXT: __spirv/spirv_types.hpp +// CHECK-NEXT: memory_enums.hpp +// CHECK-NEXT: detail/iostream_proxy.hpp +// CHECK-NEXT: detail/is_device_copyable.hpp +// CHECK-NEXT: detail/owner_less_base.hpp +// CHECK-NEXT: detail/impl_utils.hpp +// CHECK-NEXT: ext/oneapi/weak_object_base.hpp +// CHECK-NEXT: detail/property_helper.hpp +// CHECK-NEXT: detail/stl_type_traits.hpp +// CHECK-NEXT: detail/sycl_mem_obj_allocator.hpp +// CHECK-NEXT: detail/aligned_allocator.hpp +// CHECK-NEXT: detail/os_util.hpp +// CHECK-NEXT: ext/oneapi/accessor_property_list.hpp +// CHECK-NEXT: detail/property_list_base.hpp +// CHECK-NEXT: exception.hpp +// CHECK-NEXT: detail/string.hpp +// CHECK-NEXT: property_list.hpp +// CHECK-NEXT: properties/property_traits.hpp +// CHECK-NEXT: id.hpp +// CHECK-NEXT: range.hpp +// CHECK-NEXT: ur_api.h +// CHECK-NEXT: detail/accessor_iterator.hpp +// CHECK-NEXT: detail/generic_type_traits.hpp +// CHECK-NEXT: aliases.hpp +// CHECK-NEXT: bit_cast.hpp +// CHECK-NEXT: detail/fwd/half.hpp +// CHECK-NEXT: detail/type_traits.hpp +// CHECK-NEXT: detail/type_traits/vec_marray_traits.hpp +// CHECK-NEXT: detail/fwd/multi_ptr.hpp +// CHECK-NEXT: detail/handler_proxy.hpp +// CHECK-NEXT: multi_ptr.hpp +// CHECK-NEXT: detail/address_space_cast.hpp +// CHECK-NEXT: pointers.hpp +// CHECK-NEXT: properties/accessor_properties.hpp +// CHECK-NEXT: properties/runtime_accessor_properties.def +// CHECK-NEXT: properties/buffer_properties.hpp +// CHECK-NEXT: context.hpp +// CHECK-NEXT: async_handler.hpp +// CHECK-NEXT: detail/info_desc_helpers.hpp +// CHECK-NEXT: aspects.hpp +// CHECK-NEXT: info/aspects.def +// CHECK-NEXT: info/aspects_deprecated.def +// CHECK-NEXT: info/info_desc.hpp +// CHECK-NEXT: ext/oneapi/experimental/device_architecture.hpp +// CHECK-NEXT: ext/oneapi/experimental/device_architecture.def +// CHECK-NEXT: ext/oneapi/experimental/forward_progress.hpp +// CHECK-NEXT: ext/oneapi/matrix/query-types.hpp +// CHECK-NEXT: ext/oneapi/bfloat16.hpp +// CHECK-NEXT: half_type.hpp +// CHECK-NEXT: ext/oneapi/matrix/matrix-unified-utils.hpp +// CHECK-NEXT: info/platform_traits.def +// CHECK-NEXT: info/context_traits.def +// CHECK-NEXT: info/device_traits_2020_deprecated.def +// CHECK-NEXT: info/device_traits_deprecated.def +// CHECK-NEXT: info/device_traits.def +// CHECK-NEXT: info/queue_traits.def +// CHECK-NEXT: info/kernel_traits.def +// CHECK-NEXT: info/kernel_device_specific_traits.def +// CHECK-NEXT: info/event_traits.def +// CHECK-NEXT: info/event_profiling_traits.def +// CHECK-NEXT: info/ext_codeplay_device_traits.def +// CHECK-NEXT: info/ext_intel_device_traits.def +// CHECK-NEXT: info/ext_intel_kernel_info_traits.def +// CHECK-NEXT: info/ext_oneapi_device_traits.def +// CHECK-NEXT: info/ext_oneapi_kernel_queue_specific_traits.def +// CHECK-NEXT: info/sycl_backend_traits.def +// CHECK-NEXT: usm/usm_enums.hpp +// CHECK-NEXT: properties/buffer_properties.def +// CHECK-NEXT: detail/image_accessor_util.hpp +// CHECK-NEXT: device.hpp +// CHECK-NEXT: detail/string_view.hpp +// CHECK-NEXT: detail/util.hpp +// CHECK-NEXT: device_selector.hpp +// CHECK-NEXT: kernel_bundle_enums.hpp +// CHECK-NEXT: image.hpp +// CHECK-NEXT: detail/backend_traits.hpp +// CHECK-NEXT: event.hpp +// CHECK-NEXT: sampler.hpp +// CHECK-NEXT: vector.hpp +// CHECK-NEXT: detail/named_swizzles_mixin.hpp +// CHECK-NEXT: detail/vector_arith.hpp +// CHECK-NEXT: detail/memcpy.hpp +// CHECK-NEXT: detail/image_ocl_types.hpp +// CHECK-NEXT: __spirv/spirv_ops.hpp +// CHECK-NEXT: properties/image_properties.hpp +// CHECK-NEXT: properties/image_properties.def +// CHECK-EMPTY: diff --git a/sycl/test/include_deps/sycl_khr_includes_index_space.hpp.cpp b/sycl/test/include_deps/sycl_khr_includes_index_space.hpp.cpp new file mode 100644 index 0000000000000..64e674f6161ea --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_index_space.hpp.cpp @@ -0,0 +1,38 @@ +// Use update_test.sh to (re-)generate the checks +// REQUIRES: linux +// RUN: bash %S/deps_known.sh sycl/khr/includes/index_space.hpp | FileCheck %s + +// CHECK-LABEL: Dependencies for : +// CHECK-NEXT: /dev/null: /dev/null +// CHECK-NEXT: khr/includes/index_space.hpp +// CHECK-NEXT: khr/includes/version.hpp +// CHECK-NEXT: detail/defines_elementary.hpp +// CHECK-NEXT: feature_test.hpp +// CHECK-NEXT: id.hpp +// CHECK-NEXT: detail/array.hpp +// CHECK-NEXT: detail/defines.hpp +// CHECK-NEXT: range.hpp +// CHECK-NEXT: item.hpp +// CHECK-NEXT: detail/item_base.hpp +// CHECK-NEXT: nd_item.hpp +// CHECK-NEXT: __spirv/spirv_types.hpp +// CHECK-NEXT: __spirv/spirv_vars.hpp +// CHECK-NEXT: access/access.hpp +// CHECK-NEXT: detail/generic_type_traits.hpp +// CHECK-NEXT: aliases.hpp +// CHECK-NEXT: bit_cast.hpp +// CHECK-NEXT: detail/fwd/half.hpp +// CHECK-NEXT: detail/type_traits.hpp +// CHECK-NEXT: detail/type_traits/vec_marray_traits.hpp +// CHECK-NEXT: detail/fwd/multi_ptr.hpp +// CHECK-NEXT: detail/helpers.hpp +// CHECK-NEXT: detail/export.hpp +// CHECK-NEXT: memory_enums.hpp +// CHECK-NEXT: device_event.hpp +// CHECK-NEXT: group.hpp +// CHECK-NEXT: detail/common.hpp +// CHECK-NEXT: stl_wrappers/cassert +// CHECK-NEXT: stl_wrappers/assert.h +// CHECK-NEXT: pointers.hpp +// CHECK-NEXT: nd_range.hpp +// CHECK-EMPTY: diff --git a/sycl/test/include_deps/sycl_khr_includes_interop_handle.hpp.cpp b/sycl/test/include_deps/sycl_khr_includes_interop_handle.hpp.cpp new file mode 100644 index 0000000000000..c052e141e9b7b --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_interop_handle.hpp.cpp @@ -0,0 +1,120 @@ +// Use update_test.sh to (re-)generate the checks +// REQUIRES: linux +// RUN: bash %S/deps_known.sh sycl/khr/includes/interop_handle.hpp | FileCheck %s + +// CHECK-LABEL: Dependencies for : +// CHECK-NEXT: /dev/null: /dev/null +// CHECK-NEXT: khr/includes/interop_handle.hpp +// CHECK-NEXT: khr/includes/version.hpp +// CHECK-NEXT: detail/defines_elementary.hpp +// CHECK-NEXT: feature_test.hpp +// CHECK-NEXT: interop_handle.hpp +// CHECK-NEXT: access/access.hpp +// CHECK-NEXT: accessor.hpp +// CHECK-NEXT: buffer.hpp +// CHECK-NEXT: backend_types.hpp +// CHECK-NEXT: stl_wrappers/cstdlib +// CHECK-NEXT: detail/array.hpp +// CHECK-NEXT: detail/common.hpp +// CHECK-NEXT: detail/export.hpp +// CHECK-NEXT: stl_wrappers/cassert +// CHECK-NEXT: stl_wrappers/assert.h +// CHECK-NEXT: __spirv/spirv_vars.hpp +// CHECK-NEXT: detail/fwd/accessor.hpp +// CHECK-NEXT: detail/defines.hpp +// CHECK-NEXT: detail/helpers.hpp +// CHECK-NEXT: __spirv/spirv_types.hpp +// CHECK-NEXT: memory_enums.hpp +// CHECK-NEXT: detail/iostream_proxy.hpp +// CHECK-NEXT: detail/is_device_copyable.hpp +// CHECK-NEXT: detail/owner_less_base.hpp +// CHECK-NEXT: detail/impl_utils.hpp +// CHECK-NEXT: ext/oneapi/weak_object_base.hpp +// CHECK-NEXT: detail/property_helper.hpp +// CHECK-NEXT: detail/stl_type_traits.hpp +// CHECK-NEXT: detail/sycl_mem_obj_allocator.hpp +// CHECK-NEXT: detail/aligned_allocator.hpp +// CHECK-NEXT: detail/os_util.hpp +// CHECK-NEXT: ext/oneapi/accessor_property_list.hpp +// CHECK-NEXT: detail/property_list_base.hpp +// CHECK-NEXT: exception.hpp +// CHECK-NEXT: detail/string.hpp +// CHECK-NEXT: property_list.hpp +// CHECK-NEXT: properties/property_traits.hpp +// CHECK-NEXT: id.hpp +// CHECK-NEXT: range.hpp +// CHECK-NEXT: ur_api.h +// CHECK-NEXT: detail/accessor_iterator.hpp +// CHECK-NEXT: detail/generic_type_traits.hpp +// CHECK-NEXT: aliases.hpp +// CHECK-NEXT: bit_cast.hpp +// CHECK-NEXT: detail/fwd/half.hpp +// CHECK-NEXT: detail/type_traits.hpp +// CHECK-NEXT: detail/type_traits/vec_marray_traits.hpp +// CHECK-NEXT: detail/fwd/multi_ptr.hpp +// CHECK-NEXT: detail/handler_proxy.hpp +// CHECK-NEXT: multi_ptr.hpp +// CHECK-NEXT: detail/address_space_cast.hpp +// CHECK-NEXT: pointers.hpp +// CHECK-NEXT: properties/accessor_properties.hpp +// CHECK-NEXT: properties/runtime_accessor_properties.def +// CHECK-NEXT: properties/buffer_properties.hpp +// CHECK-NEXT: context.hpp +// CHECK-NEXT: async_handler.hpp +// CHECK-NEXT: detail/info_desc_helpers.hpp +// CHECK-NEXT: aspects.hpp +// CHECK-NEXT: info/aspects.def +// CHECK-NEXT: info/aspects_deprecated.def +// CHECK-NEXT: info/info_desc.hpp +// CHECK-NEXT: ext/oneapi/experimental/device_architecture.hpp +// CHECK-NEXT: ext/oneapi/experimental/device_architecture.def +// CHECK-NEXT: ext/oneapi/experimental/forward_progress.hpp +// CHECK-NEXT: ext/oneapi/matrix/query-types.hpp +// CHECK-NEXT: ext/oneapi/bfloat16.hpp +// CHECK-NEXT: half_type.hpp +// CHECK-NEXT: ext/oneapi/matrix/matrix-unified-utils.hpp +// CHECK-NEXT: info/platform_traits.def +// CHECK-NEXT: info/context_traits.def +// CHECK-NEXT: info/device_traits_2020_deprecated.def +// CHECK-NEXT: info/device_traits_deprecated.def +// CHECK-NEXT: info/device_traits.def +// CHECK-NEXT: info/queue_traits.def +// CHECK-NEXT: info/kernel_traits.def +// CHECK-NEXT: info/kernel_device_specific_traits.def +// CHECK-NEXT: info/event_traits.def +// CHECK-NEXT: info/event_profiling_traits.def +// CHECK-NEXT: info/ext_codeplay_device_traits.def +// CHECK-NEXT: info/ext_intel_device_traits.def +// CHECK-NEXT: info/ext_intel_kernel_info_traits.def +// CHECK-NEXT: info/ext_oneapi_device_traits.def +// CHECK-NEXT: info/ext_oneapi_kernel_queue_specific_traits.def +// CHECK-NEXT: info/sycl_backend_traits.def +// CHECK-NEXT: usm/usm_enums.hpp +// CHECK-NEXT: properties/buffer_properties.def +// CHECK-NEXT: ext/oneapi/experimental/graph.hpp +// CHECK-NEXT: ext/oneapi/experimental/graph/command_graph.hpp +// CHECK-NEXT: ext/oneapi/experimental/graph/common.hpp +// CHECK-NEXT: ext/oneapi/experimental/graph/executable_graph.hpp +// CHECK-NEXT: ext/oneapi/experimental/graph/node.hpp +// CHECK-NEXT: ext/oneapi/experimental/detail/properties/graph_properties.hpp +// CHECK-NEXT: ext/oneapi/experimental/detail/properties/graph_properties.def +// CHECK-NEXT: ext/oneapi/experimental/detail/properties/node_properties.def +// CHECK-NEXT: nd_range.hpp +// CHECK-NEXT: ext/oneapi/experimental/graph/modifiable_graph.hpp +// CHECK-NEXT: detail/string_view.hpp +// CHECK-NEXT: ext/oneapi/experimental/graph/dynamic.hpp +// CHECK-NEXT: detail/kernel_desc.hpp +// CHECK-NEXT: ext/oneapi/experimental/work_group_memory.hpp +// CHECK-NEXT: ext/oneapi/properties/properties.hpp +// CHECK-NEXT: ext/oneapi/properties/property_utils.hpp +// CHECK-NEXT: ext/oneapi/properties/property.hpp +// CHECK-NEXT: ext/oneapi/properties/property_value.hpp +// CHECK-NEXT: image.hpp +// CHECK-NEXT: detail/backend_traits.hpp +// CHECK-NEXT: event.hpp +// CHECK-NEXT: sampler.hpp +// CHECK-NEXT: vector.hpp +// CHECK-NEXT: detail/named_swizzles_mixin.hpp +// CHECK-NEXT: detail/vector_arith.hpp +// CHECK-NEXT: detail/memcpy.hpp +// CHECK-EMPTY: diff --git a/sycl/test/include_deps/sycl_khr_includes_kernel_bundle.hpp.cpp b/sycl/test/include_deps/sycl_khr_includes_kernel_bundle.hpp.cpp new file mode 100644 index 0000000000000..3c05eb6715259 --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_kernel_bundle.hpp.cpp @@ -0,0 +1,159 @@ +// Use update_test.sh to (re-)generate the checks +// REQUIRES: linux +// RUN: bash %S/deps_known.sh sycl/khr/includes/kernel_bundle.hpp | FileCheck %s + +// CHECK-LABEL: Dependencies for : +// CHECK-NEXT: /dev/null: /dev/null +// CHECK-NEXT: khr/includes/kernel_bundle.hpp +// CHECK-NEXT: khr/includes/version.hpp +// CHECK-NEXT: detail/defines_elementary.hpp +// CHECK-NEXT: feature_test.hpp +// CHECK-NEXT: kernel.hpp +// CHECK-NEXT: backend_types.hpp +// CHECK-NEXT: stl_wrappers/cstdlib +// CHECK-NEXT: detail/export.hpp +// CHECK-NEXT: detail/info_desc_helpers.hpp +// CHECK-NEXT: aspects.hpp +// CHECK-NEXT: detail/defines.hpp +// CHECK-NEXT: info/aspects.def +// CHECK-NEXT: info/aspects_deprecated.def +// CHECK-NEXT: id.hpp +// CHECK-NEXT: detail/array.hpp +// CHECK-NEXT: range.hpp +// CHECK-NEXT: info/info_desc.hpp +// CHECK-NEXT: ur_api.h +// CHECK-NEXT: detail/type_traits.hpp +// CHECK-NEXT: detail/type_traits/vec_marray_traits.hpp +// CHECK-NEXT: detail/fwd/multi_ptr.hpp +// CHECK-NEXT: access/access.hpp +// CHECK-NEXT: ext/oneapi/experimental/device_architecture.hpp +// CHECK-NEXT: ext/oneapi/experimental/device_architecture.def +// CHECK-NEXT: ext/oneapi/experimental/forward_progress.hpp +// CHECK-NEXT: ext/oneapi/matrix/query-types.hpp +// CHECK-NEXT: ext/oneapi/bfloat16.hpp +// CHECK-NEXT: aliases.hpp +// CHECK-NEXT: bit_cast.hpp +// CHECK-NEXT: half_type.hpp +// CHECK-NEXT: detail/fwd/half.hpp +// CHECK-NEXT: ext/oneapi/matrix/matrix-unified-utils.hpp +// CHECK-NEXT: __spirv/spirv_types.hpp +// CHECK-NEXT: info/platform_traits.def +// CHECK-NEXT: info/context_traits.def +// CHECK-NEXT: info/device_traits_2020_deprecated.def +// CHECK-NEXT: info/device_traits_deprecated.def +// CHECK-NEXT: info/device_traits.def +// CHECK-NEXT: info/queue_traits.def +// CHECK-NEXT: info/kernel_traits.def +// CHECK-NEXT: info/kernel_device_specific_traits.def +// CHECK-NEXT: info/event_traits.def +// CHECK-NEXT: info/event_profiling_traits.def +// CHECK-NEXT: info/ext_codeplay_device_traits.def +// CHECK-NEXT: info/ext_intel_device_traits.def +// CHECK-NEXT: info/ext_intel_kernel_info_traits.def +// CHECK-NEXT: info/ext_oneapi_device_traits.def +// CHECK-NEXT: info/ext_oneapi_kernel_queue_specific_traits.def +// CHECK-NEXT: info/sycl_backend_traits.def +// CHECK-NEXT: detail/owner_less_base.hpp +// CHECK-NEXT: detail/impl_utils.hpp +// CHECK-NEXT: stl_wrappers/cassert +// CHECK-NEXT: stl_wrappers/assert.h +// CHECK-NEXT: __spirv/spirv_vars.hpp +// CHECK-NEXT: ext/oneapi/weak_object_base.hpp +// CHECK-NEXT: detail/util.hpp +// CHECK-NEXT: detail/string.hpp +// CHECK-NEXT: kernel_bundle_enums.hpp +// CHECK-NEXT: kernel_bundle.hpp +// CHECK-NEXT: detail/kernel_desc.hpp +// CHECK-NEXT: detail/string_view.hpp +// CHECK-NEXT: detail/ur.hpp +// CHECK-NEXT: detail/os_util.hpp +// CHECK-NEXT: ur_api_funcs.def +// CHECK-NEXT: device.hpp +// CHECK-NEXT: device_selector.hpp +// CHECK-NEXT: handler.hpp +// CHECK-NEXT: accessor.hpp +// CHECK-NEXT: buffer.hpp +// CHECK-NEXT: detail/common.hpp +// CHECK-NEXT: detail/fwd/accessor.hpp +// CHECK-NEXT: detail/helpers.hpp +// CHECK-NEXT: memory_enums.hpp +// CHECK-NEXT: detail/iostream_proxy.hpp +// CHECK-NEXT: detail/is_device_copyable.hpp +// CHECK-NEXT: detail/property_helper.hpp +// CHECK-NEXT: detail/stl_type_traits.hpp +// CHECK-NEXT: detail/sycl_mem_obj_allocator.hpp +// CHECK-NEXT: detail/aligned_allocator.hpp +// CHECK-NEXT: ext/oneapi/accessor_property_list.hpp +// CHECK-NEXT: detail/property_list_base.hpp +// CHECK-NEXT: exception.hpp +// CHECK-NEXT: property_list.hpp +// CHECK-NEXT: properties/property_traits.hpp +// CHECK-NEXT: detail/accessor_iterator.hpp +// CHECK-NEXT: detail/generic_type_traits.hpp +// CHECK-NEXT: detail/handler_proxy.hpp +// CHECK-NEXT: multi_ptr.hpp +// CHECK-NEXT: detail/address_space_cast.hpp +// CHECK-NEXT: pointers.hpp +// CHECK-NEXT: properties/accessor_properties.hpp +// CHECK-NEXT: properties/runtime_accessor_properties.def +// CHECK-NEXT: properties/buffer_properties.hpp +// CHECK-NEXT: context.hpp +// CHECK-NEXT: async_handler.hpp +// CHECK-NEXT: usm/usm_enums.hpp +// CHECK-NEXT: properties/buffer_properties.def +// CHECK-NEXT: detail/cl.h +// CHECK-NEXT: CL/cl.h +// CHECK-NEXT: CL/cl_version.h +// CHECK-NEXT: CL/cl_platform.h +// CHECK-NEXT: CL/cl_ext.h +// CHECK-NEXT: detail/get_device_kernel_info.hpp +// CHECK-NEXT: detail/compile_time_kernel_info.hpp +// CHECK-NEXT: detail/id_queries_fit_in_int.hpp +// CHECK-NEXT: detail/kernel_launch_helper.hpp +// CHECK-NEXT: detail/cg_types.hpp +// CHECK-NEXT: detail/host_profiling_info.hpp +// CHECK-NEXT: detail/item_base.hpp +// CHECK-NEXT: group.hpp +// CHECK-NEXT: device_event.hpp +// CHECK-NEXT: item.hpp +// CHECK-NEXT: h_item.hpp +// CHECK-NEXT: kernel_handler.hpp +// CHECK-NEXT: nd_item.hpp +// CHECK-NEXT: nd_range.hpp +// CHECK-NEXT: ext/intel/experimental/fp_control_kernel_properties.hpp +// CHECK-NEXT: ext/oneapi/properties/property.hpp +// CHECK-NEXT: ext/oneapi/properties/property_value.hpp +// CHECK-NEXT: ext/intel/experimental/kernel_execution_properties.hpp +// CHECK-NEXT: ext/oneapi/experimental/virtual_functions.hpp +// CHECK-NEXT: ext/oneapi/properties/property_utils.hpp +// CHECK-NEXT: ext/oneapi/kernel_properties/properties.hpp +// CHECK-NEXT: ext/oneapi/properties/properties.hpp +// CHECK-NEXT: ext/oneapi/work_group_scratch_memory.hpp +// CHECK-NEXT: detail/sycl_local_mem_builtins.hpp +// CHECK-NEXT: detail/kernel_name_str_t.hpp +// CHECK-NEXT: detail/reduction_forward.hpp +// CHECK-NEXT: event.hpp +// CHECK-NEXT: ext/oneapi/bindless_images_interop.hpp +// CHECK-NEXT: ext/oneapi/interop_common.hpp +// CHECK-NEXT: ext/oneapi/bindless_images_mem_handle.hpp +// CHECK-NEXT: ext/oneapi/device_global/device_global.hpp +// CHECK-NEXT: ext/oneapi/device_global/properties.hpp +// CHECK-NEXT: ext/oneapi/experimental/cluster_group_prop.hpp +// CHECK-NEXT: ext/oneapi/experimental/graph.hpp +// CHECK-NEXT: ext/oneapi/experimental/graph/command_graph.hpp +// CHECK-NEXT: ext/oneapi/experimental/graph/common.hpp +// CHECK-NEXT: ext/oneapi/experimental/graph/executable_graph.hpp +// CHECK-NEXT: ext/oneapi/experimental/graph/node.hpp +// CHECK-NEXT: ext/oneapi/experimental/detail/properties/graph_properties.hpp +// CHECK-NEXT: ext/oneapi/experimental/detail/properties/graph_properties.def +// CHECK-NEXT: ext/oneapi/experimental/detail/properties/node_properties.def +// CHECK-NEXT: ext/oneapi/experimental/graph/modifiable_graph.hpp +// CHECK-NEXT: ext/oneapi/experimental/graph/dynamic.hpp +// CHECK-NEXT: ext/oneapi/experimental/work_group_memory.hpp +// CHECK-NEXT: ext/oneapi/experimental/raw_kernel_arg.hpp +// CHECK-NEXT: ext/oneapi/experimental/use_root_sync_prop.hpp +// CHECK-NEXT: sampler.hpp +// CHECK-NEXT: sycl_span.hpp +// CHECK-NEXT: ext/oneapi/experimental/free_function_traits.hpp +// CHECK-NEXT: specialization_id.hpp +// CHECK-EMPTY: diff --git a/sycl/test/include_deps/sycl_khr_includes_kernel_handler.hpp.cpp b/sycl/test/include_deps/sycl_khr_includes_kernel_handler.hpp.cpp new file mode 100644 index 0000000000000..6eeb1d2371270 --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_kernel_handler.hpp.cpp @@ -0,0 +1,17 @@ +// Use update_test.sh to (re-)generate the checks +// REQUIRES: linux +// RUN: bash %S/deps_known.sh sycl/khr/includes/kernel_handler.hpp | FileCheck %s + +// CHECK-LABEL: Dependencies for : +// CHECK-NEXT: /dev/null: /dev/null +// CHECK-NEXT: khr/includes/kernel_handler.hpp +// CHECK-NEXT: khr/includes/version.hpp +// CHECK-NEXT: detail/defines_elementary.hpp +// CHECK-NEXT: feature_test.hpp +// CHECK-NEXT: kernel_handler.hpp +// CHECK-NEXT: detail/defines.hpp +// CHECK-NEXT: exception.hpp +// CHECK-NEXT: detail/export.hpp +// CHECK-NEXT: detail/string.hpp +// CHECK-NEXT: stl_wrappers/cstdlib +// CHECK-EMPTY: diff --git a/sycl/test/include_deps/sycl_khr_includes_marray.hpp.cpp b/sycl/test/include_deps/sycl_khr_includes_marray.hpp.cpp new file mode 100644 index 0000000000000..560470e683294 --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_marray.hpp.cpp @@ -0,0 +1,19 @@ +// Use update_test.sh to (re-)generate the checks +// REQUIRES: linux +// RUN: bash %S/deps_known.sh sycl/khr/includes/marray.hpp | FileCheck %s + +// CHECK-LABEL: Dependencies for : +// CHECK-NEXT: /dev/null: /dev/null +// CHECK-NEXT: khr/includes/marray.hpp +// CHECK-NEXT: khr/includes/version.hpp +// CHECK-NEXT: detail/defines_elementary.hpp +// CHECK-NEXT: feature_test.hpp +// CHECK-NEXT: marray.hpp +// CHECK-NEXT: aliases.hpp +// CHECK-NEXT: detail/common.hpp +// CHECK-NEXT: detail/export.hpp +// CHECK-NEXT: stl_wrappers/cassert +// CHECK-NEXT: stl_wrappers/assert.h +// CHECK-NEXT: __spirv/spirv_vars.hpp +// CHECK-NEXT: detail/fwd/half.hpp +// CHECK-EMPTY: diff --git a/sycl/test/include_deps/sycl_khr_includes_math.hpp.cpp b/sycl/test/include_deps/sycl_khr_includes_math.hpp.cpp new file mode 100644 index 0000000000000..ea5a9c8b7f049 --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_math.hpp.cpp @@ -0,0 +1,53 @@ +// Use update_test.sh to (re-)generate the checks +// REQUIRES: linux +// RUN: bash %S/deps_known.sh sycl/khr/includes/math.hpp | FileCheck %s + +// CHECK-LABEL: Dependencies for : +// CHECK-NEXT: /dev/null: /dev/null +// CHECK-NEXT: khr/includes/math.hpp +// CHECK-NEXT: khr/includes/version.hpp +// CHECK-NEXT: detail/defines_elementary.hpp +// CHECK-NEXT: feature_test.hpp +// CHECK-NEXT: builtins.hpp +// CHECK-NEXT: detail/builtins/builtins.hpp +// CHECK-NEXT: detail/helpers.hpp +// CHECK-NEXT: __spirv/spirv_types.hpp +// CHECK-NEXT: detail/defines.hpp +// CHECK-NEXT: access/access.hpp +// CHECK-NEXT: detail/export.hpp +// CHECK-NEXT: memory_enums.hpp +// CHECK-NEXT: __spirv/spirv_vars.hpp +// CHECK-NEXT: detail/type_traits.hpp +// CHECK-NEXT: detail/type_traits/vec_marray_traits.hpp +// CHECK-NEXT: detail/fwd/multi_ptr.hpp +// CHECK-NEXT: detail/vector_convert.hpp +// CHECK-NEXT: detail/generic_type_traits.hpp +// CHECK-NEXT: aliases.hpp +// CHECK-NEXT: bit_cast.hpp +// CHECK-NEXT: detail/fwd/half.hpp +// CHECK-NEXT: detail/memcpy.hpp +// CHECK-NEXT: ext/oneapi/bfloat16.hpp +// CHECK-NEXT: half_type.hpp +// CHECK-NEXT: aspects.hpp +// CHECK-NEXT: info/aspects.def +// CHECK-NEXT: info/aspects_deprecated.def +// CHECK-NEXT: vector.hpp +// CHECK-NEXT: detail/named_swizzles_mixin.hpp +// CHECK-NEXT: detail/vector_arith.hpp +// CHECK-NEXT: stl_wrappers/cstdlib +// CHECK-NEXT: detail/common.hpp +// CHECK-NEXT: stl_wrappers/cassert +// CHECK-NEXT: stl_wrappers/assert.h +// CHECK-NEXT: detail/fwd/accessor.hpp +// CHECK-NEXT: marray.hpp +// CHECK-NEXT: multi_ptr.hpp +// CHECK-NEXT: detail/address_space_cast.hpp +// CHECK-NEXT: detail/builtins/common_functions.inc +// CHECK-NEXT: detail/builtins/helper_macros.hpp +// CHECK-NEXT: detail/builtins/geometric_functions.inc +// CHECK-NEXT: detail/builtins/half_precision_math_functions.inc +// CHECK-NEXT: detail/builtins/integer_functions.inc +// CHECK-NEXT: detail/builtins/math_functions.inc +// CHECK-NEXT: detail/builtins/native_math_functions.inc +// CHECK-NEXT: detail/builtins/relational_functions.inc +// CHECK-EMPTY: diff --git a/sycl/test/include_deps/sycl_khr_includes_multi_ptr.hpp.cpp b/sycl/test/include_deps/sycl_khr_includes_multi_ptr.hpp.cpp new file mode 100644 index 0000000000000..b7dd0b52aa569 --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_multi_ptr.hpp.cpp @@ -0,0 +1,22 @@ +// Use update_test.sh to (re-)generate the checks +// REQUIRES: linux +// RUN: bash %S/deps_known.sh sycl/khr/includes/multi_ptr.hpp | FileCheck %s + +// CHECK-LABEL: Dependencies for : +// CHECK-NEXT: /dev/null: /dev/null +// CHECK-NEXT: khr/includes/multi_ptr.hpp +// CHECK-NEXT: khr/includes/version.hpp +// CHECK-NEXT: detail/defines_elementary.hpp +// CHECK-NEXT: feature_test.hpp +// CHECK-NEXT: multi_ptr.hpp +// CHECK-NEXT: access/access.hpp +// CHECK-NEXT: detail/address_space_cast.hpp +// CHECK-NEXT: __spirv/spirv_types.hpp +// CHECK-NEXT: detail/defines.hpp +// CHECK-NEXT: detail/fwd/accessor.hpp +// CHECK-NEXT: detail/fwd/half.hpp +// CHECK-NEXT: detail/fwd/multi_ptr.hpp +// CHECK-NEXT: detail/type_traits.hpp +// CHECK-NEXT: detail/type_traits/vec_marray_traits.hpp +// CHECK-NEXT: stl_wrappers/cstdlib +// CHECK-EMPTY: diff --git a/sycl/test/include_deps/sycl_khr_includes_platform.hpp.cpp b/sycl/test/include_deps/sycl_khr_includes_platform.hpp.cpp new file mode 100644 index 0000000000000..9184350e25d8a --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_platform.hpp.cpp @@ -0,0 +1,66 @@ +// Use update_test.sh to (re-)generate the checks +// REQUIRES: linux +// RUN: bash %S/deps_known.sh sycl/khr/includes/platform.hpp | FileCheck %s + +// CHECK-LABEL: Dependencies for : +// CHECK-NEXT: /dev/null: /dev/null +// CHECK-NEXT: khr/includes/platform.hpp +// CHECK-NEXT: khr/includes/version.hpp +// CHECK-NEXT: detail/defines_elementary.hpp +// CHECK-NEXT: feature_test.hpp +// CHECK-NEXT: platform.hpp +// CHECK-NEXT: backend_types.hpp +// CHECK-NEXT: stl_wrappers/cstdlib +// CHECK-NEXT: detail/export.hpp +// CHECK-NEXT: detail/info_desc_helpers.hpp +// CHECK-NEXT: aspects.hpp +// CHECK-NEXT: detail/defines.hpp +// CHECK-NEXT: info/aspects.def +// CHECK-NEXT: info/aspects_deprecated.def +// CHECK-NEXT: id.hpp +// CHECK-NEXT: detail/array.hpp +// CHECK-NEXT: range.hpp +// CHECK-NEXT: info/info_desc.hpp +// CHECK-NEXT: ur_api.h +// CHECK-NEXT: detail/type_traits.hpp +// CHECK-NEXT: detail/type_traits/vec_marray_traits.hpp +// CHECK-NEXT: detail/fwd/multi_ptr.hpp +// CHECK-NEXT: access/access.hpp +// CHECK-NEXT: ext/oneapi/experimental/device_architecture.hpp +// CHECK-NEXT: ext/oneapi/experimental/device_architecture.def +// CHECK-NEXT: ext/oneapi/experimental/forward_progress.hpp +// CHECK-NEXT: ext/oneapi/matrix/query-types.hpp +// CHECK-NEXT: ext/oneapi/bfloat16.hpp +// CHECK-NEXT: aliases.hpp +// CHECK-NEXT: bit_cast.hpp +// CHECK-NEXT: half_type.hpp +// CHECK-NEXT: detail/fwd/half.hpp +// CHECK-NEXT: ext/oneapi/matrix/matrix-unified-utils.hpp +// CHECK-NEXT: __spirv/spirv_types.hpp +// CHECK-NEXT: info/platform_traits.def +// CHECK-NEXT: info/context_traits.def +// CHECK-NEXT: info/device_traits_2020_deprecated.def +// CHECK-NEXT: info/device_traits_deprecated.def +// CHECK-NEXT: info/device_traits.def +// CHECK-NEXT: info/queue_traits.def +// CHECK-NEXT: info/kernel_traits.def +// CHECK-NEXT: info/kernel_device_specific_traits.def +// CHECK-NEXT: info/event_traits.def +// CHECK-NEXT: info/event_profiling_traits.def +// CHECK-NEXT: info/ext_codeplay_device_traits.def +// CHECK-NEXT: info/ext_intel_device_traits.def +// CHECK-NEXT: info/ext_intel_kernel_info_traits.def +// CHECK-NEXT: info/ext_oneapi_device_traits.def +// CHECK-NEXT: info/ext_oneapi_kernel_queue_specific_traits.def +// CHECK-NEXT: info/sycl_backend_traits.def +// CHECK-NEXT: detail/owner_less_base.hpp +// CHECK-NEXT: detail/impl_utils.hpp +// CHECK-NEXT: stl_wrappers/cassert +// CHECK-NEXT: stl_wrappers/assert.h +// CHECK-NEXT: __spirv/spirv_vars.hpp +// CHECK-NEXT: ext/oneapi/weak_object_base.hpp +// CHECK-NEXT: detail/string.hpp +// CHECK-NEXT: detail/string_view.hpp +// CHECK-NEXT: detail/util.hpp +// CHECK-NEXT: device_selector.hpp +// CHECK-EMPTY: diff --git a/sycl/test/include_deps/sycl_khr_includes_property_list.hpp.cpp b/sycl/test/include_deps/sycl_khr_includes_property_list.hpp.cpp new file mode 100644 index 0000000000000..e87666fbcfcf6 --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_property_list.hpp.cpp @@ -0,0 +1,19 @@ +// Use update_test.sh to (re-)generate the checks +// REQUIRES: linux +// RUN: bash %S/deps_known.sh sycl/khr/includes/property_list.hpp | FileCheck %s + +// CHECK-LABEL: Dependencies for : +// CHECK-NEXT: /dev/null: /dev/null +// CHECK-NEXT: khr/includes/property_list.hpp +// CHECK-NEXT: khr/includes/version.hpp +// CHECK-NEXT: detail/defines_elementary.hpp +// CHECK-NEXT: feature_test.hpp +// CHECK-NEXT: property_list.hpp +// CHECK-NEXT: detail/property_helper.hpp +// CHECK-NEXT: detail/property_list_base.hpp +// CHECK-NEXT: exception.hpp +// CHECK-NEXT: detail/export.hpp +// CHECK-NEXT: detail/string.hpp +// CHECK-NEXT: stl_wrappers/cstdlib +// CHECK-NEXT: properties/property_traits.hpp +// CHECK-EMPTY: diff --git a/sycl/test/include_deps/sycl_khr_includes_queue.hpp.cpp b/sycl/test/include_deps/sycl_khr_includes_queue.hpp.cpp new file mode 100644 index 0000000000000..a37e63c0cc7de --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_queue.hpp.cpp @@ -0,0 +1,161 @@ +// Use update_test.sh to (re-)generate the checks +// REQUIRES: linux +// RUN: bash %S/deps_known.sh sycl/khr/includes/queue.hpp | FileCheck %s + +// CHECK-LABEL: Dependencies for : +// CHECK-NEXT: /dev/null: /dev/null +// CHECK-NEXT: khr/includes/queue.hpp +// CHECK-NEXT: khr/includes/version.hpp +// CHECK-NEXT: detail/defines_elementary.hpp +// CHECK-NEXT: feature_test.hpp +// CHECK-NEXT: properties/queue_properties.hpp +// CHECK-NEXT: detail/property_helper.hpp +// CHECK-NEXT: properties/property_traits.hpp +// CHECK-NEXT: properties/queue_properties.def +// CHECK-NEXT: queue.hpp +// CHECK-NEXT: access/access.hpp +// CHECK-NEXT: accessor.hpp +// CHECK-NEXT: buffer.hpp +// CHECK-NEXT: backend_types.hpp +// CHECK-NEXT: stl_wrappers/cstdlib +// CHECK-NEXT: detail/array.hpp +// CHECK-NEXT: detail/common.hpp +// CHECK-NEXT: detail/export.hpp +// CHECK-NEXT: stl_wrappers/cassert +// CHECK-NEXT: stl_wrappers/assert.h +// CHECK-NEXT: __spirv/spirv_vars.hpp +// CHECK-NEXT: detail/fwd/accessor.hpp +// CHECK-NEXT: detail/defines.hpp +// CHECK-NEXT: detail/helpers.hpp +// CHECK-NEXT: __spirv/spirv_types.hpp +// CHECK-NEXT: memory_enums.hpp +// CHECK-NEXT: detail/iostream_proxy.hpp +// CHECK-NEXT: detail/is_device_copyable.hpp +// CHECK-NEXT: detail/owner_less_base.hpp +// CHECK-NEXT: detail/impl_utils.hpp +// CHECK-NEXT: ext/oneapi/weak_object_base.hpp +// CHECK-NEXT: detail/stl_type_traits.hpp +// CHECK-NEXT: detail/sycl_mem_obj_allocator.hpp +// CHECK-NEXT: detail/aligned_allocator.hpp +// CHECK-NEXT: detail/os_util.hpp +// CHECK-NEXT: ext/oneapi/accessor_property_list.hpp +// CHECK-NEXT: detail/property_list_base.hpp +// CHECK-NEXT: exception.hpp +// CHECK-NEXT: detail/string.hpp +// CHECK-NEXT: property_list.hpp +// CHECK-NEXT: id.hpp +// CHECK-NEXT: range.hpp +// CHECK-NEXT: ur_api.h +// CHECK-NEXT: detail/accessor_iterator.hpp +// CHECK-NEXT: detail/generic_type_traits.hpp +// CHECK-NEXT: aliases.hpp +// CHECK-NEXT: bit_cast.hpp +// CHECK-NEXT: detail/fwd/half.hpp +// CHECK-NEXT: detail/type_traits.hpp +// CHECK-NEXT: detail/type_traits/vec_marray_traits.hpp +// CHECK-NEXT: detail/fwd/multi_ptr.hpp +// CHECK-NEXT: detail/handler_proxy.hpp +// CHECK-NEXT: multi_ptr.hpp +// CHECK-NEXT: detail/address_space_cast.hpp +// CHECK-NEXT: pointers.hpp +// CHECK-NEXT: properties/accessor_properties.hpp +// CHECK-NEXT: properties/runtime_accessor_properties.def +// CHECK-NEXT: properties/buffer_properties.hpp +// CHECK-NEXT: context.hpp +// CHECK-NEXT: async_handler.hpp +// CHECK-NEXT: detail/info_desc_helpers.hpp +// CHECK-NEXT: aspects.hpp +// CHECK-NEXT: info/aspects.def +// CHECK-NEXT: info/aspects_deprecated.def +// CHECK-NEXT: info/info_desc.hpp +// CHECK-NEXT: ext/oneapi/experimental/device_architecture.hpp +// CHECK-NEXT: ext/oneapi/experimental/device_architecture.def +// CHECK-NEXT: ext/oneapi/experimental/forward_progress.hpp +// CHECK-NEXT: ext/oneapi/matrix/query-types.hpp +// CHECK-NEXT: ext/oneapi/bfloat16.hpp +// CHECK-NEXT: half_type.hpp +// CHECK-NEXT: ext/oneapi/matrix/matrix-unified-utils.hpp +// CHECK-NEXT: info/platform_traits.def +// CHECK-NEXT: info/context_traits.def +// CHECK-NEXT: info/device_traits_2020_deprecated.def +// CHECK-NEXT: info/device_traits_deprecated.def +// CHECK-NEXT: info/device_traits.def +// CHECK-NEXT: info/queue_traits.def +// CHECK-NEXT: info/kernel_traits.def +// CHECK-NEXT: info/kernel_device_specific_traits.def +// CHECK-NEXT: info/event_traits.def +// CHECK-NEXT: info/event_profiling_traits.def +// CHECK-NEXT: info/ext_codeplay_device_traits.def +// CHECK-NEXT: info/ext_intel_device_traits.def +// CHECK-NEXT: info/ext_intel_kernel_info_traits.def +// CHECK-NEXT: info/ext_oneapi_device_traits.def +// CHECK-NEXT: info/ext_oneapi_kernel_queue_specific_traits.def +// CHECK-NEXT: info/sycl_backend_traits.def +// CHECK-NEXT: usm/usm_enums.hpp +// CHECK-NEXT: properties/buffer_properties.def +// CHECK-NEXT: detail/cg_types.hpp +// CHECK-NEXT: detail/host_profiling_info.hpp +// CHECK-NEXT: detail/item_base.hpp +// CHECK-NEXT: detail/kernel_desc.hpp +// CHECK-NEXT: group.hpp +// CHECK-NEXT: device_event.hpp +// CHECK-NEXT: item.hpp +// CHECK-NEXT: h_item.hpp +// CHECK-NEXT: kernel_handler.hpp +// CHECK-NEXT: nd_item.hpp +// CHECK-NEXT: nd_range.hpp +// CHECK-NEXT: detail/id_queries_fit_in_int.hpp +// CHECK-NEXT: detail/optional.hpp +// CHECK-NEXT: device.hpp +// CHECK-NEXT: detail/string_view.hpp +// CHECK-NEXT: detail/util.hpp +// CHECK-NEXT: device_selector.hpp +// CHECK-NEXT: kernel_bundle_enums.hpp +// CHECK-NEXT: event.hpp +// CHECK-NEXT: exception_list.hpp +// CHECK-NEXT: ext/oneapi/device_global/device_global.hpp +// CHECK-NEXT: ext/oneapi/device_global/properties.hpp +// CHECK-NEXT: ext/oneapi/properties/property.hpp +// CHECK-NEXT: ext/oneapi/properties/property_value.hpp +// CHECK-NEXT: ext/oneapi/properties/properties.hpp +// CHECK-NEXT: ext/oneapi/properties/property_utils.hpp +// CHECK-NEXT: ext/oneapi/experimental/event_mode_property.hpp +// CHECK-NEXT: ext/oneapi/experimental/graph.hpp +// CHECK-NEXT: ext/oneapi/experimental/graph/command_graph.hpp +// CHECK-NEXT: ext/oneapi/experimental/graph/common.hpp +// CHECK-NEXT: ext/oneapi/experimental/graph/executable_graph.hpp +// CHECK-NEXT: ext/oneapi/experimental/graph/node.hpp +// CHECK-NEXT: ext/oneapi/experimental/detail/properties/graph_properties.hpp +// CHECK-NEXT: ext/oneapi/experimental/detail/properties/graph_properties.def +// CHECK-NEXT: ext/oneapi/experimental/detail/properties/node_properties.def +// CHECK-NEXT: ext/oneapi/experimental/graph/modifiable_graph.hpp +// CHECK-NEXT: ext/oneapi/experimental/graph/dynamic.hpp +// CHECK-NEXT: ext/oneapi/experimental/work_group_memory.hpp +// CHECK-NEXT: handler.hpp +// CHECK-NEXT: detail/cl.h +// CHECK-NEXT: CL/cl.h +// CHECK-NEXT: CL/cl_version.h +// CHECK-NEXT: CL/cl_platform.h +// CHECK-NEXT: CL/cl_ext.h +// CHECK-NEXT: detail/get_device_kernel_info.hpp +// CHECK-NEXT: detail/compile_time_kernel_info.hpp +// CHECK-NEXT: detail/kernel_launch_helper.hpp +// CHECK-NEXT: ext/intel/experimental/fp_control_kernel_properties.hpp +// CHECK-NEXT: ext/intel/experimental/kernel_execution_properties.hpp +// CHECK-NEXT: ext/oneapi/experimental/virtual_functions.hpp +// CHECK-NEXT: ext/oneapi/kernel_properties/properties.hpp +// CHECK-NEXT: ext/oneapi/work_group_scratch_memory.hpp +// CHECK-NEXT: detail/sycl_local_mem_builtins.hpp +// CHECK-NEXT: detail/kernel_name_str_t.hpp +// CHECK-NEXT: detail/reduction_forward.hpp +// CHECK-NEXT: detail/ur.hpp +// CHECK-NEXT: ur_api_funcs.def +// CHECK-NEXT: ext/oneapi/bindless_images_interop.hpp +// CHECK-NEXT: ext/oneapi/interop_common.hpp +// CHECK-NEXT: ext/oneapi/bindless_images_mem_handle.hpp +// CHECK-NEXT: ext/oneapi/experimental/cluster_group_prop.hpp +// CHECK-NEXT: ext/oneapi/experimental/raw_kernel_arg.hpp +// CHECK-NEXT: ext/oneapi/experimental/use_root_sync_prop.hpp +// CHECK-NEXT: kernel.hpp +// CHECK-NEXT: sampler.hpp +// CHECK-EMPTY: diff --git a/sycl/test/include_deps/sycl_khr_includes_reduction.hpp.cpp b/sycl/test/include_deps/sycl_khr_includes_reduction.hpp.cpp new file mode 100644 index 0000000000000..d233d264267ac --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_reduction.hpp.cpp @@ -0,0 +1,191 @@ +// Use update_test.sh to (re-)generate the checks +// REQUIRES: linux +// RUN: bash %S/deps_known.sh sycl/khr/includes/reduction.hpp | FileCheck %s + +// CHECK-LABEL: Dependencies for : +// CHECK-NEXT: /dev/null: /dev/null +// CHECK-NEXT: khr/includes/reduction.hpp +// CHECK-NEXT: khr/includes/version.hpp +// CHECK-NEXT: detail/defines_elementary.hpp +// CHECK-NEXT: feature_test.hpp +// CHECK-NEXT: properties/reduction_properties.hpp +// CHECK-NEXT: detail/property_helper.hpp +// CHECK-NEXT: properties/reduction_properties.def +// CHECK-NEXT: reduction.hpp +// CHECK-NEXT: access/access.hpp +// CHECK-NEXT: accessor.hpp +// CHECK-NEXT: buffer.hpp +// CHECK-NEXT: backend_types.hpp +// CHECK-NEXT: stl_wrappers/cstdlib +// CHECK-NEXT: detail/array.hpp +// CHECK-NEXT: detail/common.hpp +// CHECK-NEXT: detail/export.hpp +// CHECK-NEXT: stl_wrappers/cassert +// CHECK-NEXT: stl_wrappers/assert.h +// CHECK-NEXT: __spirv/spirv_vars.hpp +// CHECK-NEXT: detail/fwd/accessor.hpp +// CHECK-NEXT: detail/defines.hpp +// CHECK-NEXT: detail/helpers.hpp +// CHECK-NEXT: __spirv/spirv_types.hpp +// CHECK-NEXT: memory_enums.hpp +// CHECK-NEXT: detail/iostream_proxy.hpp +// CHECK-NEXT: detail/is_device_copyable.hpp +// CHECK-NEXT: detail/owner_less_base.hpp +// CHECK-NEXT: detail/impl_utils.hpp +// CHECK-NEXT: ext/oneapi/weak_object_base.hpp +// CHECK-NEXT: detail/stl_type_traits.hpp +// CHECK-NEXT: detail/sycl_mem_obj_allocator.hpp +// CHECK-NEXT: detail/aligned_allocator.hpp +// CHECK-NEXT: detail/os_util.hpp +// CHECK-NEXT: ext/oneapi/accessor_property_list.hpp +// CHECK-NEXT: detail/property_list_base.hpp +// CHECK-NEXT: exception.hpp +// CHECK-NEXT: detail/string.hpp +// CHECK-NEXT: property_list.hpp +// CHECK-NEXT: properties/property_traits.hpp +// CHECK-NEXT: id.hpp +// CHECK-NEXT: range.hpp +// CHECK-NEXT: ur_api.h +// CHECK-NEXT: detail/accessor_iterator.hpp +// CHECK-NEXT: detail/generic_type_traits.hpp +// CHECK-NEXT: aliases.hpp +// CHECK-NEXT: bit_cast.hpp +// CHECK-NEXT: detail/fwd/half.hpp +// CHECK-NEXT: detail/type_traits.hpp +// CHECK-NEXT: detail/type_traits/vec_marray_traits.hpp +// CHECK-NEXT: detail/fwd/multi_ptr.hpp +// CHECK-NEXT: detail/handler_proxy.hpp +// CHECK-NEXT: multi_ptr.hpp +// CHECK-NEXT: detail/address_space_cast.hpp +// CHECK-NEXT: pointers.hpp +// CHECK-NEXT: properties/accessor_properties.hpp +// CHECK-NEXT: properties/runtime_accessor_properties.def +// CHECK-NEXT: properties/buffer_properties.hpp +// CHECK-NEXT: context.hpp +// CHECK-NEXT: async_handler.hpp +// CHECK-NEXT: detail/info_desc_helpers.hpp +// CHECK-NEXT: aspects.hpp +// CHECK-NEXT: info/aspects.def +// CHECK-NEXT: info/aspects_deprecated.def +// CHECK-NEXT: info/info_desc.hpp +// CHECK-NEXT: ext/oneapi/experimental/device_architecture.hpp +// CHECK-NEXT: ext/oneapi/experimental/device_architecture.def +// CHECK-NEXT: ext/oneapi/experimental/forward_progress.hpp +// CHECK-NEXT: ext/oneapi/matrix/query-types.hpp +// CHECK-NEXT: ext/oneapi/bfloat16.hpp +// CHECK-NEXT: half_type.hpp +// CHECK-NEXT: ext/oneapi/matrix/matrix-unified-utils.hpp +// CHECK-NEXT: info/platform_traits.def +// CHECK-NEXT: info/context_traits.def +// CHECK-NEXT: info/device_traits_2020_deprecated.def +// CHECK-NEXT: info/device_traits_deprecated.def +// CHECK-NEXT: info/device_traits.def +// CHECK-NEXT: info/queue_traits.def +// CHECK-NEXT: info/kernel_traits.def +// CHECK-NEXT: info/kernel_device_specific_traits.def +// CHECK-NEXT: info/event_traits.def +// CHECK-NEXT: info/event_profiling_traits.def +// CHECK-NEXT: info/ext_codeplay_device_traits.def +// CHECK-NEXT: info/ext_intel_device_traits.def +// CHECK-NEXT: info/ext_intel_kernel_info_traits.def +// CHECK-NEXT: info/ext_oneapi_device_traits.def +// CHECK-NEXT: info/ext_oneapi_kernel_queue_specific_traits.def +// CHECK-NEXT: info/sycl_backend_traits.def +// CHECK-NEXT: usm/usm_enums.hpp +// CHECK-NEXT: properties/buffer_properties.def +// CHECK-NEXT: atomic.hpp +// CHECK-NEXT: __spirv/spirv_ops.hpp +// CHECK-NEXT: atomic_ref.hpp +// CHECK-NEXT: ext/oneapi/experimental/address_cast.hpp +// CHECK-NEXT: detail/spirv.hpp +// CHECK-NEXT: detail/memcpy.hpp +// CHECK-NEXT: builtins.hpp +// CHECK-NEXT: detail/builtins/builtins.hpp +// CHECK-NEXT: detail/vector_convert.hpp +// CHECK-NEXT: vector.hpp +// CHECK-NEXT: detail/named_swizzles_mixin.hpp +// CHECK-NEXT: detail/vector_arith.hpp +// CHECK-NEXT: marray.hpp +// CHECK-NEXT: detail/builtins/common_functions.inc +// CHECK-NEXT: detail/builtins/helper_macros.hpp +// CHECK-NEXT: detail/builtins/geometric_functions.inc +// CHECK-NEXT: detail/builtins/half_precision_math_functions.inc +// CHECK-NEXT: detail/builtins/integer_functions.inc +// CHECK-NEXT: detail/builtins/math_functions.inc +// CHECK-NEXT: detail/builtins/native_math_functions.inc +// CHECK-NEXT: detail/builtins/relational_functions.inc +// CHECK-NEXT: detail/item_base.hpp +// CHECK-NEXT: detail/reduction_forward.hpp +// CHECK-NEXT: item.hpp +// CHECK-NEXT: nd_range.hpp +// CHECK-NEXT: detail/tuple.hpp +// CHECK-NEXT: device.hpp +// CHECK-NEXT: detail/string_view.hpp +// CHECK-NEXT: detail/util.hpp +// CHECK-NEXT: device_selector.hpp +// CHECK-NEXT: kernel_bundle_enums.hpp +// CHECK-NEXT: event.hpp +// CHECK-NEXT: exception_list.hpp +// CHECK-NEXT: group.hpp +// CHECK-NEXT: device_event.hpp +// CHECK-NEXT: group_algorithm.hpp +// CHECK-NEXT: functional.hpp +// CHECK-NEXT: known_identity.hpp +// CHECK-NEXT: nd_item.hpp +// CHECK-NEXT: ext/oneapi/functional.hpp +// CHECK-NEXT: handler.hpp +// CHECK-NEXT: detail/cl.h +// CHECK-NEXT: CL/cl.h +// CHECK-NEXT: CL/cl_version.h +// CHECK-NEXT: CL/cl_platform.h +// CHECK-NEXT: CL/cl_ext.h +// CHECK-NEXT: detail/get_device_kernel_info.hpp +// CHECK-NEXT: detail/compile_time_kernel_info.hpp +// CHECK-NEXT: detail/kernel_desc.hpp +// CHECK-NEXT: detail/id_queries_fit_in_int.hpp +// CHECK-NEXT: detail/kernel_launch_helper.hpp +// CHECK-NEXT: detail/cg_types.hpp +// CHECK-NEXT: detail/host_profiling_info.hpp +// CHECK-NEXT: h_item.hpp +// CHECK-NEXT: kernel_handler.hpp +// CHECK-NEXT: ext/intel/experimental/fp_control_kernel_properties.hpp +// CHECK-NEXT: ext/oneapi/properties/property.hpp +// CHECK-NEXT: ext/oneapi/properties/property_value.hpp +// CHECK-NEXT: ext/intel/experimental/kernel_execution_properties.hpp +// CHECK-NEXT: ext/oneapi/experimental/virtual_functions.hpp +// CHECK-NEXT: ext/oneapi/properties/property_utils.hpp +// CHECK-NEXT: ext/oneapi/kernel_properties/properties.hpp +// CHECK-NEXT: ext/oneapi/properties/properties.hpp +// CHECK-NEXT: ext/oneapi/work_group_scratch_memory.hpp +// CHECK-NEXT: detail/sycl_local_mem_builtins.hpp +// CHECK-NEXT: detail/kernel_name_str_t.hpp +// CHECK-NEXT: detail/ur.hpp +// CHECK-NEXT: ur_api_funcs.def +// CHECK-NEXT: ext/oneapi/bindless_images_interop.hpp +// CHECK-NEXT: ext/oneapi/interop_common.hpp +// CHECK-NEXT: ext/oneapi/bindless_images_mem_handle.hpp +// CHECK-NEXT: ext/oneapi/device_global/device_global.hpp +// CHECK-NEXT: ext/oneapi/device_global/properties.hpp +// CHECK-NEXT: ext/oneapi/experimental/cluster_group_prop.hpp +// CHECK-NEXT: ext/oneapi/experimental/graph.hpp +// CHECK-NEXT: ext/oneapi/experimental/graph/command_graph.hpp +// CHECK-NEXT: ext/oneapi/experimental/graph/common.hpp +// CHECK-NEXT: ext/oneapi/experimental/graph/executable_graph.hpp +// CHECK-NEXT: ext/oneapi/experimental/graph/node.hpp +// CHECK-NEXT: ext/oneapi/experimental/detail/properties/graph_properties.hpp +// CHECK-NEXT: ext/oneapi/experimental/detail/properties/graph_properties.def +// CHECK-NEXT: ext/oneapi/experimental/detail/properties/node_properties.def +// CHECK-NEXT: ext/oneapi/experimental/graph/modifiable_graph.hpp +// CHECK-NEXT: ext/oneapi/experimental/graph/dynamic.hpp +// CHECK-NEXT: ext/oneapi/experimental/work_group_memory.hpp +// CHECK-NEXT: ext/oneapi/experimental/raw_kernel_arg.hpp +// CHECK-NEXT: ext/oneapi/experimental/use_root_sync_prop.hpp +// CHECK-NEXT: kernel.hpp +// CHECK-NEXT: sampler.hpp +// CHECK-NEXT: queue.hpp +// CHECK-NEXT: detail/optional.hpp +// CHECK-NEXT: ext/oneapi/experimental/event_mode_property.hpp +// CHECK-NEXT: sycl_span.hpp +// CHECK-NEXT: usm.hpp +// CHECK-NEXT: usm/usm_pointer_info.hpp +// CHECK-EMPTY: diff --git a/sycl/test/include_deps/sycl_khr_includes_span.hpp.cpp b/sycl/test/include_deps/sycl_khr_includes_span.hpp.cpp new file mode 100644 index 0000000000000..a8942ff7f3f99 --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_span.hpp.cpp @@ -0,0 +1,16 @@ +// Use update_test.sh to (re-)generate the checks +// REQUIRES: linux +// RUN: bash %S/deps_known.sh sycl/khr/includes/span.hpp | FileCheck %s + +// CHECK-LABEL: Dependencies for : +// CHECK-NEXT: /dev/null: /dev/null +// CHECK-NEXT: khr/includes/span.hpp +// CHECK-NEXT: khr/includes/version.hpp +// CHECK-NEXT: detail/defines_elementary.hpp +// CHECK-NEXT: feature_test.hpp +// CHECK-NEXT: sycl_span.hpp +// CHECK-NEXT: stl_wrappers/cassert +// CHECK-NEXT: stl_wrappers/assert.h +// CHECK-NEXT: __spirv/spirv_vars.hpp +// CHECK-NEXT: stl_wrappers/cstdlib +// CHECK-EMPTY: diff --git a/sycl/test/include_deps/sycl_khr_includes_stream.hpp.cpp b/sycl/test/include_deps/sycl_khr_includes_stream.hpp.cpp new file mode 100644 index 0000000000000..0be5245e52157 --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_stream.hpp.cpp @@ -0,0 +1,174 @@ +// Use update_test.sh to (re-)generate the checks +// REQUIRES: linux +// RUN: bash %S/deps_known.sh sycl/khr/includes/stream.hpp | FileCheck %s + +// CHECK-LABEL: Dependencies for : +// CHECK-NEXT: /dev/null: /dev/null +// CHECK-NEXT: khr/includes/stream.hpp +// CHECK-NEXT: khr/includes/version.hpp +// CHECK-NEXT: detail/defines_elementary.hpp +// CHECK-NEXT: feature_test.hpp +// CHECK-NEXT: stream.hpp +// CHECK-NEXT: access/access.hpp +// CHECK-NEXT: accessor.hpp +// CHECK-NEXT: buffer.hpp +// CHECK-NEXT: backend_types.hpp +// CHECK-NEXT: stl_wrappers/cstdlib +// CHECK-NEXT: detail/array.hpp +// CHECK-NEXT: detail/common.hpp +// CHECK-NEXT: detail/export.hpp +// CHECK-NEXT: stl_wrappers/cassert +// CHECK-NEXT: stl_wrappers/assert.h +// CHECK-NEXT: __spirv/spirv_vars.hpp +// CHECK-NEXT: detail/fwd/accessor.hpp +// CHECK-NEXT: detail/defines.hpp +// CHECK-NEXT: detail/helpers.hpp +// CHECK-NEXT: __spirv/spirv_types.hpp +// CHECK-NEXT: memory_enums.hpp +// CHECK-NEXT: detail/iostream_proxy.hpp +// CHECK-NEXT: detail/is_device_copyable.hpp +// CHECK-NEXT: detail/owner_less_base.hpp +// CHECK-NEXT: detail/impl_utils.hpp +// CHECK-NEXT: ext/oneapi/weak_object_base.hpp +// CHECK-NEXT: detail/property_helper.hpp +// CHECK-NEXT: detail/stl_type_traits.hpp +// CHECK-NEXT: detail/sycl_mem_obj_allocator.hpp +// CHECK-NEXT: detail/aligned_allocator.hpp +// CHECK-NEXT: detail/os_util.hpp +// CHECK-NEXT: ext/oneapi/accessor_property_list.hpp +// CHECK-NEXT: detail/property_list_base.hpp +// CHECK-NEXT: exception.hpp +// CHECK-NEXT: detail/string.hpp +// CHECK-NEXT: property_list.hpp +// CHECK-NEXT: properties/property_traits.hpp +// CHECK-NEXT: id.hpp +// CHECK-NEXT: range.hpp +// CHECK-NEXT: ur_api.h +// CHECK-NEXT: detail/accessor_iterator.hpp +// CHECK-NEXT: detail/generic_type_traits.hpp +// CHECK-NEXT: aliases.hpp +// CHECK-NEXT: bit_cast.hpp +// CHECK-NEXT: detail/fwd/half.hpp +// CHECK-NEXT: detail/type_traits.hpp +// CHECK-NEXT: detail/type_traits/vec_marray_traits.hpp +// CHECK-NEXT: detail/fwd/multi_ptr.hpp +// CHECK-NEXT: detail/handler_proxy.hpp +// CHECK-NEXT: multi_ptr.hpp +// CHECK-NEXT: detail/address_space_cast.hpp +// CHECK-NEXT: pointers.hpp +// CHECK-NEXT: properties/accessor_properties.hpp +// CHECK-NEXT: properties/runtime_accessor_properties.def +// CHECK-NEXT: properties/buffer_properties.hpp +// CHECK-NEXT: context.hpp +// CHECK-NEXT: async_handler.hpp +// CHECK-NEXT: detail/info_desc_helpers.hpp +// CHECK-NEXT: aspects.hpp +// CHECK-NEXT: info/aspects.def +// CHECK-NEXT: info/aspects_deprecated.def +// CHECK-NEXT: info/info_desc.hpp +// CHECK-NEXT: ext/oneapi/experimental/device_architecture.hpp +// CHECK-NEXT: ext/oneapi/experimental/device_architecture.def +// CHECK-NEXT: ext/oneapi/experimental/forward_progress.hpp +// CHECK-NEXT: ext/oneapi/matrix/query-types.hpp +// CHECK-NEXT: ext/oneapi/bfloat16.hpp +// CHECK-NEXT: half_type.hpp +// CHECK-NEXT: ext/oneapi/matrix/matrix-unified-utils.hpp +// CHECK-NEXT: info/platform_traits.def +// CHECK-NEXT: info/context_traits.def +// CHECK-NEXT: info/device_traits_2020_deprecated.def +// CHECK-NEXT: info/device_traits_deprecated.def +// CHECK-NEXT: info/device_traits.def +// CHECK-NEXT: info/queue_traits.def +// CHECK-NEXT: info/kernel_traits.def +// CHECK-NEXT: info/kernel_device_specific_traits.def +// CHECK-NEXT: info/event_traits.def +// CHECK-NEXT: info/event_profiling_traits.def +// CHECK-NEXT: info/ext_codeplay_device_traits.def +// CHECK-NEXT: info/ext_intel_device_traits.def +// CHECK-NEXT: info/ext_intel_kernel_info_traits.def +// CHECK-NEXT: info/ext_oneapi_device_traits.def +// CHECK-NEXT: info/ext_oneapi_kernel_queue_specific_traits.def +// CHECK-NEXT: info/sycl_backend_traits.def +// CHECK-NEXT: usm/usm_enums.hpp +// CHECK-NEXT: properties/buffer_properties.def +// CHECK-NEXT: atomic.hpp +// CHECK-NEXT: __spirv/spirv_ops.hpp +// CHECK-NEXT: builtins.hpp +// CHECK-NEXT: detail/builtins/builtins.hpp +// CHECK-NEXT: detail/vector_convert.hpp +// CHECK-NEXT: detail/memcpy.hpp +// CHECK-NEXT: vector.hpp +// CHECK-NEXT: detail/named_swizzles_mixin.hpp +// CHECK-NEXT: detail/vector_arith.hpp +// CHECK-NEXT: marray.hpp +// CHECK-NEXT: detail/builtins/common_functions.inc +// CHECK-NEXT: detail/builtins/helper_macros.hpp +// CHECK-NEXT: detail/builtins/geometric_functions.inc +// CHECK-NEXT: detail/builtins/half_precision_math_functions.inc +// CHECK-NEXT: detail/builtins/integer_functions.inc +// CHECK-NEXT: detail/builtins/math_functions.inc +// CHECK-NEXT: detail/builtins/native_math_functions.inc +// CHECK-NEXT: detail/builtins/relational_functions.inc +// CHECK-NEXT: group.hpp +// CHECK-NEXT: device_event.hpp +// CHECK-NEXT: item.hpp +// CHECK-NEXT: detail/item_base.hpp +// CHECK-NEXT: h_item.hpp +// CHECK-NEXT: handler.hpp +// CHECK-NEXT: detail/cl.h +// CHECK-NEXT: CL/cl.h +// CHECK-NEXT: CL/cl_version.h +// CHECK-NEXT: CL/cl_platform.h +// CHECK-NEXT: CL/cl_ext.h +// CHECK-NEXT: detail/get_device_kernel_info.hpp +// CHECK-NEXT: detail/compile_time_kernel_info.hpp +// CHECK-NEXT: detail/kernel_desc.hpp +// CHECK-NEXT: detail/string_view.hpp +// CHECK-NEXT: detail/id_queries_fit_in_int.hpp +// CHECK-NEXT: detail/kernel_launch_helper.hpp +// CHECK-NEXT: detail/cg_types.hpp +// CHECK-NEXT: detail/host_profiling_info.hpp +// CHECK-NEXT: kernel_handler.hpp +// CHECK-NEXT: nd_item.hpp +// CHECK-NEXT: nd_range.hpp +// CHECK-NEXT: ext/intel/experimental/fp_control_kernel_properties.hpp +// CHECK-NEXT: ext/oneapi/properties/property.hpp +// CHECK-NEXT: ext/oneapi/properties/property_value.hpp +// CHECK-NEXT: ext/intel/experimental/kernel_execution_properties.hpp +// CHECK-NEXT: ext/oneapi/experimental/virtual_functions.hpp +// CHECK-NEXT: ext/oneapi/properties/property_utils.hpp +// CHECK-NEXT: ext/oneapi/kernel_properties/properties.hpp +// CHECK-NEXT: ext/oneapi/properties/properties.hpp +// CHECK-NEXT: ext/oneapi/work_group_scratch_memory.hpp +// CHECK-NEXT: detail/sycl_local_mem_builtins.hpp +// CHECK-NEXT: detail/kernel_name_str_t.hpp +// CHECK-NEXT: detail/reduction_forward.hpp +// CHECK-NEXT: detail/ur.hpp +// CHECK-NEXT: ur_api_funcs.def +// CHECK-NEXT: device.hpp +// CHECK-NEXT: detail/util.hpp +// CHECK-NEXT: device_selector.hpp +// CHECK-NEXT: kernel_bundle_enums.hpp +// CHECK-NEXT: event.hpp +// CHECK-NEXT: ext/oneapi/bindless_images_interop.hpp +// CHECK-NEXT: ext/oneapi/interop_common.hpp +// CHECK-NEXT: ext/oneapi/bindless_images_mem_handle.hpp +// CHECK-NEXT: ext/oneapi/device_global/device_global.hpp +// CHECK-NEXT: ext/oneapi/device_global/properties.hpp +// CHECK-NEXT: ext/oneapi/experimental/cluster_group_prop.hpp +// CHECK-NEXT: ext/oneapi/experimental/graph.hpp +// CHECK-NEXT: ext/oneapi/experimental/graph/command_graph.hpp +// CHECK-NEXT: ext/oneapi/experimental/graph/common.hpp +// CHECK-NEXT: ext/oneapi/experimental/graph/executable_graph.hpp +// CHECK-NEXT: ext/oneapi/experimental/graph/node.hpp +// CHECK-NEXT: ext/oneapi/experimental/detail/properties/graph_properties.hpp +// CHECK-NEXT: ext/oneapi/experimental/detail/properties/graph_properties.def +// CHECK-NEXT: ext/oneapi/experimental/detail/properties/node_properties.def +// CHECK-NEXT: ext/oneapi/experimental/graph/modifiable_graph.hpp +// CHECK-NEXT: ext/oneapi/experimental/graph/dynamic.hpp +// CHECK-NEXT: ext/oneapi/experimental/work_group_memory.hpp +// CHECK-NEXT: ext/oneapi/experimental/raw_kernel_arg.hpp +// CHECK-NEXT: ext/oneapi/experimental/use_root_sync_prop.hpp +// CHECK-NEXT: kernel.hpp +// CHECK-NEXT: sampler.hpp +// CHECK-EMPTY: diff --git a/sycl/test/include_deps/sycl_khr_includes_type_traits.hpp.cpp b/sycl/test/include_deps/sycl_khr_includes_type_traits.hpp.cpp new file mode 100644 index 0000000000000..6a6664f6babc0 --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_type_traits.hpp.cpp @@ -0,0 +1,17 @@ +// Use update_test.sh to (re-)generate the checks +// REQUIRES: linux +// RUN: bash %S/deps_known.sh sycl/khr/includes/type_traits.hpp | FileCheck %s + +// CHECK-LABEL: Dependencies for : +// CHECK-NEXT: /dev/null: /dev/null +// CHECK-NEXT: khr/includes/type_traits.hpp +// CHECK-NEXT: khr/includes/version.hpp +// CHECK-NEXT: detail/defines_elementary.hpp +// CHECK-NEXT: feature_test.hpp +// CHECK-NEXT: device_aspect_traits.hpp +// CHECK-NEXT: device_aspect_macros.hpp +// CHECK-NEXT: aspects.hpp +// CHECK-NEXT: detail/defines.hpp +// CHECK-NEXT: info/aspects.def +// CHECK-NEXT: info/aspects_deprecated.def +// CHECK-EMPTY: diff --git a/sycl/test/include_deps/sycl_khr_includes_usm.hpp.cpp b/sycl/test/include_deps/sycl_khr_includes_usm.hpp.cpp new file mode 100644 index 0000000000000..87de587378f40 --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_usm.hpp.cpp @@ -0,0 +1,178 @@ +// Use update_test.sh to (re-)generate the checks +// REQUIRES: linux +// RUN: bash %S/deps_known.sh sycl/khr/includes/usm.hpp | FileCheck %s + +// CHECK-LABEL: Dependencies for : +// CHECK-NEXT: /dev/null: /dev/null +// CHECK-NEXT: khr/includes/usm.hpp +// CHECK-NEXT: khr/includes/version.hpp +// CHECK-NEXT: detail/defines_elementary.hpp +// CHECK-NEXT: feature_test.hpp +// CHECK-NEXT: usm.hpp +// CHECK-NEXT: builtins.hpp +// CHECK-NEXT: detail/builtins/builtins.hpp +// CHECK-NEXT: detail/helpers.hpp +// CHECK-NEXT: __spirv/spirv_types.hpp +// CHECK-NEXT: detail/defines.hpp +// CHECK-NEXT: access/access.hpp +// CHECK-NEXT: detail/export.hpp +// CHECK-NEXT: memory_enums.hpp +// CHECK-NEXT: __spirv/spirv_vars.hpp +// CHECK-NEXT: detail/type_traits.hpp +// CHECK-NEXT: detail/type_traits/vec_marray_traits.hpp +// CHECK-NEXT: detail/fwd/multi_ptr.hpp +// CHECK-NEXT: detail/vector_convert.hpp +// CHECK-NEXT: detail/generic_type_traits.hpp +// CHECK-NEXT: aliases.hpp +// CHECK-NEXT: bit_cast.hpp +// CHECK-NEXT: detail/fwd/half.hpp +// CHECK-NEXT: detail/memcpy.hpp +// CHECK-NEXT: ext/oneapi/bfloat16.hpp +// CHECK-NEXT: half_type.hpp +// CHECK-NEXT: aspects.hpp +// CHECK-NEXT: info/aspects.def +// CHECK-NEXT: info/aspects_deprecated.def +// CHECK-NEXT: vector.hpp +// CHECK-NEXT: detail/named_swizzles_mixin.hpp +// CHECK-NEXT: detail/vector_arith.hpp +// CHECK-NEXT: stl_wrappers/cstdlib +// CHECK-NEXT: detail/common.hpp +// CHECK-NEXT: stl_wrappers/cassert +// CHECK-NEXT: stl_wrappers/assert.h +// CHECK-NEXT: detail/fwd/accessor.hpp +// CHECK-NEXT: marray.hpp +// CHECK-NEXT: multi_ptr.hpp +// CHECK-NEXT: detail/address_space_cast.hpp +// CHECK-NEXT: detail/builtins/common_functions.inc +// CHECK-NEXT: detail/builtins/helper_macros.hpp +// CHECK-NEXT: detail/builtins/geometric_functions.inc +// CHECK-NEXT: detail/builtins/half_precision_math_functions.inc +// CHECK-NEXT: detail/builtins/integer_functions.inc +// CHECK-NEXT: detail/builtins/math_functions.inc +// CHECK-NEXT: detail/builtins/native_math_functions.inc +// CHECK-NEXT: detail/builtins/relational_functions.inc +// CHECK-NEXT: device.hpp +// CHECK-NEXT: backend_types.hpp +// CHECK-NEXT: detail/info_desc_helpers.hpp +// CHECK-NEXT: id.hpp +// CHECK-NEXT: detail/array.hpp +// CHECK-NEXT: range.hpp +// CHECK-NEXT: info/info_desc.hpp +// CHECK-NEXT: ur_api.h +// CHECK-NEXT: ext/oneapi/experimental/device_architecture.hpp +// CHECK-NEXT: ext/oneapi/experimental/device_architecture.def +// CHECK-NEXT: ext/oneapi/experimental/forward_progress.hpp +// CHECK-NEXT: ext/oneapi/matrix/query-types.hpp +// CHECK-NEXT: ext/oneapi/matrix/matrix-unified-utils.hpp +// CHECK-NEXT: info/platform_traits.def +// CHECK-NEXT: info/context_traits.def +// CHECK-NEXT: info/device_traits_2020_deprecated.def +// CHECK-NEXT: info/device_traits_deprecated.def +// CHECK-NEXT: info/device_traits.def +// CHECK-NEXT: info/queue_traits.def +// CHECK-NEXT: info/kernel_traits.def +// CHECK-NEXT: info/kernel_device_specific_traits.def +// CHECK-NEXT: info/event_traits.def +// CHECK-NEXT: info/event_profiling_traits.def +// CHECK-NEXT: info/ext_codeplay_device_traits.def +// CHECK-NEXT: info/ext_intel_device_traits.def +// CHECK-NEXT: info/ext_intel_kernel_info_traits.def +// CHECK-NEXT: info/ext_oneapi_device_traits.def +// CHECK-NEXT: info/ext_oneapi_kernel_queue_specific_traits.def +// CHECK-NEXT: info/sycl_backend_traits.def +// CHECK-NEXT: detail/owner_less_base.hpp +// CHECK-NEXT: detail/impl_utils.hpp +// CHECK-NEXT: ext/oneapi/weak_object_base.hpp +// CHECK-NEXT: detail/string.hpp +// CHECK-NEXT: detail/string_view.hpp +// CHECK-NEXT: detail/util.hpp +// CHECK-NEXT: device_selector.hpp +// CHECK-NEXT: kernel_bundle_enums.hpp +// CHECK-NEXT: property_list.hpp +// CHECK-NEXT: detail/property_helper.hpp +// CHECK-NEXT: detail/property_list_base.hpp +// CHECK-NEXT: exception.hpp +// CHECK-NEXT: properties/property_traits.hpp +// CHECK-NEXT: queue.hpp +// CHECK-NEXT: accessor.hpp +// CHECK-NEXT: buffer.hpp +// CHECK-NEXT: detail/iostream_proxy.hpp +// CHECK-NEXT: detail/is_device_copyable.hpp +// CHECK-NEXT: detail/stl_type_traits.hpp +// CHECK-NEXT: detail/sycl_mem_obj_allocator.hpp +// CHECK-NEXT: detail/aligned_allocator.hpp +// CHECK-NEXT: detail/os_util.hpp +// CHECK-NEXT: ext/oneapi/accessor_property_list.hpp +// CHECK-NEXT: detail/accessor_iterator.hpp +// CHECK-NEXT: detail/handler_proxy.hpp +// CHECK-NEXT: pointers.hpp +// CHECK-NEXT: properties/accessor_properties.hpp +// CHECK-NEXT: properties/runtime_accessor_properties.def +// CHECK-NEXT: properties/buffer_properties.hpp +// CHECK-NEXT: context.hpp +// CHECK-NEXT: async_handler.hpp +// CHECK-NEXT: usm/usm_enums.hpp +// CHECK-NEXT: properties/buffer_properties.def +// CHECK-NEXT: detail/cg_types.hpp +// CHECK-NEXT: detail/host_profiling_info.hpp +// CHECK-NEXT: detail/item_base.hpp +// CHECK-NEXT: detail/kernel_desc.hpp +// CHECK-NEXT: group.hpp +// CHECK-NEXT: device_event.hpp +// CHECK-NEXT: item.hpp +// CHECK-NEXT: h_item.hpp +// CHECK-NEXT: kernel_handler.hpp +// CHECK-NEXT: nd_item.hpp +// CHECK-NEXT: nd_range.hpp +// CHECK-NEXT: detail/id_queries_fit_in_int.hpp +// CHECK-NEXT: detail/optional.hpp +// CHECK-NEXT: event.hpp +// CHECK-NEXT: exception_list.hpp +// CHECK-NEXT: ext/oneapi/device_global/device_global.hpp +// CHECK-NEXT: ext/oneapi/device_global/properties.hpp +// CHECK-NEXT: ext/oneapi/properties/property.hpp +// CHECK-NEXT: ext/oneapi/properties/property_value.hpp +// CHECK-NEXT: ext/oneapi/properties/properties.hpp +// CHECK-NEXT: ext/oneapi/properties/property_utils.hpp +// CHECK-NEXT: ext/oneapi/experimental/event_mode_property.hpp +// CHECK-NEXT: ext/oneapi/experimental/graph.hpp +// CHECK-NEXT: ext/oneapi/experimental/graph/command_graph.hpp +// CHECK-NEXT: ext/oneapi/experimental/graph/common.hpp +// CHECK-NEXT: ext/oneapi/experimental/graph/executable_graph.hpp +// CHECK-NEXT: ext/oneapi/experimental/graph/node.hpp +// CHECK-NEXT: ext/oneapi/experimental/detail/properties/graph_properties.hpp +// CHECK-NEXT: ext/oneapi/experimental/detail/properties/graph_properties.def +// CHECK-NEXT: ext/oneapi/experimental/detail/properties/node_properties.def +// CHECK-NEXT: ext/oneapi/experimental/graph/modifiable_graph.hpp +// CHECK-NEXT: ext/oneapi/experimental/graph/dynamic.hpp +// CHECK-NEXT: ext/oneapi/experimental/work_group_memory.hpp +// CHECK-NEXT: handler.hpp +// CHECK-NEXT: detail/cl.h +// CHECK-NEXT: CL/cl.h +// CHECK-NEXT: CL/cl_version.h +// CHECK-NEXT: CL/cl_platform.h +// CHECK-NEXT: CL/cl_ext.h +// CHECK-NEXT: detail/get_device_kernel_info.hpp +// CHECK-NEXT: detail/compile_time_kernel_info.hpp +// CHECK-NEXT: detail/kernel_launch_helper.hpp +// CHECK-NEXT: ext/intel/experimental/fp_control_kernel_properties.hpp +// CHECK-NEXT: ext/intel/experimental/kernel_execution_properties.hpp +// CHECK-NEXT: ext/oneapi/experimental/virtual_functions.hpp +// CHECK-NEXT: ext/oneapi/kernel_properties/properties.hpp +// CHECK-NEXT: ext/oneapi/work_group_scratch_memory.hpp +// CHECK-NEXT: detail/sycl_local_mem_builtins.hpp +// CHECK-NEXT: detail/kernel_name_str_t.hpp +// CHECK-NEXT: detail/reduction_forward.hpp +// CHECK-NEXT: detail/ur.hpp +// CHECK-NEXT: ur_api_funcs.def +// CHECK-NEXT: ext/oneapi/bindless_images_interop.hpp +// CHECK-NEXT: ext/oneapi/interop_common.hpp +// CHECK-NEXT: ext/oneapi/bindless_images_mem_handle.hpp +// CHECK-NEXT: ext/oneapi/experimental/cluster_group_prop.hpp +// CHECK-NEXT: ext/oneapi/experimental/raw_kernel_arg.hpp +// CHECK-NEXT: ext/oneapi/experimental/use_root_sync_prop.hpp +// CHECK-NEXT: kernel.hpp +// CHECK-NEXT: sampler.hpp +// CHECK-NEXT: usm/usm_pointer_info.hpp +// CHECK-NEXT: usm/usm_allocator.hpp +// CHECK-EMPTY: diff --git a/sycl/test/include_deps/sycl_khr_includes_vec.hpp.cpp b/sycl/test/include_deps/sycl_khr_includes_vec.hpp.cpp new file mode 100644 index 0000000000000..6de63c741a4c3 --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_vec.hpp.cpp @@ -0,0 +1,31 @@ +// Use update_test.sh to (re-)generate the checks +// REQUIRES: linux +// RUN: bash %S/deps_known.sh sycl/khr/includes/vec.hpp | FileCheck %s + +// CHECK-LABEL: Dependencies for : +// CHECK-NEXT: /dev/null: /dev/null +// CHECK-NEXT: khr/includes/vec.hpp +// CHECK-NEXT: khr/includes/version.hpp +// CHECK-NEXT: detail/defines_elementary.hpp +// CHECK-NEXT: feature_test.hpp +// CHECK-NEXT: vector.hpp +// CHECK-NEXT: detail/named_swizzles_mixin.hpp +// CHECK-NEXT: detail/vector_arith.hpp +// CHECK-NEXT: aliases.hpp +// CHECK-NEXT: detail/generic_type_traits.hpp +// CHECK-NEXT: access/access.hpp +// CHECK-NEXT: bit_cast.hpp +// CHECK-NEXT: detail/fwd/half.hpp +// CHECK-NEXT: detail/type_traits.hpp +// CHECK-NEXT: detail/type_traits/vec_marray_traits.hpp +// CHECK-NEXT: detail/fwd/multi_ptr.hpp +// CHECK-NEXT: stl_wrappers/cstdlib +// CHECK-NEXT: detail/common.hpp +// CHECK-NEXT: detail/export.hpp +// CHECK-NEXT: stl_wrappers/cassert +// CHECK-NEXT: stl_wrappers/assert.h +// CHECK-NEXT: __spirv/spirv_vars.hpp +// CHECK-NEXT: detail/fwd/accessor.hpp +// CHECK-NEXT: detail/defines.hpp +// CHECK-NEXT: detail/memcpy.hpp +// CHECK-EMPTY: diff --git a/sycl/test/include_deps/sycl_khr_includes_version.hpp.cpp b/sycl/test/include_deps/sycl_khr_includes_version.hpp.cpp new file mode 100644 index 0000000000000..ee44fc03bdc2c --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_version.hpp.cpp @@ -0,0 +1,10 @@ +// Use update_test.sh to (re-)generate the checks +// REQUIRES: linux +// RUN: bash %S/deps_known.sh sycl/khr/includes/version.hpp | FileCheck %s + +// CHECK-LABEL: Dependencies for : +// CHECK-NEXT: /dev/null: /dev/null +// CHECK-NEXT: khr/includes/version.hpp +// CHECK-NEXT: detail/defines_elementary.hpp +// CHECK-NEXT: feature_test.hpp +// CHECK-EMPTY: diff --git a/sycl/test/include_deps/update_test.sh b/sycl/test/include_deps/update_test.sh index cff4da0cb9a63..195bf5564a6af 100755 --- a/sycl/test/include_deps/update_test.sh +++ b/sycl/test/include_deps/update_test.sh @@ -6,6 +6,43 @@ HEADERS=( sycl/accessor.hpp sycl/detail/core.hpp + + sycl/khr/includes/accessor.hpp + sycl/khr/includes/atomic.hpp + # backend header depends on how the project was configured and as such it + # is not exactly portable, so it is excluded + # sycl/khr/includes/backend + sycl/khr/includes/bit.hpp + sycl/khr/includes/buffer.hpp + sycl/khr/includes/byte.hpp + sycl/khr/includes/context.hpp + sycl/khr/includes/device.hpp + sycl/khr/includes/event.hpp + sycl/khr/includes/exception.hpp + sycl/khr/includes/functional.hpp + sycl/khr/includes/group_algorithms.hpp + sycl/khr/includes/groups.hpp + sycl/khr/includes/half.hpp + sycl/khr/includes/handler.hpp + sycl/khr/includes/hierarchical_parallelism.hpp + sycl/khr/includes/images.hpp + sycl/khr/includes/index_space.hpp + sycl/khr/includes/interop_handle.hpp + sycl/khr/includes/kernel_bundle.hpp + sycl/khr/includes/kernel_handler.hpp + sycl/khr/includes/marray.hpp + sycl/khr/includes/math.hpp + sycl/khr/includes/multi_ptr.hpp + sycl/khr/includes/platform.hpp + sycl/khr/includes/property_list.hpp + sycl/khr/includes/queue.hpp + sycl/khr/includes/reduction.hpp + sycl/khr/includes/span.hpp + sycl/khr/includes/stream.hpp + sycl/khr/includes/type_traits.hpp + sycl/khr/includes/usm.hpp + sycl/khr/includes/vec.hpp + sycl/khr/includes/version.hpp ) for x in ${HEADERS[@]} ; do From 755e9f0200cab3fa5937350ef6932d6243aac907 Mon Sep 17 00:00:00 2001 From: Alexey Sachkov Date: Tue, 21 Oct 2025 16:20:48 +0200 Subject: [PATCH 2/3] Align copyright headers format --- sycl/include/sycl/khr/includes/images.hpp | 2 +- sycl/include/sycl/khr/includes/version.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sycl/include/sycl/khr/includes/images.hpp b/sycl/include/sycl/khr/includes/images.hpp index 1ea47eba3959b..f7d49b0e4cbdc 100644 --- a/sycl/include/sycl/khr/includes/images.hpp +++ b/sycl/include/sycl/khr/includes/images.hpp @@ -1,4 +1,4 @@ -//==------------------ image --- SYCL images ------------------*- C++ -*---==// +//===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/sycl/include/sycl/khr/includes/version.hpp b/sycl/include/sycl/khr/includes/version.hpp index a15704c4fdfae..3b24d62d8852d 100644 --- a/sycl/include/sycl/khr/includes/version.hpp +++ b/sycl/include/sycl/khr/includes/version.hpp @@ -1,4 +1,4 @@ -//==-------- version --- SYCL preprocessor definitions ---------*- C++ -*---==// +//===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. From 431fdb4c4a6a51e46acfb7f58299303d7e543133 Mon Sep 17 00:00:00 2001 From: Alexey Sachkov Date: Tue, 21 Oct 2025 17:46:48 +0200 Subject: [PATCH 3/3] Drop some dead #ifdefs --- sycl/include/sycl/khr/includes/version.hpp | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/sycl/include/sycl/khr/includes/version.hpp b/sycl/include/sycl/khr/includes/version.hpp index 3b24d62d8852d..07fc79ba15140 100644 --- a/sycl/include/sycl/khr/includes/version.hpp +++ b/sycl/include/sycl/khr/includes/version.hpp @@ -9,17 +9,13 @@ #ifndef __SYCL_KHR_INCLUDES_VERSION #define __SYCL_KHR_INCLUDES_VERSION -// SYCL_LANGUAGE_VERSION is currently defined by the compiler. If we ever change -// that, then it must be defined in this header (directly, or indirectly) -#ifndef SYCL_LANGUAGE_VERSION -// Can't build sycl-ls - it seems like it uses sycl.hpp with a 3rd-party -// compiler. -// Ideally, this should be set by the compiler, because it allows to specify -// a version. -// However, we may need to have some fallback here if someone includes SYCL -// headers into their host applications and use 3rd-party compilers. -// #error "SYCL_LANGUAGE_VERSION is not defined, please report this as a bug" -#endif +// SYCL_LANGUAGE_VERSION is currently defined by the compiler. +// We emit a warning if is used without -fsycl flag, i.e. no +// guarantees are provided about the completeness of the headers in this mode. +// The same applies to the khr_includes implementation. If those headers are +// used outside of the -fsycl mode, then no correctness guarantee is provided. +// TODO: Implement a similar warning about using those headers outside of -fsycl +// mode. /// We support everything from the specification #define SYCL_FEATURE_SET_FULL 1