Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Sep 2017 22:11:38 +0300
From:      Arto Pekkanen <isoa@kapsi.fi>
To:        Jan Beich <jbeich@vfemail.net>
Cc:        freebsd-x11@freebsd.org
Subject:   Re: x11/nvidia-driver-340 and OpenCL
Message-ID:  <233dc8e7-ba66-9a5f-6cdb-2c77ea3bd656@kapsi.fi>
In-Reply-To: <lgly-2kmf-wny@FreeBSD.org>
References:  <201708241205.v7OC5wrR016229@sdf.org> <y3q5-l7c4-wny@FreeBSD.org> <201708271111.v7RBB7Z8005388@sdf.org> <8ti4-udq3-wny@FreeBSD.org> <201708281111.v7SBBVSf000652@sdf.org> <85a52dec-c20d-7869-7019-1564e034aad3@kapsi.fi> <lgly-2kmf-wny@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--23NcAB2tQq50BmSkOD8IarRrFhM4vimCG
Content-Type: multipart/mixed; boundary="pR66J9aVT1sh6HP3g29otrTDrOtM7eTGa";
 protected-headers="v1"
From: Arto Pekkanen <isoa@kapsi.fi>
To: Jan Beich <jbeich@vfemail.net>
Cc: freebsd-x11@freebsd.org
Message-ID: <233dc8e7-ba66-9a5f-6cdb-2c77ea3bd656@kapsi.fi>
Subject: Re: x11/nvidia-driver-340 and OpenCL
References: <201708241205.v7OC5wrR016229@sdf.org> <y3q5-l7c4-wny@FreeBSD.org>
 <201708271111.v7RBB7Z8005388@sdf.org> <8ti4-udq3-wny@FreeBSD.org>
 <201708281111.v7SBBVSf000652@sdf.org>
 <85a52dec-c20d-7869-7019-1564e034aad3@kapsi.fi> <lgly-2kmf-wny@FreeBSD.org>
In-Reply-To: <lgly-2kmf-wny@FreeBSD.org>

--pR66J9aVT1sh6HP3g29otrTDrOtM7eTGa
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable

On 2.9.2017 0:07, Jan Beich wrote:
> Arto Pekkanen <isoa@kapsi.fi> writes:
>> If the GPU driver is implemented properly there will be no stutter or
>> other problems even when running OpenCL jobs.
>>
>> In Windows there is no problem running OpenCL jobs on the same device
>> that operates your display. Like running a crypto currency miner while=

>> browsing the web. Playing games won't work well, but basic stuff you c=
an do.
>=20
> Did you try on Linux? Most FreeBSD graphics drivers are ported from Lin=
ux.
> If prioritizing certain GPU workloads (e.g., OpenGL) isn't supported on=

> Linux then I don't think FreeBSD can manage to do better.

Probably the problem is with the upstream Linux driver codebase. But it
is of no concern really, whoever makes the driver work on FreeBSD
without stuttering on varied workloads shall be praised.

As for trying OpenCL on Linux, I don't have any Linux installations
right now. I used to have some extra medium-tier hardware around (nVidia
GPUs, Intel Core2 etc), but I had to give that away to some of my
friends who had no money to even buy a computer. Ironically, right now I
don't have money to buy extra hardware.

I've been thinking of repurposing one crappy Acer (nVidia GPU) laptop
for Linux use, but I've postponed this project because I am currently
perpetually depressed and and thus lazy.

>> TL;DR when the FreeBSD GPU driver and all the userland bits are up to
>> date, I'd expect there to be no issues with stuttering.
>=20
> What about NVIDIA? OpenGL stutters if CUDA (via linuxulator) is used at=

> the same time. I've tested on nvidia-driver-375.66 as CUDA apps crash o=
n
> nvidia-driver-384.59.
>=20

This would imply that the problem could be in the Unix/Linux version of
the nVidia driver or in the FreeBSD specific integration for it. Because
like I said, the Windows version of the nVidia driver on my main rig has
no problem running OpenCL tasks with low-to-medium VRAM requirements
while doing basic day-to-day stuff on the side.

One thing that just came to mind is that maybe these stuttering issues
might also be dependent on the specific graphics board. Maybe some
boards don't offer proper scheduling and/or asynchronous data transfer
primitives, which would make it very hard to implement a driver with
task prioritization.

--=20
Arto Pekkanen


--pR66J9aVT1sh6HP3g29otrTDrOtM7eTGa--

--23NcAB2tQq50BmSkOD8IarRrFhM4vimCG
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iF4EAREIAAYFAlmrAmwACgkQTBivhqtJa25WqgD8CFf7GXBisgqFZ/Y/1nGfMVMa
gY1MkBDc+2q13OL46bIA/RyGlSYo07vyi6Us8fSQKs5m35ZU7g91OoXVaEhzH5ib
=Mpxe
-----END PGP SIGNATURE-----

--23NcAB2tQq50BmSkOD8IarRrFhM4vimCG--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?233dc8e7-ba66-9a5f-6cdb-2c77ea3bd656>