Skip to content

Commit d462a3a

Browse files
egrabovskayaaelizaro
authored andcommitted
[RNG] A note about distributions that can't be used on GPUs not supporting FP64 precision (#1863)
Co-authored-by: Alina Elizarova <[email protected]>
1 parent 02e472a commit d462a3a

File tree

1 file changed

+3
-0
lines changed
  • documentation/library_guide/api_for_sycl_kernels

1 file changed

+3
-0
lines changed

documentation/library_guide/api_for_sycl_kernels/random.rst

+3
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ Distribution Description
107107
``cauchy_distribution`` Produces real values according to the Cauchy distribution
108108
============================== ============================================================================
109109

110+
.. note::
111+
``bernoulli_distribution``, ``geometric_distribution``, and ``uniform_int_distribution`` can only be used on devices with FP64 support as they rely on double precision in their implementation (use ``sycl::aspect::fp64`` to check if the device supports FP64).
112+
110113
Usage Model of |onedpl_short| Random Number Generation Functionality
111114
--------------------------------------------------------------------
112115

0 commit comments

Comments
 (0)