diff --git a/pyopencl/clrandom.py b/pyopencl/clrandom.py index aada2bd850d305735a62b67517cb4418d6fe7687..2471d8d26d801367f877d2d29481c55468ba12da 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