Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Feb 2024 09:09:31 -0800
From:      Steve Kargl <sgk@troutmask.apl.washington.edu>
To:        Jan Beich <jbeich@freebsd.org>
Cc:        Alexander Leidinger <Alexander@leidinger.net>, "B. E." <estrabd@gmail.com>, freebsd-hackers@freebsd.org
Subject:   Re: GPU programming?
Message-ID:  <ZcEWSwgssZ7grGpF@troutmask.apl.washington.edu>
In-Reply-To: <sf27-qhwa-wny@FreeBSD.org>
References:  <Zb_fTkeKTYSxpfKc@troutmask.apl.washington.edu> <CALSf6fRJA861r7XF=fOWOdfc7-AzGePa6r5P=bBA9-x-36LB4Q@mail.gmail.com> <Zb_4z5IKLl5yuXTJ@troutmask.apl.washington.edu> <90ea0dd91b760b0b6f92065d09396545@Leidinger.net> <sf27-qhwa-wny@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Feb 05, 2024 at 12:17:57PM +0100, Jan Beich wrote:
> Alexander Leidinger <Alexander@Leidinger.net> writes:
> 
> > ROCm: No idea. I have not seen any report about it working or even
> > being tried. But there was at least some discussion about it:
> >     https://github.com/ROCm/ROCm/issues/138
> >     https://github.com/ROCm/ROCm/issues/1913
> 
> AFAIU (never owned an AMD GPU):
> - ROCm requires amdkfd.ko which drm-kmod doesn't provide since
>   https://github.com/freebsd/drm-kmod/commit/a381f46adf8b
> - ROCm has poor *consumer* GPU support thus unattractive for
>   volunteers/community to spend time porting
> 
> > Intel: Maybe. We have spirv ports in the tree, and my limited
> > understanding is, that SPIR-V comes into play when someone wants to do
> > GPU compute there. CCing Jan as the port maintainer for the two spirv
> > ports. Maybe he can shed some light on this part.
> 
> - Vulkan Compute works fine on every modern GPU (used at least by ncnn)
> - OpenCL works fine on Intel + AMD via Rusticl (Mesa), see
>   https://cgit.freebsd.org/ports/commit/?id=d8990eff958b
> - OpenCL + oneAPI Level Zero via lang/intel-compute-runtime requires userptr, see
>   https://github.com/FreeBSDDesktop/kms-drm/issues/197
> 
> As a volunteer I've burned out porting Intel stuff, so hopefully Rusticl
> kills Intel NEO (intel-compute-runtime) while Vulkan Video kills VA-API
> (libva-intel-media-driver) and QuickSyncVideo (intel-media-sdk + onevpl)
> 
> Related https://www.phoronix.com/news/David-Airlie-oneAPI-Meetup

Alexander, Jan,

Thanks for the info.  I'll check out the various links.
This somewhat confirms my suspicion that little is being
done with scientific numerical GPU computing in the FreeBSD.

-- 
Steve



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ZcEWSwgssZ7grGpF>