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

Remove OMP_NUM_THREADS if set to empty #8917

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mrocklin
Copy link
Member

Generally though, sometimes our use of OMP_NUM_THREADS makes other systems sad. It's unfortunately somewhat difficult to turn off. A common approach is that people set OMP_NUM_THREADS="" but this doesn't properly unset things.

I'm curious if an approach like this would be helpful.

There might be a cleaner way to do this, and this might be a bad idea. Please feel free to reject. It was just easy to put this up as a PR.

@ntabris would something like this make your life easier? @fjetter is this not dumb?

Generally though, sometimes our use of OMP_NUM_THREADS makes other
systems sad.  It's unfortunately somewhat difficult to turn off.  A
common approach is that people set `OMP_NUM_THREADS=""` but this doesn't
properly unset things.

I'm curious if an approach like this would be helpful.

There might be a cleaner way to do this, and this might be a bad idea.
Please feel free to reject.  It was just easy to put this up as a PR.
@ntabris
Copy link
Contributor

ntabris commented Oct 29, 2024

would something like this make your life easier?

Not anytime soon but seems like a positive change to me.

Copy link
Contributor

Unit Test Results

See test report for an extended history of previous test failures. This is useful for diagnosing flaky tests.

    25 files  ± 0      25 suites  ±0   10h 21m 20s ⏱️ + 7m 36s
 4 129 tests + 1   4 015 ✅ +1    110 💤 ±0   4 ❌ ± 0 
47 680 runs  +12  45 574 ✅ +1  2 088 💤 ±0  18 ❌ +11 

For more details on these failures, see this check.

Results for commit e8d9b81. ± Comparison against base commit 2953090.

@fjetter
Copy link
Member

fjetter commented Oct 30, 2024

No objections. It appears to not be working, though. The test is failing (linter is also off)

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

Successfully merging this pull request may close these issues.

3 participants