Intel® oneAPI Math Kernel Library Developer Reference - C
Creates a new stream and reads stream descriptive data, including stream state, from the memory buffer.
errstatus = vslLoadStreamM( &stream, memptr );
Name |
Type |
Description |
---|---|---|
memptr |
const char* |
Memory buffer to load random stream descriptive data from |
Name |
Type |
Description |
---|---|---|
stream |
VSLStreamStatePtr* |
Pointer to a new random stream |
errstatus |
int |
Error status of the operation |
The vslLoadStreamM function creates a new stream and reads stream descriptive data, including the stream state, from the memory buffer. A new random stream is created using the stream descriptive data from the memory pointer by memptr. If the stream cannot be read (for example, memptr is invalid), errstatus has a non-zero value. To save random stream to the memory, use vslSaveStreamM function. Use the service routine vslGetStreamSize to determine the amount of memory sufficient to hold the random stream.
Calling LoadStreamM with a previously initialized stream pointer can have unintended consequences such as a memory leak. To initialize a stream which has been in use until calling vslLoadStreamM, you should call the vslDeleteStream function first to deallocate the resources.
Optimization Notice |
---|
Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice. Notice revision #20110804 |
Indicates no error, execution is successful.
memptr is a NULL pointer.
System cannot allocate memory for internal needs.
Descriptive random stream format is unknown.
Non-deterministic random number generator is not supported.
ARS-5 random number generator is not supported on the CPU running the application.