Skip to content

Commit

Permalink
Add native cpu entrypoints
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiomestre committed Mar 11, 2024
1 parent ca654b8 commit 1bc658a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions source/adapters/native_cpu/program.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
1 change: 1 addition & 0 deletions source/adapters/native_cpu/ur_interface_loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1bc658a

Please sign in to comment.