From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id OPDFIOHfDGEvEQEAgWs5BA (envelope-from ) for ; Fri, 06 Aug 2021 09:08:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id QECLHOHfDGHnTgAA1q6Kng (envelope-from ) for ; Fri, 06 Aug 2021 07:08:17 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B61D813729 for ; Fri, 6 Aug 2021 09:08:16 +0200 (CEST) Received: from localhost ([::1]:57606 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mBtxn-0001V3-OY for larch@yhetil.org; Fri, 06 Aug 2021 03:08:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43264) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mBtxa-0001Ut-WD for guix-patches@gnu.org; Fri, 06 Aug 2021 03:08:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37423) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mBtxa-0003Lz-NG for guix-patches@gnu.org; Fri, 06 Aug 2021 03:08:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mBtxa-0007my-Gi for guix-patches@gnu.org; Fri, 06 Aug 2021 03:08:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49907] [PATCH 00/11] AMD ROCm OpenCL runtime Resent-From: Lars-Dominik Braun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 06 Aug 2021 07:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49907 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49907@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.162823363529883 (code B ref -1); Fri, 06 Aug 2021 07:08:02 +0000 Received: (at submit) by debbugs.gnu.org; 6 Aug 2021 07:07:15 +0000 Received: from localhost ([127.0.0.1]:48969 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBtwp-0007lv-0k for submit@debbugs.gnu.org; Fri, 06 Aug 2021 03:07:15 -0400 Received: from lists.gnu.org ([209.51.188.17]:45094) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mBtwn-0007ln-HQ for submit@debbugs.gnu.org; Fri, 06 Aug 2021 03:07:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43172) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mBtwn-0001RC-BD for guix-patches@gnu.org; Fri, 06 Aug 2021 03:07:13 -0400 Received: from mout-p-201.mailbox.org ([80.241.56.171]:10536) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1mBtwk-0002ZR-Br for guix-patches@gnu.org; Fri, 06 Aug 2021 03:07:12 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4GgxP45c69zQk6x for ; Fri, 6 Aug 2021 09:07:04 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6xq.net; s=MBO0001; t=1628233623; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=12VUOTOpmnn6LcnKeC/Ubt8A+rhsKm5Fngoh6pJKPno=; b=jaqgyLENIUYI3dOb9z9bhSua1J5uIMAP3BIHrDlwM8m33/BVN8Yl3M+SWBkoel+p58B3fJ mVg5FyASoaMQ+dvpnyfoAZfkcrriwm9Sxz/PoQEhMX2tMIEWCwZqrf+wvaB3sLXHokMBgU iJzYamfRRFPdTu4pKwWHVDTD2wlWP5FBuQrc3TWE7M0qLMWHEvbsf9/XKocGPbo8nO3Ud4 A/8IepHbAwG3D/fPlzGRtZ2m2hHT0Zvkf+Nwpz4RxkLb3TEQccO0T+97YsOXnpqjNlrZWh VVz10RmkgPOw86urt/I4oBNk0GjxCYwNG+z52q424kGbeUsBYA7QV01JBeXqfQ== Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter03.heinlein-hosting.de (spamfilter03.heinlein-hosting.de [80.241.56.117]) (amavisd-new, port 10030) with ESMTP id SEmI1JlRzg2f for ; Fri, 6 Aug 2021 09:07:01 +0200 (CEST) Date: Fri, 6 Aug 2021 09:06:59 +0200 From: Lars-Dominik Braun Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: E566018B0 X-Rspamd-UID: 07c205 Received-SPF: pass client-ip=80.241.56.171; envelope-from=lars@6xq.net; helo=mout-p-201.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1628233697; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=12VUOTOpmnn6LcnKeC/Ubt8A+rhsKm5Fngoh6pJKPno=; b=ATHxmXOcHryztnWY5FVag8mjHc6Mpy0pwM/IM2/Tq5NVXWWc1HOQ9d3ilxSYakviTgG3Pj alRT2KvdC2PdFv+tcPYIfbf05/6WvcfbfPy6Gu/Uqcn4EMJJYGqxvV5LLT9yqKhKx1KX/q Gz4Q0JPUMH9mVOE434XiH4AMUoI5xfDXV9ZldJHfHF4mYIINkYlVdyKFN68x9fy7oj2zRv mOe5ErthC6GoYKzc+aqLsGvB1gmhsi4ICm+bXM7zlO1m43DX/5t5X/sSpPab4mOBveR4BY uj9pXHAfxKecYRrSDf4PbxnAd3G/C25WI2rsKwnDp3OmmRTShzq32j3B8hFbPg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628233697; a=rsa-sha256; cv=none; b=Mxcc4Qgqj66I/kb2ff42Unw2ViVkRBhqAy9MjBgAQEqxAL8s71ECFRyV6yxgppr+T5F0Ja C60VqZnZzm27aoH8YJPu78Y4yubVJPSjksLKd5JmorbRNJeX4mDEmenRJ5XAqqOlStKDa8 ZdB57LeJrB/+FmV6YD5rnppGwvyy9Z90A56aElprgwb2ion/yYCCN8/bRi7657d36xY295 uu71NfOfSHFzA7UURGbMUaDrKpp2l5UHg8VB7VIEXzyMb1XgxUaX1fmsNs4kH0bvDrw9Ea 8iFR0lkMMMrqrX5kVSSeC034+EZHeXZPy/0c31ZfmQamjCkuewPjVGR9STT+dA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=6xq.net header.s=MBO0001 header.b=jaqgyLEN; dmarc=fail reason="SPF not aligned (relaxed)" header.from=6xq.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -1.32 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=6xq.net header.s=MBO0001 header.b=jaqgyLEN; dmarc=fail reason="SPF not aligned (relaxed)" header.from=6xq.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: B61D813729 X-Spam-Score: -1.32 X-Migadu-Scanner: scn0.migadu.com X-TUID: efeO7fXL1efh Hi, this patchset adds AMD’s ROCm OpenCL runtime for their GPU’s. It works fine with Linux’ standard kernel module (no need to package ROCk), but only if firmware has been loaded. The userspace software itself is completely free though. The final patch adjusts one consumer of ROCm OpenCL, darktable, so both actually work together. Try it yourself with (obviously needs an AMD GPU): guix environment --ad-hoc darktable ocl-icd rocm-opencl-runtime -- darktable-cltest Lars-Dominik Braun (11): gnu: Add rocm-cmake. gnu: Add llvm-for-rocm. gnu: Add rocm-device-libs. gnu: Add rocm-comgr. gnu: Add roct-thunk-interface. gnu: Add rocr-runtime. gnu: Add rocclr. gnu: Add rocm-opencl-runtime. gnu: Add rocminfo. gnu: Add rocm-bandwidth-test. gnu: darktable: Add compatibility for ROCm. gnu/local.mk | 8 + .../llvm-roc-3.0.0-add_libraries.patch | 22 ++ ...roc-4.0.0-remove-isystem-usr-include.patch | 29 ++ .../patches/llvm-roc-4.2.0-add_Object.patch | 13 + .../rocm-comgr-3.1.0-dependencies.patch | 52 +++ ....10.0-add-rocclr-include-directories.patch | 14 + .../rocm-opencl-runtime-4.3-noclinfo.patch | 28 ++ .../rocm-opencl-runtime-4.3-nocltrace.patch | 25 ++ .../rocm-opencl-runtime-4.3-noopencl.patch | 63 ++++ gnu/packages/photo.scm | 24 +- gnu/packages/rocm.scm | 355 ++++++++++++++++++ 11 files changed, 628 insertions(+), 5 deletions(-) create mode 100644 gnu/packages/patches/llvm-roc-3.0.0-add_libraries.patch create mode 100644 gnu/packages/patches/llvm-roc-4.0.0-remove-isystem-usr-include.patch create mode 100644 gnu/packages/patches/llvm-roc-4.2.0-add_Object.patch create mode 100644 gnu/packages/patches/rocm-comgr-3.1.0-dependencies.patch create mode 100644 gnu/packages/patches/rocm-opencl-runtime-3.10.0-add-rocclr-include-directories.patch create mode 100644 gnu/packages/patches/rocm-opencl-runtime-4.3-noclinfo.patch create mode 100644 gnu/packages/patches/rocm-opencl-runtime-4.3-nocltrace.patch create mode 100644 gnu/packages/patches/rocm-opencl-runtime-4.3-noopencl.patch create mode 100644 gnu/packages/rocm.scm -- 2.31.1