Date: Mon, 23 Mar 2020 08:38:05 +0100 From: Alexander Leidinger <Alexander@leidinger.net> To: Alex S <iwtcex@gmail.com> Cc: freebsd-current@freebsd.org, stable@freebsd.org Subject: Re: HOWTO donate CPU to the fight against the Corona-virus Message-ID: <20200323083805.Horde.-utvvtraTJPgMTBFRuQ4mTx@webmail.leidinger.net> In-Reply-To: <CABSQoUZT_-a-Rqm8Ue9ejcJq24ooU-n29EyDOX29Z1n-aW6w3A@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] Quoting Alex S <iwtcex@gmail.com> (from Sun, 22 Mar 2020 17:53:47 +0300): > Alexander Leidinger wrote: >> First step would be to get CUDA support in FreeBSD. > > Ahem, I have a little patch, consisting of several functions > copy-pasted from the Linux driver, which is supposed to enable core > CUDA functionality: > https://github.com/shkhln/nvshim/issues/1#issuecomment-600358438. This > won't work for applications depending on unified memory support, but > otherwise should be good enough. Could you plesae describe a little bit more detailed what your shim does? I have the impression it maps some linux glibc symbols which are used in a NVidia library for CUDA which only exists as a linux lib to FreeBSD symbols and when some FreeBSD binary then tries to load the NVidia CUDA lib it is then using the FreeBSD libc/m/pthread. If this is correct, what would be in your opinion the correct way to get official CUDA support? Something like the following or is more needed? - implement nvida-uvm - implement os_lock_user_pages - submit the above to NVidia and ask for the CUDA lob to be compiled for FreeBSD Bye, Alexander. -- http://www.Leidinger.net Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF http://www.FreeBSD.org netchild@FreeBSD.org : PGP 0x8F31830F9F2772BF [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAABAgAGBQJeeGddAAoJEBINsJsD+NiGt1sP/2QEtWyz5Bk6gCEaqzc5TcFu tZHxwY3b6uau1/PgtRF0ZOxfAHE7rvyRSzQJwFKPHWMS+A+qKvN2JDUaIKUKgH8M nhPVsPX0MBtn3xPNsdqNOg1e+jVf+Eg688LrPy+1/8i5pfhpVQtM/5rEYOJIYTOt ikLXd8Oyl4FkY41Eju89lKOmFVTFgFU02s/YQW2oG96Y3zVCMg0TgQWYK7H3uZLy aCImuyj/XniKtGRmUqqB8e5Ico/8ZNiNTNOPCvBuqiF+iFBvuEJ6XnU449muZuJc sBuoAWZzeGBXi21cuQAQOWcwxLYPuqL5KrHlJvpD4OA4/WGf404zgzbcwGqrcbZ8 zmutGTm1OZ4f9+DUf6wDJDzWpblw8cNKEXq1t7CtujZeYTz5j7q9XKJQs6DxkMou KWEwMsaC8+oPaAlYUgp30igNPiJP8zlNl/33qXOC6K9WOJGSXdTZdlpmRYXE9Cg7 s2HpK+W/On/lODfhpBKXknGYqUvbt2JaiOPxEGRGup9DUREGB7rJC+9MzVZ4d2zJ XKvCX+rpATDkhdUKsEDOvvghkSDPvZBwOaho/8KUho84i/h67lRh/y/9EH6pbYnU 83F2EeL6F47BiCvK97/0Q2ajTsHD+tgm+ouvRy8Zb4Zb+2UAv1+7q7U5bxdhvgaL 2mwkKM1TwZDOzDvQqGTn =qSTG -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200323083805.Horde.-utvvtraTJPgMTBFRuQ4mTx>
