rocrand_initialize_generator Interface Reference

rocrand_initialize_generator Interface Reference#

HIPFORT API Reference: hipfort_rocrand::rocrand_initialize_generator Interface Reference
hipfort_rocrand::rocrand_initialize_generator Interface Reference

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

Public Member Functions

integer(kind(rocrand_status_success)) function rocrand_initialize_generator_ (generator)
 

Detailed Description

Initializes the generator's state on GPU or host.

Initializes the generator's state on GPU or host. User it not required to call this function before using a generator.

If rocrand_initialize() was not called for a generator, it will be automatically called by functions which generates random numbers like rocrand_generate(), rocrang_generate_uniform() etc.

Parameters
generator- Generator to initialize
Returns
  • ROCRAND_STATUS_NOT_CREATED if the generator wasn't created
  • ROCRAND_STATUS_LAUNCH_FAILURE if a HIP kernel launch failed
  • ROCRAND_STATUS_SUCCESS if the seeds were generated successfully

Member Function/Subroutine Documentation

◆ rocrand_initialize_generator_()

integer(kind(rocrand_status_success)) function hipfort_rocrand::rocrand_initialize_generator::rocrand_initialize_generator_ ( type(c_ptr), value  generator)

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