Skip to content

Commit cd13ac5

Browse files
committed
Update group alg barrier and test
Signed-off-by: James Brodman <[email protected]>
1 parent 52e30f7 commit cd13ac5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

sycl/include/CL/sycl/ONEAPI/group_algorithm.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,11 @@ template <> inline id<3> linear_id_to_id(range<3> r, size_t linear_id) {
8181

8282
// TODO: Replace with Group::fence_scope from SYCL 2020 provisional
8383
template <typename Group> struct FenceScope {
84-
static constexpr intel::memory_scope value = intel::memory_scope::work_group;
84+
static constexpr ONEAPI::memory_scope value = ONEAPI::memory_scope::work_group;
8585
};
8686

87-
template <> struct FenceScope<intel::sub_group> {
88-
static constexpr intel::memory_scope value = intel::memory_scope::sub_group;
87+
template <> struct FenceScope<ONEAPI::sub_group> {
88+
static constexpr ONEAPI::memory_scope value = ONEAPI::memory_scope::sub_group;
8989
};
9090

9191
template <typename T, class BinaryOperation> struct identity {};

sycl/test/group-algorithm/barrier.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include <CL/sycl.hpp>
99
#include <cassert>
1010
using namespace sycl;
11-
using namespace sycl::intel;
11+
using namespace sycl::ONEAPI;
1212

1313
class barrier_kernel;
1414

0 commit comments

Comments
 (0)