Skip to content

Commit be71125

Browse files
author
Artem Gindinson
committed
Remove double underscore from the macro name
Make the user-exposed macro consistent with naming standards for C++ libraries, ours in particular. https://eel.is/c++draft/lex.name Signed-off-by: Artem Gindinson <artem.gindinson@intel.com>
1 parent 342a179 commit be71125

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

sycl/include/CL/sycl/ONEAPI/atomic_ref.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ class atomic_ref_impl<
455455
memory_scope scope = default_scope) const noexcept {
456456
// TODO: Remove the "native atomics" macro check once implemented for all
457457
// backends
458-
#if defined(__SYCL_DEVICE_ONLY__) && defined(__SYCL_USE_NATIVE_FP_ATOMICS__)
458+
#if defined(__SYCL_DEVICE_ONLY__) && defined(SYCL_USE_NATIVE_FP_ATOMICS)
459459
return detail::spirv::AtomicFAdd(ptr, scope, order, operand);
460460
#else
461461
auto load_order = detail::getLoadOrder(order);
@@ -478,7 +478,7 @@ class atomic_ref_impl<
478478
memory_scope scope = default_scope) const noexcept {
479479
// TODO: Remove the "native atomics" macro check once implemented for all
480480
// backends
481-
#if defined(__SYCL_DEVICE_ONLY__) && defined(__SYCL_USE_NATIVE_FP_ATOMICS__)
481+
#if defined(__SYCL_DEVICE_ONLY__) && defined(SYCL_USE_NATIVE_FP_ATOMICS)
482482
return detail::spirv::AtomicFAdd(ptr, scope, order, -operand);
483483
#else
484484
auto load_order = detail::getLoadOrder(order);

sycl/test/atomic_ref/add.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// mark
33
// UNSUPPORTED: cuda
44

5-
// RUN: %clangxx -fsycl -fsycl-unnamed-lambda -D__SYCL_USE_NATIVE_FP_ATOMICS__ \
5+
// RUN: %clangxx -fsycl -fsycl-unnamed-lambda -DSYCL_USE_NATIVE_FP_ATOMICS \
66
// RUN: -fsycl-device-only -S %s -o - | FileCheck %s --check-prefix=CHECK-LLVM
77
// RUN: %clangxx -fsycl -fsycl-unnamed-lambda -fsycl-device-only -S %s -o - \
88
// RUN: | FileCheck %s --check-prefix=CHECK-LLVM-EMU

sycl/test/atomic_ref/sub.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// mark
33
// UNSUPPORTED: cuda
44

5-
// RUN: %clangxx -fsycl -fsycl-unnamed-lambda -D__SYCL_USE_NATIVE_FP_ATOMICS__ \
5+
// RUN: %clangxx -fsycl -fsycl-unnamed-lambda -DSYCL_USE_NATIVE_FP_ATOMICS \
66
// RUN: -fsycl-device-only -S %s -o - | FileCheck %s --check-prefix=CHECK-LLVM
77
// RUN: %clangxx -fsycl -fsycl-unnamed-lambda -fsycl-device-only -S %s -o - \
88
// RUN: | FileCheck %s --check-prefix=CHECK-LLVM-EMU

0 commit comments

Comments
 (0)