Function: ctx_get_current_default_stream

Applicability

Product

Supported (√/x)

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas training products

Atlas inference products

Atlas 200I/500 A2 inference products

Function Usage

Obtains the default stream of a context.

Prototype

  • C Prototype
    aclError aclrtCtxGetCurrentDefaultStream(aclrtStream *stream)
  • Python Function
    1
    stream, ret = acl.rt.ctx_get_current_default_stream()
    

Parameter Description

None.

Return Value Description

Return Value

Description

stream

Int, obtained default stream of the context.

ret

Int, error code: 0 on success; else, failure.