From f79c12470555a077a8025d66c233976532215853 Mon Sep 17 00:00:00 2001 From: "Martyanov, Ivan" Date: Mon, 23 Dec 2024 03:14:14 -0800 Subject: [PATCH] revert part --- include/oneapi/math/rng/device/detail/geometric_impl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/oneapi/math/rng/device/detail/geometric_impl.hpp b/include/oneapi/math/rng/device/detail/geometric_impl.hpp index 99749c65a..3466db8b7 100644 --- a/include/oneapi/math/rng/device/detail/geometric_impl.hpp +++ b/include/oneapi/math/rng/device/detail/geometric_impl.hpp @@ -64,7 +64,7 @@ class distribution_base> { std::is_same_v, double, float>::type; - FpType uni_res = engine.generate(FpType(0.0), FpType(1.0)); + auto uni_res = engine.generate(FpType(0.0), FpType(1.0)); FpType inv_ln = ln_wrapper(FpType(1.0) - p_); inv_ln = FpType(1.0) / inv_ln; if constexpr (EngineType::vec_size == 1) {