Page 1 of 1

CAMB: CPU usage problem

Posted: March 15 2024
by Jiachen Bai
Hi,

I'm now using CAMB in Python (version--1.3.6).

I found that during usage, CAMB occupies all the CPU resources, even though I haven't made any multithreading settings.
I'm wondering how to limit the CPU usage of CAMB in Python.

Thanks,
Jiachen

Re: CAMB: CPU usage problem

Posted: March 18 2024
by Antony Lewis
You can set camb.config.TheadNum (or set OMP_NUM_THREADS env more generally).