Skip to content

Commit 61f1267

Browse files
committed
[SYCL] Implement sycl_khr_includes extension
1 parent 8ef08d4 commit 61f1267

File tree

72 files changed

+2788
-6
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+2788
-6
lines changed

sycl/include/sycl/define_vendors.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@
99
#pragma once
1010

1111
#define SYCL_IMPLEMENTATION_ONEAPI
12-
#define SYCL_FEATURE_SET_FULL
1312
#define SYCL_IMPLEMENTATION_INTEL

sycl/include/sycl/detail/is_device_copyable.hpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@
1414
#include <type_traits>
1515
#include <variant>
1616

17-
/// This macro must be defined to 1 when SYCL implementation allows user
18-
/// applications to explicitly declare certain class types as device copyable
19-
/// by adding specializations of is_device_copyable type trait class.
20-
#define SYCL_DEVICE_COPYABLE 1
21-
2217
namespace sycl {
2318
inline namespace _V1 {
2419
/// is_device_copyable is a user specializable class template to indicate
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
8+
9+
#ifndef __SYCL_KHR_INCLUDES_ACCESSOR
10+
#define __SYCL_KHR_INCLUDES_ACCESSOR
11+
12+
#include "version.hpp"
13+
14+
#include <sycl/accessor.hpp>
15+
16+
#endif // __SYCL_KHR_INCLUDES_ACCESSOR
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
8+
9+
#ifndef __SYCL_KHR_INCLUDES_ATOMIC
10+
#define __SYCL_KHR_INCLUDES_ATOMIC
11+
12+
#include "version.hpp"
13+
14+
#include <sycl/atomic_ref.hpp>
15+
#include <sycl/atomic_fence.hpp>
16+
17+
#endif // __SYCL_KHR_INCLUDES_ATOMIC
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
8+
9+
#ifndef __SYCL_KHR_INCLUDES_BACKEND
10+
#define __SYCL_KHR_INCLUDES_BACKEND
11+
12+
#include "version.hpp"
13+
14+
#include <sycl/backend.hpp>
15+
16+
#endif // __SYCL_KHR_INCLUDES_BACKEND
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
8+
9+
#ifndef __SYCL_KHR_INCLUDES_BIT
10+
#define __SYCL_KHR_INCLUDES_BIT
11+
12+
#include "version.hpp"
13+
14+
#include <sycl/bit_cast.hpp>
15+
16+
#endif // __SYCL_KHR_INCLUDES_BIT
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
8+
9+
#ifndef __SYCL_KHR_INCLUDES_BUFFER
10+
#define __SYCL_KHR_INCLUDES_BUFFER
11+
12+
#include "version.hpp"
13+
14+
#include <sycl/buffer.hpp>
15+
16+
#endif // __SYCL_KHR_INCLUDES_BUFFER
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
8+
9+
#ifndef __SYCL_KHR_INCLUDES_BYTE
10+
#define __SYCL_KHR_INCLUDES_BYTE
11+
12+
#include "version.hpp"
13+
14+
#include <sycl/aliases.hpp>
15+
16+
#endif // __SYCL_KHR_INCLUDES_BYTE
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
8+
9+
#ifndef __SYCL_KHR_INCLUDES_CONTEXT
10+
#define __SYCL_KHR_INCLUDES_CONTEXT
11+
12+
#include "version.hpp"
13+
14+
#include <sycl/context.hpp>
15+
16+
#endif // __SYCL_KHR_INCLUDES_CONTEXT
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
8+
9+
#ifndef __SYCL_KHR_INCLUDES_DEVICE
10+
#define __SYCL_KHR_INCLUDES_DEVICE
11+
12+
#include "version.hpp"
13+
14+
#include <sycl/device.hpp>
15+
#include <sycl/aspects.hpp>
16+
17+
#endif // __SYCL_KHR_INCLUDES_DEVICE

0 commit comments

Comments
 (0)