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 » March 15 2024

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: 1945
Joined: September 23 2004
Affiliation: University of Sussex
Contact:

Re: CAMB: CPU usage problem

Post by Antony Lewis » March 18 2024

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

Post Reply