CAMB: CPU usage problem

Use of Cobaya. camb, CLASS, cosmomc, compilers, etc.
Post Reply
Jiachen Bai
Posts: 1
Joined: August 23 2023
Affiliation: Beijing Normal University
Contact:

CAMB: CPU usage problem

Post 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
Antony Lewis
Posts: 1984
Joined: September 23 2004
Affiliation: University of Sussex
Contact:

Re: CAMB: CPU usage problem

Post by Antony Lewis »

You can set camb.config.TheadNum (or set OMP_NUM_THREADS env more generally).
Post Reply