Skip to content

Commit 82f393c

Browse files
andreyfe1normallytangent
authored andcommitted
[RNG] Add explicit cast to T for operator<< of sycl::vec<T, 1> usage #4396 (#512)
1 parent 0c03238 commit 82f393c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/oneapi/mkl/rng/device/detail/mcg59_impl.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,10 +197,10 @@ class engine_base<oneapi::mkl::rng::device::mcg59<VecSize>> {
197197
auto uni_res2 = mcg59_impl::generate(this->state_);
198198

199199
if constexpr (VecSize == 1) {
200-
uni_res1 >>= 27;
201-
uni_res2 >>= 27;
200+
uni_res1 >>= UIntType(27);
201+
uni_res2 >>= UIntType(27);
202202

203-
return (uni_res2 << 32) + uni_res1;
203+
return (uni_res2 << UIntType(32)) + uni_res1;
204204
}
205205
else {
206206
sycl::vec<std::uint64_t, VecSize> vec_out;

0 commit comments

Comments
 (0)