ADX Instructions
Application Scenarios
Ascend Debug for X (ADX) is a debugging tool used to transfer files to the host and device, deliver commands, set the log level, detect heartbeats, and obtain files from the host or device during debugging.
Benefits
This feature enables users to upload files to the host and device, deliver commands, and obtain files from the hosts or device, improving the debugging efficiency.
Implementation
The Ascend Debug for X (ADX) consists of the following components:
- Ascend Debug Client (ADC), corresponding to the command adc
- Ascend Debug Agent (ADA), corresponding to the process ada
- Ascend Debug Device Agent (ADDA), corresponding to the process adda
- Ascend Debug for X (ADX), a module name
- HDC: Host Device Communication, a module used for communication between the host and device. It is deployed on both the host and device.
Figure 5-7 shows the ADX logical architecture.
After the adc command is run on the server where Toolkit is installed, the system sends a specified command to the host (where ADA is deployed). Directly run the command if it needs to be run on the host. If it needs to be run on the device, connect the host to the device and run the command on the device (where ADDA is deployed).
Specifications
Table 5-9 lists the commissioning functions provided by ADX.
Function |
Description |
---|---|
Sends a command to the device for execution. |
Sends a command (such as, the command for viewing the date of the device) to the device for execution through ADC. This function is not supported in the Ascend RC scenario. |
Sends a command to the host for execution. |
Sends a command (such as, the command for viewing the date of the host) to the host for execution through ADC. |
Transfers files to the device. |
Transfers files to the device through ADC. This function is not supported in the Ascend RC scenario. |
Transfers files to the host. |
Transfers files to the host through ADC. |
Obtains files from the device. |
Obtains files from the device through ADC. This function is not supported in the Ascend RC scenario. |
Obtains files from the host. |
Obtains files from the host through ADC. |
Sets the log level. |
Set the log level through ADC. |
Collects profiling data. |
Sends the profiling items to the host through ADC and starts profiling. |
Obtains information of the devices connected to the host. |
Obtains information about the device connected to the host through ADC. |
Generates string encryption files. |
Generates string encryption files, including the *.secu and *.store files, which are used during certificate replacement. |
Obtains the path list of dump files of a model. |
Obtains the path list of model dump files on the host based on the paths specified by dir after the --dump parameter. To obtain the output result of each layer of operators in a model, run this command to obtain the path list of the dump files with output result of each layer of operators in the operating environment. Then, run the command to obtain dump files from the host and store these files to the server where the adc command is run. |
Checks the heartbeat between ADC and ADA. |
Checks the heartbeat between ADC and ADA to check whether the ada process is running. |
Synchronizes the time between ADC and the ADA. |
Synchronizes the time of the server where ADA is deployed to the time of the server where ADC is deployed. |