From nobody Mon Feb 5 07:55:58 2024 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TSzHb704Wz59RKZ for ; Mon, 5 Feb 2024 07:57:15 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from mailgate.Leidinger.net (mailgate.leidinger.net [IPv6:2a00:1828:2000:313::1:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature ECDSA (P-256) client-digest SHA256) (Client CN "mailgate.leidinger.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TSzHb3JxSz4NXY; Mon, 5 Feb 2024 07:57:15 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Authentication-Results: mx1.freebsd.org; none List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leidinger.net; s=outgoing-alex; t=1707119815; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=FbwGT7ws30QYJCLmgWE3R0TzjLySZLYTGTNBtzr0Fks=; b=DNwDJ5b3G64/VrmaHzFzAG2tbj6WVqBHblETdOtMvul2HtcL6G5foU3D4Kvw7+0YEv27hj P/HoiDPLcYzW9EthlYw3zCsCI/s4XMIvIzY1jNt/+MwJpvQ3TNjOK2/vnmr18WZnPOSkrl vcMaYgNQhHFl9nzMhhMmMD/ygCopfvEw9x8z9fyYM5/ouJjsha0PyClz3B91Op7/vI63CE n62XrCVEFEt3prpvCz8iVQ+RL94yyLFInb9/MymfYr9+8+9gO74XeBRpHzaAOTqQNzePRz niCDnOD/KeOD28V6bHG0xJui5FF3YmXWbQOZfJ/71KuNlM6a3u/Tboa0uDuSsw== Date: Mon, 05 Feb 2024 08:55:58 +0100 From: Alexander Leidinger To: sgk@troutmask.apl.washington.edu Cc: "B. E." , freebsd-hackers@freebsd.org, jbeich@FreeBSD.org Subject: Re: GPU programming? In-Reply-To: References: Message-ID: <90ea0dd91b760b0b6f92065d09396545@Leidinger.net> Organization: No organization, this is a private message. Content-Type: multipart/signed; protocol="application/pgp-signature"; boundary="=_af794253232b481d1a1226321ea0296f"; micalg=pgp-sha256 X-Rspamd-Queue-Id: 4TSzHb3JxSz4NXY X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:34240, ipnet:2a00:1828::/32, country:DE] 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--