Visible to Intel only — GUID: GUID-B7DC7D54-4476-43B7-9A9A-A46EC116A29C
Visible to Intel only — GUID: GUID-B7DC7D54-4476-43B7-9A9A-A46EC116A29C
svrng_leapfrog_engine
Re-initialize engine parameters for use of the leap-frog method
Syntax
svrng_engine_t svrng_leapfrog_engine( svrng_engine_t orig_engine, int k, int nstreams )
Input Parameters
orig_engine |
Pointer to the engine to be re-initialized using the leap-frog technique. |
k |
Index of the computational node, or sequence number. |
nstreams |
Largest number of computational nodes, or stride. |
Description
The svrng_skipahead_engine function re-initializes the engine parameters using the leap-frog method. The leap-frogged engine generates random numbers in a random stream with non-unit stride. This feature is particularly useful in distributing random numbers from the original stream across the nstreams buffers without generating the original random sequence with subsequent manual distribution.
Status flags set
Name |
Description |
---|---|
SVRNG_STATUS_ERROR_UNSUPPORTED |
Function or method non supported |
SVRNG_STATUS_ERROR_BAD_ENGINE |
Bad engine (NULL pointer) |
SVRNG_STATUS_ERROR_BAD_PARAM2 |
Bad parameter: k |
SVRNG_STATUS_ERROR_BAD_PARAM3 |
Bad parameter: nstreams |
Return Values
Pointer to the same input engine or NULL on error