Skip to content

Commit 0e892be

Browse files
[SYCL][COMPAT] Specify proper namespace for abs with sycl::complex (#13518)
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
1 parent ea1fc52 commit 0e892be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/include/syclcompat/math.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ sycl::vec<T, 2> cdiv(sycl::vec<T, 2> x, sycl::vec<T, 2> y) {
571571
/// \returns The result
572572
template <typename T> T cabs(sycl::vec<T, 2> x) {
573573
sycl::ext::oneapi::experimental::complex<T> t(x[0], x[1]);
574-
return abs(t);
574+
return sycl::ext::oneapi::experimental::abs(t);
575575
}
576576

577577
/// Computes the complex conjugate of a complex number.

0 commit comments

Comments
 (0)