Why am I getting this error "OMP: Error #15: Initializing libiomp5.so, but found libguide.so already initialized"?
Posted by Victor Lee on 27 July 2015 04:39 PM

This error usually happens if the "KMP_DUPLICATE_LIB_OK" environmental variable is not correctly set. You can solve this by following these steps:

On Windows:

  • Go to the Control Panel and double click on System. 
  • Then, select the Advanced tab in the System Properties window. 
  • Click Environmental Variables at the bottom of the dialog box, and in the System Variables section, click New. 
  • Enter the variable name KMP_DUPLICATE_LIB_OK (name must contain capital letters and underscores).  
  • Enter the variable value TRUE and click OK.  
  • Click OK to close Environmental Variables, and click OK again to close System Properties.

On Linux:

  • Set the environment variable:  
  • export KMP_DUPLICATE_LIB_OK=TRUE or in csh, setenv KMP_DUPLICATE_LIB_OK TRUE
(3 vote(s))
Helpful
Not helpful

Comments (0)