DPEP icon indicating copy to clipboard operation
DPEP copied to clipboard

How do I limit the nr of processors/threads/...?

Open GenieTim opened this issue 1 year ago • 0 comments

I have tried with the following environment variables:

keys = [
            "OMP_NUM_THREADS",
            "MKL_NUM_THREADS",
            "NUMEXPR_NUM_THREADS",
            "OPENBLAS_NUM_THREADS",
            "VECLIB_MAXIMUM_THREADS",
        ]
for key in keys:
            my_env[key] = str(num_procs)
            os.environ[key] = str(num_procs)

but apparently, none of them actually limits the nr of procs spawned by dpnp. What am I missing, how can I limit them to investigate performance effects?

GenieTim avatar Jul 18 '24 18:07 GenieTim