This page contains proposed changes for a future release of ROCm. Read the latest Linux release of ROCm documentation for your production environments.

rocrand_set_offset Interface Reference

rocrand_set_offset Interface Reference#

HIPFORT API Reference: hipfort_rocrand::rocrand_set_offset Interface Reference
hipfort_rocrand::rocrand_set_offset Interface Reference

Sets the offset of a random number generator. More...

Public Member Functions

integer(kind(rocrand_status_success)) function rocrand_set_offset_ (generator, offset)
 

Detailed Description

Sets the offset of a random number generator.

Sets the absolute offset of the random number generator.

  • This operation resets the generator's internal state.
  • This operation does not change the generator's seed.

Absolute offset cannot be set if generator's type is ROCRAND_RNG_PSEUDO_MTGP32.

Parameters
generator- Random number generator
offset- New absolute offset
Returns
  • ROCRAND_STATUS_NOT_CREATED if the generator wasn't created
  • ROCRAND_STATUS_SUCCESS if offset was successfully set
  • ROCRAND_STATUS_TYPE_ERROR if generator's type is ROCRAND_RNG_PSEUDO_MTGP32

Member Function/Subroutine Documentation

◆ rocrand_set_offset_()

integer(kind(rocrand_status_success)) function hipfort_rocrand::rocrand_set_offset::rocrand_set_offset_ ( type(c_ptr), value  generator,
integer(c_long_long), value  offset 
)

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