Skip to content

Commit

Permalink
[RNG] Add explicit cast to T for operator<< of sycl::vec<T, 1> usage …
Browse files Browse the repository at this point in the history
  • Loading branch information
andreyfe1 authored and normallytangent committed Aug 6, 2024
1 parent 0c03238 commit 82f393c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/oneapi/mkl/rng/device/detail/mcg59_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,10 @@ class engine_base<oneapi::mkl::rng::device::mcg59<VecSize>> {
auto uni_res2 = mcg59_impl::generate(this->state_);

if constexpr (VecSize == 1) {
uni_res1 >>= 27;
uni_res2 >>= 27;
uni_res1 >>= UIntType(27);
uni_res2 >>= UIntType(27);

return (uni_res2 << 32) + uni_res1;
return (uni_res2 << UIntType(32)) + uni_res1;
}
else {
sycl::vec<std::uint64_t, VecSize> vec_out;
Expand Down

0 comments on commit 82f393c

Please sign in to comment.