Linking Linux library to FreeBSD program.

Conrad Meyer cem at freebsd.org
Fri Nov 22 20:42:41 UTC 2019


On Fri, Nov 22, 2019 at 5:35 AM Theron <theron.tarigo at gmail.com> wrote:
>
> On 2019-11-22 02:36, Gleb Popov wrote:
> > What course of action could be taken in this situation? My plan is to
> > generate a native wrapper library for libcudart.so in which every exported
> > function would call Linux binary linked to real libcudart.so and route
> > function arguments via RPC or some other mechanism. This looks awful for
> > sure, but I don't see any other solutions.
>
> https://github.com/shkhln/nvshim appears to allow using Nvidia Linux
> binary by FreeBSD executable, but for Vulkan.  Does that look like it
> could be extended to support CUDA?

That looks really promising.

I was going to suggest looking at
https://github.com/taviso/loadlibrary for rough inspiration, but
nvshim looks a lot closer (and is specifically aimed at Nvidia
userspace Linux libraries already).

Best,
Conrad


More information about the freebsd-hackers mailing list