Skip to content

Commit 048dca0

Browse files
committed
[SYCL] Remove default argument from barrier
Meaning of barrier() was ambiguous, and could have meant: - New barrier() with no fence_space argument - Old barrier() with default fence_space argument Signed-off-by: John Pennycook <john.pennycook@intel.com>
1 parent 90d5156 commit 048dca0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sycl/include/CL/sycl/intel/sub_group.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -460,8 +460,7 @@ struct sub_group {
460460

461461
__SYCL_DEPRECATED("Sub-group barrier accepting fence_space is deprecated."
462462
"Use barrier() without a fence_space instead.")
463-
void barrier(access::fence_space accessSpace =
464-
access::fence_space::global_and_local) const {
463+
void barrier(access::fence_space accessSpace) const {
465464
#ifdef __SYCL_DEVICE_ONLY__
466465
int32_t flags = sycl::detail::getSPIRVMemorySemanticsMask(accessSpace);
467466
__spirv_ControlBarrier(__spv::Scope::Subgroup, __spv::Scope::Subgroup,

0 commit comments

Comments
 (0)