rdicosmo / parmap

Parmap is a minimalistic library allowing to exploit multicore architecture for OCaml programs with minimal modifications.
http://rdicosmo.github.io/parmap/
Other
94 stars 20 forks source link

Optimize setcore on single core systems #98

Closed pinotree closed 3 years ago

pinotree commented 3 years ago

In case the system has only a single core/processor, then attempting to pin is kinda pointless, as the result will not change.

Hence, make the C setcore stub almost a no-op in case there is only one core available.