dflemin3 / approxposterior

A Python package for approximate Bayesian inference and optimization using Gaussian processes
https://dflemin3.github.io/approxposterior/
MIT License
41 stars 9 forks source link

Setting nCores < 0 tells code to use all usable codes #30

Closed dflemin3 closed 5 years ago

dflemin3 commented 5 years ago

All usable cores are computed according to len(os.sched_getaffinity(0)) as suggested by https://docs.python.org/3/library/multiprocessing.html#multiprocessing.cpu_count.