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

Commit 5459e77

Browse files
committed
Make the test fail if SYCL_EXT_ONEAPI_NATIVE_MATH is not supported
1 parent f9fbbf9 commit 5459e77

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

SYCL/DeviceLib/built-ins/ext_native_math.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ template <typename T> void native_tanh_tester(sycl::queue q) {
4040
}
4141

4242
assert_out_of_bound(r, T(0.75f), T(0.77f)); // 0.76159415595576488812
43+
#else
44+
assert(!"SYCL_EXT_ONEAPI_NATIVE_MATH not supported");
4345
#endif
4446
}
4547

@@ -58,6 +60,8 @@ template <typename T> void native_exp2_tester(sycl::queue q) {
5860
}
5961

6062
assert_out_of_bound(r, T(1.30f), T(1.50f)); // 1.4142135623730950488
63+
#else
64+
assert(!"SYCL_EXT_ONEAPI_NATIVE_MATH not supported");
6165
#endif
6266
}
6367

0 commit comments

Comments
 (0)