Skip to content

Commit

Permalink
[RNG] A note about distributions that can't be used on GPUs not suppo…
Browse files Browse the repository at this point in the history
…rting FP64 precision (#1863)

Co-authored-by: Alina Elizarova <[email protected]>
  • Loading branch information
2 people authored and timmiesmith committed Nov 15, 2024
1 parent 02e472a commit d462a3a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions documentation/library_guide/api_for_sycl_kernels/random.rst
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ Distribution Description
``cauchy_distribution`` Produces real values according to the Cauchy distribution
============================== ============================================================================

.. note::
``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).

Usage Model of |onedpl_short| Random Number Generation Functionality
--------------------------------------------------------------------

Expand Down

0 comments on commit d462a3a

Please sign in to comment.