diff --git a/source/adapters/native_cpu/program.cpp b/source/adapters/native_cpu/program.cpp index ccd96a3a24..f210f210c9 100644 --- a/source/adapters/native_cpu/program.cpp +++ b/source/adapters/native_cpu/program.cpp @@ -130,6 +130,18 @@ UR_APIEXPORT ur_result_t UR_APICALL urProgramGetFunctionPointer( DIE_NO_IMPLEMENTATION } +UR_APIEXPORT ur_result_t UR_APICALL urProgramGetGlobalVariablePointer( + ur_device_handle_t, ur_program_handle_t hProgram, + const char *pGlobalVariableName, size_t *pGlobalVariableSizeRet, + void **ppGlobalVariablePointerRet) { + std::ignore = hProgram; + std::ignore = pGlobalVariableName; + std::ignore = pGlobalVariableSizeRet; + std::ignore = ppGlobalVariablePointerRet; + + DIE_NO_IMPLEMENTATION +} + UR_APIEXPORT ur_result_t UR_APICALL urProgramGetInfo(ur_program_handle_t hProgram, ur_program_info_t propName, size_t propSize, void *pPropValue, size_t *pPropSizeRet) { diff --git a/source/adapters/native_cpu/ur_interface_loader.cpp b/source/adapters/native_cpu/ur_interface_loader.cpp index 0c48ee1fb3..1f54a98c80 100644 --- a/source/adapters/native_cpu/ur_interface_loader.cpp +++ b/source/adapters/native_cpu/ur_interface_loader.cpp @@ -91,6 +91,7 @@ UR_DLLEXPORT ur_result_t UR_APICALL urGetProgramProcAddrTable( pDdiTable->pfnCreateWithNativeHandle = urProgramCreateWithNativeHandle; pDdiTable->pfnGetBuildInfo = urProgramGetBuildInfo; pDdiTable->pfnGetFunctionPointer = urProgramGetFunctionPointer; + pDdiTable->pfnGetGlobalVariablePointer = urProgramGetGlobalVariablePointer; pDdiTable->pfnGetInfo = urProgramGetInfo; pDdiTable->pfnGetNativeHandle = urProgramGetNativeHandle; pDdiTable->pfnLink = urProgramLink;