File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
sycl/include/sycl/ext/oneapi/experimental Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ class bfloat16 {
35
35
return __spirv_ConvertFToBF16INTEL (a);
36
36
#endif
37
37
#else
38
+ (void )a;
38
39
throw exception{errc::feature_not_supported,
39
40
" Bfloat16 conversion is not supported on host device" };
40
41
#endif
@@ -50,6 +51,7 @@ class bfloat16 {
50
51
return __spirv_ConvertBF16ToFINTEL (a);
51
52
#endif
52
53
#else
54
+ (void )a;
53
55
throw exception{errc::feature_not_supported,
54
56
" Bfloat16 conversion is not supported on host device" };
55
57
#endif
@@ -88,6 +90,7 @@ class bfloat16 {
88
90
return bfloat16{-__spirv_ConvertBF16ToFINTEL (lhs.value )};
89
91
#endif
90
92
#else
93
+ (void )lhs;
91
94
throw exception{errc::feature_not_supported,
92
95
" Bfloat16 unary minus is not supported on host device" };
93
96
#endif
You can’t perform that action at this time.
0 commit comments