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

CAMB: CPU usage problem

Post by Jiachen Bai »


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.

Antony Lewis
Posts: 1959
Joined: September 23 2004
Affiliation: University of Sussex

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