hiprandgenerateshort Interface Reference#
hipfort_hiprand::hiprandgenerateshort Interface Reference
Generates uniformly distributed 16-bit unsigned integers. More...
Public Member Functions | |
integer(kind(hiprand_status_success)) function | hiprandgenerateshort_ (generator, output_data, n) |
Detailed Description
Generates uniformly distributed 16-bit unsigned integers.
Generates n
uniformly distributed 16-bit unsigned integers and saves them to output_data
.
Generated numbers are between 0
and 2^16
, including 0
and excluding 2^16
.
- Parameters
-
generator - Generator to use output_data - Pointer to memory to store generated numbers n - Number of 16-bit unsigned integers to generate
- Returns
- HIPRAND_STATUS_NOT_INITIALIZED if the generator was not initialized
- HIPRAND_STATUS_LAUNCH_FAILURE if generator failed to launch kernel
- HIPRAND_STATUS_SUCCESS if random numbers were successfully generated
- HIPRAND_STATUS_NOT_INITIALIZED if the generator was not initialized
Member Function/Subroutine Documentation
◆ hiprandgenerateshort_()
integer(kind(hiprand_status_success)) function hipfort_hiprand::hiprandgenerateshort::hiprandgenerateshort_ | ( | type(c_ptr), value | generator, |
type(c_ptr), value | output_data, | ||
integer(c_size_t), value | n | ||
) |
The documentation for this interface was generated from the following file: