DefaultStream

Function Usage

Creates a default stream in the current process. It is a static object and does not support asynchronous calling. Before calling this API, initialize the device and call SetDevice to specify the device ID.

Prototype

1
static AscendStream &AscendStream::DefaultStream();

Response Parameters

Data Structure

Description

AscendStream

Returns the AscendStream class.