-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
reduce impact of OPENMP #45040
Comments
cms-bot internal usage |
A new Issue was created by @VinInn. @sextonkennedy, @rappoccio, @Dr15Jones, @smuzaffar, @makortel, @antoniovilela can you please review it and eventually sign/assign? Thanks. cms-bot commands are listed here |
assign core |
New categories assigned: core @Dr15Jones,@makortel,@smuzaffar you have been requested to review this Pull request/Issue and eventually sign? Thanks |
For the record, on the new Bergamo machines (2x256 cores), HLT fails with
Now I'm testing if |
It does:
|
cms-sw/cmsdist#9207 proposes to set |
While it is fine as a temporary measure for the HLT, I'm not sure this is what we should do as a general setting. A trivial example of what can go wrong: $ nproc
512
$ export OMP_NUM_THREADS=1
$ nproc
1 |
mmmh, there are certainly applications (e.g. millepede alignment) that need more than 1 thread, see e.g.:
@cms-sw/alca-l2 @henriettepetersen @TomasKello FYI |
may be call to
|
In my opinion NO application should rely on default settings and should properly taylor the number of threads to the task in hands and the environment (as done for edm). Therefore setting
|
For those interested to what others do w/r/t this issue please have a look to this this is for python, still something similar in C++ could become useful in cmssw |
instead of
is most probably more reliable |
From the framework perspective
Regarding XGBoost
|
This seemed relatively easy to do so I gave it a go at #45085. In case the |
as detailed in #44923 cmssw links openmp gcc library and at some point threads are spawn in number of ncpu-1 (for each cmssw thread)
setting
export OMP_NUM_THREADS=1
will make openmp not to spawn any thread (as gomp uses the main thread as thread-0)I suggest to make
export OMP_NUM_THREADS=1
default in scram (or to call the equivalnet API function in cmsRun)The text was updated successfully, but these errors were encountered: