rocrand_generate_poisson Interface Reference

rocrand_generate_poisson Interface Reference#

HIPFORT API Reference: hipfort_rocrand::rocrand_generate_poisson Interface Reference
hipfort_rocrand::rocrand_generate_poisson Interface Reference

Generates Poisson-distributed 32-bit unsigned integers. More...

Public Member Functions

integer(kind(rocrand_status_success)) function rocrand_generate_poisson_ (generator, output_data, n, lambda)
 

Detailed Description

Generates Poisson-distributed 32-bit unsigned integers.

Generates n Poisson-distributed 32-bit unsigned integers and saves them to output_data.

Parameters
generator- Generator to use
output_data- Pointer to memory to store generated numbers
n- Number of 32-bit unsigned integers to generate
lambda- lambda for the Poisson distribution
Returns
  • ROCRAND_STATUS_NOT_CREATED if the generator wasn't created
  • ROCRAND_STATUS_LAUNCH_FAILURE if a HIP kernel launch failed
  • ROCRAND_STATUS_OUT_OF_RANGE if lambda is non-positive
  • ROCRAND_STATUS_LENGTH_NOT_MULTIPLE if n is not a multiple of the dimension of used quasi-random generator
  • ROCRAND_STATUS_SUCCESS if random numbers were successfully generated

Member Function/Subroutine Documentation

◆ rocrand_generate_poisson_()

integer(kind(rocrand_status_success)) function hipfort_rocrand::rocrand_generate_poisson::rocrand_generate_poisson_ ( type(c_ptr), value  generator,
type(c_ptr), value  output_data,
integer(c_size_t), value  n,
real(c_double), value  lambda 
)

The documentation for this interface was generated from the following file: