Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit 5308b10

Browse files
author
Artem Gindinson
authored
[SYCL] Rely on automatic enabling of native/emulated FP atomics (#308)
After OpenCL CPU support of SPV_EXT_shader_atomic_float_* has arrived, the compiler is switched to defining the SYCL_USE_NATIVE_FP_ATOMICS internally for non-FPGA, non-NVPTX targets. Any further compiler changes that may come after NVPTX/FPGA HW support lands will not require test change, as the guarantee will remain that correct (native or emulated) versions of FP atomic functions get emitted and executed by the HW. Signed-off-by: Artem Gindinson <[email protected]>
1 parent 0b715c2 commit 5308b10

File tree

8 files changed

+6
-542
lines changed

8 files changed

+6
-542
lines changed

SYCL/AtomicRef/add-native.cpp

Lines changed: 0 additions & 198 deletions
This file was deleted.

SYCL/AtomicRef/add-emulated.cpp renamed to SYCL/AtomicRef/add.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// RUN: %clangxx -fsycl -fsycl-unnamed-lambda -fsycl-targets=%sycl_triple %s -o %t.out
1+
// RUN: %clangxx -fsycl -fsycl-unnamed-lambda -fsycl-targets=%sycl_triple %s -o %t.out \
2+
// RUN: -Xsycl-target-backend=nvptx64-nvidia-cuda-sycldevice --cuda-gpu-arch=sm_60
23
// RUN: %HOST_RUN_PLACEHOLDER %t.out
34
// RUN: %GPU_RUN_PLACEHOLDER %t.out
45
// RUN: %CPU_RUN_PLACEHOLDER %t.out

SYCL/AtomicRef/max-native.cpp

Lines changed: 0 additions & 72 deletions
This file was deleted.

SYCL/AtomicRef/max-emulated.cpp renamed to SYCL/AtomicRef/max.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: %clangxx -fsycl -fsycl-unnamed-lambda -fsycl-targets=%sycl_triple %s -o %t.out
22
// RUN: %HOST_RUN_PLACEHOLDER %t.out
3-
// RUN: %CPU_RUN_PLACEHOLDER %t.out
43
// RUN: %GPU_RUN_PLACEHOLDER %t.out
4+
// RUN: %CPU_RUN_PLACEHOLDER %t.out
55

66
#include <CL/sycl.hpp>
77
#include <algorithm>

SYCL/AtomicRef/min-native.cpp

Lines changed: 0 additions & 70 deletions
This file was deleted.

SYCL/AtomicRef/min-emulated.cpp renamed to SYCL/AtomicRef/min.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: %clangxx -fsycl -fsycl-unnamed-lambda -fsycl-targets=%sycl_triple %s -o %t.out
22
// RUN: %HOST_RUN_PLACEHOLDER %t.out
3-
// RUN: %CPU_RUN_PLACEHOLDER %t.out
43
// RUN: %GPU_RUN_PLACEHOLDER %t.out
4+
// RUN: %CPU_RUN_PLACEHOLDER %t.out
55

66
#include <CL/sycl.hpp>
77
#include <algorithm>

0 commit comments

Comments
 (0)