You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The implementation of ucp_init is simple, but it's not trivial to handle these header-only helper functions in general, that would be equivalent to implement a C-to-Julia source code translator. I'm doubting whether this can be implemented only using libclang's API. For now, I think we should recognize these functions and skip them at least.
In UCX.jl I used Clang to generate wrappers, but ucx provides a header only function
ucp_init
:https://github.com/openucx/ucx/blob/0e37370648f857e23d5775a0c5b3aa609044e43c/src/ucp/api/ucp.h#L1446-L1452 which ended up as
https://github.com/JuliaParallel/UCX.jl/blob/2cc867f6c98f9f5f616f2df5aa1e666880dbfb62/gen/libucp_api.jl#L33-L35
and since it is a static header-only function it does not end up the shared object file.
x-ref: openucx/ucx#5404
The text was updated successfully, but these errors were encountered: