when using integrated MKL or IPP from Intel compiler, the error dyld:Library not loaded:libiomp5.dylib shows. Adding the right environment variable can solve the problem.
Linker error generated when different parts of a program try to link both the static and dynamic versions of the OpenMP runtime. The solution is to expilcitly call out either a dynamic or static link.
For more complete information about compiler optimizations, see our Optimization Notice.