From owner-freebsd-stable@freebsd.org Mon Mar 23 07:38:41 2020 Return-Path: Delivered-To: freebsd-stable@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0507527B604 for ; Mon, 23 Mar 2020 07:38:41 +0000 (UTC) (envelope-from Alexander@leidinger.net) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 48m5pm5TsCz4cln for ; Mon, 23 Mar 2020 07:38:40 +0000 (UTC) (envelope-from Alexander@leidinger.net) Received: by mailman.nyi.freebsd.org (Postfix) id BA0BD27B602; Mon, 23 Mar 2020 07:38:40 +0000 (UTC) Delivered-To: stable@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B6E3927B601; Mon, 23 Mar 2020 07:38:40 +0000 (UTC) (envelope-from Alexander@leidinger.net) Received: from mailgate.Leidinger.net (bastille.leidinger.net [89.238.82.207]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48m5pm0Cysz4clj; Mon, 23 Mar 2020 07:38:39 +0000 (UTC) (envelope-from Alexander@leidinger.net) Received: from outgoing.leidinger.net (p5B165AE9.dip0.t-ipconnect.de [91.22.90.233]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256)) (Client did not present a certificate) by mailgate.Leidinger.net (Postfix) with ESMTPSA id E49AA495; Mon, 23 Mar 2020 08:38:37 +0100 (CET) Received: from webmail.leidinger.net (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (Client did not present a certificate) by outgoing.leidinger.net (Postfix) with ESMTPS id 62249119F1; Mon, 23 Mar 2020 08:38:05 +0100 (CET) Date: Mon, 23 Mar 2020 08:38:05 +0100 Message-ID: <20200323083805.Horde.-utvvtraTJPgMTBFRuQ4mTx@webmail.leidinger.net> From: Alexander Leidinger To: Alex S Cc: freebsd-current@freebsd.org, stable@freebsd.org Subject: Re: HOWTO donate CPU to the fight against the Corona-virus In-Reply-To: Accept-Language: de,en Content-Type: multipart/signed; boundary="=__8JNZbqUeL09zhwLtQ7TdyX"; protocol="application/pgp-signature"; micalg=pgp-sha1 MIME-Version: 1.0 X-Rspamd-Queue-Id: 48m5pm0Cysz4clj X-Spamd-Bar: -------- X-Spamd-Result: default: False [-8.82 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[leidinger.net:s=outgoing-alex]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-0.999,0]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; TO_DN_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[leidinger.net:+]; DMARC_POLICY_ALLOW(-0.50)[leidinger.net,quarantine]; SIGNED_PGP(-2.00)[]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; IP_SCORE(-3.73)[ip: (-9.79), ipnet: 89.238.64.0/18(-4.90), asn: 34240(-3.92), country: DE(-0.02)]; ASN(0.00)[asn:34240, ipnet:89.238.64.0/18, country:DE]; RCVD_TLS_ALL(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[233.90.22.91.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Mar 2020 07:38:41 -0000 This message is in MIME format and has been PGP signed. --=__8JNZbqUeL09zhwLtQ7TdyX Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Quoting Alex S (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=20=20 does?=20I have the impression it maps some linux glibc symbols which are=20= =20 used=20in a NVidia library for CUDA which only exists as a linux lib to=20= =20 FreeBSD=20symbols and when some FreeBSD binary then tries to load the=20=20 NVidia=20CUDA lib it is then using the FreeBSD libc/m/pthread. If this is correct, what would be in your opinion the correct way to=20=20 get=20official CUDA support? Something like the following or is more=20=20 needed? =20 - implement nvida-uvm - implement os_lock_user_pages - submit the above to NVidia and ask for the CUDA lob to be compiled=20= =20 for=20FreeBSD Bye, Alexander. --=20 http://www.Leidinger.net=20Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF http://www.FreeBSD.org netchild@FreeBSD.org : PGP 0x8F31830F9F2772BF --=__8JNZbqUeL09zhwLtQ7TdyX Content-Type: application/pgp-signature Content-Description: Digitale PGP-Signatur Content-Disposition: inline -----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----- --=__8JNZbqUeL09zhwLtQ7TdyX--