Operator Execution Fails When the continue Command Is Run After the MsDebug Breakpoint in the Kernel Function Is Hit
Symptom
The message "Synchronize stream failed. error code is 507035." is displayed. The "aic error code=0x8000000000000000" is displayed in the plog. The PC value of the current core displayed by running the ascend info cores command is different from the expected value.
Solution
Set WorkspaceSize from 0 to the size of the reserved memory. For details, see Tiling Implementation on the Host. During API compute, some workspace memory is required as the cache. Therefore, the operator tiling function needs to reserve workspace memory for the API. The reserved memory size can be obtained by calling GetLibApiWorkSpaceSize. See the following code:
1 2 3 4 5 | #include "tiling/platform/platform_ascendc.h" auto ascendcPlatform = platform_ascendc::PlatformAscendC(context->GetPlatformInfo()); size_t systemWorkspaceSize = ascendcPlatform.GetLibApiWorkSpaceSize(); size_t*currentWorkspace = context->GetWorkspaceSizes(1); // Use only one workspace. currentWorkspace[0]= systemWorkspaceSize; |
Parent topic: FAQs