From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id uFCwAB4NuWa9mQAA62LTzQ:P1 (envelope-from ) for ; Sun, 11 Aug 2024 19:12:30 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id uFCwAB4NuWa9mQAA62LTzQ (envelope-from ) for ; Sun, 11 Aug 2024 21:12:30 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=rz770r2d; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1723403549; h=from:from:sender:sender: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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=54YL1HXIFtiGI5fkFA2CHvDvByFR4gfqekOGuHKzar0=; b=qfrNxYOgkBkDNWi43fSgu1KAUghflgSzsHAcw38yZVbVzaWBc+9UXUIxX52A/8RfAZFafs btD9lKBNh9VgrQlg28YdWmg5lo8pDA03vNkiyEcYM+aDGNA2xM+OllGn6fQhB7vny6sxNw caScL6RMmP3Xz0kLy7sJRqEWKUNtW/YzaxwQNCF317zKAQfGH1Nq0aDV56tyNNIY6qYHYY OB6w52WMJdNgo1NACnRR9RVAe08OMQXYdfy//qpZeGuttf2d4GwX9yKtq8t/PRdaoSY1HZ qXI7usViT5azBi3zTSOZc0GRiTAPjKl3wA2YhC8P88HZEzgd9Q1zhiat8VHtQQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=rz770r2d; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1723403549; a=rsa-sha256; cv=none; b=BxUiKwowq3MYBR5DySi1n/kxKYVmoTIICQp3zq/6g3d01eihV3AYwFMgmzNTlpghvaeSPN oO6N9eQgFPBxi5/fIoBMXeigCt5G1ZHJY3LnIzSgFbKpJU6HUZVVWEglSBhsNyn9c4UMMw Z+g9YcDSxYPjJnxNiI6HxPzv8ACNMRiJ0sDzkZeNwmeylkijrIbMR+ulr//GwmWOGmN1mO 1HZ+NP0+Lsdodo+ayolHjM102ucPmebuYF0TRgEAkSWF/1TqpRHw2yikVB4W6NmFKXH5Km K12hHAp4/6HqNsIZIAXcT1tqbxNJDTl2vgOj/fKSEn+j3/x8deopTyn5uY+lHg== 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 9758B16E1F for ; Sun, 11 Aug 2024 21:12:29 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sdDyn-0004TI-KW; Sun, 11 Aug 2024 15:11:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sdDym-0004St-6z for guix-devel@gnu.org; Sun, 11 Aug 2024 15:11:48 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sdDyk-0003Ao-CE for guix-devel@gnu.org; Sun, 11 Aug 2024 15:11:47 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 3D224240028 for ; Sun, 11 Aug 2024 21:11:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1723403503; bh=54YL1HXIFtiGI5fkFA2CHvDvByFR4gfqekOGuHKzar0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=rz770r2dRJLdAiMENFCs/ZHMw4b56N+46S76ykZ+OAqsWT66WhZajVHPQRp5yULxJ Xhfiej84FrFec01n39bAytJWjDt0y5cPyud10oVu5GGvj7QtVBF57lfAqlmxJ+SgWv R2HUyb+TrPrmJdrb5CYtEbI3VnlUdtKbMKPwnyC2jkVsxY1CcaXKZEIzO+F4ZyP4Sg U+qQDCBd+wKNvnnG518k7FF+pTgSSgEVqF3DylvFcnMa1CMP3uu+dzW9IjRltmyS+N tSjRnYJ4qIvbf0LQJYcJK0kYEg7GwnbzS7XieAGtfCdleBYOxJnr1S3zGnHN4bWYrv 1kGNT/MriTq0g== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4WhnM22XXlz6tlh; Sun, 11 Aug 2024 21:11:42 +0200 (CEST) From: David Elsing To: guix-devel@gnu.org Cc: ludo@gnu.org, rekado@elephly.net Subject: Re: PyTorch with ROCm In-Reply-To: <86msqoeele.fsf@posteo.net> References: <86msqoeele.fsf@posteo.net> Date: Sun, 11 Aug 2024 19:11:41 +0000 Message-ID: <86le12vpqq.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=david.elsing@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 9758B16E1F X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -10.17 X-Spam-Score: -10.17 X-TUID: bGqXHZIAjZKx Hello, I updated PyTorch to 2.4.0 [1, 2] and the ROCm packages to 6.1.2. This time, I opted to put the ROCm packages into a separate channel [3] only for one version, because the packages in Guix-HPC are intended for many ROCm versions and only include versions up to 5.7.1 at the moment. The PyTorch package with ROCm is also in a separate channel [4]. I tried making the GPU architectures a Guile parameter, but this does not work because it is evaluated when the package is lowered. `with-parameters` [5] from `(guix gexp)` also does not work here, because IIUC it is only intended for `%current-system` and `%current-target-system` as indicated in `compile-parameterized`. Is that correct? Replacing the procedure `%amdgpu-targets` in `guix-rocm/packages/rocm-base.scm` [3] with `module-define!` works however, but is of course more of a hack. Cheers, David [1] https://issues.guix.gnu.org/72471 [2] https://codeberg.org/dtelsing/Guix/src/branch/pytorch [3] https://codeberg.org/dtelsing/Guix-ROCm [4] https://codeberg.org/dtelsing/Guix-ROCm-ML [5] https://guix.gnu.org/manual/en/html_node/G_002dExpressions.html