Skip to content

INFO:numexpr.utils:Note #17

Open
Open
@avnikonenko

Description

@avnikonenko

Hello!
I have an question about NUMEXPR_MAX_THREADS logging info.
During the a3fe run I got this messages:

INFO:numexpr.utils:Note: detected 128 virtual cores but NumExpr set to maximum of 64, check "NUMEXPR_MAX_THREADS" environment variable.
INFO:numexpr.utils:Note: NumExpr detected 128 cores but "NUMEXPR_MAX_THREADS" not set, so enforcing safe limit of 16.
INFO:numexpr.utils:NumExpr defaulting to 16 threads.

I found that if I want to control this behavior I need to set up 2 system variables. Stackoverflow:

import os
os.environ['NUMEXPR_MAX_THREADS'] = '128'
os.environ['NUMEXPR_NUM_THREADS'] = '128'
import a3fe as a3 

It works fine. But the question is to which calculations it applies and what are the most effective values and does it have any effect? I couldn't find any information about it in the documentation.
Could you clarify this for me please?
Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions