hiprandgenerateseeds Interface Reference

hiprandgenerateseeds Interface Reference#

HIPFORT API Reference: hipfort_hiprand::hiprandgenerateseeds Interface Reference
hipfort_hiprand::hiprandgenerateseeds Interface Reference

Initializes the generator's state on GPU or host. More...

Public Member Functions

integer(kind(hiprand_status_success)) function hiprandgenerateseeds_ (generator)
 

Detailed Description

Initializes the generator's state on GPU or host.

Initializes the generator's state on GPU or host.

If hiprandGenerateSeeds() was not called for a generator, it will be automatically called by functions which generates random numbers like hiprandGenerate(), hiprandGenerateUniform(), hiprandGenerateNormal() etc.

Parameters
generator- Generator to initialize
Returns
  • HIPRAND_STATUS_NOT_INITIALIZED if the generator was never created
  • HIPRAND_STATUS_PREEXISTING_FAILURE if there was an existing error from a previous kernel launch
  • HIPRAND_STATUS_LAUNCH_FAILURE if the kernel launch failed for any reason
  • HIPRAND_STATUS_SUCCESS if the seeds were generated successfully

Member Function/Subroutine Documentation

◆ hiprandgenerateseeds_()

integer(kind(hiprand_status_success)) function hipfort_hiprand::hiprandgenerateseeds::hiprandgenerateseeds_ ( type(c_ptr), value  generator)

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