Skip to content

Support num_cpus on FreeBSD #4265

Open
Open
@RalfJung

Description

@RalfJung

Almost all tests pass on FreeBSD now, with the exception of:

FAILURES:
    tests/pass/shims/available-parallelism-miri-num-cpus.rs
    tests/pass/shims/available-parallelism.rs (revision stack)
    tests/pass/shims/available-parallelism.rs (revision tree)

This is caused by a lack of cpuset_getaffinity. We already support a similar function sched_getaffinity -- I don't know how similar the APIs are, though.

Metadata

Metadata

Labels

A-freebsdArea: affects our FreeBSD target supportA-shimsArea: This affects the external function shimsC-enhancementCategory: a PR with an enhancement or an issue tracking an accepted enhancementE-good-first-issueA good way to start contributing, mentoring is available

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions