public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-libs/oneDNN/
@ 2024-02-16 17:53 Alfredo Tupone
  0 siblings, 0 replies; 9+ messages in thread
From: Alfredo Tupone @ 2024-02-16 17:53 UTC (permalink / raw
  To: gentoo-commits

commit:     112cf75157a34c41a605e591d88c323519d988b9
Author:     Sv. Lockal <lockalsash <AT> gmail <DOT> com>
AuthorDate: Mon Feb  5 17:13:56 2024 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Fri Feb 16 17:52:58 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=112cf751

dev-libs/oneDNN: add 3.3.4

Signed-off-by: Sv. Lockal <lockalsash <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/35194
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 dev-libs/oneDNN/Manifest            |   1 +
 dev-libs/oneDNN/oneDNN-3.3.4.ebuild | 134 ++++++++++++++++++++++++++++++++++++
 2 files changed, 135 insertions(+)

diff --git a/dev-libs/oneDNN/Manifest b/dev-libs/oneDNN/Manifest
index 72537adf9cba..674f0426e148 100644
--- a/dev-libs/oneDNN/Manifest
+++ b/dev-libs/oneDNN/Manifest
@@ -1 +1,2 @@
 DIST oneDNN-3.3.3.tar.gz 11577369 BLAKE2B 85df74235d70d30d69ebb1702dcb328466d38046b37f4078b1d6880c7cbe079d095e53e5c9e2f0f77daca057cae62e661ac1bf919e8f128cf9c76a847dc0425d SHA512 bb4a6b33b3191b9e517a321dd089b7debb528dd2d4be48f52626308fe0e1dbea3fa6149fd9debe6aa23f11224ac80e4d3ee1e251d2007faf9bcc262bb895de71
+DIST oneDNN-3.3.4.tar.gz 11577725 BLAKE2B abfcf14f8f7ade2341004d3afdb2879814b50edb76dcc677f0c97aa061e3f5c958a8810fb3eb90926c7dc5d007406daf7b73e9ce660f8c0094a49338e9255f8c SHA512 ff31f3f6b59529aad47d5a8154572aa8d7e8267c4b8150aa32eeac7baa378e1dbfdc1adc6d503ebf1bd132bc09446019abf80e5dd8b54bd6aebfb08b7fb6b066

diff --git a/dev-libs/oneDNN/oneDNN-3.3.4.ebuild b/dev-libs/oneDNN/oneDNN-3.3.4.ebuild
new file mode 100644
index 000000000000..f67b93c73e22
--- /dev/null
+++ b/dev-libs/oneDNN/oneDNN-3.3.4.ebuild
@@ -0,0 +1,134 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DOCS_BUILDER="doxygen"
+DOCS_DIR="${WORKDIR}/${P}_build"
+
+# oneDNN has its own FindBLAS.cmake file to find MKL (in a non-standard way).
+# Removing of CMake modules is disabled.
+CMAKE_REMOVE_MODULES_LIST=( none )
+
+# There is additional sphinx documentation but we are missing dependency doxyrest.
+inherit cmake docs multiprocessing toolchain-funcs
+
+DESCRIPTION="oneAPI Deep Neural Network Library"
+HOMEPAGE="https://github.com/oneapi-src/oneDNN"
+SRC_URI="https://github.com/oneapi-src/oneDNN/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+IUSE="test mkl cblas static-libs +openmp"
+
+RESTRICT="!test? ( test )"
+
+DEPEND="
+	mkl? ( sci-libs/mkl )
+	cblas? ( !mkl? ( virtual/cblas ) )
+"
+RDEPEND="${DEPEND}"
+BDEPEND="
+	openmp? (
+		|| (
+			sys-devel/gcc[openmp]
+			sys-devel/clang-runtime[openmp]
+		)
+	)
+"
+
+PATCHES=(
+	"${FILESDIR}/${PN}-3.3.3-include-cstdint.patch"
+)
+
+pkg_pretend() {
+	[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+pkg_setup() {
+	[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+src_configure() {
+	if ! use openmp ; then
+		ewarn "WARNING: oneDNN is being built with sequential runtime."
+		ewarn "Proceeding might lead to highly sub-optimal performance."
+		ewarn "Conside enabling \"openmp\" USE flag."
+	fi
+
+	local mycmakeargs=(
+		-DDNNL_LIBRARY_TYPE=$(usex static-libs STATIC SHARED)
+		-DDNNL_CPU_RUNTIME=$(usex openmp OMP SEQ)
+		-DDNNL_GPU_RUNTIME=NONE
+		-DDNNL_BUILD_EXAMPLES=OFF
+		-DDNNL_BUILD_TESTS="$(usex test)"
+		-DDNNL_ENABLE_CONCURRENT_EXEC=OFF
+		-DDNNL_ENABLE_JIT_PROFILING=ON
+		-DDNNL_ENABLE_ITT_TASKS=ON
+		-DDNNL_ENABLE_PRIMITIVE_CACHE=ON
+		-DDNNL_ENABLE_MAX_CPU_ISA=ON
+		-DDNNL_ENABLE_CPU_ISA_HINTS=ON
+		-DDNNL_ENABLE_WORKLOAD=TRAINING
+		-DDNNL_ENABLE_PRIMITIVE=ALL
+		-DDNNL_ENABLE_PRIMITIVE_GPU_ISA=ALL
+		-DDNNL_EXPERIMENTAL=OFF
+		-DDNNL_VERBOSE=ON
+		-DDNNL_DEV_MODE=OFF
+		-DDNNL_AARCH64_USE_ACL=OFF
+		-DDNNL_GPU_VENDOR=INTEL
+		-DDNNL_LIBRARY_NAME=dnnl
+		-DONEDNN_BUILD_GRAPH=ON
+		-DONEDNN_ENABLE_GRAPH_DUMP=OFF
+		-DONEDNN_EXPERIMENTAL_GRAPH_COMPILER_BACKEND=OFF
+		-DDNNL_ENABLE_PRIMITIVE_CPU_ISA=ALL
+		-DONEDNN_ENABLE_GEMM_KERNELS_ISA=ALL
+		-Wno-dev
+	)
+
+	if use mkl ; then
+		if [ -e "${EPREFIX}"/opt/intel/oneapi/mkl/latest/env/vars.sh ]; then
+			source "${EPREFIX}"/opt/intel/oneapi/mkl/latest/env/vars.sh || die
+		else
+			# bug 923109: sci-libs/mkl-2020.4.304 has no vars.sh, configure it manually
+			export CPATH="${EPREFIX}"/usr/include/mkl
+			export MKLROOT="${EPREFIX}"/usr
+		fi
+
+		mycmakeargs+=( -DDNNL_BLAS_VENDOR=MKL )
+	elif use cblas; then
+		mycmakeargs+=( -DDNNL_BLAS_VENDOR=ANY -DBLA_VENDOR=Generic -DBLAS_LIBRARIES=-lcblas )
+	else
+		mycmakeargs+=( -DDNNL_BLAS_VENDOR=NONE )
+	fi
+
+	cmake_src_configure
+}
+
+src_compile() {
+	cmake_src_compile
+	docs_compile
+}
+
+src_install() {
+	cmake_src_install
+
+	# Correct docdir
+	mv "${ED}/usr/share/doc/dnnl"* "${ED}/usr/share/doc/${PF}" || die
+}
+
+src_test() {
+	local CMAKE_SKIP_TESTS=(
+		# Crashes in sandbox (see #922886 and #923013);
+		# waits for sys-apps/sandbox-2.39 release and stabilization.
+		test_graph_unit_cpu
+	)
+
+	if use openmp ; then
+		# Don't run tests in parallel, each test is already parallelized
+		OMP_NUM_THREADS=$(makeopts_jobs) cmake_src_test -j1
+	else
+		cmake_src_test
+	fi
+}


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-libs/oneDNN/
@ 2024-02-16 17:53 Alfredo Tupone
  0 siblings, 0 replies; 9+ messages in thread
From: Alfredo Tupone @ 2024-02-16 17:53 UTC (permalink / raw
  To: gentoo-commits

commit:     48801f123fe359bcd78f27ce33d827e62e9ea1e3
Author:     Sv. Lockal <lockalsash <AT> gmail <DOT> com>
AuthorDate: Mon Feb  5 16:59:06 2024 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Fri Feb 16 17:52:53 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=48801f12

dev-libs/oneDNN: improve handling of multiple USE flags

Disable test_graph_unit_cpu (#922886) and improve performance for openmp tests.
Remove cpu_* flags: ISA cmake settings set upper level of JIT code, not active instruction set, so using cpu_* flags was misleading.
Improve check for openmp. Allow to builds without openmp (with warning) - #922886
Fix compilation with sci-libs/mkl-2020.4.304, which is installed into /usr, not /opt.

Closes: https://bugs.gentoo.org/922886
Closes: https://bugs.gentoo.org/923109
Closes: https://bugs.gentoo.org/923407
Signed-off-by: Sv. Lockal <lockalsash <AT> gmail.com>
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 ...{oneDNN-3.3.3.ebuild => oneDNN-3.3.3-r1.ebuild} | 76 ++++++++++++++--------
 1 file changed, 50 insertions(+), 26 deletions(-)

diff --git a/dev-libs/oneDNN/oneDNN-3.3.3.ebuild b/dev-libs/oneDNN/oneDNN-3.3.3-r1.ebuild
similarity index 60%
rename from dev-libs/oneDNN/oneDNN-3.3.3.ebuild
rename to dev-libs/oneDNN/oneDNN-3.3.3-r1.ebuild
index 6ce3ea96e786..f67b93c73e22 100644
--- a/dev-libs/oneDNN/oneDNN-3.3.3.ebuild
+++ b/dev-libs/oneDNN/oneDNN-3.3.3-r1.ebuild
@@ -11,7 +11,7 @@ DOCS_DIR="${WORKDIR}/${P}_build"
 CMAKE_REMOVE_MODULES_LIST=( none )
 
 # There is additional sphinx documentation but we are missing dependency doxyrest.
-inherit cmake docs
+inherit cmake docs multiprocessing toolchain-funcs
 
 DESCRIPTION="oneAPI Deep Neural Network Library"
 HOMEPAGE="https://github.com/oneapi-src/oneDNN"
@@ -21,7 +21,7 @@ LICENSE="Apache-2.0"
 SLOT="0"
 KEYWORDS="~amd64"
 
-IUSE="test cpu_flags_x86_avx512f cpu_flags_x86_avx2 cpu_flags_x86_sse4_1 mkl cblas static-libs"
+IUSE="test mkl cblas static-libs +openmp"
 
 RESTRICT="!test? ( test )"
 
@@ -30,15 +30,37 @@ DEPEND="
 	cblas? ( !mkl? ( virtual/cblas ) )
 "
 RDEPEND="${DEPEND}"
+BDEPEND="
+	openmp? (
+		|| (
+			sys-devel/gcc[openmp]
+			sys-devel/clang-runtime[openmp]
+		)
+	)
+"
 
 PATCHES=(
 	"${FILESDIR}/${PN}-3.3.3-include-cstdint.patch"
 )
 
+pkg_pretend() {
+	[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+pkg_setup() {
+	[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
 src_configure() {
+	if ! use openmp ; then
+		ewarn "WARNING: oneDNN is being built with sequential runtime."
+		ewarn "Proceeding might lead to highly sub-optimal performance."
+		ewarn "Conside enabling \"openmp\" USE flag."
+	fi
+
 	local mycmakeargs=(
 		-DDNNL_LIBRARY_TYPE=$(usex static-libs STATIC SHARED)
-		-DDNNL_CPU_RUNTIME=OMP
+		-DDNNL_CPU_RUNTIME=$(usex openmp OMP SEQ)
 		-DDNNL_GPU_RUNTIME=NONE
 		-DDNNL_BUILD_EXAMPLES=OFF
 		-DDNNL_BUILD_TESTS="$(usex test)"
@@ -60,33 +82,20 @@ src_configure() {
 		-DONEDNN_BUILD_GRAPH=ON
 		-DONEDNN_ENABLE_GRAPH_DUMP=OFF
 		-DONEDNN_EXPERIMENTAL_GRAPH_COMPILER_BACKEND=OFF
+		-DDNNL_ENABLE_PRIMITIVE_CPU_ISA=ALL
+		-DONEDNN_ENABLE_GEMM_KERNELS_ISA=ALL
 		-Wno-dev
 	)
 
-	local isa="ALL"
-
-	if use cpu_flags_x86_avx512f ; then
-		isa="AVX512"
-	elif use cpu_flags_x86_avx2; then
-		isa="AVX2"
-	elif use cpu_flags_x86_sse4_1; then
-		isa="SSE41"
-	else
-		ewarn "WARNING: oneDNN is being built with for all ISA."
-		ewarn "These may cause runtime issues CPUs that are not supported by oneDNN."
-		ewarn ""
-		ewarn "To configure oneDNN with ISA that is optimal for your CPU,"
-		ewarn "set CPU_FLAGS_X86 in your make.conf, and re-emerge oneDNN."
-		ewarn ""
-		ewarn "See the list of supported CPUs at"
-		ewarn "https://github.com/oneapi-src/oneDNN?tab=readme-ov-file#system-requirements"
-		ewarn "For CPU_FLAGS_X86 documentation visit https://wiki.gentoo.org/wiki/CPU_FLAGS_*"
-	fi
-
-	mycmakeargs+=( -DDNNL_ENABLE_PRIMITIVE_CPU_ISA="${isa}" -DONEDNN_ENABLE_GEMM_KERNELS_ISA="${isa}" )
-
 	if use mkl ; then
-		source /opt/intel/oneapi/mkl/latest/env/vars.sh
+		if [ -e "${EPREFIX}"/opt/intel/oneapi/mkl/latest/env/vars.sh ]; then
+			source "${EPREFIX}"/opt/intel/oneapi/mkl/latest/env/vars.sh || die
+		else
+			# bug 923109: sci-libs/mkl-2020.4.304 has no vars.sh, configure it manually
+			export CPATH="${EPREFIX}"/usr/include/mkl
+			export MKLROOT="${EPREFIX}"/usr
+		fi
+
 		mycmakeargs+=( -DDNNL_BLAS_VENDOR=MKL )
 	elif use cblas; then
 		mycmakeargs+=( -DDNNL_BLAS_VENDOR=ANY -DBLA_VENDOR=Generic -DBLAS_LIBRARIES=-lcblas )
@@ -108,3 +117,18 @@ src_install() {
 	# Correct docdir
 	mv "${ED}/usr/share/doc/dnnl"* "${ED}/usr/share/doc/${PF}" || die
 }
+
+src_test() {
+	local CMAKE_SKIP_TESTS=(
+		# Crashes in sandbox (see #922886 and #923013);
+		# waits for sys-apps/sandbox-2.39 release and stabilization.
+		test_graph_unit_cpu
+	)
+
+	if use openmp ; then
+		# Don't run tests in parallel, each test is already parallelized
+		OMP_NUM_THREADS=$(makeopts_jobs) cmake_src_test -j1
+	else
+		cmake_src_test
+	fi
+}


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-libs/oneDNN/
@ 2024-03-08 22:15 Alfredo Tupone
  0 siblings, 0 replies; 9+ messages in thread
From: Alfredo Tupone @ 2024-03-08 22:15 UTC (permalink / raw
  To: gentoo-commits

commit:     629e9623f49d355891b62c368bcd95cc3a814b5d
Author:     Sv. Lockal <lockalsash <AT> gmail <DOT> com>
AuthorDate: Fri Mar  8 15:38:20 2024 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Fri Mar  8 22:15:10 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=629e9623

dev-libs/oneDNN: add 3.4

ebuild changes:
* exclude oneDNN-3.3.3-include-cstdint.patch - not needed anymore
* update CMAKE_SKIP_TESTS (known sys-apps/sandbox issue)

Signed-off-by: Sv. Lockal <lockalsash <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/35669
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 dev-libs/oneDNN/Manifest          |   1 +
 dev-libs/oneDNN/oneDNN-3.4.ebuild | 133 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 134 insertions(+)

diff --git a/dev-libs/oneDNN/Manifest b/dev-libs/oneDNN/Manifest
index 674f0426e148..4ebc5241e90d 100644
--- a/dev-libs/oneDNN/Manifest
+++ b/dev-libs/oneDNN/Manifest
@@ -1,2 +1,3 @@
 DIST oneDNN-3.3.3.tar.gz 11577369 BLAKE2B 85df74235d70d30d69ebb1702dcb328466d38046b37f4078b1d6880c7cbe079d095e53e5c9e2f0f77daca057cae62e661ac1bf919e8f128cf9c76a847dc0425d SHA512 bb4a6b33b3191b9e517a321dd089b7debb528dd2d4be48f52626308fe0e1dbea3fa6149fd9debe6aa23f11224ac80e4d3ee1e251d2007faf9bcc262bb895de71
 DIST oneDNN-3.3.4.tar.gz 11577725 BLAKE2B abfcf14f8f7ade2341004d3afdb2879814b50edb76dcc677f0c97aa061e3f5c958a8810fb3eb90926c7dc5d007406daf7b73e9ce660f8c0094a49338e9255f8c SHA512 ff31f3f6b59529aad47d5a8154572aa8d7e8267c4b8150aa32eeac7baa378e1dbfdc1adc6d503ebf1bd132bc09446019abf80e5dd8b54bd6aebfb08b7fb6b066
+DIST oneDNN-3.4.tar.gz 12858442 BLAKE2B 56af66755b133d8f6590d3712b4d8c7e331c5b6e4d92f99c7773a6be64331fa2a03159cf96ab4d979d0586c2bf060757895393eca5a2b06af2cfe80b80642aff SHA512 8a4ae6251e12ee641a432011da8360e08866ac005a5930d3a6278ce470d8b4a88afbd5538504274ca5e0bf053845efb41c834acaab83121d9d986a41f31ff718

diff --git a/dev-libs/oneDNN/oneDNN-3.4.ebuild b/dev-libs/oneDNN/oneDNN-3.4.ebuild
new file mode 100644
index 000000000000..f63e938f040c
--- /dev/null
+++ b/dev-libs/oneDNN/oneDNN-3.4.ebuild
@@ -0,0 +1,133 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DOCS_BUILDER="doxygen"
+DOCS_DIR="${WORKDIR}/${P}_build"
+
+# oneDNN has its own FindBLAS.cmake file to find MKL (in a non-standard way).
+# Removing of CMake modules is disabled.
+CMAKE_REMOVE_MODULES_LIST=( none )
+
+# There is additional sphinx documentation but we are missing dependency doxyrest.
+inherit cmake docs multiprocessing toolchain-funcs
+
+DESCRIPTION="oneAPI Deep Neural Network Library"
+HOMEPAGE="https://github.com/oneapi-src/oneDNN"
+SRC_URI="https://github.com/oneapi-src/oneDNN/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+IUSE="test mkl cblas static-libs +openmp"
+
+RESTRICT="!test? ( test )"
+
+DEPEND="
+	mkl? ( sci-libs/mkl )
+	cblas? ( !mkl? ( virtual/cblas ) )
+"
+RDEPEND="${DEPEND}"
+BDEPEND="
+	openmp? (
+		|| (
+			sys-devel/gcc[openmp]
+			sys-devel/clang-runtime[openmp]
+		)
+	)
+"
+
+pkg_pretend() {
+	[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+pkg_setup() {
+	[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+src_configure() {
+	if ! use openmp ; then
+		ewarn "WARNING: oneDNN is being built with sequential runtime."
+		ewarn "Proceeding might lead to highly sub-optimal performance."
+		ewarn "Conside enabling \"openmp\" USE flag."
+	fi
+
+	local mycmakeargs=(
+		-DDNNL_LIBRARY_TYPE=$(usex static-libs STATIC SHARED)
+		-DDNNL_CPU_RUNTIME=$(usex openmp OMP SEQ)
+		-DDNNL_GPU_RUNTIME=NONE
+		-DDNNL_BUILD_EXAMPLES=OFF
+		-DDNNL_BUILD_TESTS="$(usex test)"
+		-DDNNL_ENABLE_CONCURRENT_EXEC=OFF
+		-DDNNL_ENABLE_JIT_PROFILING=ON
+		-DDNNL_ENABLE_ITT_TASKS=ON
+		-DDNNL_ENABLE_PRIMITIVE_CACHE=ON
+		-DDNNL_ENABLE_MAX_CPU_ISA=ON
+		-DDNNL_ENABLE_CPU_ISA_HINTS=ON
+		-DDNNL_ENABLE_WORKLOAD=TRAINING
+		-DDNNL_ENABLE_PRIMITIVE=ALL
+		-DDNNL_ENABLE_PRIMITIVE_GPU_ISA=ALL
+		-DDNNL_EXPERIMENTAL=OFF
+		-DDNNL_VERBOSE=ON
+		-DDNNL_DEV_MODE=OFF
+		-DDNNL_AARCH64_USE_ACL=OFF
+		-DDNNL_GPU_VENDOR=INTEL
+		-DDNNL_LIBRARY_NAME=dnnl
+		-DONEDNN_BUILD_GRAPH=ON
+		-DONEDNN_ENABLE_GRAPH_DUMP=OFF
+		-DONEDNN_EXPERIMENTAL_GRAPH_COMPILER_BACKEND=OFF
+		-DDNNL_ENABLE_PRIMITIVE_CPU_ISA=ALL
+		-DONEDNN_ENABLE_GEMM_KERNELS_ISA=ALL
+		-Wno-dev
+	)
+
+	if use mkl ; then
+		if [ -e "${EPREFIX}"/opt/intel/oneapi/mkl/latest/env/vars.sh ]; then
+			source "${EPREFIX}"/opt/intel/oneapi/mkl/latest/env/vars.sh || die
+		else
+			# bug 923109: sci-libs/mkl-2020.4.304 has no vars.sh, configure it manually
+			export CPATH="${EPREFIX}"/usr/include/mkl
+			export MKLROOT="${EPREFIX}"/usr
+		fi
+
+		mycmakeargs+=( -DDNNL_BLAS_VENDOR=MKL )
+	elif use cblas; then
+		mycmakeargs+=( -DDNNL_BLAS_VENDOR=ANY -DBLA_VENDOR=Generic -DBLAS_LIBRARIES=-lcblas )
+	else
+		mycmakeargs+=( -DDNNL_BLAS_VENDOR=NONE )
+	fi
+
+	cmake_src_configure
+}
+
+src_compile() {
+	cmake_src_compile
+	docs_compile
+}
+
+src_install() {
+	cmake_src_install
+
+	# Correct docdir
+	mv "${ED}/usr/share/doc/dnnl"* "${ED}/usr/share/doc/${PF}" || die
+}
+
+src_test() {
+	local CMAKE_SKIP_TESTS=(
+		# Crashes in sandbox (see #922886 and #923013);
+		# waits for sys-apps/sandbox-2.39 release and stabilization.
+		test_graph_unit_interface
+		test_graph_unit_dnnl_layout_propagator
+		test_graph_unit_dnnl_op_executable
+		test_graph_unit_utils
+	)
+
+	if use openmp ; then
+		# Don't run tests in parallel, each test is already parallelized
+		OMP_NUM_THREADS=$(makeopts_jobs) cmake_src_test -j1
+	else
+		cmake_src_test
+	fi
+}


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-libs/oneDNN/
@ 2024-06-03  6:23 Alfredo Tupone
  0 siblings, 0 replies; 9+ messages in thread
From: Alfredo Tupone @ 2024-06-03  6:23 UTC (permalink / raw
  To: gentoo-commits

commit:     d2cf1db411d872489be91a491cf9435e21f39e96
Author:     Sv. Lockal <lockalsash <AT> gmail <DOT> com>
AuthorDate: Sun Jun  2 16:24:07 2024 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Mon Jun  3 06:22:29 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d2cf1db4

dev-libs/oneDNN: add 3.4.3, drop 3.3.3-r1, add 3.3.6

Signed-off-by: Sv. Lockal <lockalsash <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/36982
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 dev-libs/oneDNN/Manifest                                        | 3 ++-
 dev-libs/oneDNN/{oneDNN-3.3.3-r1.ebuild => oneDNN-3.3.6.ebuild} | 0
 dev-libs/oneDNN/{oneDNN-3.3.3-r1.ebuild => oneDNN-3.4.3.ebuild} | 9 ++++-----
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/dev-libs/oneDNN/Manifest b/dev-libs/oneDNN/Manifest
index 4ebc5241e90d..c77be3b8984d 100644
--- a/dev-libs/oneDNN/Manifest
+++ b/dev-libs/oneDNN/Manifest
@@ -1,3 +1,4 @@
-DIST oneDNN-3.3.3.tar.gz 11577369 BLAKE2B 85df74235d70d30d69ebb1702dcb328466d38046b37f4078b1d6880c7cbe079d095e53e5c9e2f0f77daca057cae62e661ac1bf919e8f128cf9c76a847dc0425d SHA512 bb4a6b33b3191b9e517a321dd089b7debb528dd2d4be48f52626308fe0e1dbea3fa6149fd9debe6aa23f11224ac80e4d3ee1e251d2007faf9bcc262bb895de71
 DIST oneDNN-3.3.4.tar.gz 11577725 BLAKE2B abfcf14f8f7ade2341004d3afdb2879814b50edb76dcc677f0c97aa061e3f5c958a8810fb3eb90926c7dc5d007406daf7b73e9ce660f8c0094a49338e9255f8c SHA512 ff31f3f6b59529aad47d5a8154572aa8d7e8267c4b8150aa32eeac7baa378e1dbfdc1adc6d503ebf1bd132bc09446019abf80e5dd8b54bd6aebfb08b7fb6b066
+DIST oneDNN-3.3.6.tar.gz 11579147 BLAKE2B 280103e99a90ee450ff1077bac6408f25f1ed32d86f908210b7e6a897692478a766e8d709dc3a42b06d90659aa9396a537708ea34c03c2da229c8e7a119d2c1e SHA512 02f51f61823300fb6beba833b4644c9eae5e3f7741453cf0a09d55f7cad9fc86d63e4bb1f17cbf92c37e8ecf1af109f300e110ff6191c1d26cd1350fe1f8d14f
+DIST oneDNN-3.4.3.tar.gz 12866333 BLAKE2B c1fe1d485ed174e08e6eada6d26eb1c94a99667343fc47a8492e34c66ee85e576ae71308805b76e87774446d2fa7c9496dd16546a5d592c654a9e10db0a1e582 SHA512 eb60137ee0196cd82e1e0300ba1c58afbedb342d9619c474d399946c7dcb34f8ca1211fad1070cd531189340b2ac1f3926ec4a95f72be8aef485e5f54a795bda
 DIST oneDNN-3.4.tar.gz 12858442 BLAKE2B 56af66755b133d8f6590d3712b4d8c7e331c5b6e4d92f99c7773a6be64331fa2a03159cf96ab4d979d0586c2bf060757895393eca5a2b06af2cfe80b80642aff SHA512 8a4ae6251e12ee641a432011da8360e08866ac005a5930d3a6278ce470d8b4a88afbd5538504274ca5e0bf053845efb41c834acaab83121d9d986a41f31ff718

diff --git a/dev-libs/oneDNN/oneDNN-3.3.3-r1.ebuild b/dev-libs/oneDNN/oneDNN-3.3.6.ebuild
similarity index 100%
copy from dev-libs/oneDNN/oneDNN-3.3.3-r1.ebuild
copy to dev-libs/oneDNN/oneDNN-3.3.6.ebuild

diff --git a/dev-libs/oneDNN/oneDNN-3.3.3-r1.ebuild b/dev-libs/oneDNN/oneDNN-3.4.3.ebuild
similarity index 96%
rename from dev-libs/oneDNN/oneDNN-3.3.3-r1.ebuild
rename to dev-libs/oneDNN/oneDNN-3.4.3.ebuild
index f67b93c73e22..f63e938f040c 100644
--- a/dev-libs/oneDNN/oneDNN-3.3.3-r1.ebuild
+++ b/dev-libs/oneDNN/oneDNN-3.4.3.ebuild
@@ -39,10 +39,6 @@ BDEPEND="
 	)
 "
 
-PATCHES=(
-	"${FILESDIR}/${PN}-3.3.3-include-cstdint.patch"
-)
-
 pkg_pretend() {
 	[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
 }
@@ -122,7 +118,10 @@ src_test() {
 	local CMAKE_SKIP_TESTS=(
 		# Crashes in sandbox (see #922886 and #923013);
 		# waits for sys-apps/sandbox-2.39 release and stabilization.
-		test_graph_unit_cpu
+		test_graph_unit_interface
+		test_graph_unit_dnnl_layout_propagator
+		test_graph_unit_dnnl_op_executable
+		test_graph_unit_utils
 	)
 
 	if use openmp ; then


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-libs/oneDNN/
@ 2024-06-15 16:00 Alfredo Tupone
  0 siblings, 0 replies; 9+ messages in thread
From: Alfredo Tupone @ 2024-06-15 16:00 UTC (permalink / raw
  To: gentoo-commits

commit:     6923b3fa89a21cf84301adb10286ff135d160321
Author:     Sv. Lockal <lockalsash <AT> gmail <DOT> com>
AuthorDate: Sat Jun 15 09:25:41 2024 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Sat Jun 15 15:59:59 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6923b3fa

dev-libs/oneDNN: add 3.5, drop 3.3.4

Signed-off-by: Sv. Lockal <lockalsash <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/37174
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 dev-libs/oneDNN/Manifest                                   | 2 +-
 dev-libs/oneDNN/{oneDNN-3.3.4.ebuild => oneDNN-3.5.ebuild} | 9 ++++-----
 2 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/dev-libs/oneDNN/Manifest b/dev-libs/oneDNN/Manifest
index c77be3b8984d..91135bddafbb 100644
--- a/dev-libs/oneDNN/Manifest
+++ b/dev-libs/oneDNN/Manifest
@@ -1,4 +1,4 @@
-DIST oneDNN-3.3.4.tar.gz 11577725 BLAKE2B abfcf14f8f7ade2341004d3afdb2879814b50edb76dcc677f0c97aa061e3f5c958a8810fb3eb90926c7dc5d007406daf7b73e9ce660f8c0094a49338e9255f8c SHA512 ff31f3f6b59529aad47d5a8154572aa8d7e8267c4b8150aa32eeac7baa378e1dbfdc1adc6d503ebf1bd132bc09446019abf80e5dd8b54bd6aebfb08b7fb6b066
 DIST oneDNN-3.3.6.tar.gz 11579147 BLAKE2B 280103e99a90ee450ff1077bac6408f25f1ed32d86f908210b7e6a897692478a766e8d709dc3a42b06d90659aa9396a537708ea34c03c2da229c8e7a119d2c1e SHA512 02f51f61823300fb6beba833b4644c9eae5e3f7741453cf0a09d55f7cad9fc86d63e4bb1f17cbf92c37e8ecf1af109f300e110ff6191c1d26cd1350fe1f8d14f
 DIST oneDNN-3.4.3.tar.gz 12866333 BLAKE2B c1fe1d485ed174e08e6eada6d26eb1c94a99667343fc47a8492e34c66ee85e576ae71308805b76e87774446d2fa7c9496dd16546a5d592c654a9e10db0a1e582 SHA512 eb60137ee0196cd82e1e0300ba1c58afbedb342d9619c474d399946c7dcb34f8ca1211fad1070cd531189340b2ac1f3926ec4a95f72be8aef485e5f54a795bda
 DIST oneDNN-3.4.tar.gz 12858442 BLAKE2B 56af66755b133d8f6590d3712b4d8c7e331c5b6e4d92f99c7773a6be64331fa2a03159cf96ab4d979d0586c2bf060757895393eca5a2b06af2cfe80b80642aff SHA512 8a4ae6251e12ee641a432011da8360e08866ac005a5930d3a6278ce470d8b4a88afbd5538504274ca5e0bf053845efb41c834acaab83121d9d986a41f31ff718
+DIST oneDNN-3.5.tar.gz 13189199 BLAKE2B 3e7df5feb6c95cb60a65352bfe606fddd17f4dae322762ca0682e8afab27dce9018252bfac7b06f0154bc79a66c6ce3adb387f94c2fcd561fe695d43b732d6c5 SHA512 3acb935c8e826586b54e573650ac842e7bcd5a44d2578241c169a31cf9f56d9e5bc0fd6f9de4617d5dc497e5626f88e6d00f06be2161ba2b0af94569dfdcae94

diff --git a/dev-libs/oneDNN/oneDNN-3.3.4.ebuild b/dev-libs/oneDNN/oneDNN-3.5.ebuild
similarity index 96%
rename from dev-libs/oneDNN/oneDNN-3.3.4.ebuild
rename to dev-libs/oneDNN/oneDNN-3.5.ebuild
index f67b93c73e22..f63e938f040c 100644
--- a/dev-libs/oneDNN/oneDNN-3.3.4.ebuild
+++ b/dev-libs/oneDNN/oneDNN-3.5.ebuild
@@ -39,10 +39,6 @@ BDEPEND="
 	)
 "
 
-PATCHES=(
-	"${FILESDIR}/${PN}-3.3.3-include-cstdint.patch"
-)
-
 pkg_pretend() {
 	[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
 }
@@ -122,7 +118,10 @@ src_test() {
 	local CMAKE_SKIP_TESTS=(
 		# Crashes in sandbox (see #922886 and #923013);
 		# waits for sys-apps/sandbox-2.39 release and stabilization.
-		test_graph_unit_cpu
+		test_graph_unit_interface
+		test_graph_unit_dnnl_layout_propagator
+		test_graph_unit_dnnl_op_executable
+		test_graph_unit_utils
 	)
 
 	if use openmp ; then


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-libs/oneDNN/
@ 2024-07-27  9:52 Alfredo Tupone
  0 siblings, 0 replies; 9+ messages in thread
From: Alfredo Tupone @ 2024-07-27  9:52 UTC (permalink / raw
  To: gentoo-commits

commit:     3a54b92587750a8824786bdbbf007c7ad2c1be85
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 27 09:51:56 2024 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Sat Jul 27 09:52:22 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a54b925

dev-libs/oneDNN: add 3.5.2

Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 dev-libs/oneDNN/Manifest            |   1 +
 dev-libs/oneDNN/oneDNN-3.5.2.ebuild | 133 ++++++++++++++++++++++++++++++++++++
 2 files changed, 134 insertions(+)

diff --git a/dev-libs/oneDNN/Manifest b/dev-libs/oneDNN/Manifest
index 91135bddafbb..04d404c0c9b4 100644
--- a/dev-libs/oneDNN/Manifest
+++ b/dev-libs/oneDNN/Manifest
@@ -1,4 +1,5 @@
 DIST oneDNN-3.3.6.tar.gz 11579147 BLAKE2B 280103e99a90ee450ff1077bac6408f25f1ed32d86f908210b7e6a897692478a766e8d709dc3a42b06d90659aa9396a537708ea34c03c2da229c8e7a119d2c1e SHA512 02f51f61823300fb6beba833b4644c9eae5e3f7741453cf0a09d55f7cad9fc86d63e4bb1f17cbf92c37e8ecf1af109f300e110ff6191c1d26cd1350fe1f8d14f
 DIST oneDNN-3.4.3.tar.gz 12866333 BLAKE2B c1fe1d485ed174e08e6eada6d26eb1c94a99667343fc47a8492e34c66ee85e576ae71308805b76e87774446d2fa7c9496dd16546a5d592c654a9e10db0a1e582 SHA512 eb60137ee0196cd82e1e0300ba1c58afbedb342d9619c474d399946c7dcb34f8ca1211fad1070cd531189340b2ac1f3926ec4a95f72be8aef485e5f54a795bda
 DIST oneDNN-3.4.tar.gz 12858442 BLAKE2B 56af66755b133d8f6590d3712b4d8c7e331c5b6e4d92f99c7773a6be64331fa2a03159cf96ab4d979d0586c2bf060757895393eca5a2b06af2cfe80b80642aff SHA512 8a4ae6251e12ee641a432011da8360e08866ac005a5930d3a6278ce470d8b4a88afbd5538504274ca5e0bf053845efb41c834acaab83121d9d986a41f31ff718
+DIST oneDNN-3.5.2.tar.gz 13190514 BLAKE2B 4d274fcdc9d30de4df5d6c949932e65f1ddefa56d96ec87c60aee2122cd8f250bbe6dfffb329ca9e413dd13fdb5478d3470076f0913cc53b1d418a2997f88377 SHA512 80b6eda44fc600eff8b98ce58937b98440ab3cf18e0022df366e417189ae42e722e6b11f9c2c01049313bd9d3f7e74eff8efc6ac8590b602d16b32265dd74578
 DIST oneDNN-3.5.tar.gz 13189199 BLAKE2B 3e7df5feb6c95cb60a65352bfe606fddd17f4dae322762ca0682e8afab27dce9018252bfac7b06f0154bc79a66c6ce3adb387f94c2fcd561fe695d43b732d6c5 SHA512 3acb935c8e826586b54e573650ac842e7bcd5a44d2578241c169a31cf9f56d9e5bc0fd6f9de4617d5dc497e5626f88e6d00f06be2161ba2b0af94569dfdcae94

diff --git a/dev-libs/oneDNN/oneDNN-3.5.2.ebuild b/dev-libs/oneDNN/oneDNN-3.5.2.ebuild
new file mode 100644
index 000000000000..f63e938f040c
--- /dev/null
+++ b/dev-libs/oneDNN/oneDNN-3.5.2.ebuild
@@ -0,0 +1,133 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DOCS_BUILDER="doxygen"
+DOCS_DIR="${WORKDIR}/${P}_build"
+
+# oneDNN has its own FindBLAS.cmake file to find MKL (in a non-standard way).
+# Removing of CMake modules is disabled.
+CMAKE_REMOVE_MODULES_LIST=( none )
+
+# There is additional sphinx documentation but we are missing dependency doxyrest.
+inherit cmake docs multiprocessing toolchain-funcs
+
+DESCRIPTION="oneAPI Deep Neural Network Library"
+HOMEPAGE="https://github.com/oneapi-src/oneDNN"
+SRC_URI="https://github.com/oneapi-src/oneDNN/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+IUSE="test mkl cblas static-libs +openmp"
+
+RESTRICT="!test? ( test )"
+
+DEPEND="
+	mkl? ( sci-libs/mkl )
+	cblas? ( !mkl? ( virtual/cblas ) )
+"
+RDEPEND="${DEPEND}"
+BDEPEND="
+	openmp? (
+		|| (
+			sys-devel/gcc[openmp]
+			sys-devel/clang-runtime[openmp]
+		)
+	)
+"
+
+pkg_pretend() {
+	[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+pkg_setup() {
+	[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+src_configure() {
+	if ! use openmp ; then
+		ewarn "WARNING: oneDNN is being built with sequential runtime."
+		ewarn "Proceeding might lead to highly sub-optimal performance."
+		ewarn "Conside enabling \"openmp\" USE flag."
+	fi
+
+	local mycmakeargs=(
+		-DDNNL_LIBRARY_TYPE=$(usex static-libs STATIC SHARED)
+		-DDNNL_CPU_RUNTIME=$(usex openmp OMP SEQ)
+		-DDNNL_GPU_RUNTIME=NONE
+		-DDNNL_BUILD_EXAMPLES=OFF
+		-DDNNL_BUILD_TESTS="$(usex test)"
+		-DDNNL_ENABLE_CONCURRENT_EXEC=OFF
+		-DDNNL_ENABLE_JIT_PROFILING=ON
+		-DDNNL_ENABLE_ITT_TASKS=ON
+		-DDNNL_ENABLE_PRIMITIVE_CACHE=ON
+		-DDNNL_ENABLE_MAX_CPU_ISA=ON
+		-DDNNL_ENABLE_CPU_ISA_HINTS=ON
+		-DDNNL_ENABLE_WORKLOAD=TRAINING
+		-DDNNL_ENABLE_PRIMITIVE=ALL
+		-DDNNL_ENABLE_PRIMITIVE_GPU_ISA=ALL
+		-DDNNL_EXPERIMENTAL=OFF
+		-DDNNL_VERBOSE=ON
+		-DDNNL_DEV_MODE=OFF
+		-DDNNL_AARCH64_USE_ACL=OFF
+		-DDNNL_GPU_VENDOR=INTEL
+		-DDNNL_LIBRARY_NAME=dnnl
+		-DONEDNN_BUILD_GRAPH=ON
+		-DONEDNN_ENABLE_GRAPH_DUMP=OFF
+		-DONEDNN_EXPERIMENTAL_GRAPH_COMPILER_BACKEND=OFF
+		-DDNNL_ENABLE_PRIMITIVE_CPU_ISA=ALL
+		-DONEDNN_ENABLE_GEMM_KERNELS_ISA=ALL
+		-Wno-dev
+	)
+
+	if use mkl ; then
+		if [ -e "${EPREFIX}"/opt/intel/oneapi/mkl/latest/env/vars.sh ]; then
+			source "${EPREFIX}"/opt/intel/oneapi/mkl/latest/env/vars.sh || die
+		else
+			# bug 923109: sci-libs/mkl-2020.4.304 has no vars.sh, configure it manually
+			export CPATH="${EPREFIX}"/usr/include/mkl
+			export MKLROOT="${EPREFIX}"/usr
+		fi
+
+		mycmakeargs+=( -DDNNL_BLAS_VENDOR=MKL )
+	elif use cblas; then
+		mycmakeargs+=( -DDNNL_BLAS_VENDOR=ANY -DBLA_VENDOR=Generic -DBLAS_LIBRARIES=-lcblas )
+	else
+		mycmakeargs+=( -DDNNL_BLAS_VENDOR=NONE )
+	fi
+
+	cmake_src_configure
+}
+
+src_compile() {
+	cmake_src_compile
+	docs_compile
+}
+
+src_install() {
+	cmake_src_install
+
+	# Correct docdir
+	mv "${ED}/usr/share/doc/dnnl"* "${ED}/usr/share/doc/${PF}" || die
+}
+
+src_test() {
+	local CMAKE_SKIP_TESTS=(
+		# Crashes in sandbox (see #922886 and #923013);
+		# waits for sys-apps/sandbox-2.39 release and stabilization.
+		test_graph_unit_interface
+		test_graph_unit_dnnl_layout_propagator
+		test_graph_unit_dnnl_op_executable
+		test_graph_unit_utils
+	)
+
+	if use openmp ; then
+		# Don't run tests in parallel, each test is already parallelized
+		OMP_NUM_THREADS=$(makeopts_jobs) cmake_src_test -j1
+	else
+		cmake_src_test
+	fi
+}


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-libs/oneDNN/
@ 2024-11-13 19:03 Alfredo Tupone
  0 siblings, 0 replies; 9+ messages in thread
From: Alfredo Tupone @ 2024-11-13 19:03 UTC (permalink / raw
  To: gentoo-commits

commit:     144b609f2b29a3e3f3e45aaacbac73913810e64d
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 13 19:01:48 2024 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Wed Nov 13 19:02:33 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=144b609f

dev-libs/oneDNN: drop 3.3.6, 3.4, 3.4.3, 3.5

Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 dev-libs/oneDNN/Manifest            |   4 --
 dev-libs/oneDNN/oneDNN-3.3.6.ebuild | 134 ------------------------------------
 dev-libs/oneDNN/oneDNN-3.4.3.ebuild | 133 -----------------------------------
 dev-libs/oneDNN/oneDNN-3.4.ebuild   | 133 -----------------------------------
 dev-libs/oneDNN/oneDNN-3.5.ebuild   | 133 -----------------------------------
 5 files changed, 537 deletions(-)

diff --git a/dev-libs/oneDNN/Manifest b/dev-libs/oneDNN/Manifest
index 04d404c0c9b4..95c53cbd37f2 100644
--- a/dev-libs/oneDNN/Manifest
+++ b/dev-libs/oneDNN/Manifest
@@ -1,5 +1 @@
-DIST oneDNN-3.3.6.tar.gz 11579147 BLAKE2B 280103e99a90ee450ff1077bac6408f25f1ed32d86f908210b7e6a897692478a766e8d709dc3a42b06d90659aa9396a537708ea34c03c2da229c8e7a119d2c1e SHA512 02f51f61823300fb6beba833b4644c9eae5e3f7741453cf0a09d55f7cad9fc86d63e4bb1f17cbf92c37e8ecf1af109f300e110ff6191c1d26cd1350fe1f8d14f
-DIST oneDNN-3.4.3.tar.gz 12866333 BLAKE2B c1fe1d485ed174e08e6eada6d26eb1c94a99667343fc47a8492e34c66ee85e576ae71308805b76e87774446d2fa7c9496dd16546a5d592c654a9e10db0a1e582 SHA512 eb60137ee0196cd82e1e0300ba1c58afbedb342d9619c474d399946c7dcb34f8ca1211fad1070cd531189340b2ac1f3926ec4a95f72be8aef485e5f54a795bda
-DIST oneDNN-3.4.tar.gz 12858442 BLAKE2B 56af66755b133d8f6590d3712b4d8c7e331c5b6e4d92f99c7773a6be64331fa2a03159cf96ab4d979d0586c2bf060757895393eca5a2b06af2cfe80b80642aff SHA512 8a4ae6251e12ee641a432011da8360e08866ac005a5930d3a6278ce470d8b4a88afbd5538504274ca5e0bf053845efb41c834acaab83121d9d986a41f31ff718
 DIST oneDNN-3.5.2.tar.gz 13190514 BLAKE2B 4d274fcdc9d30de4df5d6c949932e65f1ddefa56d96ec87c60aee2122cd8f250bbe6dfffb329ca9e413dd13fdb5478d3470076f0913cc53b1d418a2997f88377 SHA512 80b6eda44fc600eff8b98ce58937b98440ab3cf18e0022df366e417189ae42e722e6b11f9c2c01049313bd9d3f7e74eff8efc6ac8590b602d16b32265dd74578
-DIST oneDNN-3.5.tar.gz 13189199 BLAKE2B 3e7df5feb6c95cb60a65352bfe606fddd17f4dae322762ca0682e8afab27dce9018252bfac7b06f0154bc79a66c6ce3adb387f94c2fcd561fe695d43b732d6c5 SHA512 3acb935c8e826586b54e573650ac842e7bcd5a44d2578241c169a31cf9f56d9e5bc0fd6f9de4617d5dc497e5626f88e6d00f06be2161ba2b0af94569dfdcae94

diff --git a/dev-libs/oneDNN/oneDNN-3.3.6.ebuild b/dev-libs/oneDNN/oneDNN-3.3.6.ebuild
deleted file mode 100644
index f67b93c73e22..000000000000
--- a/dev-libs/oneDNN/oneDNN-3.3.6.ebuild
+++ /dev/null
@@ -1,134 +0,0 @@
-# Copyright 2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DOCS_BUILDER="doxygen"
-DOCS_DIR="${WORKDIR}/${P}_build"
-
-# oneDNN has its own FindBLAS.cmake file to find MKL (in a non-standard way).
-# Removing of CMake modules is disabled.
-CMAKE_REMOVE_MODULES_LIST=( none )
-
-# There is additional sphinx documentation but we are missing dependency doxyrest.
-inherit cmake docs multiprocessing toolchain-funcs
-
-DESCRIPTION="oneAPI Deep Neural Network Library"
-HOMEPAGE="https://github.com/oneapi-src/oneDNN"
-SRC_URI="https://github.com/oneapi-src/oneDNN/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64"
-
-IUSE="test mkl cblas static-libs +openmp"
-
-RESTRICT="!test? ( test )"
-
-DEPEND="
-	mkl? ( sci-libs/mkl )
-	cblas? ( !mkl? ( virtual/cblas ) )
-"
-RDEPEND="${DEPEND}"
-BDEPEND="
-	openmp? (
-		|| (
-			sys-devel/gcc[openmp]
-			sys-devel/clang-runtime[openmp]
-		)
-	)
-"
-
-PATCHES=(
-	"${FILESDIR}/${PN}-3.3.3-include-cstdint.patch"
-)
-
-pkg_pretend() {
-	[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
-}
-
-pkg_setup() {
-	[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
-}
-
-src_configure() {
-	if ! use openmp ; then
-		ewarn "WARNING: oneDNN is being built with sequential runtime."
-		ewarn "Proceeding might lead to highly sub-optimal performance."
-		ewarn "Conside enabling \"openmp\" USE flag."
-	fi
-
-	local mycmakeargs=(
-		-DDNNL_LIBRARY_TYPE=$(usex static-libs STATIC SHARED)
-		-DDNNL_CPU_RUNTIME=$(usex openmp OMP SEQ)
-		-DDNNL_GPU_RUNTIME=NONE
-		-DDNNL_BUILD_EXAMPLES=OFF
-		-DDNNL_BUILD_TESTS="$(usex test)"
-		-DDNNL_ENABLE_CONCURRENT_EXEC=OFF
-		-DDNNL_ENABLE_JIT_PROFILING=ON
-		-DDNNL_ENABLE_ITT_TASKS=ON
-		-DDNNL_ENABLE_PRIMITIVE_CACHE=ON
-		-DDNNL_ENABLE_MAX_CPU_ISA=ON
-		-DDNNL_ENABLE_CPU_ISA_HINTS=ON
-		-DDNNL_ENABLE_WORKLOAD=TRAINING
-		-DDNNL_ENABLE_PRIMITIVE=ALL
-		-DDNNL_ENABLE_PRIMITIVE_GPU_ISA=ALL
-		-DDNNL_EXPERIMENTAL=OFF
-		-DDNNL_VERBOSE=ON
-		-DDNNL_DEV_MODE=OFF
-		-DDNNL_AARCH64_USE_ACL=OFF
-		-DDNNL_GPU_VENDOR=INTEL
-		-DDNNL_LIBRARY_NAME=dnnl
-		-DONEDNN_BUILD_GRAPH=ON
-		-DONEDNN_ENABLE_GRAPH_DUMP=OFF
-		-DONEDNN_EXPERIMENTAL_GRAPH_COMPILER_BACKEND=OFF
-		-DDNNL_ENABLE_PRIMITIVE_CPU_ISA=ALL
-		-DONEDNN_ENABLE_GEMM_KERNELS_ISA=ALL
-		-Wno-dev
-	)
-
-	if use mkl ; then
-		if [ -e "${EPREFIX}"/opt/intel/oneapi/mkl/latest/env/vars.sh ]; then
-			source "${EPREFIX}"/opt/intel/oneapi/mkl/latest/env/vars.sh || die
-		else
-			# bug 923109: sci-libs/mkl-2020.4.304 has no vars.sh, configure it manually
-			export CPATH="${EPREFIX}"/usr/include/mkl
-			export MKLROOT="${EPREFIX}"/usr
-		fi
-
-		mycmakeargs+=( -DDNNL_BLAS_VENDOR=MKL )
-	elif use cblas; then
-		mycmakeargs+=( -DDNNL_BLAS_VENDOR=ANY -DBLA_VENDOR=Generic -DBLAS_LIBRARIES=-lcblas )
-	else
-		mycmakeargs+=( -DDNNL_BLAS_VENDOR=NONE )
-	fi
-
-	cmake_src_configure
-}
-
-src_compile() {
-	cmake_src_compile
-	docs_compile
-}
-
-src_install() {
-	cmake_src_install
-
-	# Correct docdir
-	mv "${ED}/usr/share/doc/dnnl"* "${ED}/usr/share/doc/${PF}" || die
-}
-
-src_test() {
-	local CMAKE_SKIP_TESTS=(
-		# Crashes in sandbox (see #922886 and #923013);
-		# waits for sys-apps/sandbox-2.39 release and stabilization.
-		test_graph_unit_cpu
-	)
-
-	if use openmp ; then
-		# Don't run tests in parallel, each test is already parallelized
-		OMP_NUM_THREADS=$(makeopts_jobs) cmake_src_test -j1
-	else
-		cmake_src_test
-	fi
-}

diff --git a/dev-libs/oneDNN/oneDNN-3.4.3.ebuild b/dev-libs/oneDNN/oneDNN-3.4.3.ebuild
deleted file mode 100644
index f63e938f040c..000000000000
--- a/dev-libs/oneDNN/oneDNN-3.4.3.ebuild
+++ /dev/null
@@ -1,133 +0,0 @@
-# Copyright 2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DOCS_BUILDER="doxygen"
-DOCS_DIR="${WORKDIR}/${P}_build"
-
-# oneDNN has its own FindBLAS.cmake file to find MKL (in a non-standard way).
-# Removing of CMake modules is disabled.
-CMAKE_REMOVE_MODULES_LIST=( none )
-
-# There is additional sphinx documentation but we are missing dependency doxyrest.
-inherit cmake docs multiprocessing toolchain-funcs
-
-DESCRIPTION="oneAPI Deep Neural Network Library"
-HOMEPAGE="https://github.com/oneapi-src/oneDNN"
-SRC_URI="https://github.com/oneapi-src/oneDNN/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64"
-
-IUSE="test mkl cblas static-libs +openmp"
-
-RESTRICT="!test? ( test )"
-
-DEPEND="
-	mkl? ( sci-libs/mkl )
-	cblas? ( !mkl? ( virtual/cblas ) )
-"
-RDEPEND="${DEPEND}"
-BDEPEND="
-	openmp? (
-		|| (
-			sys-devel/gcc[openmp]
-			sys-devel/clang-runtime[openmp]
-		)
-	)
-"
-
-pkg_pretend() {
-	[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
-}
-
-pkg_setup() {
-	[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
-}
-
-src_configure() {
-	if ! use openmp ; then
-		ewarn "WARNING: oneDNN is being built with sequential runtime."
-		ewarn "Proceeding might lead to highly sub-optimal performance."
-		ewarn "Conside enabling \"openmp\" USE flag."
-	fi
-
-	local mycmakeargs=(
-		-DDNNL_LIBRARY_TYPE=$(usex static-libs STATIC SHARED)
-		-DDNNL_CPU_RUNTIME=$(usex openmp OMP SEQ)
-		-DDNNL_GPU_RUNTIME=NONE
-		-DDNNL_BUILD_EXAMPLES=OFF
-		-DDNNL_BUILD_TESTS="$(usex test)"
-		-DDNNL_ENABLE_CONCURRENT_EXEC=OFF
-		-DDNNL_ENABLE_JIT_PROFILING=ON
-		-DDNNL_ENABLE_ITT_TASKS=ON
-		-DDNNL_ENABLE_PRIMITIVE_CACHE=ON
-		-DDNNL_ENABLE_MAX_CPU_ISA=ON
-		-DDNNL_ENABLE_CPU_ISA_HINTS=ON
-		-DDNNL_ENABLE_WORKLOAD=TRAINING
-		-DDNNL_ENABLE_PRIMITIVE=ALL
-		-DDNNL_ENABLE_PRIMITIVE_GPU_ISA=ALL
-		-DDNNL_EXPERIMENTAL=OFF
-		-DDNNL_VERBOSE=ON
-		-DDNNL_DEV_MODE=OFF
-		-DDNNL_AARCH64_USE_ACL=OFF
-		-DDNNL_GPU_VENDOR=INTEL
-		-DDNNL_LIBRARY_NAME=dnnl
-		-DONEDNN_BUILD_GRAPH=ON
-		-DONEDNN_ENABLE_GRAPH_DUMP=OFF
-		-DONEDNN_EXPERIMENTAL_GRAPH_COMPILER_BACKEND=OFF
-		-DDNNL_ENABLE_PRIMITIVE_CPU_ISA=ALL
-		-DONEDNN_ENABLE_GEMM_KERNELS_ISA=ALL
-		-Wno-dev
-	)
-
-	if use mkl ; then
-		if [ -e "${EPREFIX}"/opt/intel/oneapi/mkl/latest/env/vars.sh ]; then
-			source "${EPREFIX}"/opt/intel/oneapi/mkl/latest/env/vars.sh || die
-		else
-			# bug 923109: sci-libs/mkl-2020.4.304 has no vars.sh, configure it manually
-			export CPATH="${EPREFIX}"/usr/include/mkl
-			export MKLROOT="${EPREFIX}"/usr
-		fi
-
-		mycmakeargs+=( -DDNNL_BLAS_VENDOR=MKL )
-	elif use cblas; then
-		mycmakeargs+=( -DDNNL_BLAS_VENDOR=ANY -DBLA_VENDOR=Generic -DBLAS_LIBRARIES=-lcblas )
-	else
-		mycmakeargs+=( -DDNNL_BLAS_VENDOR=NONE )
-	fi
-
-	cmake_src_configure
-}
-
-src_compile() {
-	cmake_src_compile
-	docs_compile
-}
-
-src_install() {
-	cmake_src_install
-
-	# Correct docdir
-	mv "${ED}/usr/share/doc/dnnl"* "${ED}/usr/share/doc/${PF}" || die
-}
-
-src_test() {
-	local CMAKE_SKIP_TESTS=(
-		# Crashes in sandbox (see #922886 and #923013);
-		# waits for sys-apps/sandbox-2.39 release and stabilization.
-		test_graph_unit_interface
-		test_graph_unit_dnnl_layout_propagator
-		test_graph_unit_dnnl_op_executable
-		test_graph_unit_utils
-	)
-
-	if use openmp ; then
-		# Don't run tests in parallel, each test is already parallelized
-		OMP_NUM_THREADS=$(makeopts_jobs) cmake_src_test -j1
-	else
-		cmake_src_test
-	fi
-}

diff --git a/dev-libs/oneDNN/oneDNN-3.4.ebuild b/dev-libs/oneDNN/oneDNN-3.4.ebuild
deleted file mode 100644
index f63e938f040c..000000000000
--- a/dev-libs/oneDNN/oneDNN-3.4.ebuild
+++ /dev/null
@@ -1,133 +0,0 @@
-# Copyright 2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DOCS_BUILDER="doxygen"
-DOCS_DIR="${WORKDIR}/${P}_build"
-
-# oneDNN has its own FindBLAS.cmake file to find MKL (in a non-standard way).
-# Removing of CMake modules is disabled.
-CMAKE_REMOVE_MODULES_LIST=( none )
-
-# There is additional sphinx documentation but we are missing dependency doxyrest.
-inherit cmake docs multiprocessing toolchain-funcs
-
-DESCRIPTION="oneAPI Deep Neural Network Library"
-HOMEPAGE="https://github.com/oneapi-src/oneDNN"
-SRC_URI="https://github.com/oneapi-src/oneDNN/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64"
-
-IUSE="test mkl cblas static-libs +openmp"
-
-RESTRICT="!test? ( test )"
-
-DEPEND="
-	mkl? ( sci-libs/mkl )
-	cblas? ( !mkl? ( virtual/cblas ) )
-"
-RDEPEND="${DEPEND}"
-BDEPEND="
-	openmp? (
-		|| (
-			sys-devel/gcc[openmp]
-			sys-devel/clang-runtime[openmp]
-		)
-	)
-"
-
-pkg_pretend() {
-	[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
-}
-
-pkg_setup() {
-	[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
-}
-
-src_configure() {
-	if ! use openmp ; then
-		ewarn "WARNING: oneDNN is being built with sequential runtime."
-		ewarn "Proceeding might lead to highly sub-optimal performance."
-		ewarn "Conside enabling \"openmp\" USE flag."
-	fi
-
-	local mycmakeargs=(
-		-DDNNL_LIBRARY_TYPE=$(usex static-libs STATIC SHARED)
-		-DDNNL_CPU_RUNTIME=$(usex openmp OMP SEQ)
-		-DDNNL_GPU_RUNTIME=NONE
-		-DDNNL_BUILD_EXAMPLES=OFF
-		-DDNNL_BUILD_TESTS="$(usex test)"
-		-DDNNL_ENABLE_CONCURRENT_EXEC=OFF
-		-DDNNL_ENABLE_JIT_PROFILING=ON
-		-DDNNL_ENABLE_ITT_TASKS=ON
-		-DDNNL_ENABLE_PRIMITIVE_CACHE=ON
-		-DDNNL_ENABLE_MAX_CPU_ISA=ON
-		-DDNNL_ENABLE_CPU_ISA_HINTS=ON
-		-DDNNL_ENABLE_WORKLOAD=TRAINING
-		-DDNNL_ENABLE_PRIMITIVE=ALL
-		-DDNNL_ENABLE_PRIMITIVE_GPU_ISA=ALL
-		-DDNNL_EXPERIMENTAL=OFF
-		-DDNNL_VERBOSE=ON
-		-DDNNL_DEV_MODE=OFF
-		-DDNNL_AARCH64_USE_ACL=OFF
-		-DDNNL_GPU_VENDOR=INTEL
-		-DDNNL_LIBRARY_NAME=dnnl
-		-DONEDNN_BUILD_GRAPH=ON
-		-DONEDNN_ENABLE_GRAPH_DUMP=OFF
-		-DONEDNN_EXPERIMENTAL_GRAPH_COMPILER_BACKEND=OFF
-		-DDNNL_ENABLE_PRIMITIVE_CPU_ISA=ALL
-		-DONEDNN_ENABLE_GEMM_KERNELS_ISA=ALL
-		-Wno-dev
-	)
-
-	if use mkl ; then
-		if [ -e "${EPREFIX}"/opt/intel/oneapi/mkl/latest/env/vars.sh ]; then
-			source "${EPREFIX}"/opt/intel/oneapi/mkl/latest/env/vars.sh || die
-		else
-			# bug 923109: sci-libs/mkl-2020.4.304 has no vars.sh, configure it manually
-			export CPATH="${EPREFIX}"/usr/include/mkl
-			export MKLROOT="${EPREFIX}"/usr
-		fi
-
-		mycmakeargs+=( -DDNNL_BLAS_VENDOR=MKL )
-	elif use cblas; then
-		mycmakeargs+=( -DDNNL_BLAS_VENDOR=ANY -DBLA_VENDOR=Generic -DBLAS_LIBRARIES=-lcblas )
-	else
-		mycmakeargs+=( -DDNNL_BLAS_VENDOR=NONE )
-	fi
-
-	cmake_src_configure
-}
-
-src_compile() {
-	cmake_src_compile
-	docs_compile
-}
-
-src_install() {
-	cmake_src_install
-
-	# Correct docdir
-	mv "${ED}/usr/share/doc/dnnl"* "${ED}/usr/share/doc/${PF}" || die
-}
-
-src_test() {
-	local CMAKE_SKIP_TESTS=(
-		# Crashes in sandbox (see #922886 and #923013);
-		# waits for sys-apps/sandbox-2.39 release and stabilization.
-		test_graph_unit_interface
-		test_graph_unit_dnnl_layout_propagator
-		test_graph_unit_dnnl_op_executable
-		test_graph_unit_utils
-	)
-
-	if use openmp ; then
-		# Don't run tests in parallel, each test is already parallelized
-		OMP_NUM_THREADS=$(makeopts_jobs) cmake_src_test -j1
-	else
-		cmake_src_test
-	fi
-}

diff --git a/dev-libs/oneDNN/oneDNN-3.5.ebuild b/dev-libs/oneDNN/oneDNN-3.5.ebuild
deleted file mode 100644
index f63e938f040c..000000000000
--- a/dev-libs/oneDNN/oneDNN-3.5.ebuild
+++ /dev/null
@@ -1,133 +0,0 @@
-# Copyright 2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DOCS_BUILDER="doxygen"
-DOCS_DIR="${WORKDIR}/${P}_build"
-
-# oneDNN has its own FindBLAS.cmake file to find MKL (in a non-standard way).
-# Removing of CMake modules is disabled.
-CMAKE_REMOVE_MODULES_LIST=( none )
-
-# There is additional sphinx documentation but we are missing dependency doxyrest.
-inherit cmake docs multiprocessing toolchain-funcs
-
-DESCRIPTION="oneAPI Deep Neural Network Library"
-HOMEPAGE="https://github.com/oneapi-src/oneDNN"
-SRC_URI="https://github.com/oneapi-src/oneDNN/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64"
-
-IUSE="test mkl cblas static-libs +openmp"
-
-RESTRICT="!test? ( test )"
-
-DEPEND="
-	mkl? ( sci-libs/mkl )
-	cblas? ( !mkl? ( virtual/cblas ) )
-"
-RDEPEND="${DEPEND}"
-BDEPEND="
-	openmp? (
-		|| (
-			sys-devel/gcc[openmp]
-			sys-devel/clang-runtime[openmp]
-		)
-	)
-"
-
-pkg_pretend() {
-	[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
-}
-
-pkg_setup() {
-	[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
-}
-
-src_configure() {
-	if ! use openmp ; then
-		ewarn "WARNING: oneDNN is being built with sequential runtime."
-		ewarn "Proceeding might lead to highly sub-optimal performance."
-		ewarn "Conside enabling \"openmp\" USE flag."
-	fi
-
-	local mycmakeargs=(
-		-DDNNL_LIBRARY_TYPE=$(usex static-libs STATIC SHARED)
-		-DDNNL_CPU_RUNTIME=$(usex openmp OMP SEQ)
-		-DDNNL_GPU_RUNTIME=NONE
-		-DDNNL_BUILD_EXAMPLES=OFF
-		-DDNNL_BUILD_TESTS="$(usex test)"
-		-DDNNL_ENABLE_CONCURRENT_EXEC=OFF
-		-DDNNL_ENABLE_JIT_PROFILING=ON
-		-DDNNL_ENABLE_ITT_TASKS=ON
-		-DDNNL_ENABLE_PRIMITIVE_CACHE=ON
-		-DDNNL_ENABLE_MAX_CPU_ISA=ON
-		-DDNNL_ENABLE_CPU_ISA_HINTS=ON
-		-DDNNL_ENABLE_WORKLOAD=TRAINING
-		-DDNNL_ENABLE_PRIMITIVE=ALL
-		-DDNNL_ENABLE_PRIMITIVE_GPU_ISA=ALL
-		-DDNNL_EXPERIMENTAL=OFF
-		-DDNNL_VERBOSE=ON
-		-DDNNL_DEV_MODE=OFF
-		-DDNNL_AARCH64_USE_ACL=OFF
-		-DDNNL_GPU_VENDOR=INTEL
-		-DDNNL_LIBRARY_NAME=dnnl
-		-DONEDNN_BUILD_GRAPH=ON
-		-DONEDNN_ENABLE_GRAPH_DUMP=OFF
-		-DONEDNN_EXPERIMENTAL_GRAPH_COMPILER_BACKEND=OFF
-		-DDNNL_ENABLE_PRIMITIVE_CPU_ISA=ALL
-		-DONEDNN_ENABLE_GEMM_KERNELS_ISA=ALL
-		-Wno-dev
-	)
-
-	if use mkl ; then
-		if [ -e "${EPREFIX}"/opt/intel/oneapi/mkl/latest/env/vars.sh ]; then
-			source "${EPREFIX}"/opt/intel/oneapi/mkl/latest/env/vars.sh || die
-		else
-			# bug 923109: sci-libs/mkl-2020.4.304 has no vars.sh, configure it manually
-			export CPATH="${EPREFIX}"/usr/include/mkl
-			export MKLROOT="${EPREFIX}"/usr
-		fi
-
-		mycmakeargs+=( -DDNNL_BLAS_VENDOR=MKL )
-	elif use cblas; then
-		mycmakeargs+=( -DDNNL_BLAS_VENDOR=ANY -DBLA_VENDOR=Generic -DBLAS_LIBRARIES=-lcblas )
-	else
-		mycmakeargs+=( -DDNNL_BLAS_VENDOR=NONE )
-	fi
-
-	cmake_src_configure
-}
-
-src_compile() {
-	cmake_src_compile
-	docs_compile
-}
-
-src_install() {
-	cmake_src_install
-
-	# Correct docdir
-	mv "${ED}/usr/share/doc/dnnl"* "${ED}/usr/share/doc/${PF}" || die
-}
-
-src_test() {
-	local CMAKE_SKIP_TESTS=(
-		# Crashes in sandbox (see #922886 and #923013);
-		# waits for sys-apps/sandbox-2.39 release and stabilization.
-		test_graph_unit_interface
-		test_graph_unit_dnnl_layout_propagator
-		test_graph_unit_dnnl_op_executable
-		test_graph_unit_utils
-	)
-
-	if use openmp ; then
-		# Don't run tests in parallel, each test is already parallelized
-		OMP_NUM_THREADS=$(makeopts_jobs) cmake_src_test -j1
-	else
-		cmake_src_test
-	fi
-}


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-libs/oneDNN/
@ 2024-11-13 19:30 Alfredo Tupone
  0 siblings, 0 replies; 9+ messages in thread
From: Alfredo Tupone @ 2024-11-13 19:30 UTC (permalink / raw
  To: gentoo-commits

commit:     3df4ba8e685b3930a382e5f46688a52513a88fc9
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 13 19:29:24 2024 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Wed Nov 13 19:29:45 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3df4ba8e

dev-libs/oneDNN: add 3.6.1

Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 dev-libs/oneDNN/Manifest            |   1 +
 dev-libs/oneDNN/oneDNN-3.6.1.ebuild | 133 ++++++++++++++++++++++++++++++++++++
 2 files changed, 134 insertions(+)

diff --git a/dev-libs/oneDNN/Manifest b/dev-libs/oneDNN/Manifest
index 95c53cbd37f2..bb7d0033fc9b 100644
--- a/dev-libs/oneDNN/Manifest
+++ b/dev-libs/oneDNN/Manifest
@@ -1 +1,2 @@
 DIST oneDNN-3.5.2.tar.gz 13190514 BLAKE2B 4d274fcdc9d30de4df5d6c949932e65f1ddefa56d96ec87c60aee2122cd8f250bbe6dfffb329ca9e413dd13fdb5478d3470076f0913cc53b1d418a2997f88377 SHA512 80b6eda44fc600eff8b98ce58937b98440ab3cf18e0022df366e417189ae42e722e6b11f9c2c01049313bd9d3f7e74eff8efc6ac8590b602d16b32265dd74578
+DIST oneDNN-3.6.1.tar.gz 13786059 BLAKE2B 399f9213614527eea93e12d53b37cbf6199c9da6308a4ea7c1a73b6759a9e3e81a25daa9582ae8d2bb4423501c3536ff59adafbe686ccf311e1794ef6394c09b SHA512 5d505b20cb81aad48995c53456277bb6bf96454aadb882093b9e655a4a8130fde0bfdd56740c8a1af6ed9217feb0eb58aabdb7d819728264e342c7b184562596

diff --git a/dev-libs/oneDNN/oneDNN-3.6.1.ebuild b/dev-libs/oneDNN/oneDNN-3.6.1.ebuild
new file mode 100644
index 000000000000..f63e938f040c
--- /dev/null
+++ b/dev-libs/oneDNN/oneDNN-3.6.1.ebuild
@@ -0,0 +1,133 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DOCS_BUILDER="doxygen"
+DOCS_DIR="${WORKDIR}/${P}_build"
+
+# oneDNN has its own FindBLAS.cmake file to find MKL (in a non-standard way).
+# Removing of CMake modules is disabled.
+CMAKE_REMOVE_MODULES_LIST=( none )
+
+# There is additional sphinx documentation but we are missing dependency doxyrest.
+inherit cmake docs multiprocessing toolchain-funcs
+
+DESCRIPTION="oneAPI Deep Neural Network Library"
+HOMEPAGE="https://github.com/oneapi-src/oneDNN"
+SRC_URI="https://github.com/oneapi-src/oneDNN/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+IUSE="test mkl cblas static-libs +openmp"
+
+RESTRICT="!test? ( test )"
+
+DEPEND="
+	mkl? ( sci-libs/mkl )
+	cblas? ( !mkl? ( virtual/cblas ) )
+"
+RDEPEND="${DEPEND}"
+BDEPEND="
+	openmp? (
+		|| (
+			sys-devel/gcc[openmp]
+			sys-devel/clang-runtime[openmp]
+		)
+	)
+"
+
+pkg_pretend() {
+	[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+pkg_setup() {
+	[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+src_configure() {
+	if ! use openmp ; then
+		ewarn "WARNING: oneDNN is being built with sequential runtime."
+		ewarn "Proceeding might lead to highly sub-optimal performance."
+		ewarn "Conside enabling \"openmp\" USE flag."
+	fi
+
+	local mycmakeargs=(
+		-DDNNL_LIBRARY_TYPE=$(usex static-libs STATIC SHARED)
+		-DDNNL_CPU_RUNTIME=$(usex openmp OMP SEQ)
+		-DDNNL_GPU_RUNTIME=NONE
+		-DDNNL_BUILD_EXAMPLES=OFF
+		-DDNNL_BUILD_TESTS="$(usex test)"
+		-DDNNL_ENABLE_CONCURRENT_EXEC=OFF
+		-DDNNL_ENABLE_JIT_PROFILING=ON
+		-DDNNL_ENABLE_ITT_TASKS=ON
+		-DDNNL_ENABLE_PRIMITIVE_CACHE=ON
+		-DDNNL_ENABLE_MAX_CPU_ISA=ON
+		-DDNNL_ENABLE_CPU_ISA_HINTS=ON
+		-DDNNL_ENABLE_WORKLOAD=TRAINING
+		-DDNNL_ENABLE_PRIMITIVE=ALL
+		-DDNNL_ENABLE_PRIMITIVE_GPU_ISA=ALL
+		-DDNNL_EXPERIMENTAL=OFF
+		-DDNNL_VERBOSE=ON
+		-DDNNL_DEV_MODE=OFF
+		-DDNNL_AARCH64_USE_ACL=OFF
+		-DDNNL_GPU_VENDOR=INTEL
+		-DDNNL_LIBRARY_NAME=dnnl
+		-DONEDNN_BUILD_GRAPH=ON
+		-DONEDNN_ENABLE_GRAPH_DUMP=OFF
+		-DONEDNN_EXPERIMENTAL_GRAPH_COMPILER_BACKEND=OFF
+		-DDNNL_ENABLE_PRIMITIVE_CPU_ISA=ALL
+		-DONEDNN_ENABLE_GEMM_KERNELS_ISA=ALL
+		-Wno-dev
+	)
+
+	if use mkl ; then
+		if [ -e "${EPREFIX}"/opt/intel/oneapi/mkl/latest/env/vars.sh ]; then
+			source "${EPREFIX}"/opt/intel/oneapi/mkl/latest/env/vars.sh || die
+		else
+			# bug 923109: sci-libs/mkl-2020.4.304 has no vars.sh, configure it manually
+			export CPATH="${EPREFIX}"/usr/include/mkl
+			export MKLROOT="${EPREFIX}"/usr
+		fi
+
+		mycmakeargs+=( -DDNNL_BLAS_VENDOR=MKL )
+	elif use cblas; then
+		mycmakeargs+=( -DDNNL_BLAS_VENDOR=ANY -DBLA_VENDOR=Generic -DBLAS_LIBRARIES=-lcblas )
+	else
+		mycmakeargs+=( -DDNNL_BLAS_VENDOR=NONE )
+	fi
+
+	cmake_src_configure
+}
+
+src_compile() {
+	cmake_src_compile
+	docs_compile
+}
+
+src_install() {
+	cmake_src_install
+
+	# Correct docdir
+	mv "${ED}/usr/share/doc/dnnl"* "${ED}/usr/share/doc/${PF}" || die
+}
+
+src_test() {
+	local CMAKE_SKIP_TESTS=(
+		# Crashes in sandbox (see #922886 and #923013);
+		# waits for sys-apps/sandbox-2.39 release and stabilization.
+		test_graph_unit_interface
+		test_graph_unit_dnnl_layout_propagator
+		test_graph_unit_dnnl_op_executable
+		test_graph_unit_utils
+	)
+
+	if use openmp ; then
+		# Don't run tests in parallel, each test is already parallelized
+		OMP_NUM_THREADS=$(makeopts_jobs) cmake_src_test -j1
+	else
+		cmake_src_test
+	fi
+}


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-libs/oneDNN/
@ 2024-12-10 13:27 Alfredo Tupone
  0 siblings, 0 replies; 9+ messages in thread
From: Alfredo Tupone @ 2024-12-10 13:27 UTC (permalink / raw
  To: gentoo-commits

commit:     3e9b4bf906b164566e88e17b76b37030fd83240d
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 10 13:26:34 2024 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Tue Dec 10 13:27:07 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e9b4bf9

dev-libs/oneDNN: enable ukernel

Closes: https://bugs.gentoo.org/945391
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 dev-libs/oneDNN/Manifest                                     | 4 ++--
 dev-libs/oneDNN/{oneDNN-3.5.2.ebuild => oneDNN-3.5.3.ebuild} | 1 +
 dev-libs/oneDNN/{oneDNN-3.6.1.ebuild => oneDNN-3.6.2.ebuild} | 3 ++-
 3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/dev-libs/oneDNN/Manifest b/dev-libs/oneDNN/Manifest
index bb7d0033fc9b..b23ffdd083aa 100644
--- a/dev-libs/oneDNN/Manifest
+++ b/dev-libs/oneDNN/Manifest
@@ -1,2 +1,2 @@
-DIST oneDNN-3.5.2.tar.gz 13190514 BLAKE2B 4d274fcdc9d30de4df5d6c949932e65f1ddefa56d96ec87c60aee2122cd8f250bbe6dfffb329ca9e413dd13fdb5478d3470076f0913cc53b1d418a2997f88377 SHA512 80b6eda44fc600eff8b98ce58937b98440ab3cf18e0022df366e417189ae42e722e6b11f9c2c01049313bd9d3f7e74eff8efc6ac8590b602d16b32265dd74578
-DIST oneDNN-3.6.1.tar.gz 13786059 BLAKE2B 399f9213614527eea93e12d53b37cbf6199c9da6308a4ea7c1a73b6759a9e3e81a25daa9582ae8d2bb4423501c3536ff59adafbe686ccf311e1794ef6394c09b SHA512 5d505b20cb81aad48995c53456277bb6bf96454aadb882093b9e655a4a8130fde0bfdd56740c8a1af6ed9217feb0eb58aabdb7d819728264e342c7b184562596
+DIST oneDNN-3.5.3.tar.gz 13190748 BLAKE2B 04ad0a6c6edeb1d356397bcd25cb77aaa2be00ea8eed343cd088e400b10fb3d7f7658ed35797f16dbe8434fb9a2bf2c715def7a8e749271ea2c911957f9e98fc SHA512 251da59164c102a6dd3c97e92aef58a879930c0def6e9fe6e43e68e1316ed0c9844796e69eecebbde12085900bfcda6c1ab30db6df24ba9826883171c87a964d
+DIST oneDNN-3.6.2.tar.gz 13788211 BLAKE2B bc6039d24b33ac5a3f362d161b7dddbeb3f6b2b865175a1eecf66bb199d641d017b4036f7cfa18740302c96d06b2ed8d210de922136924edc309434731b16f36 SHA512 b45b6ae398ac33fdb79415395865bc34e0af35995015154df82a434bf5dc7a6ae126fb52cefc264b6abab04b2da5d60f6325f47052fa9430650c77dd54e612f6

diff --git a/dev-libs/oneDNN/oneDNN-3.5.2.ebuild b/dev-libs/oneDNN/oneDNN-3.5.3.ebuild
similarity index 99%
rename from dev-libs/oneDNN/oneDNN-3.5.2.ebuild
rename to dev-libs/oneDNN/oneDNN-3.5.3.ebuild
index f63e938f040c..ad599be711f2 100644
--- a/dev-libs/oneDNN/oneDNN-3.5.2.ebuild
+++ b/dev-libs/oneDNN/oneDNN-3.5.3.ebuild
@@ -73,6 +73,7 @@ src_configure() {
 		-DDNNL_VERBOSE=ON
 		-DDNNL_DEV_MODE=OFF
 		-DDNNL_AARCH64_USE_ACL=OFF
+		-DDNNL_EXPERIMENTAL_UKERNEL=ON
 		-DDNNL_GPU_VENDOR=INTEL
 		-DDNNL_LIBRARY_NAME=dnnl
 		-DONEDNN_BUILD_GRAPH=ON

diff --git a/dev-libs/oneDNN/oneDNN-3.6.1.ebuild b/dev-libs/oneDNN/oneDNN-3.6.2.ebuild
similarity index 97%
rename from dev-libs/oneDNN/oneDNN-3.6.1.ebuild
rename to dev-libs/oneDNN/oneDNN-3.6.2.ebuild
index f63e938f040c..c4248544fd56 100644
--- a/dev-libs/oneDNN/oneDNN-3.6.1.ebuild
+++ b/dev-libs/oneDNN/oneDNN-3.6.2.ebuild
@@ -23,7 +23,7 @@ KEYWORDS="~amd64"
 
 IUSE="test mkl cblas static-libs +openmp"
 
-RESTRICT="!test? ( test )"
+RESTRICT="test" # Some test are very long to execute
 
 DEPEND="
 	mkl? ( sci-libs/mkl )
@@ -73,6 +73,7 @@ src_configure() {
 		-DDNNL_VERBOSE=ON
 		-DDNNL_DEV_MODE=OFF
 		-DDNNL_AARCH64_USE_ACL=OFF
+		-DDNNL_EXPERIMENTAL_UKERNEL=ON
 		-DDNNL_GPU_VENDOR=INTEL
 		-DDNNL_LIBRARY_NAME=dnnl
 		-DONEDNN_BUILD_GRAPH=ON


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-12-10 13:27 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-13 19:30 [gentoo-commits] repo/gentoo:master commit in: dev-libs/oneDNN/ Alfredo Tupone
  -- strict thread matches above, loose matches on Subject: below --
2024-12-10 13:27 Alfredo Tupone
2024-11-13 19:03 Alfredo Tupone
2024-07-27  9:52 Alfredo Tupone
2024-06-15 16:00 Alfredo Tupone
2024-06-03  6:23 Alfredo Tupone
2024-03-08 22:15 Alfredo Tupone
2024-02-16 17:53 Alfredo Tupone
2024-02-16 17:53 Alfredo Tupone

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox