Open fnrizzi opened 1 year ago
This comment is in progress. Its aims to summarize a bit of MKL history and current status. The idea is to understand how MKL is currently included in the project and how we could improve that:
Links: From the doc: https://github.com/trilinos/Trilinos/blob/master/cmake/TPLs/FindTPLMKL.cmake :
target_compile_options(myapp PUBLIC $<TARGET_PROPERTY:MKL::MKL,INTERFACE_COMPILE_OPTIONS>)
target_include_directories(myapp PUBLIC $<TARGET_PROPERTY:MKL::MKL,INTERFACE_INCLUDE_DIRECTORIES>)
target_link_libraries(myapp PUBLIC $<LINK_ONLY:MKL::MKL>)
From the doc https://en.wikipedia.org/wiki/Math_Kernel_Library :
Recommended way to get MKL on linux ?
Similarly to #7 , the logic for the Intel library MKL needs to be update in the build system to detect the new oneMKL library properly and manage its targets to enable functionalities for both CPU and GPU.