Skip to content

Commit

Permalink
replace sycl fmin, fmax with std
Browse files Browse the repository at this point in the history
  • Loading branch information
andreyfe1 committed Sep 25, 2024
1 parent 71dddf3 commit ecd826e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/oneapi/mkl/rng/device/detail/uniform_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ class distribution_base<oneapi::mkl::rng::device::uniform<Type, Method>> {
else {
res = engine.generate(a_, b_);
if constexpr (std::is_same<Method, uniform_method::accurate>::value) {
res = sycl::fmax(res, a_);
res = sycl::fmin(res, b_);
res = std::fmax(res, a_);
res = std::fmin(res, b_);
}
}

Expand Down Expand Up @@ -271,8 +271,8 @@ class distribution_base<oneapi::mkl::rng::device::uniform<Type, Method>> {
else {
res = engine.generate_single(a_, b_);
if constexpr (std::is_same<Method, uniform_method::accurate>::value) {
res = sycl::fmax(res, a_);
res = sycl::fmin(res, b_);
res = std::fmax(res, a_);
res = std::fmin(res, b_);
}
}

Expand Down

0 comments on commit ecd826e

Please sign in to comment.