Intel® oneAPI Math Kernel Library Developer Reference - C
Creates new stream and reads stream descriptive data, including stream state, from binary file.
errstatus = vslLoadStreamF( &stream, fname );
Name |
Type |
Description |
---|---|---|
fname |
const char* |
File name specified as a null-terminated string |
Name |
Type |
Description |
---|---|---|
stream |
VSLStreamStatePtr* |
Pointer to a new random stream |
errstatus |
int |
Error status of the operation |
The vslLoadStreamF function creates a new stream and reads stream descriptive data, including the stream state, from the binary file. A new random stream is created using the stream descriptive data from the binary file with the name fname. If the stream cannot be read (for example, an I/O error occurs or the file format is invalid), errstatus has a non-zero value. To save random stream to the file, use vslSaveStreamF function.
Calling vslLoadStreamF 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 vslLoadStreamF, you should call the vslDeleteStream function first to deallocate the resources.
Product and Performance Information |
---|
Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex. Notice revision #20201201 |
Indicates no error, execution is successful.
fname is a NULL pointer.
Indicates an error in opening the file.
Indicates an error in writing the file.
Indicates an error in closing the file.
System cannot allocate memory for internal needs.
Unknown file format.
File format version is unsupported.
Non-deterministic random number generator is not supported.
ARS-5 random number generator is not supported on the CPU running the application.