DUMP_GRAPH_PATH

Description

Sets the path for storing dump graph files. The path can be an absolute path or a relative path of the script execution path.

The specified path can contain uppercase letters, lowercase letters, digits, underscores (_), hyphens (-), and periods (.). The user must have read, write, and execute permissions on the path.
  • If the specified path does not exist, the system automatically creates a directory.
  • If the execution user does not have the permission to the specified path, a dump graph file is generated in the current execution directory.
  1. If the DUMP_GRAPH_PATH environment variable is set, the program creates the pid_${pid}_deviceid_${deviceid} subfolder in the specified path to store dump graph files. ${pid} indicates the process ID, and ${deviceid} indicates the device ID.
  2. If the DUMP_GRAPH_PATH environment variable is not set, dump graph files are directly stored in the current script execution path, and the pid_${pid}_deviceid_${deviceid} subfolder will not be created.

The priorities of the paths for storing dump graph files are as follows:

NPU_COLLECT_PATH > DUMP_GRAPH_PATH > ASCEND_WORK_PATH > Default storage path (current script execution path)

Example

export DUMP_GRAPH_PATH=/home/dumpgraph

The dump graph file is stored in /home/dumpgraph/pid_${pid}_deviceid_${deviceid}, for example, /home/dumpgraph/pid_53343_deviceid_0.

Restrictions

This environment variable must be used together with DUMP_GE_GRAPH. That is, when DUMP_GE_GRAPH is enabled, DUMP_GRAPH_PATH can be used to specify the path for storing dump graph files.

Applicability

Atlas training products

Atlas inference products

Atlas A2 training products/Atlas A2 inference products

Atlas A3 training products/Atlas A3 inference products

Atlas 200I/500 A2 inference products