miniqmc icon indicating copy to clipboard operation
miniqmc copied to clipboard

Intel Compiler: workaround if libomp-dev is installed on system.

Open stephan-rohr opened this issue 2 years ago • 0 comments

For intel offload targets, OpenMP initialization is stuck in hanging state if the user has 'libomp-dev' package installed on system. The package adds a symbolic link 'libiomp5.so -> libomp.so'.

The MKL detection from CMake picks up this symbolic link and adds the library to the link line for the miniqmc application.

This patch implements a workaround to just incorporate oneAPI's Library environment into CMake's to supersede the system libraries.

stephan-rohr avatar Jul 25 '23 11:07 stephan-rohr