Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion sycl/include/sycl/define_vendors.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@
#pragma once

#define SYCL_IMPLEMENTATION_ONEAPI
#define SYCL_FEATURE_SET_FULL
#define SYCL_IMPLEMENTATION_INTEL
5 changes: 0 additions & 5 deletions sycl/include/sycl/detail/is_device_copyable.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@
#include <type_traits>
#include <variant>

/// 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
Expand Down
11 changes: 5 additions & 6 deletions sycl/include/sycl/detail/spirv.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,17 @@
#include <sycl/__spirv/spirv_ops.hpp>
#include <sycl/__spirv/spirv_types.hpp>

#include <sycl/access/access.hpp>
#include <sycl/detail/generic_type_traits.hpp>
#include <sycl/id.hpp>
#include <sycl/memory_enums.hpp>
#include <sycl/multi_ptr.hpp>

#if defined(__NVPTX__)
#include <sycl/ext/oneapi/experimental/cuda/masked_shuffles.hpp>
#endif

#include <sycl/aliases.hpp>
#include <sycl/detail/generic_type_traits.hpp>
#include <sycl/detail/memcpy.hpp> // sycl::detail::memcpy
#include <sycl/detail/type_traits.hpp>
#include <sycl/half_type.hpp>
#include <sycl/id.hpp>
#include <sycl/multi_ptr.hpp>

namespace sycl {
inline namespace _V1 {
Expand Down
16 changes: 16 additions & 0 deletions sycl/include/sycl/khr/includes/accessor.hpp
Original file line number Diff line number Diff line change
@@ -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 <sycl/accessor.hpp>

#endif // __SYCL_KHR_INCLUDES_ACCESSOR
17 changes: 17 additions & 0 deletions sycl/include/sycl/khr/includes/atomic.hpp
Original file line number Diff line number Diff line change
@@ -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 <sycl/atomic_ref.hpp>
#include <sycl/atomic_fence.hpp>

#endif // __SYCL_KHR_INCLUDES_ATOMIC
14 changes: 14 additions & 0 deletions sycl/include/sycl/khr/includes/backend.hpp
Original file line number Diff line number Diff line change
@@ -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 <sycl/backend.hpp>

#endif // __SYCL_KHR_INCLUDES_BACKEND
16 changes: 16 additions & 0 deletions sycl/include/sycl/khr/includes/bit.hpp
Original file line number Diff line number Diff line change
@@ -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 <sycl/bit_cast.hpp>

#endif // __SYCL_KHR_INCLUDES_BIT
16 changes: 16 additions & 0 deletions sycl/include/sycl/khr/includes/buffer.hpp
Original file line number Diff line number Diff line change
@@ -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 <sycl/buffer.hpp>

#endif // __SYCL_KHR_INCLUDES_BUFFER
16 changes: 16 additions & 0 deletions sycl/include/sycl/khr/includes/byte.hpp
Original file line number Diff line number Diff line change
@@ -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 <sycl/aliases.hpp>

#endif // __SYCL_KHR_INCLUDES_BYTE
16 changes: 16 additions & 0 deletions sycl/include/sycl/khr/includes/context.hpp
Original file line number Diff line number Diff line change
@@ -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 <sycl/context.hpp>

#endif // __SYCL_KHR_INCLUDES_CONTEXT
17 changes: 17 additions & 0 deletions sycl/include/sycl/khr/includes/device.hpp
Original file line number Diff line number Diff line change
@@ -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 <sycl/khr/includes/version.hpp>

#include <sycl/device.hpp>
#include <sycl/aspects.hpp>

#endif // __SYCL_KHR_INCLUDES_DEVICE
16 changes: 16 additions & 0 deletions sycl/include/sycl/khr/includes/event.hpp
Original file line number Diff line number Diff line change
@@ -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 <sycl/event.hpp>

#endif // __SYCL_KHR_INCLUDES_EVENT
17 changes: 17 additions & 0 deletions sycl/include/sycl/khr/includes/exception.hpp
Original file line number Diff line number Diff line change
@@ -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 <sycl/exception.hpp>
#include <sycl/exception_list.hpp>

#endif // __SYCL_KHR_INCLUDES_EXCEPTION
16 changes: 16 additions & 0 deletions sycl/include/sycl/khr/includes/functional.hpp
Original file line number Diff line number Diff line change
@@ -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 <sycl/functional.hpp>

#endif // __SYCL_KHR_INCLUDES_FUNCTIONAL
16 changes: 16 additions & 0 deletions sycl/include/sycl/khr/includes/group_algorithms.hpp
Original file line number Diff line number Diff line change
@@ -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 <sycl/group_algorithm.hpp>

#endif // __SYCL_KHR_INCLUDES_GROUP_ALGORITHMS
19 changes: 19 additions & 0 deletions sycl/include/sycl/khr/includes/groups.hpp
Original file line number Diff line number Diff line change
@@ -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 <sycl/group.hpp>
#include <sycl/sub_group.hpp>
#include <sycl/group_algorithm.hpp>
#include <sycl/group_barrier.hpp>

#endif // __SYCL_KHR_INCLUDES_GROUPS
16 changes: 16 additions & 0 deletions sycl/include/sycl/khr/includes/half.hpp
Original file line number Diff line number Diff line change
@@ -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 <sycl/half_type.hpp>

#endif // __SYCL_KHR_INCLUDES_HALF
16 changes: 16 additions & 0 deletions sycl/include/sycl/khr/includes/handler.hpp
Original file line number Diff line number Diff line change
@@ -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 <sycl/handler.hpp>

#endif // __SYCL_KHR_INCLUDES_HANDLER
18 changes: 18 additions & 0 deletions sycl/include/sycl/khr/includes/hierarchical_parallelism.hpp
Original file line number Diff line number Diff line change
@@ -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 <sycl/h_item.hpp>
// TODO: private_memory should be outlined into its own header
#include <sycl/group.hpp>

#endif // __SYCL_KHR_INCLUDES_HIERARCHICAL_PARALLELISM
18 changes: 18 additions & 0 deletions sycl/include/sycl/khr/includes/images.hpp
Original file line number Diff line number Diff line change
@@ -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 <sycl/image.hpp>
#include <sycl/accessor_image.hpp>
#include <sycl/properties/image_properties.hpp>

#endif // __SYCL_KHR_INCLUDES_IMAGE
22 changes: 22 additions & 0 deletions sycl/include/sycl/khr/includes/index_space.hpp
Original file line number Diff line number Diff line change
@@ -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 <sycl/id.hpp>
#include <sycl/range.hpp>
#include <sycl/nd_range.hpp>
#include <sycl/item.hpp>
#include <sycl/nd_item.hpp>

#endif // __SYCL_KHR_INCLUDES_INDEX_SPACE


16 changes: 16 additions & 0 deletions sycl/include/sycl/khr/includes/interop_handle.hpp
Original file line number Diff line number Diff line change
@@ -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 <sycl/interop_handle.hpp>

#endif // __SYCL_KHR_INCLUDES_INTEROP_HANDLE
18 changes: 18 additions & 0 deletions sycl/include/sycl/khr/includes/kernel_bundle.hpp
Original file line number Diff line number Diff line change
@@ -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 <sycl/kernel_bundle.hpp>
#include <sycl/kernel.hpp>
#include <sycl/specialization_id.hpp>

#endif // __SYCL_KHR_INCLUDES_KERNEL_BUNDLE
Loading
Loading