Skip to content

Automatically determine the number of CPU Cores #739

Closed
@eholk

Description

@eholk

Instead of getting parallelism via RUST_THREADS, we should, by default, find the number of CPU cores and use that. We should keep RUST_THREADS around though, in case we want to run sequentially in some cases.

This discussion seems to list how to do it on each of the platforms we support: http://stackoverflow.com/questions/150355/programmatically-find-the-number-of-cores-on-a-machine

Metadata

Metadata

Assignees

Labels

E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.I-slowIssue: Problems and improvements with respect to performance of generated code.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions