File tree Expand file tree Collapse file tree 7 files changed +29
-26
lines changed Expand file tree Collapse file tree 7 files changed +29
-26
lines changed Original file line number Diff line number Diff line change 13
13
14
14
using namespace sycl ;
15
15
using namespace sycl ::ext::oneapi;
16
- using namespace sycl ::ext::oneapi::experimental;
17
16
18
17
constexpr int N = 60 ; // divisible by all tested array sizes
19
18
constexpr float bf16_eps = 0.00390625 ;
Original file line number Diff line number Diff line change 1
- // RUN: %if cuda %{%clangxx -fsycl -fsycl-targets=%sycl_triple -DUSE_CUDA_SM80=1 -Xsycl-target-backend --cuda-gpu-arch=sm_80 %s -o %t.out %}
2
- // RUN: %if cuda %{%GPU_RUN_PLACEHOLDER %t.out %}
3
- // RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
1
+ // UNSUPPORTED: hip
2
+ // RUN: %if cuda %{%clangxx -fsycl -fsycl-targets=%sycl_triple -Xsycl-target-backend --cuda-gpu-arch=sm_80 %s -o %t.out %}
3
+ // TODO enable the below when CI supports >=sm_80
4
+ // RUNx: %if cuda %{%GPU_RUN_PLACEHOLDER %t.out %}
5
+ // RUN: %clangxx -fsycl %s -o %t.out
4
6
// TODO currently the feature isn't supported on FPGA.
5
7
// RUN: %CPU_RUN_PLACEHOLDER %t.out
6
8
// RUN: %GPU_RUN_PLACEHOLDER %t.out
7
9
// RUNx: %ACC_RUN_PLACEHOLDER %t.out
8
- //
9
- // Not currently supported on HIP.
10
- // UNSUPPORTED: hip
11
10
12
11
// ==----------- bfloat16_type.cpp - SYCL bfloat16 type test ----------------==//
13
12
//
19
18
20
19
#include " bfloat16_type.hpp"
21
20
22
- int main () {
23
-
24
- #ifdef USE_CUDA_SM80
25
- // Special build for SM80 CUDA.
26
- sycl::device Dev{default_selector_v};
27
- if (Dev.get_platform ().get_backend () != backend::ext_oneapi_cuda) {
28
- std::cout << " Test skipped; CUDA run was not run with CUDA device."
29
- << std::endl;
30
- return 0 ;
31
- }
32
- if (std::stof (Dev.get_info <sycl::info::device::backend_version>()) < 8 .0f ) {
33
- std::cout << " Test skipped; CUDA device does not support SM80 or newer."
34
- << std::endl;
35
- return 0 ;
36
- }
37
- #endif
38
-
39
- return run_tests ();
40
- }
21
+ int main () { return run_tests (); }
Original file line number Diff line number Diff line change
1
+ // REQUIRES: gpu, cuda
2
+ // RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -Xsycl-target-backend --cuda-gpu-arch=sm_80 %s -o %t.out
3
+ // RUN: %t.out
4
+
5
+ // ==--------- bfloat16_type_cuda.cpp - SYCL bfloat16 type test -------------==//
6
+ //
7
+ // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
8
+ // See https://llvm.org/LICENSE.txt for license information.
9
+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
10
+ //
11
+ // ===----------------------------------------------------------------------===//
12
+
13
+ #include " bfloat16_type.hpp"
14
+
15
+ int main () { return run_tests (); }
Original file line number Diff line number Diff line change
1
+ SYCL/BFloat16/bfloat16_type_cuda.cpp
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <test name =" bfloat16_bfloat16_type_cuda" driverID =" llvm_test_suite_sycl" >
3
+ <description >WARNING: DON'T UPDATE THIS FILE MANUALLY!!!
4
+ This config file auto-generated by suite_generator_sycl.pl.</description >
5
+ </test >
Original file line number Diff line number Diff line change @@ -259,6 +259,7 @@ Sources repo https://github.com/intel-innersource/applications.compilers.tests.l
259
259
<test configFile =" config_sycl/bfloat16_bfloat16_conversions.xml" splitGroup =" bfloat16" testName =" bfloat16_bfloat16_conversions" />
260
260
<test configFile =" config_sycl/bfloat16_bfloat16_example.xml" splitGroup =" bfloat16" testName =" bfloat16_bfloat16_example" />
261
261
<test configFile =" config_sycl/bfloat16_bfloat16_type.xml" splitGroup =" bfloat16" testName =" bfloat16_bfloat16_type" />
262
+ <test configFile =" config_sycl/bfloat16_bfloat16_type_cuda.xml" splitGroup =" bfloat16" testName =" bfloat16_bfloat16_type_cuda" />
262
263
<test configFile =" config_sycl/bfloat16_bfloat_hw.xml" splitGroup =" bfloat16" testName =" bfloat16_bfloat_hw" />
263
264
<test configFile =" config_sycl/complex_sycl_complex_math_test.xml" splitGroup =" complex" testName =" complex_sycl_complex_math_test" />
264
265
<test configFile =" config_sycl/complex_sycl_complex_operator_test.xml" splitGroup =" complex" testName =" complex_sycl_complex_operator_test" />
Original file line number Diff line number Diff line change @@ -259,6 +259,7 @@ Sources repo https://github.com/intel-innersource/applications.compilers.tests.l
259
259
<test configFile =" config_sycl/bfloat16_bfloat16_conversions.xml" splitGroup =" bfloat16" testName =" bfloat16_bfloat16_conversions" />
260
260
<test configFile =" config_sycl/bfloat16_bfloat16_example.xml" splitGroup =" bfloat16" testName =" bfloat16_bfloat16_example" />
261
261
<test configFile =" config_sycl/bfloat16_bfloat16_type.xml" splitGroup =" bfloat16" testName =" bfloat16_bfloat16_type" />
262
+ <test configFile =" config_sycl/bfloat16_bfloat16_type_cuda.xml" splitGroup =" bfloat16" testName =" bfloat16_bfloat16_type_cuda" />
262
263
<test configFile =" config_sycl/bfloat16_bfloat_hw.xml" splitGroup =" bfloat16" testName =" bfloat16_bfloat_hw" />
263
264
<test configFile =" config_sycl/complex_sycl_complex_math_test.xml" splitGroup =" complex" testName =" complex_sycl_complex_math_test" />
264
265
<test configFile =" config_sycl/complex_sycl_complex_operator_test.xml" splitGroup =" complex" testName =" complex_sycl_complex_operator_test" />
You can’t perform that action at this time.
0 commit comments