Skip to content

Commit 02ff14e

Browse files
committed
Guard khr_group_interface with new macro
Functionality guarded by __DPCPP_ENABLE_UNFINISHED_KHR_EXTENSIONS, following the process introduced by intel#16883. Signed-off-by: John Pennycook <[email protected]>
1 parent 1af1fb4 commit 02ff14e

File tree

4 files changed

+6
-0
lines changed

4 files changed

+6
-0
lines changed

sycl/include/sycl/khr/group_interface.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88
#pragma once
9+
#ifdef __DPCPP_ENABLE_UNFINISHED_KHR_EXTENSIONS
910

1011
#include <sycl/ext/oneapi/free_function_queries.hpp>
1112
#include <sycl/id.hpp>
@@ -224,3 +225,5 @@ template <typename Group> bool leader_of(Group g) {
224225
} // namespace khr
225226
} // namespace _V1
226227
} // namespace sycl
228+
229+
#endif // __DPCPP_ENABLE_UNFINISHED_KHR_EXTENSIONS

sycl/test-e2e/GroupInterface/leader_of.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include <iostream>
66
#include <sycl/detail/core.hpp>
77
#include <sycl/group_algorithm.hpp>
8+
#define __DPCPP_ENABLE_UNFINISHED_KHR_EXTENSIONS
89
#include <sycl/khr/group_interface.hpp>
910

1011
using namespace sycl;

sycl/test-e2e/GroupInterface/sub_group.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
// RUN: %{run} %t.out
55

66
#include <sycl/detail/core.hpp>
7+
#define __DPCPP_ENABLE_UNFINISHED_KHR_EXTENSIONS
78
#include <sycl/khr/group_interface.hpp>
89

910
#include <sycl/builtins.hpp>

sycl/test-e2e/GroupInterface/work_group.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
// RUN: %{run} %t.out
55

66
#include <sycl/detail/core.hpp>
7+
#define __DPCPP_ENABLE_UNFINISHED_KHR_EXTENSIONS
78
#include <sycl/khr/group_interface.hpp>
89

910
#include <sycl/builtins.hpp>

0 commit comments

Comments
 (0)