Summary
The CMake logics set MKL_LINK to static when building for Windows:
|
if(BUILD_SHARED_LIBS AND NOT WIN32) |
|
set(MKL_LINK dynamic) |
|
else() |
|
set(MKL_LINK static) |
|
endif() |
This creates a large library on Windows of around 100MB, whereas on Linux with dynamic linking it is around 3MB for the blas domain for instance. This is not practical to integrate in other applications.
I am wondering if someone from @uxlfoundation/onemath-arch-write know why this is the case? Would there be any risk to switch to linking Intel oneMKL dynamically today?
Version
It looks like this was introduced in c3c85db9
Pinging @mkrainiuk in case you have more context.
Environment
The issue happens on Windows with the Intel oneMKL backends.
Summary
The CMake logics set
MKL_LINKtostaticwhen building for Windows:oneMath/CMakeLists.txt
Lines 231 to 235 in c3c85db
This creates a large library on Windows of around 100MB, whereas on Linux with dynamic linking it is around 3MB for the blas domain for instance. This is not practical to integrate in other applications.
I am wondering if someone from @uxlfoundation/onemath-arch-write know why this is the case? Would there be any risk to switch to linking Intel oneMKL dynamically today?
Version
It looks like this was introduced in c3c85db9
Pinging @mkrainiuk in case you have more context.
Environment
The issue happens on Windows with the Intel oneMKL backends.