From nobody Mon Feb 5 11:17:57 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 4TT3lF4Y3Sz59kyc for ; Mon, 5 Feb 2024 11:18:01 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (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 RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TT3lF43M4z4gbY; Mon, 5 Feb 2024 11:18:01 +0000 (UTC) (envelope-from jbeich@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707131881; 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=0xsibo0Fp92/mHg/mhRmNPnZPAvFY3ohKnFXan2We60=; b=i+q9nZY+z3Jn7Wiwl5AlM7jSJyP7bZtdbzk2dHWUiXrhFoFnZo5++SRG8QuNWLLxFHIbhm 8bzyqOkp4Lx1oVLCcl7P4YZQs0LUEF5VPfpNq+gZCiVn1OjkXhNtYLPvrO/BjIBr47XdZv PvzfxYg1uvWoyfLx8QJWA2gRd652m7Cysej6aeQS3cxmMIVl4GboNdqEpGAXwm+gOSRHP4 0tvQ96MpxE1deDtRFZfhIlglXvlROLiFoMQ1Th97gC5z4NyTkxJKjrXamFFguwwOZGanql xKzT8Su3nP8mjSLGFwuH/S66w0aLWrqfhA+jG67p20ngL1Mt6jv8aZ6/K4P/gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707131881; 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=0xsibo0Fp92/mHg/mhRmNPnZPAvFY3ohKnFXan2We60=; b=PvwpQL/Zv/Jr6Zte3GoXeqfAEk//BjORu052WunoAyEjaGi+UDFFFPJiNf+S4gYN+YFxR2 iIQ6WTX9FVtlBSB68aHr1scomn+nsbmrjiU/70Z7xO7Cz0L9uw2n1md3To9LX7bGMLvB6H Z17MXsz2RND0RNhwySvk2RdLZaBxFQqMcLGOcFkDz9ODgCtmWDWWY66NLJs0AYyS/GMlcV CjCaWg0PWWbk4QvIprgnkrXbPXbYieN4og95ErLVA3bfO+bmdDoaU3oALV0ajTRh3YNFDq WCBCqB+2SRzrheiuFXweaOC0xTIf14cXIpEEj4MG+B1b68NpyZTMCAaaqrJRXA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707131881; a=rsa-sha256; cv=none; b=AN6sMaDpsFqBN0eLdnqA7sMbG8uRZN7eObXMrg/yCFK/PS0Lu7LawRu+VdbfITF9tchxbz bzf+1vktT02/4WXhAaulRkBf4SmMEeqlaA0Iw8DlhvHnXnloQ07jwZTzfUQLYuLMm6n05A JMBT0m6iCNxGVD/eKQxTOPqC/GM6v/iYAaVYhs0tu4TwURjiru9O5FVnQXTt6ZBzW1ZIom 0madjsP0r6T9bN748N1zgt5sKC52uMc8sUKbxNn/T+X5ksGJNcJu3WeFYdTrkUQ2zJsG5D TRMViWsuZJdcBKkonF+PjmtfOC8Fpe02s2n3ijmcdclqHaELXv9TY9gHGMWxMg== Received: by freefall.freebsd.org (Postfix, from userid 1354) id 6CFFBBB18; Mon, 5 Feb 2024 11:18:01 +0000 (UTC) From: Jan Beich To: Alexander Leidinger Cc: sgk@troutmask.apl.washington.edu, "B. E." , freebsd-hackers@freebsd.org Subject: Re: GPU programming? In-Reply-To: <90ea0dd91b760b0b6f92065d09396545@Leidinger.net> (Alexander Leidinger's message of "Mon, 05 Feb 2024 08:55:58 +0100") References: <90ea0dd91b760b0b6f92065d09396545@Leidinger.net> Date: Mon, 05 Feb 2024 12:17:57 +0100 Message-ID: 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 Content-Type: text/plain Alexander Leidinger 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