This repository was archived by the owner on Mar 28, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 1
1
// REQUIRES: gpu, cuda
2
2
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -Xsycl-target-backend --cuda-gpu-arch=sm_80 %s -o %t.out
3
- // TODO: Currently the CI does not have a sm_80 capable machine. Enable the test
4
- // execution once it does.
5
- // RUNx: %t.out
3
+ // RUN: %t.out
6
4
7
5
// ==--------- bfloat16_type_cuda.cpp - SYCL bfloat16 type test -------------==//
8
6
//
14
12
15
13
#include " bfloat16_type.hpp"
16
14
17
- int main () { return run_tests (); }
15
+ int main () {
16
+ bool has_bfloat16_aspect = false ;
17
+ for (const auto &plt : sycl::platform::get_platforms ()) {
18
+ if (plt.has (aspect::ext_oneapi_bfloat16))
19
+ has_bfloat16_aspect = true ;
20
+ }
21
+
22
+ if (has_bfloat16_aspect)
23
+ return run_tests ();
24
+ }
Original file line number Diff line number Diff line change @@ -57,6 +57,9 @@ int main() {
57
57
if (plt.has (aspect::fp64)) {
58
58
std::cout << " fp64" << std::endl;
59
59
}
60
+ if (plt.has (aspect::ext_oneapi_bfloat16)) {
61
+ std::cout << " ext_oneapi_bfloat16" << std::endl;
62
+ }
60
63
if (plt.has (aspect::int64_base_atomics)) {
61
64
std::cout << " base atomic operations" << std::endl;
62
65
}
You can’t perform that action at this time.
0 commit comments