diff --git a/examples/rng/device/include/rng_example_helper.hpp b/examples/rng/device/include/rng_example_helper.hpp index 1faf0a58f..ad0fdea03 100644 --- a/examples/rng/device/include/rng_example_helper.hpp +++ b/examples/rng/device/include/rng_example_helper.hpp @@ -29,22 +29,12 @@ struct has_member_code_meta().get_multi_ template ::value>::type* = nullptr> auto get_multi_ptr(T acc) { -// Workaround for AdaptiveCPP, as they do not yet support the get_multi_ptr function -#ifndef __ADAPTIVECPP__ return acc.get_multi_ptr(); -#else - return acc.get_pointer(); -#endif }; template ::value>::type* = nullptr> auto get_multi_ptr(T acc) { -// Workaround for AdaptiveCPP, as they do not yet support the get_multi_ptr function -#ifndef __ADAPTIVECPP__ return acc.template get_multi_ptr(); -#else - return acc.get_pointer(); -#endif }; #endif // _RNG_EXAMPLE_HELPER_HPP__ diff --git a/include/oneapi/mkl/rng/device/detail/mcg31m1_impl.hpp b/include/oneapi/mkl/rng/device/detail/mcg31m1_impl.hpp index e9347f5f6..36414d8ea 100644 --- a/include/oneapi/mkl/rng/device/detail/mcg31m1_impl.hpp +++ b/include/oneapi/mkl/rng/device/detail/mcg31m1_impl.hpp @@ -154,12 +154,7 @@ static inline sycl::vec generate( engine_state>& state) { sycl::vec x(state.s); sycl::vec res; -#ifndef __ADAPTIVECPP__ res = custom_mod(mcg31m1_vector_a::vector_a * x); -#else - // a workaround for AdaptiveCpp (hipSYCL) - res = custom_mod(select_vector_a_mcg31m1() * x); -#endif state.s = custom_mod(mcg31m1_param::a * static_cast(res[VecSize - 1])); return res; diff --git a/include/oneapi/mkl/rng/device/detail/mcg59_impl.hpp b/include/oneapi/mkl/rng/device/detail/mcg59_impl.hpp index 1b882862e..36c289f35 100644 --- a/include/oneapi/mkl/rng/device/detail/mcg59_impl.hpp +++ b/include/oneapi/mkl/rng/device/detail/mcg59_impl.hpp @@ -123,12 +123,7 @@ template static inline sycl::vec generate( engine_state>& state) { sycl::vec res(state.s); -#ifndef __ADAPTIVECPP__ res = custom_mod(mcg59_vector_a::vector_a * res); -#else - // a workaround for AdaptiveCpp (hipSYCL) - res = custom_mod(select_vector_a_mcg59() * res); -#endif state.s = custom_mod(mcg59_param::a * res[VecSize - 1]); return res; } diff --git a/src/rng/backends/mklcpu/cpu_common.hpp b/src/rng/backends/mklcpu/cpu_common.hpp index d1948940e..6368fcdef 100644 --- a/src/rng/backends/mklcpu/cpu_common.hpp +++ b/src/rng/backends/mklcpu/cpu_common.hpp @@ -58,12 +58,7 @@ class kernel_name_usm {}; template typename Acc::value_type *get_raw_ptr(Acc acc) { -// Workaround for AdaptiveCPP, as they do not yet support the get_multi_ptr function -#ifndef __ADAPTIVECPP__ return acc.template get_multi_ptr().get_raw(); -#else - return acc.get_pointer(); -#endif } } // namespace mklcpu