<html><head></head><body><div class="yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div>Hello,</div><div><br></div><div>I have an issue using OpenMP with Clang 8 under Windows.</div><div>I descried the issue in <span><a href="https://stackoverflow.com/questions/55976484" rel="nofollow" target="_blank">https://stackoverflow.com/questions/55976484</a> and I'd like to describe it here more carefully and specifically.</span></div><div><span><br></span></div><div><span>Let's say I run those 2 commands to compile a simple code:</span></div><div><span><br></span></div><div><div><div>clang-cl  <span>-Xclang -fopenmp -</span>o bla.obj -c bla.c</div><div>clang-cl <span>-Xclang -fopenmp </span>-o bla.exe bla.obj</div></div></div><div><span><br></span></div><div>The linker will link against the supplied libomp.lib (Inside LLVM\lib\).</div><div>Then the resulting EXE file will have the requirement of libomp.dll which isn't supplied in LLVM for Windows installation.</div><div><br></div><div>The OpenMP Dynamic Library supplied with LLVM 8 / Clang 8 for Windows is libiomp5md.dll.</div><div>This is great as this is Intel's OpenMP library.</div><div><br></div><div>Yet they DLL the EXE requires doesn't match the DLL supplied (The EXE requires <span>libomp.dll while the supplied is <span>libiomp5md.dll)</span></span>.</div><div>Since many applications out there use Intel OpenMP library it will be great if instead of having libomp.lib we'll have libiomp5md.lib which requires libiomp5md.dll as supplied.</div><div><br></div><div>I'm sure this incompatibility will be resolved but the most important things is to have Clang compiled applications (And libraries) compiled with OpenMP to be able to run under a host program which already loads libiomp5md library with no conflicts.</div><div><br></div><div><br></div><div>Thank You.</div></div></body></html>