QMCPACK / miniqmc

QMCPACK miniapp: a simplified real space QMC code for algorithm development, performance portability testing, and computer science experiments
Other
26 stars 34 forks source link

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

Open stephan-rohr opened 12 months ago

stephan-rohr commented 12 months ago

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.