File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff 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);
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments