From owner-freebsd-emulation@freebsd.org Mon Jul 3 22:47:18 2017 Return-Path: Delivered-To: freebsd-emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8FE429F12D4 for ; Mon, 3 Jul 2017 22:47:18 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 7DC4984576 for ; Mon, 3 Jul 2017 22:47:18 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 7A2129F12D3; Mon, 3 Jul 2017 22:47:18 +0000 (UTC) Delivered-To: emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 780869F12D2 for ; Mon, 3 Jul 2017 22:47:18 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DF4D84575; Mon, 3 Jul 2017 22:47:18 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1354) id 78C51151BE; Mon, 3 Jul 2017 22:47:17 +0000 (UTC) From: Jan Beich To: Yuri Cc: emulation@freebsd.org Subject: Re: CUDA and FreeBSD: can linux kernel module be ported to FreeBSD? References: Date: Tue, 04 Jul 2017 00:47:12 +0200 In-Reply-To: (yuri@rawbw.com's message of "Sat, 1 Jul 2017 11:04:27 -0700") Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Jul 2017 22:47:18 -0000 (redirected from https://lists.freebsd.org/pipermail/freebsd-hackers/2017-July/051220.html ) Yuri writes: > NVidia CUDA toolkit (https://developer.nvidia.com/cuda-downloads) > contains a lot of rpms. > > The kernel module rpm nvidia-kmod-375.26-2.el7.x86_64.rpm actually > contains linux kernel module sources. The rest of rpms contain binary > userland utilities. See bug 206711. 64bit CUDA maybe broken unless the error confusingly indicates the lack of hardware support a la nvEncodeAPI. I can still reproduce on nvidia-driver-384.47. Before confirming make sure linuxulator passes through 64bit DRM ioctls by testing a 64bit OpenGL app. If OpenGL still fails apply the patch. For one, www/linux-flashplayer installs 32bit plugin thus x11/nvidia-driver users may not have noticed. > So if somebody could port those kernel sources into the FreeBSD kernel > module, CUDA could be used over the linux emulation level? Why? 32bit CUDA should work fine but performance may suffer. https://web.archive.org/web/20120717065328/http://blogs.freebsdish.org/jhb/2010/07/20/using-cuda-with-the-native-freebsdamd64-nvidia-driver/