Description
Initializes the dump. This API is synchronous.
Restrictions
- aclmdlInitDump needs to be called in conjunction with aclmdlSetDump and aclmdlFinalizeDump to dump data to files. These APIs can be called for multiple times in a single process to obtain dump data of different dump configurations.
Example scenario:
- If dump information has been configured by the aclInit call, a failure message is returned when aclmdlInitDump is called.
- aclmdlInitDump must be called after the aclInit call and before the model loading API call.
Returns
0 on success; else, failure.
Related APIs
AscendCL also provides the aclInit API. During AscendCL initialization, the dump configuration is passed as a JSON configuration file to dump the app data at run time. In this mode, aclInit can be called only once in a process. To change the dump configuration, modify the in the JSON configuration file.