mstxGetToolId¶
| Product | Supported |
|---|---|
| Ascend 910_95 AI Processors | √ |
| Atlas A3 training products/Atlas A3 inference products | √ |
| Atlas A2 training products/Atlas A2 inference products | √ |
| Atlas 200I/500 A2 inference products | √ |
| Atlas inference products | √ |
| Atlas training products | √ |
Obtains the tool ID that currently intercepts the mstx APIs. The tool ID macro is defined as follows:
Invalid value 0, indicating that no tool has launched the program.
0x1000, indicating that the program is launched by msProf or MSPTI
0x1001, indicating that the program is launched by the msProf tool
0x1002, indicating that the program is launched by the msSanitizer tool
0x1003, indicating that the program is launched by the msLeaks Memory Leak Detection Tool
Table 1 Parameter description
| Parameter | Input/Output | Description |
|---|---|---|
| id | Output | As an output parameter, returns the tool ID that currently intercepts the mstx API. Data Type: uint64 *. |
None