aclrtSnapShotProcessBackup

Note: This API is for trial use and may be changed in later versions. It is not available in production environments.

Applicable Products

Product

Supported

Ascend 950PR

√

Ascend 950DT

☓

Atlas A3 training products/Atlas A3 inference products

√

Atlas A2 training products/Atlas A2 inference products

√

Atlas 200I/500 A2 inference products

X

Atlas inference products

X

Atlas training products

X

Function

Backs up device resources in the snapshot process and saves these resources on the host for subsequent restoration. Multiple backups are supported for the current process, but only the most recent one takes effect.

Before calling this API, ensure that the current process is in the LOCKED state. After this API is called, the current process will transition to the BACKED_UP state.

Prototype

1
aclError aclrtSnapShotProcessBackup(int pid, aclrtSnapShotBackupArgs *args)

Parameters

Parameter

Input/Output

Description

pid

Input

Process ID. Only the ID of the current process can be passed. Cross-process operation is not supported.

args

Input

Backup configuration arguments. For details about the type definition, see aclrtSnapShotBackupArgs. Currently, only NULL can be passed.

Returns

0 on success; otherwise, failure. For details, see aclError.