diff --git a/runtime/acl_rt.cpp b/runtime/acl_rt.cpp index 96284ce62d5718e15989abe2e23a50939bf86311..804e4d76127b57faa926540f4ea245fbda05ea4a 100755 --- a/runtime/acl_rt.cpp +++ b/runtime/acl_rt.cpp @@ -1457,25 +1457,31 @@ aclError aclrtGetVersion(int32_t *majorVersion, int32_t *minorVersion, int32_t * return aclrtGetVersionImpl(majorVersion, minorVersion, patchVersion); } -aclError aclInitCallbackRegister(aclRegisterCallbackType type, aclInitCallbackFunc cbFunc, void *userData) +#ifdef __cplusplus +extern"C" { +#endif +ACL_FUNC_VISIBILITY aclError aclInitCallbackRegister(aclRegisterCallbackType type, aclInitCallbackFunc cbFunc, void *userData) { return aclInitCallbackRegisterImpl(type, cbFunc, userData); } -aclError aclInitCallbackUnRegister(aclRegisterCallbackType type, aclInitCallbackFunc cbFunc) +ACL_FUNC_VISIBILITY aclError aclInitCallbackUnRegister(aclRegisterCallbackType type, aclInitCallbackFunc cbFunc) { return aclInitCallbackUnRegisterImpl(type, cbFunc); } -aclError aclFinalizeCallbackRegister(aclRegisterCallbackType type, aclFinalizeCallbackFunc cbFunc, void *userData) +ACL_FUNC_VISIBILITY aclError aclFinalizeCallbackRegister(aclRegisterCallbackType type, aclFinalizeCallbackFunc cbFunc, void *userData) { return aclFinalizeCallbackRegisterImpl(type, cbFunc, userData); } -aclError aclFinalizeCallbackUnRegister(aclRegisterCallbackType type, aclFinalizeCallbackFunc cbFunc) +ACL_FUNC_VISIBILITY aclError aclFinalizeCallbackUnRegister(aclRegisterCallbackType type, aclFinalizeCallbackFunc cbFunc) { return aclFinalizeCallbackUnRegisterImpl(type, cbFunc); } +#ifdef __cplusplus +} +#endif aclrtAllocatorDesc aclrtAllocatorCreateDesc() {