-
Notifications
You must be signed in to change notification settings - Fork 184
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
MXNet slowdown -- OpenBLAS hidden by another BLAS library again? #5528
Comments
A new Issue was created by @hqucms Huilin Qu. @Dr15Jones, @smuzaffar, @silviodonato, @makortel, @davidlange6, @fabiocos can you please review it and eventually sign/assign? Thanks. cms-bot commands are listed here |
I'll remove lapack but would you write me a short example of how to test the performance ? |
@hqucms , both of these tools (photospline and suitesparse) are not part of cmssw distribution. None of our externals are using lapack so yes we can drop it. I think the issue is with GSL BLAS which is linked in many externals and CMSSW libs. @mrodozov , please make a PR to drop photospline and suitesparse |
@mrodozov Thank you very much! Currently we don't have any module in CMSSW using MXNet. For performance test maybe you can use cms-sw/cmssw#28902 + cms-data/RecoBTag-Combined#26 and run:
When OpenBLAS is used one should get something similar to
instead of
|
@smuzaffar You are right:
And
Looks like we need to make ROOT use openblas instead of gslblas? |
problem is now cmake GSL module which explicitly search for gslcblas [a]. I have fixed it by setting GSL_CBLAS_LIBRARY pointing to openblas lib. I will make a PR with this change + cleanup of lapack. [a]
|
#5540 should fix the issue |
Thank you very much, @smuzaffar ! |
Similar as cms-sw/cmssw#25230 (comment). MXNet is slow in the latest IB while using
LD_PRELOAD
to load OpenBLAS recovers the speed.A quick search in cmsdist seems to point to https://github.com/cms-sw/cmsdist/blob/IB/CMSSW_11_1_X/master/photospline.spec#L19-L20 and https://github.com/cms-sw/cmsdist/blob/IB/CMSSW_11_1_X/master/suitesparse.spec#L10. Could we change them to build w/ OpenBLAS?
Actually should we consider removing
lapack
? OpenBLAS contains a full lapack package w/ some of the functions optimized, so it seems that the plain lapack package should not be needed anymore.The text was updated successfully, but these errors were encountered: