We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 178db0d commit 29cc21eCopy full SHA for 29cc21e
SYCL/BFloat16/bfloat16_builtins.cpp
@@ -1,11 +1,11 @@
1
-// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %if cuda %{ -Xsycl-target-backend --cuda-gpu-arch=sm_80 %} %s -o %t.out
2
-
3
-// Currently the feature isn't supported on FPGA.
4
5
-// RUN: %CPU_RUN_PLACEHOLDER %t.out
6
-// RUN: %GPU_RUN_PLACEHOLDER %t.out
7
-// TODO: add test execution on FPGA
+// REQUIRES: cuda
+//
+// Currently this test fails to compile for backends other than cuda.
+// Other backends could use this test when bfloat16 math function support is
+// added.
8
//
+// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out -Xsycl-target-backend --cuda-gpu-arch=sm_80
+// RUN: %t.out
9
#include <sycl/sycl.hpp>
10
11
#include <cmath>
0 commit comments