Commit e0aea28
committed
Resolved SYCL-2020 deprecation warning
```
In file included from ~/dpctl/dpctl/tensor/libtensor/source/elementwise_functions.cpp:56:
~/dpctl/dpctl/tensor/libtensor/include/kernels/elementwise_functions/expm1.hpp:118:42: warning: 'sincos' is deprecated: SYCL builtin functions with raw pointer arguments have been deprecated. Please use multi_ptr. [-Wdeprecated-declarations]
118 | const realT sinY_val = sycl::sincos(y, &cosY_val);
```
The resolution is to convert raw pointer to multi-pointer using `sycl::address_space_cast`.1 parent 8eab04b commit e0aea28
File tree
1 file changed
+4
-1
lines changed- dpctl/tensor/libtensor/include/kernels/elementwise_functions
1 file changed
+4
-1
lines changedLines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
119 | 122 | | |
120 | 123 | | |
121 | 124 | | |
| |||
0 commit comments