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/detail/spirv.hpp b/sycl/include/sycl/detail/spirv.hpp index 671e4758a268d..8794e90321447 100644 --- a/sycl/include/sycl/detail/spirv.hpp +++ b/sycl/include/sycl/detail/spirv.hpp @@ -17,18 +17,17 @@ #include #include -#include -#include -#include -#include -#include - #if defined(__NVPTX__) #include #endif +#include +#include #include // sycl::detail::memcpy #include +#include +#include +#include namespace sycl { inline namespace _V1 { diff --git a/sycl/include/sycl/khr/includes/accessor.hpp b/sycl/include/sycl/khr/includes/accessor.hpp new file mode 100644 index 0000000000000..bab697c0c4993 --- /dev/null +++ b/sycl/include/sycl/khr/includes/accessor.hpp @@ -0,0 +1,16 @@ +//==-------- accessor --- SYCL accessor classes definition -----*- 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_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..b45aca9a25d4c --- /dev/null +++ b/sycl/include/sycl/khr/includes/atomic.hpp @@ -0,0 +1,17 @@ +//==---------- atomic --- SYCL atomic_ref class definition -----*- 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_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..bedd1f76f29dd --- /dev/null +++ b/sycl/include/sycl/khr/includes/backend.hpp @@ -0,0 +1,14 @@ +//==--------- backend --- SYCL backend interoperability --------*- 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_BACKEND +#define __SYCL_KHR_INCLUDES_BACKEND + +#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..8d53f2f469d3d --- /dev/null +++ b/sycl/include/sycl/khr/includes/bit.hpp @@ -0,0 +1,16 @@ +//==--------- bit --- SYCL pre-adopted C++20 features ----------*- 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_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..2ef1e8818f64b --- /dev/null +++ b/sycl/include/sycl/khr/includes/buffer.hpp @@ -0,0 +1,16 @@ +//==------------- buffer --- SYCL buffer class definition ------*- 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_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..8ae50df6b7c61 --- /dev/null +++ b/sycl/include/sycl/khr/includes/byte.hpp @@ -0,0 +1,16 @@ +//==--------- byte --- SYCL byte pre-adopted from C++17 --------*- 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_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..207b60346469a --- /dev/null +++ b/sycl/include/sycl/khr/includes/context.hpp @@ -0,0 +1,16 @@ +//==---------------- context --- SYCL context class ------------*- 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_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..ddb1d9fd3713c --- /dev/null +++ b/sycl/include/sycl/khr/includes/device.hpp @@ -0,0 +1,17 @@ +//==------------------ device --- SYCL device class ------------*- 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_DEVICE +#define __SYCL_KHR_INCLUDES_DEVICE + +#include + +#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..0c0a628565c97 --- /dev/null +++ b/sycl/include/sycl/khr/includes/event.hpp @@ -0,0 +1,16 @@ +//==----------------- event --- SYCL event class ---------------*- 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_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..b44764fda4739 --- /dev/null +++ b/sycl/include/sycl/khr/includes/exception.hpp @@ -0,0 +1,17 @@ +//==------------------ exception --- SYCL exceptions -----------*- 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_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..df3efdabcdfe2 --- /dev/null +++ b/sycl/include/sycl/khr/includes/functional.hpp @@ -0,0 +1,16 @@ +//==-------------- functional --- SYCL function objects --------*- 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_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..9fc0fa973a997 --- /dev/null +++ b/sycl/include/sycl/khr/includes/group_algorithms.hpp @@ -0,0 +1,16 @@ +//==--------------------- group_algorithms ---------------------*- 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_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..600e8bc77f941 --- /dev/null +++ b/sycl/include/sycl/khr/includes/groups.hpp @@ -0,0 +1,19 @@ +//==----------------- groups --- SYCL group classes ------------*- 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_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..27923e57a0993 --- /dev/null +++ b/sycl/include/sycl/khr/includes/half.hpp @@ -0,0 +1,16 @@ +//==------------- half --- SYCL half data type definition ------*- 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_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..26d52de18c433 --- /dev/null +++ b/sycl/include/sycl/khr/includes/handler.hpp @@ -0,0 +1,16 @@ +//==--------- handler --- SYCL handler class definition --------*- 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_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..35c576bdf8c48 --- /dev/null +++ b/sycl/include/sycl/khr/includes/hierarchical_parallelism.hpp @@ -0,0 +1,18 @@ +//==- hierarchical_parallelism - SYCL hierarchical parallelism -*- 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_HIERARCHICAL_PARALLELISM +#define __SYCL_KHR_INCLUDES_HIERARCHICAL_PARALLELISM + +#include "version.hpp" + +#include +// TODO: private_memory should be outlined into its own header +#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..febf66517445a --- /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..13e75e4bc0441 --- /dev/null +++ b/sycl/include/sycl/khr/includes/index_space.hpp @@ -0,0 +1,22 @@ +//==--------- index_space --- SYCL index space classes ---------*- 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_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..3ce50735aa43b --- /dev/null +++ b/sycl/include/sycl/khr/includes/interop_handle.hpp @@ -0,0 +1,16 @@ +//==------ interop_handle --- SYCL interop_handle class --------*- 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_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..e5014a81def55 --- /dev/null +++ b/sycl/include/sycl/khr/includes/kernel_bundle.hpp @@ -0,0 +1,18 @@ +//==---------- kernel_bundle --- SYCL kernel bundles -----------*- 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_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..826204c071038 --- /dev/null +++ b/sycl/include/sycl/khr/includes/kernel_handler.hpp @@ -0,0 +1,16 @@ +//==--------- kernel_handler -----------------------------------*- 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_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..d0cc638259e8f --- /dev/null +++ b/sycl/include/sycl/khr/includes/marray.hpp @@ -0,0 +1,16 @@ +//==------------ marray --- SYCL marray class definition -------*- 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_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..e585a8e38cc5e --- /dev/null +++ b/sycl/include/sycl/khr/includes/math.hpp @@ -0,0 +1,16 @@ +//==------------- math --- SYCL built-in math functions --------*- 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_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..f95e7f145b760 --- /dev/null +++ b/sycl/include/sycl/khr/includes/multi_ptr.hpp @@ -0,0 +1,16 @@ +//==-------------- multi_ptr --- SYCL multi_ptr class ----------*- 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_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..f4c467741e48f --- /dev/null +++ b/sycl/include/sycl/khr/includes/platform.hpp @@ -0,0 +1,14 @@ +//==-------------- platform --- SYCL platform class ------------*- 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_PLATFORM +#define __SYCL_KHR_INCLUDES_PLATFORM + +#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..b41f848b1f9a4 --- /dev/null +++ b/sycl/include/sycl/khr/includes/property_list.hpp @@ -0,0 +1,16 @@ +//==-------- property_list --- SYCL property_list class --------*- 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_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..70df63655d486 --- /dev/null +++ b/sycl/include/sycl/khr/includes/queue.hpp @@ -0,0 +1,17 @@ +//==----------- queue --- SYCL queue class definition ----------*- 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_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..0fcc3544d2d07 --- /dev/null +++ b/sycl/include/sycl/khr/includes/reduction.hpp @@ -0,0 +1,17 @@ +//==-------------- reduction --- SYCL reductions ---------------*- 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_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..301483939e80a --- /dev/null +++ b/sycl/include/sycl/khr/includes/span.hpp @@ -0,0 +1,16 @@ +//==--------- span --- SYCL span pre-adopted from C++20 --------*- 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_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..a2c3ccebcbb90 --- /dev/null +++ b/sycl/include/sycl/khr/includes/stream.hpp @@ -0,0 +1,16 @@ +//==--------------- stream --- SYCL stream class ---------------*- 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_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..807a61a9cfdef --- /dev/null +++ b/sycl/include/sycl/khr/includes/type_traits.hpp @@ -0,0 +1,16 @@ +//==------------- type_traits --- SYCL type traits -------------*- 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_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..883973b9c2f81 --- /dev/null +++ b/sycl/include/sycl/khr/includes/usm.hpp @@ -0,0 +1,17 @@ +//==------------------ usm --- SYCL USM functions --------------*- 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_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..376d073818315 --- /dev/null +++ b/sycl/include/sycl/khr/includes/vec.hpp @@ -0,0 +1,16 @@ +//==----------------- vec --- SYCL vec class definition --------*- 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_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/platform.hpp b/sycl/include/sycl/platform.hpp index f63a68e9e6031..9c9ee442317f5 100644 --- a/sycl/include/sycl/platform.hpp +++ b/sycl/include/sycl/platform.hpp @@ -8,6 +8,8 @@ #pragma once +#include + #include #include #include 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 a641ae79b65e6..3d1fb115f7abf 100644 --- a/sycl/source/feature_test.hpp.in +++ b/sycl/source/feature_test.hpp.in @@ -126,6 +126,7 @@ inline namespace _V1 { #define SYCL_KHR_DEFAULT_CONTEXT 1 #define SYCL_EXT_INTEL_EVENT_MODE 1 #define SYCL_EXT_ONEAPI_TANGLE 1 +#define SYCL_KHR_INCLUDES 1 // Unfinished KHR extensions. These extensions are only available if the // __DPCPP_ENABLE_UNFINISHED_KHR_EXTENSIONS macro is defined. 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..1e5aa36e56ce4 --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_accessor.hpp.cpp @@ -0,0 +1,88 @@ +// 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: accessor.hpp +// CHECK-NEXT: access/access.hpp +// CHECK-NEXT: detail/defines_elementary.hpp +// CHECK-NEXT: buffer.hpp +// CHECK-NEXT: backend_types.hpp +// CHECK-NEXT: stl_wrappers/cstdlib +// CHECK-NEXT: detail/array.hpp +// CHECK-NEXT: exception.hpp +// CHECK-NEXT: detail/export.hpp +// CHECK-NEXT: detail/string.hpp +// CHECK-NEXT: detail/common.hpp +// CHECK-NEXT: stl_wrappers/cassert +// CHECK-NEXT: stl_wrappers/assert.h +// CHECK-NEXT: __spirv/spirv_vars.hpp +// CHECK-NEXT: detail/helpers.hpp +// CHECK-NEXT: __spirv/spirv_types.hpp +// CHECK-NEXT: detail/defines.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: 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: detail/type_traits.hpp +// CHECK-NEXT: detail/type_traits/vec_marray_traits.hpp +// CHECK-NEXT: half_type.hpp +// CHECK-NEXT: bit_cast.hpp +// CHECK-NEXT: aspects.hpp +// CHECK-NEXT: info/aspects.def +// CHECK-NEXT: info/aspects_deprecated.def +// CHECK-NEXT: multi_ptr.hpp +// CHECK-NEXT: detail/address_space_cast.hpp +// CHECK-NEXT: ext/oneapi/bfloat16.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: detail/info_desc_helpers.hpp +// 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/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..ddc98f6a11989 --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_atomic.hpp.cpp @@ -0,0 +1,40 @@ +// 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: atomic_ref.hpp +// CHECK-NEXT: access/access.hpp +// CHECK-NEXT: detail/defines_elementary.hpp +// CHECK-NEXT: bit_cast.hpp +// CHECK-NEXT: ext/oneapi/experimental/address_cast.hpp +// CHECK-NEXT: detail/address_space_cast.hpp +// CHECK-NEXT: __spirv/spirv_types.hpp +// CHECK-NEXT: detail/defines.hpp +// CHECK-NEXT: multi_ptr.hpp +// CHECK-NEXT: aliases.hpp +// CHECK-NEXT: detail/type_traits.hpp +// CHECK-NEXT: detail/type_traits/vec_marray_traits.hpp +// CHECK-NEXT: half_type.hpp +// CHECK-NEXT: detail/export.hpp +// CHECK-NEXT: aspects.hpp +// CHECK-NEXT: info/aspects.def +// CHECK-NEXT: info/aspects_deprecated.def +// CHECK-NEXT: stl_wrappers/cstdlib +// CHECK-NEXT: memory_enums.hpp +// CHECK-NEXT: detail/spirv.hpp +// CHECK-NEXT: __spirv/spirv_ops.hpp +// CHECK-NEXT: detail/generic_type_traits.hpp +// CHECK-NEXT: detail/helpers.hpp +// CHECK-NEXT: __spirv/spirv_vars.hpp +// CHECK-NEXT: ext/oneapi/bfloat16.hpp +// CHECK-NEXT: detail/memcpy.hpp +// CHECK-NEXT: id.hpp +// CHECK-NEXT: detail/array.hpp +// CHECK-NEXT: exception.hpp +// CHECK-NEXT: detail/string.hpp +// CHECK-NEXT: range.hpp +// CHECK-NEXT: atomic_fence.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..001200df060d0 --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_bit.hpp.cpp @@ -0,0 +1,9 @@ +// 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: 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..f49903cb9afc8 --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_buffer.hpp.cpp @@ -0,0 +1,42 @@ +// 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: buffer.hpp +// CHECK-NEXT: access/access.hpp +// CHECK-NEXT: detail/defines_elementary.hpp +// CHECK-NEXT: backend_types.hpp +// CHECK-NEXT: stl_wrappers/cstdlib +// CHECK-NEXT: detail/array.hpp +// CHECK-NEXT: exception.hpp +// CHECK-NEXT: detail/export.hpp +// CHECK-NEXT: detail/string.hpp +// CHECK-NEXT: detail/common.hpp +// CHECK-NEXT: stl_wrappers/cassert +// CHECK-NEXT: stl_wrappers/assert.h +// CHECK-NEXT: __spirv/spirv_vars.hpp +// CHECK-NEXT: detail/helpers.hpp +// CHECK-NEXT: __spirv/spirv_types.hpp +// CHECK-NEXT: detail/defines.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: 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..5744b151d93e2 --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_byte.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/byte.hpp | FileCheck %s + +// CHECK-LABEL: Dependencies for : +// CHECK-NEXT: /dev/null: /dev/null +// CHECK-NEXT: khr/includes/byte.hpp +// CHECK-NEXT: aliases.hpp +// CHECK-NEXT: detail/defines_elementary.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..189775fe8105d --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_context.hpp.cpp @@ -0,0 +1,68 @@ +// 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: context.hpp +// CHECK-NEXT: async_handler.hpp +// CHECK-NEXT: backend_types.hpp +// CHECK-NEXT: detail/defines_elementary.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: exception.hpp +// CHECK-NEXT: detail/string.hpp +// CHECK-NEXT: range.hpp +// CHECK-NEXT: detail/helpers.hpp +// CHECK-NEXT: __spirv/spirv_types.hpp +// CHECK-NEXT: access/access.hpp +// CHECK-NEXT: memory_enums.hpp +// CHECK-NEXT: __spirv/spirv_vars.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: 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: 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: stl_wrappers/cassert +// CHECK-NEXT: stl_wrappers/assert.h +// 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: 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..8751338a5002e --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_device.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/device.hpp | FileCheck %s + +// CHECK-LABEL: Dependencies for : +// CHECK-NEXT: /dev/null: /dev/null +// CHECK-NEXT: khr/includes/device.hpp +// CHECK-NEXT: device.hpp +// CHECK-NEXT: backend_types.hpp +// CHECK-NEXT: detail/defines_elementary.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: exception.hpp +// CHECK-NEXT: detail/string.hpp +// CHECK-NEXT: range.hpp +// CHECK-NEXT: detail/helpers.hpp +// CHECK-NEXT: __spirv/spirv_types.hpp +// CHECK-NEXT: access/access.hpp +// CHECK-NEXT: memory_enums.hpp +// CHECK-NEXT: __spirv/spirv_vars.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: 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: 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: stl_wrappers/cassert +// CHECK-NEXT: stl_wrappers/assert.h +// CHECK-NEXT: ext/oneapi/weak_object_base.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..fd13148eeebe8 --- /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: event.hpp +// CHECK-NEXT: backend_types.hpp +// CHECK-NEXT: detail/defines_elementary.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: exception.hpp +// CHECK-NEXT: detail/string.hpp +// CHECK-NEXT: range.hpp +// CHECK-NEXT: detail/helpers.hpp +// CHECK-NEXT: __spirv/spirv_types.hpp +// CHECK-NEXT: access/access.hpp +// CHECK-NEXT: memory_enums.hpp +// CHECK-NEXT: __spirv/spirv_vars.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: 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: 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: stl_wrappers/cassert +// CHECK-NEXT: stl_wrappers/assert.h +// 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..892c1984cfb31 --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_exception.hpp.cpp @@ -0,0 +1,15 @@ +// 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: exception.hpp +// CHECK-NEXT: detail/defines_elementary.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..e2eb93120530e --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_functional.hpp.cpp @@ -0,0 +1,9 @@ +// 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: functional.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..f2376a994e0a2 --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_groups.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/groups.hpp | FileCheck %s + +// CHECK-LABEL: Dependencies for : +// CHECK-NEXT: /dev/null: /dev/null +// CHECK-NEXT: khr/includes/groups.hpp +// CHECK-NEXT: group.hpp +// CHECK-NEXT: __spirv/spirv_types.hpp +// CHECK-NEXT: detail/defines.hpp +// CHECK-NEXT: detail/defines_elementary.hpp +// CHECK-NEXT: access/access.hpp +// CHECK-NEXT: detail/common.hpp +// CHECK-NEXT: exception.hpp +// CHECK-NEXT: detail/export.hpp +// CHECK-NEXT: detail/string.hpp +// CHECK-NEXT: stl_wrappers/cstdlib +// CHECK-NEXT: stl_wrappers/cassert +// CHECK-NEXT: stl_wrappers/assert.h +// CHECK-NEXT: __spirv/spirv_vars.hpp +// CHECK-NEXT: detail/generic_type_traits.hpp +// CHECK-NEXT: aliases.hpp +// CHECK-NEXT: detail/helpers.hpp +// CHECK-NEXT: memory_enums.hpp +// CHECK-NEXT: detail/type_traits.hpp +// CHECK-NEXT: detail/type_traits/vec_marray_traits.hpp +// CHECK-NEXT: half_type.hpp +// CHECK-NEXT: bit_cast.hpp +// CHECK-NEXT: aspects.hpp +// CHECK-NEXT: info/aspects.def +// CHECK-NEXT: info/aspects_deprecated.def +// CHECK-NEXT: multi_ptr.hpp +// CHECK-NEXT: detail/address_space_cast.hpp +// CHECK-NEXT: ext/oneapi/bfloat16.hpp +// CHECK-NEXT: detail/item_base.hpp +// CHECK-NEXT: id.hpp +// CHECK-NEXT: detail/array.hpp +// CHECK-NEXT: range.hpp +// CHECK-NEXT: device_event.hpp +// CHECK-NEXT: h_item.hpp +// CHECK-NEXT: item.hpp +// CHECK-NEXT: pointers.hpp +// CHECK-NEXT: sub_group.hpp +// CHECK-NEXT: __spirv/spirv_ops.hpp +// CHECK-NEXT: nd_item.hpp +// CHECK-NEXT: nd_range.hpp +// CHECK-NEXT: group_algorithm.hpp +// CHECK-NEXT: functional.hpp +// CHECK-NEXT: known_identity.hpp +// CHECK-NEXT: marray.hpp +// CHECK-NEXT: detail/is_device_copyable.hpp +// CHECK-NEXT: vector.hpp +// CHECK-NEXT: detail/memcpy.hpp +// CHECK-NEXT: detail/named_swizzles_mixin.hpp +// CHECK-NEXT: detail/vector_arith.hpp +// CHECK-NEXT: ext/oneapi/functional.hpp +// CHECK-NEXT: detail/spirv.hpp +// CHECK-NEXT: group_barrier.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..12e762ac34af6 --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_half.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/half.hpp | FileCheck %s + +// CHECK-LABEL: Dependencies for : +// CHECK-NEXT: /dev/null: /dev/null +// CHECK-NEXT: khr/includes/half.hpp +// CHECK-NEXT: half_type.hpp +// CHECK-NEXT: bit_cast.hpp +// CHECK-NEXT: detail/export.hpp +// CHECK-NEXT: aspects.hpp +// CHECK-NEXT: detail/defines.hpp +// CHECK-NEXT: detail/defines_elementary.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..16236f7fa3ff5 --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_handler.hpp.cpp @@ -0,0 +1,150 @@ +// 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: handler.hpp +// CHECK-NEXT: access/access.hpp +// CHECK-NEXT: detail/defines_elementary.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: exception.hpp +// CHECK-NEXT: detail/export.hpp +// CHECK-NEXT: detail/string.hpp +// CHECK-NEXT: detail/common.hpp +// CHECK-NEXT: stl_wrappers/cassert +// CHECK-NEXT: stl_wrappers/assert.h +// CHECK-NEXT: __spirv/spirv_vars.hpp +// CHECK-NEXT: detail/helpers.hpp +// CHECK-NEXT: __spirv/spirv_types.hpp +// CHECK-NEXT: detail/defines.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: 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: detail/type_traits.hpp +// CHECK-NEXT: detail/type_traits/vec_marray_traits.hpp +// CHECK-NEXT: half_type.hpp +// CHECK-NEXT: bit_cast.hpp +// CHECK-NEXT: aspects.hpp +// CHECK-NEXT: info/aspects.def +// CHECK-NEXT: info/aspects_deprecated.def +// CHECK-NEXT: multi_ptr.hpp +// CHECK-NEXT: detail/address_space_cast.hpp +// CHECK-NEXT: ext/oneapi/bfloat16.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: detail/info_desc_helpers.hpp +// 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/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: h_item.hpp +// CHECK-NEXT: 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..99c95c5613821 --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_hierarchical_parallelism.hpp.cpp @@ -0,0 +1,43 @@ +// 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: h_item.hpp +// CHECK-NEXT: detail/helpers.hpp +// CHECK-NEXT: __spirv/spirv_types.hpp +// CHECK-NEXT: detail/defines.hpp +// CHECK-NEXT: detail/defines_elementary.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: detail/array.hpp +// CHECK-NEXT: exception.hpp +// CHECK-NEXT: detail/string.hpp +// CHECK-NEXT: stl_wrappers/cstdlib +// CHECK-NEXT: range.hpp +// CHECK-NEXT: item.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: detail/type_traits.hpp +// CHECK-NEXT: detail/type_traits/vec_marray_traits.hpp +// CHECK-NEXT: half_type.hpp +// CHECK-NEXT: bit_cast.hpp +// CHECK-NEXT: aspects.hpp +// CHECK-NEXT: info/aspects.def +// CHECK-NEXT: info/aspects_deprecated.def +// CHECK-NEXT: multi_ptr.hpp +// CHECK-NEXT: detail/address_space_cast.hpp +// CHECK-NEXT: ext/oneapi/bfloat16.hpp +// CHECK-NEXT: device_event.hpp +// CHECK-NEXT: pointers.hpp +// CHECK-EMPTY: diff --git a/sycl/test/include_deps/sycl_khr_includes_image.hpp.cpp b/sycl/test/include_deps/sycl_khr_includes_image.hpp.cpp new file mode 100644 index 0000000000000..aae4bb636892d --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_image.hpp.cpp @@ -0,0 +1,107 @@ +// Use update_test.sh to (re-)generate the checks +// REQUIRES: linux +// RUN: bash %S/deps_known.sh sycl/khr/includes/image.hpp | FileCheck %s + +// CHECK-LABEL: Dependencies for : +// CHECK-NEXT: /dev/null: /dev/null +// CHECK-NEXT: khr/includes/image.hpp +// CHECK-NEXT: image.hpp +// CHECK-NEXT: access/access.hpp +// CHECK-NEXT: detail/defines_elementary.hpp +// CHECK-NEXT: aliases.hpp +// CHECK-NEXT: backend_types.hpp +// CHECK-NEXT: stl_wrappers/cstdlib +// CHECK-NEXT: buffer.hpp +// CHECK-NEXT: detail/array.hpp +// CHECK-NEXT: exception.hpp +// CHECK-NEXT: detail/export.hpp +// CHECK-NEXT: detail/string.hpp +// CHECK-NEXT: detail/common.hpp +// CHECK-NEXT: stl_wrappers/cassert +// CHECK-NEXT: stl_wrappers/assert.h +// CHECK-NEXT: __spirv/spirv_vars.hpp +// CHECK-NEXT: detail/helpers.hpp +// CHECK-NEXT: __spirv/spirv_types.hpp +// CHECK-NEXT: detail/defines.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: 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/backend_traits.hpp +// CHECK-NEXT: event.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: detail/type_traits.hpp +// CHECK-NEXT: detail/type_traits/vec_marray_traits.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: bit_cast.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: sampler.hpp +// CHECK-NEXT: vector.hpp +// CHECK-NEXT: detail/generic_type_traits.hpp +// CHECK-NEXT: multi_ptr.hpp +// CHECK-NEXT: detail/address_space_cast.hpp +// CHECK-NEXT: detail/memcpy.hpp +// CHECK-NEXT: detail/named_swizzles_mixin.hpp +// CHECK-NEXT: detail/vector_arith.hpp +// CHECK-NEXT: accessor_image.hpp +// CHECK-NEXT: accessor.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/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: 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..15c21fe58334b --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_index_space.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/index_space.hpp | FileCheck %s + +// CHECK-LABEL: Dependencies for : +// CHECK-NEXT: /dev/null: /dev/null +// CHECK-NEXT: khr/includes/index_space.hpp +// CHECK-NEXT: id.hpp +// CHECK-NEXT: detail/array.hpp +// CHECK-NEXT: detail/defines_elementary.hpp +// CHECK-NEXT: exception.hpp +// CHECK-NEXT: detail/export.hpp +// CHECK-NEXT: detail/string.hpp +// CHECK-NEXT: stl_wrappers/cstdlib +// CHECK-NEXT: detail/defines.hpp +// CHECK-NEXT: range.hpp +// CHECK-NEXT: detail/helpers.hpp +// CHECK-NEXT: __spirv/spirv_types.hpp +// CHECK-NEXT: access/access.hpp +// CHECK-NEXT: memory_enums.hpp +// CHECK-NEXT: __spirv/spirv_vars.hpp +// CHECK-NEXT: nd_range.hpp +// CHECK-NEXT: item.hpp +// CHECK-NEXT: detail/item_base.hpp +// CHECK-NEXT: nd_item.hpp +// CHECK-NEXT: detail/generic_type_traits.hpp +// CHECK-NEXT: aliases.hpp +// CHECK-NEXT: detail/type_traits.hpp +// CHECK-NEXT: detail/type_traits/vec_marray_traits.hpp +// CHECK-NEXT: half_type.hpp +// CHECK-NEXT: bit_cast.hpp +// CHECK-NEXT: aspects.hpp +// CHECK-NEXT: info/aspects.def +// CHECK-NEXT: info/aspects_deprecated.def +// CHECK-NEXT: multi_ptr.hpp +// CHECK-NEXT: detail/address_space_cast.hpp +// CHECK-NEXT: ext/oneapi/bfloat16.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: h_item.hpp +// CHECK-NEXT: pointers.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..dab259d5cd5ee --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_interop_handle.hpp.cpp @@ -0,0 +1,115 @@ +// 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: interop_handle.hpp +// CHECK-NEXT: access/access.hpp +// CHECK-NEXT: detail/defines_elementary.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: exception.hpp +// CHECK-NEXT: detail/export.hpp +// CHECK-NEXT: detail/string.hpp +// CHECK-NEXT: detail/common.hpp +// CHECK-NEXT: stl_wrappers/cassert +// CHECK-NEXT: stl_wrappers/assert.h +// CHECK-NEXT: __spirv/spirv_vars.hpp +// CHECK-NEXT: detail/helpers.hpp +// CHECK-NEXT: __spirv/spirv_types.hpp +// CHECK-NEXT: detail/defines.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: 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: detail/type_traits.hpp +// CHECK-NEXT: detail/type_traits/vec_marray_traits.hpp +// CHECK-NEXT: half_type.hpp +// CHECK-NEXT: bit_cast.hpp +// CHECK-NEXT: aspects.hpp +// CHECK-NEXT: info/aspects.def +// CHECK-NEXT: info/aspects_deprecated.def +// CHECK-NEXT: multi_ptr.hpp +// CHECK-NEXT: detail/address_space_cast.hpp +// CHECK-NEXT: ext/oneapi/bfloat16.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: detail/info_desc_helpers.hpp +// 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/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.hpp +// CHECK-NEXT: ext/oneapi/properties/property_utils.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/memcpy.hpp +// CHECK-NEXT: detail/named_swizzles_mixin.hpp +// CHECK-NEXT: detail/vector_arith.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..757189c68b6e3 --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_kernel_bundle.hpp.cpp @@ -0,0 +1,154 @@ +// 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: kernel_bundle.hpp +// CHECK-NEXT: backend_types.hpp +// CHECK-NEXT: detail/defines_elementary.hpp +// CHECK-NEXT: stl_wrappers/cstdlib +// CHECK-NEXT: detail/export.hpp +// CHECK-NEXT: detail/kernel_desc.hpp +// 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_view.hpp +// CHECK-NEXT: detail/string.hpp +// CHECK-NEXT: detail/ur.hpp +// CHECK-NEXT: detail/os_util.hpp +// CHECK-NEXT: ur_api.h +// CHECK-NEXT: ur_api_funcs.def +// CHECK-NEXT: device.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: exception.hpp +// CHECK-NEXT: range.hpp +// CHECK-NEXT: detail/helpers.hpp +// CHECK-NEXT: __spirv/spirv_types.hpp +// CHECK-NEXT: access/access.hpp +// CHECK-NEXT: memory_enums.hpp +// CHECK-NEXT: info/info_desc.hpp +// CHECK-NEXT: detail/type_traits.hpp +// CHECK-NEXT: detail/type_traits/vec_marray_traits.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: 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/util.hpp +// CHECK-NEXT: device_selector.hpp +// CHECK-NEXT: kernel_bundle_enums.hpp +// CHECK-NEXT: handler.hpp +// CHECK-NEXT: accessor.hpp +// CHECK-NEXT: buffer.hpp +// CHECK-NEXT: detail/common.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: property_list.hpp +// CHECK-NEXT: properties/property_traits.hpp +// CHECK-NEXT: detail/accessor_iterator.hpp +// CHECK-NEXT: detail/generic_type_traits.hpp +// CHECK-NEXT: multi_ptr.hpp +// CHECK-NEXT: detail/address_space_cast.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/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: h_item.hpp +// CHECK-NEXT: 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: kernel.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_marray.hpp.cpp b/sycl/test/include_deps/sycl_khr_includes_marray.hpp.cpp new file mode 100644 index 0000000000000..ceb40e93fb3a1 --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_marray.hpp.cpp @@ -0,0 +1,26 @@ +// 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: marray.hpp +// CHECK-NEXT: aliases.hpp +// CHECK-NEXT: detail/defines_elementary.hpp +// CHECK-NEXT: detail/common.hpp +// CHECK-NEXT: exception.hpp +// CHECK-NEXT: detail/export.hpp +// CHECK-NEXT: detail/string.hpp +// CHECK-NEXT: stl_wrappers/cstdlib +// CHECK-NEXT: stl_wrappers/cassert +// CHECK-NEXT: stl_wrappers/assert.h +// CHECK-NEXT: __spirv/spirv_vars.hpp +// CHECK-NEXT: detail/is_device_copyable.hpp +// CHECK-NEXT: half_type.hpp +// CHECK-NEXT: bit_cast.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_math.hpp.cpp b/sycl/test/include_deps/sycl_khr_includes_math.hpp.cpp new file mode 100644 index 0000000000000..ff03c9493285d --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_math.hpp.cpp @@ -0,0 +1,51 @@ +// 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: builtins.hpp +// CHECK-NEXT: detail/defines_elementary.hpp +// CHECK-NEXT: detail/builtins/builtins.hpp +// CHECK-NEXT: detail/type_traits.hpp +// CHECK-NEXT: detail/type_traits/vec_marray_traits.hpp +// CHECK-NEXT: access/access.hpp +// CHECK-NEXT: detail/vector_convert.hpp +// CHECK-NEXT: detail/generic_type_traits.hpp +// CHECK-NEXT: aliases.hpp +// CHECK-NEXT: detail/helpers.hpp +// CHECK-NEXT: __spirv/spirv_types.hpp +// CHECK-NEXT: detail/defines.hpp +// CHECK-NEXT: detail/export.hpp +// CHECK-NEXT: memory_enums.hpp +// CHECK-NEXT: __spirv/spirv_vars.hpp +// CHECK-NEXT: half_type.hpp +// CHECK-NEXT: bit_cast.hpp +// CHECK-NEXT: aspects.hpp +// CHECK-NEXT: info/aspects.def +// CHECK-NEXT: info/aspects_deprecated.def +// CHECK-NEXT: multi_ptr.hpp +// CHECK-NEXT: detail/address_space_cast.hpp +// CHECK-NEXT: stl_wrappers/cstdlib +// CHECK-NEXT: ext/oneapi/bfloat16.hpp +// CHECK-NEXT: exception.hpp +// CHECK-NEXT: detail/string.hpp +// CHECK-NEXT: detail/memcpy.hpp +// CHECK-NEXT: vector.hpp +// CHECK-NEXT: detail/common.hpp +// CHECK-NEXT: stl_wrappers/cassert +// CHECK-NEXT: stl_wrappers/assert.h +// CHECK-NEXT: detail/named_swizzles_mixin.hpp +// CHECK-NEXT: detail/vector_arith.hpp +// CHECK-NEXT: marray.hpp +// CHECK-NEXT: detail/is_device_copyable.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..51ecaaaa58136 --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_multi_ptr.hpp.cpp @@ -0,0 +1,24 @@ +// 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: multi_ptr.hpp +// CHECK-NEXT: access/access.hpp +// CHECK-NEXT: detail/defines_elementary.hpp +// CHECK-NEXT: aliases.hpp +// CHECK-NEXT: detail/address_space_cast.hpp +// CHECK-NEXT: __spirv/spirv_types.hpp +// CHECK-NEXT: detail/defines.hpp +// CHECK-NEXT: detail/type_traits.hpp +// CHECK-NEXT: detail/type_traits/vec_marray_traits.hpp +// CHECK-NEXT: half_type.hpp +// CHECK-NEXT: bit_cast.hpp +// CHECK-NEXT: detail/export.hpp +// CHECK-NEXT: aspects.hpp +// CHECK-NEXT: info/aspects.def +// CHECK-NEXT: info/aspects_deprecated.def +// 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..73e3762061533 --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_platform.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/platform.hpp | FileCheck %s + +// CHECK-LABEL: Dependencies for : +// CHECK-NEXT: /dev/null: /dev/null +// CHECK-NEXT: khr/includes/platform.hpp +// CHECK-NEXT: platform.hpp +// CHECK-NEXT: khr/includes/version.hpp +// CHECK-NEXT: detail/defines_elementary.hpp +// CHECK-NEXT: feature_test.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: exception.hpp +// CHECK-NEXT: detail/string.hpp +// CHECK-NEXT: range.hpp +// CHECK-NEXT: detail/helpers.hpp +// CHECK-NEXT: __spirv/spirv_types.hpp +// CHECK-NEXT: access/access.hpp +// CHECK-NEXT: memory_enums.hpp +// CHECK-NEXT: __spirv/spirv_vars.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: 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: 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: stl_wrappers/cassert +// CHECK-NEXT: stl_wrappers/assert.h +// CHECK-NEXT: ext/oneapi/weak_object_base.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..2f325897f2f12 --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_property_list.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/property_list.hpp | FileCheck %s + +// CHECK-LABEL: Dependencies for : +// CHECK-NEXT: /dev/null: /dev/null +// CHECK-NEXT: khr/includes/property_list.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/defines_elementary.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..61ecde432507c --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_queue.hpp.cpp @@ -0,0 +1,156 @@ +// 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: queue.hpp +// CHECK-NEXT: access/access.hpp +// CHECK-NEXT: detail/defines_elementary.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: exception.hpp +// CHECK-NEXT: detail/export.hpp +// CHECK-NEXT: detail/string.hpp +// CHECK-NEXT: detail/common.hpp +// CHECK-NEXT: stl_wrappers/cassert +// CHECK-NEXT: stl_wrappers/assert.h +// CHECK-NEXT: __spirv/spirv_vars.hpp +// CHECK-NEXT: detail/helpers.hpp +// CHECK-NEXT: __spirv/spirv_types.hpp +// CHECK-NEXT: detail/defines.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: 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: detail/type_traits.hpp +// CHECK-NEXT: detail/type_traits/vec_marray_traits.hpp +// CHECK-NEXT: half_type.hpp +// CHECK-NEXT: bit_cast.hpp +// CHECK-NEXT: aspects.hpp +// CHECK-NEXT: info/aspects.def +// CHECK-NEXT: info/aspects_deprecated.def +// CHECK-NEXT: multi_ptr.hpp +// CHECK-NEXT: detail/address_space_cast.hpp +// CHECK-NEXT: ext/oneapi/bfloat16.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: detail/info_desc_helpers.hpp +// 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/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: h_item.hpp +// CHECK-NEXT: item.hpp +// CHECK-NEXT: kernel_handler.hpp +// CHECK-NEXT: nd_item.hpp +// CHECK-NEXT: nd_range.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/id_queries_fit_in_int.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: properties/queue_properties.hpp +// CHECK-NEXT: properties/queue_properties.def +// 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..a4fe8981b4327 --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_reduction.hpp.cpp @@ -0,0 +1,186 @@ +// 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: reduction.hpp +// CHECK-NEXT: access/access.hpp +// CHECK-NEXT: detail/defines_elementary.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: exception.hpp +// CHECK-NEXT: detail/export.hpp +// CHECK-NEXT: detail/string.hpp +// CHECK-NEXT: detail/common.hpp +// CHECK-NEXT: stl_wrappers/cassert +// CHECK-NEXT: stl_wrappers/assert.h +// CHECK-NEXT: __spirv/spirv_vars.hpp +// CHECK-NEXT: detail/helpers.hpp +// CHECK-NEXT: __spirv/spirv_types.hpp +// CHECK-NEXT: detail/defines.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: 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: detail/type_traits.hpp +// CHECK-NEXT: detail/type_traits/vec_marray_traits.hpp +// CHECK-NEXT: half_type.hpp +// CHECK-NEXT: bit_cast.hpp +// CHECK-NEXT: aspects.hpp +// CHECK-NEXT: info/aspects.def +// CHECK-NEXT: info/aspects_deprecated.def +// CHECK-NEXT: multi_ptr.hpp +// CHECK-NEXT: detail/address_space_cast.hpp +// CHECK-NEXT: ext/oneapi/bfloat16.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: detail/info_desc_helpers.hpp +// 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/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: h_item.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: 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: properties/reduction_properties.hpp +// CHECK-NEXT: properties/reduction_properties.def +// 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..9e7b8db1e1c6c --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_span.hpp.cpp @@ -0,0 +1,14 @@ +// 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: sycl_span.hpp +// CHECK-NEXT: stl_wrappers/cassert +// CHECK-NEXT: stl_wrappers/assert.h +// CHECK-NEXT: __spirv/spirv_vars.hpp +// CHECK-NEXT: detail/defines_elementary.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..1eef882e03a77 --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_stream.hpp.cpp @@ -0,0 +1,169 @@ +// 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: stream.hpp +// CHECK-NEXT: access/access.hpp +// CHECK-NEXT: detail/defines_elementary.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: exception.hpp +// CHECK-NEXT: detail/export.hpp +// CHECK-NEXT: detail/string.hpp +// CHECK-NEXT: detail/common.hpp +// CHECK-NEXT: stl_wrappers/cassert +// CHECK-NEXT: stl_wrappers/assert.h +// CHECK-NEXT: __spirv/spirv_vars.hpp +// CHECK-NEXT: detail/helpers.hpp +// CHECK-NEXT: __spirv/spirv_types.hpp +// CHECK-NEXT: detail/defines.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: 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: detail/type_traits.hpp +// CHECK-NEXT: detail/type_traits/vec_marray_traits.hpp +// CHECK-NEXT: half_type.hpp +// CHECK-NEXT: bit_cast.hpp +// CHECK-NEXT: aspects.hpp +// CHECK-NEXT: info/aspects.def +// CHECK-NEXT: info/aspects_deprecated.def +// CHECK-NEXT: multi_ptr.hpp +// CHECK-NEXT: detail/address_space_cast.hpp +// CHECK-NEXT: ext/oneapi/bfloat16.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: detail/info_desc_helpers.hpp +// 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/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: detail/item_base.hpp +// CHECK-NEXT: device_event.hpp +// CHECK-NEXT: h_item.hpp +// CHECK-NEXT: 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..8eb14bbd47cdb --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_type_traits.hpp.cpp @@ -0,0 +1,15 @@ +// 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: device_aspect_traits.hpp +// CHECK-NEXT: device_aspect_macros.hpp +// CHECK-NEXT: aspects.hpp +// CHECK-NEXT: detail/defines.hpp +// CHECK-NEXT: detail/defines_elementary.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..3f8350c8cde5a --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_usm.hpp.cpp @@ -0,0 +1,173 @@ +// 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: usm.hpp +// CHECK-NEXT: builtins.hpp +// CHECK-NEXT: detail/defines_elementary.hpp +// CHECK-NEXT: detail/builtins/builtins.hpp +// CHECK-NEXT: detail/type_traits.hpp +// CHECK-NEXT: detail/type_traits/vec_marray_traits.hpp +// CHECK-NEXT: access/access.hpp +// CHECK-NEXT: detail/vector_convert.hpp +// CHECK-NEXT: detail/generic_type_traits.hpp +// CHECK-NEXT: aliases.hpp +// CHECK-NEXT: detail/helpers.hpp +// CHECK-NEXT: __spirv/spirv_types.hpp +// CHECK-NEXT: detail/defines.hpp +// CHECK-NEXT: detail/export.hpp +// CHECK-NEXT: memory_enums.hpp +// CHECK-NEXT: __spirv/spirv_vars.hpp +// CHECK-NEXT: half_type.hpp +// CHECK-NEXT: bit_cast.hpp +// CHECK-NEXT: aspects.hpp +// CHECK-NEXT: info/aspects.def +// CHECK-NEXT: info/aspects_deprecated.def +// CHECK-NEXT: multi_ptr.hpp +// CHECK-NEXT: detail/address_space_cast.hpp +// CHECK-NEXT: stl_wrappers/cstdlib +// CHECK-NEXT: ext/oneapi/bfloat16.hpp +// CHECK-NEXT: exception.hpp +// CHECK-NEXT: detail/string.hpp +// CHECK-NEXT: detail/memcpy.hpp +// CHECK-NEXT: vector.hpp +// CHECK-NEXT: detail/common.hpp +// CHECK-NEXT: stl_wrappers/cassert +// CHECK-NEXT: stl_wrappers/assert.h +// CHECK-NEXT: detail/named_swizzles_mixin.hpp +// CHECK-NEXT: detail/vector_arith.hpp +// CHECK-NEXT: marray.hpp +// CHECK-NEXT: detail/is_device_copyable.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_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: 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/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: h_item.hpp +// CHECK-NEXT: item.hpp +// CHECK-NEXT: kernel_handler.hpp +// CHECK-NEXT: nd_item.hpp +// CHECK-NEXT: nd_range.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/id_queries_fit_in_int.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..dc94940a11b43 --- /dev/null +++ b/sycl/test/include_deps/sycl_khr_includes_vec.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/vec.hpp | FileCheck %s + +// CHECK-LABEL: Dependencies for : +// CHECK-NEXT: /dev/null: /dev/null +// CHECK-NEXT: khr/includes/vec.hpp +// CHECK-NEXT: vector.hpp +// CHECK-NEXT: access/access.hpp +// CHECK-NEXT: detail/defines_elementary.hpp +// CHECK-NEXT: aliases.hpp +// CHECK-NEXT: detail/common.hpp +// CHECK-NEXT: exception.hpp +// CHECK-NEXT: detail/export.hpp +// CHECK-NEXT: detail/string.hpp +// CHECK-NEXT: stl_wrappers/cstdlib +// CHECK-NEXT: stl_wrappers/cassert +// CHECK-NEXT: stl_wrappers/assert.h +// CHECK-NEXT: __spirv/spirv_vars.hpp +// CHECK-NEXT: detail/generic_type_traits.hpp +// CHECK-NEXT: detail/helpers.hpp +// CHECK-NEXT: __spirv/spirv_types.hpp +// CHECK-NEXT: detail/defines.hpp +// CHECK-NEXT: memory_enums.hpp +// CHECK-NEXT: detail/type_traits.hpp +// CHECK-NEXT: detail/type_traits/vec_marray_traits.hpp +// CHECK-NEXT: half_type.hpp +// CHECK-NEXT: bit_cast.hpp +// CHECK-NEXT: aspects.hpp +// CHECK-NEXT: info/aspects.def +// CHECK-NEXT: info/aspects_deprecated.def +// CHECK-NEXT: multi_ptr.hpp +// CHECK-NEXT: detail/address_space_cast.hpp +// CHECK-NEXT: ext/oneapi/bfloat16.hpp +// CHECK-NEXT: detail/memcpy.hpp +// CHECK-NEXT: detail/named_swizzles_mixin.hpp +// CHECK-NEXT: detail/vector_arith.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..7d5f73c4b2ff5 100755 --- a/sycl/test/include_deps/update_test.sh +++ b/sycl/test/include_deps/update_test.sh @@ -6,6 +6,41 @@ 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/groups.hpp + sycl/khr/includes/half.hpp + sycl/khr/includes/handler.hpp + sycl/khr/includes/hierarchical_parallelism.hpp + sycl/khr/includes/image.hpp + sycl/khr/includes/index_space.hpp + sycl/khr/includes/interop_handle.hpp + sycl/khr/includes/kernel_bundle.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