Skip to content

Add basic NetBSD support.#315

Open
0-wiz-0 wants to merge 2 commits into
pytorch:mainfrom
0-wiz-0:main
Open

Add basic NetBSD support.#315
0-wiz-0 wants to merge 2 commits into
pytorch:mainfrom
0-wiz-0:main

Conversation

@0-wiz-0

@0-wiz-0 0-wiz-0 commented Aug 5, 2025

Copy link
Copy Markdown

Based on FreeBSD support.

Based on FreeBSD support.
@meta-cla meta-cla Bot added the cla signed label Aug 5, 2025
Comment thread src/freebsd/topology.c
/* more details need active identification of the CPU, no sysctl available */
/* TODO: improve */
topology.threads = topology.cores;
topology.packages = 1;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this use the FreeBSD method instead?

@0-wiz-0

0-wiz-0 commented Aug 10, 2025

Copy link
Copy Markdown
Author

No, the sysctl's that FreeBSD has in this area just do not exist on NetBSD. See https://man.netbsd.org/sysctl.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants