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.
- 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}_${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}_${deviceid} subfolder will not be created.
The priorities of the paths for storing dump graph files are as follows:
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}_${deviceid}, for example, /home/dumpgraph/53343_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
Parent topic: Graph Building