Developer Reference for Intel® oneAPI Math Kernel Library for Fortran

ID 766686
Date 12/16/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

vslCopyStream

Creates a copy of a random stream.

Syntax

status = vslcopystream( newstream, srcstream )

Include Files
  • mkl.fi, mkl_vsl.f90
Input Parameters

Name

Type

Description

srcstream

TYPE(VSL_STREAM_STATE), INTENT(IN)

Descriptor of the stream to be copied

Output Parameters

Name

Type

Description

newstream

TYPE(VSL_STREAM_STATE), INTENT(OUT)

Copied random stream descriptor

Description

The function creates an exact copy of srcstream and stores its descriptor to newstream.

Return Values
VSL_ERROR_OK, VSL_STATUS_OK

Indicates no error, execution is successful.

VSL_ERROR_NULL_PTR

srcstream parameter is a NULL pointer.

VSL_RNG_ERROR_BAD_STREAM

srcstream is not a valid random stream.

VSL_ERROR_MEM_FAILURE

System cannot allocate memory for newstream.