From ba4938837d52c0aff763d8acdc03ce103dd3ff82 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 24 Dec 2023 13:37:40 +0000 Subject: gentoo auto-resync : 24:12:2023 - 13:37:40 --- sci-libs/Manifest.gz | Bin 45158 -> 45158 bytes sci-libs/pytorch/Manifest | 2 +- sci-libs/pytorch/pytorch-2.1.1-r1.ebuild | 66 ++++++++++++++++++++++++++++++ sci-libs/pytorch/pytorch-2.1.1.ebuild | 68 ------------------------------- 4 files changed, 67 insertions(+), 69 deletions(-) create mode 100644 sci-libs/pytorch/pytorch-2.1.1-r1.ebuild delete mode 100644 sci-libs/pytorch/pytorch-2.1.1.ebuild (limited to 'sci-libs') diff --git a/sci-libs/Manifest.gz b/sci-libs/Manifest.gz index da7ff0c3dd9b..480be11ab410 100644 Binary files a/sci-libs/Manifest.gz and b/sci-libs/Manifest.gz differ diff --git a/sci-libs/pytorch/Manifest b/sci-libs/pytorch/Manifest index 2cdd88f85a33..f08cfdd7b645 100644 --- a/sci-libs/pytorch/Manifest +++ b/sci-libs/pytorch/Manifest @@ -15,5 +15,5 @@ DIST pytorch-2.1.1.tar.gz 116317162 BLAKE2B d9819256cba0b9951aabe95d86fb135e97d8 EBUILD pytorch-1.13.1-r2.ebuild 1512 BLAKE2B a83a2846755b3ad3dc62329f77b04e73be1f5a79a3c3e2311a61c0965c50a17a83deac89c22ce26470be415c0c48a760f1b74c207e6864a16aead25e42896867 SHA512 55a6ed013855c4d20fad0bb213e51b2881d0b7c3e456055800b16658f92460d998294148d041dba642a11be1a60d5d830edf8613cc09cdf9ce6eef7ecc809976 EBUILD pytorch-2.0.0.ebuild 1549 BLAKE2B f347c1bb89ff80f4cec2f6d5ca27134c3936f02d80a285d2df88c7472e62dcdb025f72d7f88820bbda2422dd0810db2b53017fc91fdedd2cbb5a1880f79d0d74 SHA512 19e390bcb88b81d5eda1f143bcadce730e2c02776dbcad4327f36b0b61beb2932973ee6352bddd27da2fd030a8626fb6687abccff0cb503d159019006264f7d3 EBUILD pytorch-2.0.1-r1.ebuild 1640 BLAKE2B f29660c3bf423ba697862d9ccc3bf3ac0f958d4fbc5c4dbeac0860ad5cf8e0c0675def1cd9eb4c0d26a7485baa33481f36a2e2da73d89c00a98cad595fabf8e0 SHA512 21325abae79b7c816822b5605c050d4c05be5b0303ffbbf6497907c5ff6f0c9321d30e9857d008e08697169823e31c297273d5ea31c759fa3f144242d37300ca -EBUILD pytorch-2.1.1.ebuild 1684 BLAKE2B 7c80a5b6594d7d674215118f778edb80ce4f3d18dd389a7865ec79b670389c84e0268e1429e5ad15a61549a283841412b8ac85c24004cd45f28236a4707038c0 SHA512 0c13b4c393d4fb1cf10f42070bf9b4c7fd2a29f08b4ac5175932f17c50ae113665b3ac6184c653ceb67cb8dc26e3fdf240ea31fc6eba915fad1044bdf6a14c1f +EBUILD pytorch-2.1.1-r1.ebuild 1601 BLAKE2B 6db0316997e3fcc42c64c9868a1003aaf3c14b3bfafb51cabcaa158c2d2af7a9931a4b528c156717af59d85251b1eaccf9cf16b4586782b0515ff8be69c3411c SHA512 b9063ce8fe645ff7574cda010566ab48703a4c760c9fbb10025d85792973911d31779f12449a2c1b0df4fc343baf43438050b7562527cb67bcc4b68938950e23 MISC metadata.xml 328 BLAKE2B f49c6d62ac88dfffe497ed05b1f727941a94acb87a809611dda8aedbd87508fdfdf94ec0e025cac2a649b0881b600236289943b4be0f6ca44fc105b6d8fbe97c SHA512 16c29d2c1177a89026235191ea3e33870c2e6b63f029b7febd4dbd2e99f598fab4b4fd2fa7a801ffd88393663a00752300e6e2cc847a83690b715bcc481d9dc2 diff --git a/sci-libs/pytorch/pytorch-2.1.1-r1.ebuild b/sci-libs/pytorch/pytorch-2.1.1-r1.ebuild new file mode 100644 index 000000000000..6d8199663ff6 --- /dev/null +++ b/sci-libs/pytorch/pytorch-2.1.1-r1.ebuild @@ -0,0 +1,66 @@ +# Copyright 2022-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9..11} ) +DISTUTILS_SINGLE_IMPL=1 +DISTUTILS_EXT=1 +inherit distutils-r1 prefix + +DESCRIPTION="Tensors and Dynamic neural networks in Python" +HOMEPAGE="https://pytorch.org/" +SRC_URI="https://github.com/pytorch/${PN}/archive/refs/tags/v${PV}.tar.gz + -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" +RESTRICT="test" + +REQUIRED_USE=${PYTHON_REQUIRED_USE} +RDEPEND=" + ${PYTHON_DEPS} + ~sci-libs/caffe2-${PV}[${PYTHON_SINGLE_USEDEP}] + $(python_gen_cond_dep ' + dev-python/typing-extensions[${PYTHON_USEDEP}] + dev-python/sympy[${PYTHON_USEDEP}] + ') +" +DEPEND="${RDEPEND} + $(python_gen_cond_dep ' + dev-python/pyyaml[${PYTHON_USEDEP}] + ') +" + +src_prepare() { + eapply \ + "${FILESDIR}"/${P}-dontbuildagain.patch \ + "${FILESDIR}"/pytorch-1.9.0-Change-library-directory-according-to-CMake-build.patch \ + "${FILESDIR}"/${PN}-2.0.0-global-dlopen.patch \ + "${FILESDIR}"/pytorch-1.7.1-torch_shm_manager.patch \ + "${FILESDIR}"/${PN}-1.13.0-setup.patch \ + "${FILESDIR}"/${P}-emptyso.patch \ + + # Set build dir for pytorch's setup + sed -i \ + -e "/BUILD_DIR/s|build|/var/lib/caffe2/|" \ + tools/setup_helpers/env.py \ + || die + distutils-r1_src_prepare + + hprefixify tools/setup_helpers/env.py +} + +python_compile() { + PYTORCH_BUILD_VERSION=${PV} \ + PYTORCH_BUILD_NUMBER=0 \ + USE_SYSTEM_LIBS=ON \ + CMAKE_BUILD_DIR="${BUILD_DIR}" \ + distutils-r1_python_compile develop sdist +} + +python_install() { + USE_SYSTEM_LIBS=ON distutils-r1_python_install +} diff --git a/sci-libs/pytorch/pytorch-2.1.1.ebuild b/sci-libs/pytorch/pytorch-2.1.1.ebuild deleted file mode 100644 index e53135e714a6..000000000000 --- a/sci-libs/pytorch/pytorch-2.1.1.ebuild +++ /dev/null @@ -1,68 +0,0 @@ -# Copyright 2022-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{9..11} ) -DISTUTILS_SINGLE_IMPL=1 -DISTUTILS_EXT=1 -inherit distutils-r1 prefix - -DESCRIPTION="Tensors and Dynamic neural networks in Python" -HOMEPAGE="https://pytorch.org/" -SRC_URI="https://github.com/pytorch/${PN}/archive/refs/tags/v${PV}.tar.gz - -> ${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64" -RESTRICT="test" - -REQUIRED_USE=${PYTHON_REQUIRED_USE} -RDEPEND=" - ${PYTHON_DEPS} - ~sci-libs/caffe2-${PV}[${PYTHON_SINGLE_USEDEP}] - $(python_gen_cond_dep ' - dev-python/typing-extensions[${PYTHON_USEDEP}] - dev-python/sympy[${PYTHON_USEDEP}] - ') -" -DEPEND="${RDEPEND} - $(python_gen_cond_dep ' - dev-python/pyyaml[${PYTHON_USEDEP}] - ') -" - -src_prepare() { - eapply \ - "${FILESDIR}"/${P}-dontbuildagain.patch \ - "${FILESDIR}"/pytorch-1.9.0-Change-library-directory-according-to-CMake-build.patch \ - "${FILESDIR}"/${PN}-2.0.0-global-dlopen.patch \ - "${FILESDIR}"/pytorch-1.7.1-torch_shm_manager.patch \ - "${FILESDIR}"/${PN}-1.13.0-setup.patch \ - "${FILESDIR}"/${P}-emptyso.patch \ - - # Set build dir for pytorch's setup - sed -i \ - -e "/BUILD_DIR/s|build|/var/lib/caffe2/|" \ - tools/setup_helpers/env.py \ - || die - distutils-r1_src_prepare - - hprefixify tools/setup_helpers/env.py -} - -python_compile() { - PYTORCH_BUILD_VERSION=${PV} \ - PYTORCH_BUILD_NUMBER=0 \ - USE_SYSTEM_LIBS=ON \ - CMAKE_BUILD_DIR="${BUILD_DIR}" \ - distutils-r1_python_compile develop sdist -} - -python_install() { - USE_SYSTEM_LIBS=ON distutils-r1_python_install - python_moduleinto nvfuser - python_domodule third_party/nvfuser/python/__init__.py -} -- cgit v1.2.3