From 18f850bb4cedde39678b12a67f82f29eef2dab63 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 16 Mar 2025 00:29:23 +0000 Subject: gentoo auto-resync : 16:03:2025 - 00:29:23 --- sci-ml/FP16/FP16-2024.05.27.ebuild | 58 +++++++++++++++++ sci-ml/FP16/FP16-2024.06.20.ebuild | 40 ++++++++++++ sci-ml/FP16/Manifest | 8 +++ sci-ml/FP16/files/FP16-2021.03.20-gentoo.patch | 44 +++++++++++++ sci-ml/FP16/files/FP16-2024.06.20-gentoo.patch | 21 ++++++ sci-ml/FP16/files/FP16-2024.06.20-setfill.patch | 85 +++++++++++++++++++++++++ sci-ml/FP16/metadata.xml | 11 ++++ 7 files changed, 267 insertions(+) create mode 100644 sci-ml/FP16/FP16-2024.05.27.ebuild create mode 100644 sci-ml/FP16/FP16-2024.06.20.ebuild create mode 100644 sci-ml/FP16/Manifest create mode 100644 sci-ml/FP16/files/FP16-2021.03.20-gentoo.patch create mode 100644 sci-ml/FP16/files/FP16-2024.06.20-gentoo.patch create mode 100644 sci-ml/FP16/files/FP16-2024.06.20-setfill.patch create mode 100644 sci-ml/FP16/metadata.xml (limited to 'sci-ml/FP16') diff --git a/sci-ml/FP16/FP16-2024.05.27.ebuild b/sci-ml/FP16/FP16-2024.05.27.ebuild new file mode 100644 index 000000000000..083edbf6e0d1 --- /dev/null +++ b/sci-ml/FP16/FP16-2024.05.27.ebuild @@ -0,0 +1,58 @@ +# Copyright 2022-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +PYTHON_COMPAT=( python3_{10..12} ) +inherit python-r1 cmake + +CommitId=95163a75c51bc8dc29f72d0d7419ec50132984ff + +DESCRIPTION="conversion to/from half-precision floating point formats" +HOMEPAGE="https://github.com/Maratyszcza/FP16/" +SRC_URI="https://github.com/Maratyszcza/${PN}/archive/${CommitId}.tar.gz + -> ${P}.tar.gz" + +S="${WORKDIR}"/${PN}-${CommitId} + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +DEPEND="dev-libs/psimd" +RDEPEND=" + ${DEPEND} + ${PYTHON_DEPS} + dev-python/peachpy[${PYTHON_USEDEP}] +" +BDEPEND="test? ( dev-cpp/gtest )" +RESTRICT="!test? ( test )" + +PATCHES=( + "${FILESDIR}"/${PN}-2021.03.20-gentoo.patch +) + +src_prepare() { + cmake_src_prepare + mkdir -p module/fp16 || die + cp include/fp16/*py module/fp16 || die +} + +src_configure() { + local mycmakeargs=( + -DFP16_BUILD_BENCHMARKS=OFF + -DFP16_BUILD_TESTS=$(usex test ON OFF) + ) + cmake_src_configure +} + +python_install() { + python_domodule module/fp16 +} + +src_install() { + cmake_src_install + rm "${ED}"/usr/include/fp16/*.py || die + python_foreach_impl python_install +} diff --git a/sci-ml/FP16/FP16-2024.06.20.ebuild b/sci-ml/FP16/FP16-2024.06.20.ebuild new file mode 100644 index 000000000000..3fe1e5464497 --- /dev/null +++ b/sci-ml/FP16/FP16-2024.06.20.ebuild @@ -0,0 +1,40 @@ +# Copyright 2022-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit cmake + +CommitId=98b0a46bce017382a6351a19577ec43a715b6835 + +DESCRIPTION="conversion to/from half-precision floating point formats" +HOMEPAGE="https://github.com/Maratyszcza/FP16/" +SRC_URI="https://github.com/Maratyszcza/${PN}/archive/${CommitId}.tar.gz + -> ${P}.tar.gz" + +S="${WORKDIR}"/${PN}-${CommitId} + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64" +IUSE="test" + +BDEPEND="test? ( dev-cpp/gtest )" +RESTRICT="!test? ( test )" + +PATCHES=( + "${FILESDIR}"/${P}-gentoo.patch + "${FILESDIR}"/${P}-setfill.patch +) + +src_prepare() { + sed -i -e "s|CXX_STANDARD 11|CXX_STANDARD 14|" CMakeLists.txt || die + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DFP16_BUILD_BENCHMARKS=OFF + -DFP16_BUILD_TESTS=$(usex test ON OFF) + ) + cmake_src_configure +} diff --git a/sci-ml/FP16/Manifest b/sci-ml/FP16/Manifest new file mode 100644 index 000000000000..24488eb6bf07 --- /dev/null +++ b/sci-ml/FP16/Manifest @@ -0,0 +1,8 @@ +AUX FP16-2021.03.20-gentoo.patch 1876 BLAKE2B 56863806f1040c5a92e04f7cf120e2ae4e4e6c59b336bf8734d0b0945e29d17afb5c244e94fab6023567227878b72e73d3c8d669e4af311bfc703f545b82d847 SHA512 0ac6379a5d92a70df72c4a0bce0d437ebb7733fa6f61b0006cedd007f9c071c2b7c9727cd559c39c08a8528f29c2d96397b566512eca6fa4c5a5d812085125cf +AUX FP16-2024.06.20-gentoo.patch 813 BLAKE2B 297a056cff5c35e26283c15ec7727c227f5991d3244426e1b197ea52bb2c5c897194efaed20a1929fc8bd0704fb70afc9f5fc0b84850bc43ca2dd2254a4447cc SHA512 4951377cfdc4806867e80f899e6e14d671d43bbe1f5be82343c5b73e246a7f4040470b6a96a76f1d9ae1bc8c899eb7936e11737f9c788ece70099d63b73bbc50 +AUX FP16-2024.06.20-setfill.patch 2044 BLAKE2B e48e9945fdff5aa7fc82a33258a12883442fc1a8169537d9828d9cdc330db94127d944ead7b8f818a3fffc3bdf9cb215e06844a0d99bc81a777110068f3fb9b5 SHA512 2123d1c3bcab4767ce4fb17abc2f583ff2aaa33f468de8f2c877f5f69a8ba46431c09789966f1cff1ff9e5cddc9f886aeeeef480d25a60e11812447622f7d01f +DIST FP16-2024.05.27.tar.gz 71220 BLAKE2B 5b101aad7a8339fff400bba1db896c82498832075f3eb00cc6eaf27608ee0988f918956b5a768262b74552a52436200d4acd17f04f4a05060a32512afb26a9ac SHA512 b88fd0a91e6b6873ce5d0e2cd2afd2b8dceb8b17c366240abb8a5e2fe152faea3ba577ef420038c595cab0b61581a70b84c019c825a8dd262b1bee4686843b66 +DIST FP16-2024.06.20.tar.gz 64704 BLAKE2B cd086ca7419aa004c0c4c840227e61612348efb98bdddbf68ef92959267f5f4b0aef55751c5b8a6f50a1f0e7f386e4df5fac273c3849961168e0a5c03faf81e2 SHA512 d3ae46b5b0c944f1d8dcfbb90689266f4abaff3e0b5ef338d5d79193367f06d1bfbb9ad85a5a7685a894daeee6dc73fc5d73631718be1379cc6918655a0289aa +EBUILD FP16-2024.05.27.ebuild 1189 BLAKE2B f273b230cf99de3eddf38c75bfbfcc204fb18b924396263e508c0cd6b4a017657385ac91a4138daec6710669fe4cd6c4d7fe6490ef749e7c4e7a6c45eaf3167d SHA512 0e7bf9a0ab8410eb2ee24cc7896d3efaaf95cc50683cd680b33b37f22cf2617472ea44b52e99872035278f55a153618da4858f51ae28ca5c24b2f5b2c96d10c9 +EBUILD FP16-2024.06.20.ebuild 869 BLAKE2B cc7f583da389f6aa8741ab014e9a0e945aec24e066c5f6baac8196eff7acb6d45fd34d58d1736e4663c6a4626f9a1add9ab55861a3508aee865ea939c1802760 SHA512 78adb9c888782351421255b581ede3b9a1ea07223c8a39cc57f5e1fd1db992ee588a5b9d361d0bc8a9646d891c3610b9a096669de70e91594d6da6d0b7c312de +MISC metadata.xml 329 BLAKE2B eda810b21ca05e2e16f2eafac194cdca189d27449bc9322488aeca215a9b2c10ce68145abab1abb984e290ab6ca8ce21c3beaf06ecd76d7574fd8b82388f4e63 SHA512 27ca59c0862f75f24dc64f9af5eee96cf63ef4bd468e17f5d04cc23289dbb5c44af9b230707ad13d1ff85e75db4d5485d7226c9e6d80e8bc80d9e6f3b2e18acd diff --git a/sci-ml/FP16/files/FP16-2021.03.20-gentoo.patch b/sci-ml/FP16/files/FP16-2021.03.20-gentoo.patch new file mode 100644 index 000000000000..5a2d5ed1e2a2 --- /dev/null +++ b/sci-ml/FP16/files/FP16-2021.03.20-gentoo.patch @@ -0,0 +1,44 @@ +--- a/CMakeLists.txt 2022-05-10 09:11:41.286417033 +0200 ++++ b/CMakeLists.txt 2022-05-10 09:12:48.647398387 +0200 +@@ -29,22 +29,10 @@ + + # ---[ Download deps + IF(NOT DEFINED PSIMD_SOURCE_DIR) +- MESSAGE(STATUS "Downloading PSimd to ${CMAKE_BINARY_DIR}/psimd-source (define PSIMD_SOURCE_DIR to avoid it)") +- CONFIGURE_FILE(cmake/DownloadPSimd.cmake "${CMAKE_BINARY_DIR}/psimd-download/CMakeLists.txt") +- EXECUTE_PROCESS(COMMAND "${CMAKE_COMMAND}" -G "${CMAKE_GENERATOR}" . +- WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/psimd-download") +- EXECUTE_PROCESS(COMMAND "${CMAKE_COMMAND}" --build . +- WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/psimd-download") + SET(PSIMD_SOURCE_DIR "${CMAKE_BINARY_DIR}/psimd-source" CACHE STRING "PSimd source directory") + ENDIF() + + IF(FP16_BUILD_TESTS AND NOT DEFINED GOOGLETEST_SOURCE_DIR) +- MESSAGE(STATUS "Downloading Google Test to ${CMAKE_BINARY_DIR}/googletest-source (define GOOGLETEST_SOURCE_DIR to avoid it)") +- CONFIGURE_FILE(cmake/DownloadGoogleTest.cmake "${CMAKE_BINARY_DIR}/googletest-download/CMakeLists.txt") +- EXECUTE_PROCESS(COMMAND "${CMAKE_COMMAND}" -G "${CMAKE_GENERATOR}" . +- WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/googletest-download") +- EXECUTE_PROCESS(COMMAND "${CMAKE_COMMAND}" --build . +- WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/googletest-download") + SET(GOOGLETEST_SOURCE_DIR "${CMAKE_BINARY_DIR}/googletest-source" CACHE STRING "Google Test source directory") + ENDIF() + +@@ -86,18 +74,12 @@ + + # ---[ Configure psimd + IF(NOT TARGET psimd) +- ADD_SUBDIRECTORY( +- "${PSIMD_SOURCE_DIR}" +- "${CMAKE_BINARY_DIR}/psimd") + ENDIF() + + IF(FP16_BUILD_TESTS) + # ---[ Build google test + IF(NOT TARGET gtest) + SET(gtest_force_shared_crt ON CACHE BOOL "" FORCE) +- ADD_SUBDIRECTORY( +- "${GOOGLETEST_SOURCE_DIR}" +- "${CMAKE_BINARY_DIR}/googletest") + ENDIF() + + # ---[ Build FP16 unit tests diff --git a/sci-ml/FP16/files/FP16-2024.06.20-gentoo.patch b/sci-ml/FP16/files/FP16-2024.06.20-gentoo.patch new file mode 100644 index 000000000000..c5ab4e046827 --- /dev/null +++ b/sci-ml/FP16/files/FP16-2024.06.20-gentoo.patch @@ -0,0 +1,21 @@ +--- a/CMakeLists.txt 2022-05-10 09:11:41.286417033 +0200 ++++ b/CMakeLists.txt 2022-05-10 09:12:48.647398387 +0200 +@@ -19,7 +19,7 @@ + ENDIF() + + # ---[ Download deps +-IF(FP16_BUILD_TESTS AND NOT DEFINED GOOGLETEST_SOURCE_DIR) ++IF(FALSE) + MESSAGE(STATUS "Downloading Google Test to ${CMAKE_BINARY_DIR}/googletest-source (define GOOGLETEST_SOURCE_DIR to avoid it)") + CONFIGURE_FILE(cmake/DownloadGoogleTest.cmake "${CMAKE_BINARY_DIR}/googletest-download/CMakeLists.txt") + EXECUTE_PROCESS(COMMAND "${CMAKE_COMMAND}" -G "${CMAKE_GENERATOR}" . +@@ -60,9 +60,6 @@ + # ---[ Build google test + IF(NOT TARGET gtest) + SET(gtest_force_shared_crt ON CACHE BOOL "" FORCE) +- ADD_SUBDIRECTORY( +- "${GOOGLETEST_SOURCE_DIR}" +- "${CMAKE_BINARY_DIR}/googletest") + ENDIF() + + # ---[ Build FP16 unit tests diff --git a/sci-ml/FP16/files/FP16-2024.06.20-setfill.patch b/sci-ml/FP16/files/FP16-2024.06.20-setfill.patch new file mode 100644 index 000000000000..a77b4a94ad52 --- /dev/null +++ b/sci-ml/FP16/files/FP16-2024.06.20-setfill.patch @@ -0,0 +1,85 @@ +diff --git a/test/alt-from-fp32-value.cc b/test/alt-from-fp32-value.cc +index 33bf0fd..d30be0c 100644 +--- a/test/alt-from-fp32-value.cc ++++ b/test/alt-from-fp32-value.cc +@@ -1,6 +1,7 @@ + #include + + #include ++#include + + #include + #include +diff --git a/test/alt-to-fp32-bits.cc b/test/alt-to-fp32-bits.cc +index f5b61a5..2a232ba 100644 +--- a/test/alt-to-fp32-bits.cc ++++ b/test/alt-to-fp32-bits.cc +@@ -1,6 +1,7 @@ + #include + + #include ++#include + + #include + #include +diff --git a/test/alt-to-fp32-value.cc b/test/alt-to-fp32-value.cc +index b9d880e..40c49c4 100644 +--- a/test/alt-to-fp32-value.cc ++++ b/test/alt-to-fp32-value.cc +@@ -2,6 +2,7 @@ + + #include + #include ++#include + + #include + #include +diff --git a/test/bitcasts.cc b/test/bitcasts.cc +index b106935..cb1b564 100644 +--- a/test/bitcasts.cc ++++ b/test/bitcasts.cc +@@ -1,6 +1,7 @@ + #include + + #include ++#include + + #include + +diff --git a/test/ieee-from-fp32-value.cc b/test/ieee-from-fp32-value.cc +index ec9afe7..dceaf9a 100644 +--- a/test/ieee-from-fp32-value.cc ++++ b/test/ieee-from-fp32-value.cc +@@ -1,6 +1,7 @@ + #include + + #include ++#include + + #include + #include +diff --git a/test/ieee-to-fp32-bits.cc b/test/ieee-to-fp32-bits.cc +index 284e1b1..13b41aa 100644 +--- a/test/ieee-to-fp32-bits.cc ++++ b/test/ieee-to-fp32-bits.cc +@@ -1,6 +1,7 @@ + #include + + #include ++#include + + #include + #include +diff --git a/test/ieee-to-fp32-value.cc b/test/ieee-to-fp32-value.cc +index 5258e92..cbcbbf8 100644 +--- a/test/ieee-to-fp32-value.cc ++++ b/test/ieee-to-fp32-value.cc +@@ -2,6 +2,7 @@ + + #include + #include ++#include + + #include + #include + diff --git a/sci-ml/FP16/metadata.xml b/sci-ml/FP16/metadata.xml new file mode 100644 index 000000000000..4c219d7162ec --- /dev/null +++ b/sci-ml/FP16/metadata.xml @@ -0,0 +1,11 @@ + + + + + tupone@gentoo.org + Tupone Alfredo + + + Maratyszcza/FP16 + + -- cgit v1.2.3