Comments (3)
The details now escape me :-/ but IIRC this goes back to a tip I got from an Intel engineer from one of their labs -- it may have been in the context of RcppParallel (which uses TBB). I don't recall now - I seem to remember that it was related to using the GNU toolchain (as common in Linux) along with the MKL (rather than Intel's compiler, IIRC).
Edit: Maybe it was this thread: #2. And more here: c6d8d84. I suggest you talk more to Intel.
from mkl4deb.
I think what the script is doing is exactly right, provided that the users are familiar with the peculiarities of MKL threading: changing the default from the multithreaded iomp5 to, multithreaded again, GOMP-based implementation. On the other hand, it may have a surprising effect on performance if someone is using it simply as an alternative to generic single-threaded BLAS libraries. MKL_THREADING_LAYER=sequential
(no automatic multithreading) may potentially be a safer default for the general user for two reasons: (1) it does not load any OMP libraries into the process, so no possible conflicts like in #2 with GCC -fopenmp
, and (2) automatic multithreading with MKL is not necessarily always the best choice.
It's possible that I'm confused, not understanding the intended audience for this script. I was just too impressed with your update-alternatives idea not to read the whole script, and thought maybe sharing this tidbit would be helpful. Again, sorry if you feel I'm just wasting your time.
from mkl4deb.
@kkm000 Thanks for the information, MKL_THREADING_LAYER=sequential
is faster than default is faster than MKL_THREADING_LAYER=GNU
on my machine.
from mkl4deb.
Related Issues (18)
- The script should be part of a Debian package HOT 1
- benchmarkme fails HOT 16
- Can the MKL script be adapted for dnf based fedora systems? HOT 3
- when using "sudo", the linux script does not work HOT 2
- Bumping priority number to > 100 HOT 3
- Translating into duprkit recipe HOT 2
- installation failed behind proxy HOT 1
- script.sh does not affect BLAS/LAPACK library for rocker/r-ver:3.6.1 HOT 4
- Adding MKL support to bioconductor docker HOT 7
- Not working on Ubuntu 20.04 HOT 1
- intel-mkl 2020.0.166-1 no longer has /opt/intel HOT 8
- MKL inconsistent results HOT 1
- segmentation fault HOT 2
- apt install intel-mkl in a non-interactive session HOT 4
- Fixing problems with MKL when using `intel-mkl` HOT 1
- Repository and package are now named `oneapi-mkl` HOT 1
- using MKL with rocker/r-devel HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mkl4deb.