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.
- 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.
- 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.
- 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.