Skip to content

Commit

Permalink
Merge pull request #1390 from IntelPython/correct-address-space-in-ad…
Browse files Browse the repository at this point in the history
…dress-space-cast

Correct address_space when casting ref of local variable to multi_ptr
  • Loading branch information
oleksandr-pavlyk authored Sep 6, 2023
2 parents 01e6c3d + 03e7f26 commit 87d1c13
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ template <typename argT, typename resT> struct Expm1Functor
// x, y finite numbers
realT cosY_val;
auto cosY_val_multi_ptr = sycl::address_space_cast<
sycl::access::address_space::global_space,
sycl::access::address_space::private_space,
sycl::access::decorated::yes>(&cosY_val);
const realT sinY_val = sycl::sincos(y, cosY_val_multi_ptr);
const realT sinhalfY_val = std::sin(y / 2);
Expand Down

0 comments on commit 87d1c13

Please sign in to comment.