Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Nov 2019 10:34:49 +0400
From:      Gleb Popov <arrowd@freebsd.org>
To:        Theron <theron.tarigo@gmail.com>
Cc:        freebsd-hackers <freebsd-hackers@freebsd.org>
Subject:   Re: Linking Linux library to FreeBSD program.
Message-ID:  <CALH631nbN=yxuhO6HRWyJw%2BXz_DbYPjW44egR5Qj3HLWakfgEA@mail.gmail.com>
In-Reply-To: <7679128e-d565-0132-2fe2-cc1083abfa8d@gmail.com>
References:  <CALH631m8OD95VFWV7=znTebBrLNBQYWwXnSDMaEcWZriBQEiQA@mail.gmail.com> <7679128e-d565-0132-2fe2-cc1083abfa8d@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Nov 22, 2019 at 5:35 PM Theron <theron.tarigo@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?
>

Yep, that looks pretty much relevant. Unfortunately, it doesn't compile on
CURRENT. Even after some easy fixes I get

error: multiple symbol versions defined for shim__sys_errlist
error: multiple symbol versions defined for shim__sys_errlist
error: multiple symbol versions defined for shim__sys_errlist
error: multiple symbol versions defined for shim__sys_nerr
error: multiple symbol versions defined for shim__sys_nerr
error: multiple symbol versions defined for shim__sys_nerr
error: multiple symbol versions defined for shim__sys_siglist
...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALH631nbN=yxuhO6HRWyJw%2BXz_DbYPjW44egR5Qj3HLWakfgEA>