rocrand_create_discrete_distribution Interface Reference

rocrand_create_discrete_distribution Interface Reference#

HIPFORT API Reference: hipfort_rocrand::rocrand_create_discrete_distribution Interface Reference
hipfort_rocrand::rocrand_create_discrete_distribution Interface Reference

Construct the histogram for a custom discrete distribution. More...

Public Member Functions

integer(kind(rocrand_status_success)) function rocrand_create_discrete_distribution_ (probabilities, mySize, offset, discrete_distribution)

Detailed Description

Construct the histogram for a custom discrete distribution.

Construct the histogram for the discrete distribution of size 32-bit unsigned integers from the range [offset, offset + size) using probabilities as probabilities.

probabilities- probabilities of the the distribution in host memory
size- size of probabilities
offset- offset of values
discrete_distribution- pointer to the histogram in device memory
  • ROCRAND_STATUS_ALLOCATION_FAILED if memory could not be allocated
  • ROCRAND_STATUS_OUT_OF_RANGE if discrete_distribution pointer was null
  • ROCRAND_STATUS_OUT_OF_RANGE if size was zero
  • ROCRAND_STATUS_SUCCESS if the histogram was ructed successfully

Member Function/Subroutine Documentation

◆ rocrand_create_discrete_distribution_()

integer(kind(rocrand_status_success)) function hipfort_rocrand::rocrand_create_discrete_distribution::rocrand_create_discrete_distribution_ ( type(c_ptr), value  probabilities,
integer(c_int), value  mySize,
integer(c_int), value  offset,
type(c_ptr)  discrete_distribution 

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