From 7ed5e9f692792268e064d72c7a34bc249cf2c237 Mon Sep 17 00:00:00 2001 From: CaiZhi Date: Sun, 13 Aug 2023 18:26:07 +0800 Subject: [PATCH] [MTAI-484] fix(build): repleace murand_uniform with murand_uniform2 --- paddle/phi/kernels/funcs/distribution_helper.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paddle/phi/kernels/funcs/distribution_helper.h b/paddle/phi/kernels/funcs/distribution_helper.h index 484f077583bef..4705370f71f7c 100644 --- a/paddle/phi/kernels/funcs/distribution_helper.h +++ b/paddle/phi/kernels/funcs/distribution_helper.h @@ -210,7 +210,7 @@ template <> struct uniform_distribution { __device__ inline double2 operator()( murand_state_philox4x32_10 *state) const { - return murand_uniform_double2(state); + return murand_uniform2_double(state); } static constexpr int kReturnsCount = 2; }; @@ -248,7 +248,7 @@ template <> struct normal_distribution { __device__ inline double2 operator()( murand_state_philox4x32_10 *state) const { - return murand_normal_double2(state); + return murand_normal2_double(state); } static constexpr int kReturnsCount = 2; };