All needed shared libraries must be visible on all nodes at run time. To achieve this, set the DYLD_LIBRARY_PATH environment variable accordingly.
If Intel® oneAPI Math Kernel Library (oneMKL) is installed only on one node, link statically when building your Intel® oneAPI Math Kernel Library (oneMKL) applications rather than use shared libraries.
The Intel® compilers or GNU compilers can be used to compile a program that uses Intel® oneAPI Math Kernel Library (oneMKL). However, make sure that the MPI implementation and compiler match up correctly.