pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
py-joblib: Improve patch documentation
Module Name: pkgsrc-wip
Committed By: Jason W. Bacon <bacon%NetBSD.org@localhost>
Pushed By: outpaddling
Date: Fri Jan 5 09:17:51 2024 -0600
Changeset: 1af02d6905d6e38cbb218d2938d05bfe1938c107
Modified Files:
py-joblib/distinfo
py-joblib/patches/patch-joblib_externals_loky_backend_context.py
Log Message:
py-joblib: Improve patch documentation
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=1af02d6905d6e38cbb218d2938d05bfe1938c107
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
py-joblib/distinfo | 2 +-
.../patches/patch-joblib_externals_loky_backend_context.py | 12 +++++++-----
2 files changed, 8 insertions(+), 6 deletions(-)
diffs:
diff --git a/py-joblib/distinfo b/py-joblib/distinfo
index 03fa99094f..3d6941c97f 100644
--- a/py-joblib/distinfo
+++ b/py-joblib/distinfo
@@ -3,4 +3,4 @@ $NetBSD: distinfo,v 1.17 2023/11/03 10:35:53 adam Exp $
BLAKE2s (joblib-1.3.2.tar.gz) = 6f3ff669b1222cd1bb387d989b636936fc17a8b01c5ea27d98f6ee2405f8aae5
SHA512 (joblib-1.3.2.tar.gz) = 9b5acba1321351cf2ae548161ced18774b8b316aaf883cc8e77bf58898d1913361a3845d64f1f1f87e4e2394eafd92e0a6a8d67947db0c9a95a40e5f579baae6
Size (joblib-1.3.2.tar.gz) = 1987720 bytes
-SHA1 (patch-joblib_externals_loky_backend_context.py) = bfda1b3af5951e98e2226622b0072ac12057e4a2
+SHA1 (patch-joblib_externals_loky_backend_context.py) = cc11198188de6701bdb5c6ce699eccb6e4eb01df
diff --git a/py-joblib/patches/patch-joblib_externals_loky_backend_context.py b/py-joblib/patches/patch-joblib_externals_loky_backend_context.py
index ea30e36ead..8e403c7dc0 100644
--- a/py-joblib/patches/patch-joblib_externals_loky_backend_context.py
+++ b/py-joblib/patches/patch-joblib_externals_loky_backend_context.py
@@ -4,16 +4,17 @@ $NetBSD$
--- joblib/externals/loky/backend/context.py.orig 2023-06-29 15:14:21.000000000 +0000
+++ joblib/externals/loky/backend/context.py
-@@ -245,6 +245,8 @@ def _count_physical_cores():
+@@ -245,6 +245,9 @@ def _count_physical_cores():
return physical_cores_cache, exception
# Not cached yet, find it
+ # Using subprocesses is inefficient, but python has no portable
+ # sysctl interface at this time
++ # FIXME: Add OpenBSD, Dragonfly
try:
if sys.platform == "linux":
cpu_info = subprocess.run(
-@@ -274,6 +276,25 @@ def _count_physical_cores():
+@@ -274,6 +277,26 @@ def _count_physical_cores():
)
cpu_info = cpu_info.stdout
cpu_count_physical = int(cpu_info)
@@ -26,9 +27,10 @@ $NetBSD$
+ cpu_info = cpu_info.stdout
+ cpu_count_physical = int(cpu_info)
+ elif sys.platform.startswith('netbsd'):
-+ # FIXME: This reports the number of hyperthreads
-+ # We want independent cores to prevent oversubscription
-+ # FIXME: Add OpenBSD, Dragonfly (probably the same as FreeBSD)
++ # FIXME: hw.ncpu reports the number of hyperthreads.
++ # We prefer independent cores to prevent oversubscription.
++ # NetBSD does not currently expose physical core counts,
++ # but this is under discussion in PR kern/57816.
+ cpu_info = subprocess.run(
+ "sysctl -n hw.ncpu".split(),
+ capture_output=True,
Home |
Main Index |
Thread Index |
Old Index