From nobody Thu Jun 20 10:24:30 2024 X-Original-To: dev-commits-ports-main@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 4W4c6l0LpGz5NV8l; Thu, 20 Jun 2024 10:24:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4W4c6k5k3dz4CTl; Thu, 20 Jun 2024 10:24:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718879070; 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=gxfZg2aGrwcioll++Wzz0BEN7BxHTqmSVtwKoOB1DHo=; b=rxEx6XWrLkxhZx/sYL3yZGi+VBktx1h0DvKWoULFNPReXkP+HYWxpEjTp5T9vV8kvWOw79 EfXSmP/OnD072nDJBBygTXyKecPxpqe2+Bfj6ST2LPQ4r/AM01yT2+8fHA4zvEDTPAkB6Q ZAsSXrSnNyvtIm9vcOrminU5rIZPZ/tjz2xb2TVR6JjJ8VxA+ePflyL+1jZoAqzGL6miOC Y40VXSMIuOkIAL+C+ZBUftBnOR/vCB3yI22akpFUU2zZ+eDX1PItY6KI1/bPcMA17NO5YT L+vkJwwvWKYLgeTpzvskXZJyx3YlSZQbQcHxilpLiqdCCRTd5PacyNT9HkgX+Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1718879070; a=rsa-sha256; cv=none; b=w1fD8BD7goCd6nOuUkoEtlpwfmKGpbc7ManhG7tAK6B6eXyYASo0bzZGqr371vu4MN73cU SBSP8rCtYjJW0tEqRzrlxWHXQqsHryxnmsmx3Oi5gt6zn6vL5PxGnpBRe3s1MRnSI1WS1F Sp6YYz9celPs97tAU+c2mWdlhfafdtzFWiTkc6VEa+NJ176SVA8gqG1qa83liYeinGt65G BTOoXk4wQcxleO9Nym/xJHpj9LVfQEUUrXo79O9J/TFQZBy0vjSic5Akeg11oSvd7vUj3U pVj0bthzsrDW2OTV+uf+z7KJbkpjtL/LnvGRXlyBNLVRmYPjOI5YwVhs76GRXg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718879070; 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=gxfZg2aGrwcioll++Wzz0BEN7BxHTqmSVtwKoOB1DHo=; b=SJIRcNHKFG49YAzqyt9wNuKICJQ8G5S1tWIZUKZR/PyBndtBu6Lt0CJ0ISOh7KgGtTgg4X SisfETFO//1jjgEF7NyYv1wmh262BqtG6XLssa2p3zpvubKH/fcHBtAOrOcn1DnFcWduwu du1E4FZRXQSPand7D4V4M3WQ8RMEfEWhu0jcjPnv8Qw6vkRcTFJXQZ62mw45nSZMuBYbzR 10Zq5gt2WjuEBQ6R8wsLZubOdLBvqIC5U0KJBs5sGoiqmPLtZ0pknh5SAWpM+Qejfr/yYO 65lwSvCVTHdnSqIWZwHGiv7YG7RzWnYShwf9aNxSDdq21w9ZCoJPi1EU0rgjKg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a: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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4W4c6k5KN4zLrY; Thu, 20 Jun 2024 10:24:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 45KAOUJb004939; Thu, 20 Jun 2024 10:24:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 45KAOU54004936; Thu, 20 Jun 2024 10:24:30 GMT (envelope-from git) Date: Thu, 20 Jun 2024 10:24:30 GMT Message-Id: <202406201024.45KAOU54004936@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 69026a954ab5 - main - misc/py-pytorch: Build with LAPACK List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 69026a954ab5d65d19a416e6f30423c900b3190f Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=69026a954ab5d65d19a416e6f30423c900b3190f commit 69026a954ab5d65d19a416e6f30423c900b3190f Author: Yuri Victorovich AuthorDate: 2024-06-20 10:13:06 +0000 Commit: Yuri Victorovich CommitDate: 2024-06-20 10:24:27 +0000 misc/py-pytorch: Build with LAPACK Some operations require LAPACK when no GPU is present. --- misc/py-pytorch/Makefile | 2 ++ misc/py-pytorch/files/patch-cmake_Modules_FindBLAS.cmake | 13 +++++++++++++ 2 files changed, 15 insertions(+) diff --git a/misc/py-pytorch/Makefile b/misc/py-pytorch/Makefile index b669c5870d2b..9ce91f587ace 100644 --- a/misc/py-pytorch/Makefile +++ b/misc/py-pytorch/Makefile @@ -1,6 +1,7 @@ PORTNAME= pytorch DISTVERSIONPREFIX= v DISTVERSION= 2.3.1 +PORTREVISION= 1 CATEGORIES= misc # machine-learning MASTER_SITES= https://github.com/pytorch/pytorch/releases/download/v${DISTVERSION}/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -50,6 +51,7 @@ MAKE_ENV= USE_NINJA=no # ninja breaks for some reason MAKE_ENV+= BUILD_TEST=0 # ninja breaks for some reason MAKE_ENV+= USE_MKLDNN=0 # disable MKLDNN that doesn't exist, see https://github.com/pytorch/pytorch/issues/100957 MAKE_ENV+= USE_CUDNN=0 +MAKE_ENV+= USE_LAPACK=1 # needed on FreeBSD to run w/out GPU LDFLAGS+= -lexecinfo BINARY_ALIAS= make=${GMAKE} diff --git a/misc/py-pytorch/files/patch-cmake_Modules_FindBLAS.cmake b/misc/py-pytorch/files/patch-cmake_Modules_FindBLAS.cmake new file mode 100644 index 000000000000..8a4568a38522 --- /dev/null +++ b/misc/py-pytorch/files/patch-cmake_Modules_FindBLAS.cmake @@ -0,0 +1,13 @@ +- otherwise USE_LAPACK=1 fails to find lapack + +--- cmake/Modules/FindBLAS.cmake.orig 2024-06-20 08:11:50 UTC ++++ cmake/Modules/FindBLAS.cmake +@@ -20,7 +20,7 @@ SET(BLAS_F2C) + SET(BLAS_INFO) + SET(BLAS_F2C) + +-SET(WITH_BLAS "" CACHE STRING "Blas type [accelerate/acml/atlas/blis/generic/goto/mkl/open/veclib]") ++SET(WITH_BLAS "open" CACHE STRING "Blas type [accelerate/acml/atlas/blis/generic/goto/mkl/open/veclib]") + + # Old FindBlas + INCLUDE(CheckCSourceRuns)