Bug 268011 - sysutils/parallel: Wrong --number-of-cores
Summary: sysutils/parallel: Wrong --number-of-cores
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-27 12:10 UTC by Jason W. Bacon
Modified: 2023-12-25 09:19 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (sunpoet)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jason W. Bacon freebsd_committer freebsd_triage 2022-11-27 12:10:17 UTC
Running on a Dell PowerEdge R420 with 16 cores, 32 hyperthreads:

FreeBSD unixdev1.ceas  bacon ~ 1012: parallel --number-of-threads
32

FreeBSD unixdev1.ceas  bacon ~ 1013: parallel --number-of-cores
2

FreeBSD unixdev1.ceas  bacon ~ 1014: sysctl hw.ncpu
hw.ncpu: 32

--number-of-cores should be reporting 16.  I poked around the source code a little, but I'm not much of a Perl guru.
Comment 1 commit-hook freebsd_committer freebsd_triage 2023-12-25 09:12:42 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=aa469725eb9acf665d738ca24ce02730a459eddb

commit aa469725eb9acf665d738ca24ce02730a459eddb
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-12-25 09:03:07 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-12-25 09:03:07 +0000

    sysutils/parallel: Fix --number-of-cores

    - Bump PORTREVISION for package change

    PR:             268011
    Reported by:    jwb

 sysutils/parallel/Makefile                       |  1 +
 sysutils/parallel/files/patch-src-parallel (new) | 18 ++++++++++++++++++
 2 files changed, 19 insertions(+)
Comment 2 Po-Chuan Hsieh freebsd_committer freebsd_triage 2023-12-25 09:19:32 UTC
Committed. Thanks!