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) |
| integer(kind(rocrand_status_success)) function | rocrand_create_discrete_distribution_rank_0 (probabilities, mysize, offset, discrete_distribution) |
| integer(kind(rocrand_status_success)) function | rocrand_create_discrete_distribution_rank_1 (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.
- Parameters
-
probabilities - probabilities of the the distribution in host memory mySize - size of probabilitiesoffset - offset of values discrete_distribution - pointer to the histogram in device memory
- Returns
- ROCRAND_STATUS_ALLOCATION_FAILED if memory could not be allocated
- ROCRAND_STATUS_OUT_OF_RANGE if
discrete_distributionpointer was null - ROCRAND_STATUS_OUT_OF_RANGE if
sizewas zero - ROCRAND_STATUS_SUCCESS if the histogram was constructed 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 | ||
| ) |
◆ rocrand_create_discrete_distribution_rank_0()
| integer(kind(rocrand_status_success)) function hipfort_rocrand::rocrand_create_discrete_distribution::rocrand_create_discrete_distribution_rank_0 | ( | real(c_double), target | probabilities, |
| integer(c_int) | mysize, | ||
| integer(c_int) | offset, | ||
| type(c_ptr) | discrete_distribution | ||
| ) |
◆ rocrand_create_discrete_distribution_rank_1()
| integer(kind(rocrand_status_success)) function hipfort_rocrand::rocrand_create_discrete_distribution::rocrand_create_discrete_distribution_rank_1 | ( | real(c_double), dimension(:), target | probabilities, |
| integer(c_int) | mysize, | ||
| integer(c_int) | offset, | ||
| type(c_ptr) | discrete_distribution | ||
| ) |
The documentation for this interface was generated from the following file: