Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 05 Feb 2024 08:55:58 +0100
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        sgk@troutmask.apl.washington.edu
Cc:        "B. E." <estrabd@gmail.com>, freebsd-hackers@freebsd.org, jbeich@FreeBSD.org
Subject:   Re: GPU programming?
Message-ID:  <90ea0dd91b760b0b6f92065d09396545@Leidinger.net>
In-Reply-To: <Zb_4z5IKLl5yuXTJ@troutmask.apl.washington.edu>
References:  <Zb_fTkeKTYSxpfKc@troutmask.apl.washington.edu> <CALSf6fRJA861r7XF=fOWOdfc7-AzGePa6r5P=bBA9-x-36LB4Q@mail.gmail.com> <Zb_4z5IKLl5yuXTJ@troutmask.apl.washington.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)

--=_af794253232b481d1a1226321ea0296f
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII;
 format=flowed

Am 2024-02-04 21:51, schrieb Steve Kargl:
> See the second paragraph of my initial post.  AMD provides
> ROCm and Nvidia supplies CUDA.  These appear to be available
> for Windows and Linux.  Are there any software/hardware drivers
> required to actually accomplish the offloading?

CUDA: requires parts (at least some libs) from NVidia which are not 
ported to FreeBSD. I have seen reports that at least parts of the linux 
parts work in the linuxulator 
(https://github.com/verm/freebsd-stable-diffusion). If you want to use a 
FreeBSD system to do that, I would suggest to use a VM with linux and 
give it raw access to the card. Not nice (from a FreeBSD side of 
things), but most probably the most pragmatic solution to get all what 
is needed in a easy way.

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

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.

Bye,
Alexander.

-- 
http://www.Leidinger.net Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF
http://www.FreeBSD.org    netchild@FreeBSD.org  : PGP 0x8F31830F9F2772BF

--=_af794253232b481d1a1226321ea0296f
Content-Type: application/pgp-signature;
 name=signature.asc
Content-Disposition: attachment;
 filename=signature.asc;
 size=833
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEER9UlYXp1PSd08nWXEg2wmwP42IYFAmXAlJ4ACgkQEg2wmwP4
2IaeHw/+PvcON0Q2tDKTzNQkEnCZ7EPL8qhqJmCmMeFweojUhm2dp5AhEPUK+ok8
qbaQ8JqHmrIJ9/1o2FXz1hO8iqOlZK2O/8heaxLxxaRpjkPk7EUrAu+eYl3lYCpj
A348PqvkfGeroP3UNy8SzDhQ+x3X1pyaeO9WYJKY+Qe0oURNDD18nsMr685kAacx
xYpjPSfJD7K9o8uoZ4F25fixR1dwoL6kn8yWl/DJ8QynHp4Ki9RlZ+nrElCzEa/l
sKR64H+kucvAQR9n9Rz+Ru8Kzc1nTvcJrKNsB1wm9P9eCSou8QQGDTHBk8m7isqJ
oTxObLr1ohrq9S3LnOedrWGAzDV4Tay8mfSItGdLF2+bRHgpIA3VXfflxJle0QQS
Wjn+3U99fMOt7ZoJJ+evAbrk4y9l6OA5CksJ1aRBouPs6f16mUNyq/xiUKgrK/PT
xR/TXv82Uf+7jSdhnAKVBjidITwkS3IYrk/v+GzNH5LDK0JAbhjvVN0REueRy1W3
I+RfeeKLOmVmFEH4PN5JJ8lwTg63DGMElVImvGmjZDTdGGaTbzWNFuiKD2DFCw71
RyGrc5Vo9yQVzHSw54s8QFLwEBiaoKuo03kEviGIhdrCCJbqL8p7CrqlF5hVvqWM
oJHA+XTTbtscCkAFhkTRfFqEVd2e8iVbdv/TzOOvoLqaoSh+oy8=
=hBLn
-----END PGP SIGNATURE-----

--=_af794253232b481d1a1226321ea0296f--



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