Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GenieTim opened this issue Jul 18, 2024 · 0 comments
Open

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

GenieTim opened this issue Jul 18, 2024 · 0 comments

Comments

@GenieTim
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant