Skip to content

Commit

Permalink
Include loader functions in API def
Browse files Browse the repository at this point in the history
  • Loading branch information
callumfare committed Sep 3, 2024
1 parent 4d964a4 commit d16203b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
9 changes: 9 additions & 0 deletions include/ur_api_funcs.def
Original file line number Diff line number Diff line change
Expand Up @@ -186,3 +186,12 @@ _UR_API(urDeviceSelectBinary)
_UR_API(urDeviceGetNativeHandle)
_UR_API(urDeviceCreateWithNativeHandle)
_UR_API(urDeviceGetGlobalTimestamps)
_UR_API(urLoaderConfigCreate)
_UR_API(urLoaderConfigEnableLayer)
_UR_API(urLoaderConfigGetInfo)
_UR_API(urLoaderConfigRelease)
_UR_API(urLoaderConfigRetain)
_UR_API(urLoaderConfigSetCodeLocationCallback)
_UR_API(urLoaderConfigSetMockingEnabled)
_UR_API(urLoaderInit)
_UR_API(urLoaderTearDown)
5 changes: 5 additions & 0 deletions scripts/templates/api_funcs.def.mako
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,8 @@ from templates import helper as th
_UR_API(${th.make_func_name(n, tags, obj)})
%endfor
%endfor
%for obj in th.get_loader_functions(specs, meta, n, tags):
%if n + "Loader" in obj:
_UR_API(${obj})
%endif
%endfor

0 comments on commit d16203b

Please sign in to comment.