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

Commit 0ed96b4

Browse files
authored
[SYCL] Enable native FP add/sub tests for CUDA (#169)
Signed-off-by: John Pennycook <john.pennycook@intel.com>
1 parent 8d41246 commit 0ed96b4

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

SYCL/AtomicRef/add-native.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
// RUN: %clangxx -fsycl -fsycl-unnamed-lambda -DSYCL_USE_NATIVE_FP_ATOMICS \
2-
// RUN: -fsycl-targets=%sycl_triple %s -o %t.out
2+
// RUN: -fsycl-targets=%sycl_triple %s -o %t.out \
3+
// RUN: -Xsycl-target-backend=nvptx64-nvidia-cuda-sycldevice --cuda-gpu-arch=sm_60
34
// RUN: %HOST_RUN_PLACEHOLDER %t.out
45
// RUN: %GPU_RUN_PLACEHOLDER %t.out
56
// RUN: %CPU_RUN_PLACEHOLDER %t.out
67
// TODO: Remove items from UNSUPPORTED once corresponding backends support
78
// "native" implementation
8-
// UNSUPPORTED: cpu, cuda
9+
// UNSUPPORTED: cpu
910

1011
#include <CL/sycl.hpp>
1112
#include <algorithm>

SYCL/AtomicRef/sub-native.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
// RUN: %clangxx -fsycl -fsycl-unnamed-lambda -DSYCL_USE_NATIVE_FP_ATOMICS \
2-
// RUN: -fsycl-targets=%sycl_triple %s -o %t.out
2+
// RUN: -fsycl-targets=%sycl_triple %s -o %t.out \
3+
// RUN: -Xsycl-target-backend=nvptx64-nvidia-cuda-sycldevice --cuda-gpu-arch=sm_60
34
// RUN: %HOST_RUN_PLACEHOLDER %t.out
45
// RUN: %GPU_RUN_PLACEHOLDER %t.out
56
// RUN: %CPU_RUN_PLACEHOLDER %t.out
67
// TODO: Remove items from UNSUPPORTED once corresponding backends support
78
// "native" implementation
8-
// UNSUPPORTED: cpu, cuda
9+
// UNSUPPORTED: cpu
910

1011
#include <CL/sycl.hpp>
1112
#include <algorithm>

0 commit comments

Comments
 (0)