From 54a91c25a893758759962f79441097c2d1a60643 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Thu, 31 Dec 2020 12:42:00 -0600 Subject: [PATCH] Put a deadline on Ranlux deprecation --- pyopencl/clrandom.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pyopencl/clrandom.py b/pyopencl/clrandom.py index aada2bd8..2471d8d2 100644 --- a/pyopencl/clrandom.py +++ b/pyopencl/clrandom.py @@ -114,6 +114,10 @@ class RanluxGenerator: Added default value for `num_work_items`. """ + from warnings import warn + warn("Ranlux random number generation is deprecated and will go away " + "in 2022.", DeprecationWarning, stacklevel=2) + if luxury is None: luxury = 4 -- GitLab