<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Dear all,</p>
<p>I'm trying to get openmp to work with llvm, either with static compiler or with jit, however with no success. </p>
<p>I've followed this:</p>
<p><a href="http://blog.llvm.org/2015/05/openmp-support_22.html" id="LPlnk798729">http://blog.llvm.org/2015/05/openmp-support_22.html</a></p>
<div id="LPBorder_GT_14485762871430.09073186968453228" style="margin-top: 20px; margin-bottom: 20px; overflow: auto; width: 100%;">
<table id="LPContainer_14485762871380.08584886277094483" style="border-top-color: rgb(204, 204, 204); border-top-width: 1px; border-top-style: solid; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(204, 204, 204); width: 80%; position: relative; overflow: auto; background-color: rgb(255, 255, 255);">
<tbody>
<tr valign="top" style="border-spacing: 0px;">
<td id="ImageCell_14485762871410.022185927256941795" colspan="1" style="width: 250px; position: relative; display: table-cell; padding-right: 20px;">
<div id="LPImageContainer_14485762871410.7671231885906309" style="margin-top: 12px; height: 140px; width: 140px; position: relative; padding: 0px; display: table; background-color: rgb(255, 255, 255);">
<a id="LPImageAnchor_14485762871410.18620977434329689" href="http://blog.llvm.org/2015/05/openmp-support_22.html" target="_blank" style="display: table-cell; text-align: center;"><img aria-label="Preview image with link selected. Double-tap to open the link." style="display: inline-block; margin-left: auto; margin-right: auto; max-width: 250px; max-height: 250px; height: 136px; width: 136px; border-width: 0px;" width="136" height="136" src="http://llvm.org/img/DragonSmall.png"></a></div>
</td>
<td>
<div id="LPTitle_14485762871420.4512006838340312" style="top: 0px; margin-top: 8px; font-size: 21px; font-family: wf_segoe-ui_semilight, 'Segoe UI Semilight', 'Segoe WP Semilight', 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif; color: rgb(51, 51, 51); margin-left: 14px; margin-right: 14px;">
LLVM Project Blog: OpenMP Support</div>
<div id="LPDescription_14485762871420.955250617582351" style="margin-top: 8px; font-size: 13px; font-family: wf_segoe-ui_normal, 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif; color: rgb(102, 102, 102); margin-left: 14px; margin-right: 14px;">
OpenMP support in Clang compiler is completed! Every pragma and clause from 3.1 version of the standard is supported in full, including combined directives (like ‘# ...</div>
<div id="LPUrlContainer_14485762871420.25108576170168817" style="margin: 8px 14px 10px; height: 18px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap;">
<a id="LPUrlAnchor_14485762871420.2089934644754976" href="http://blog.llvm.org/2015/05/openmp-support_22.html" target="_blank" style="font-size: 11px; font-family: wf_segoe-ui_normal, 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif; text-decoration: none;">Read
 more...</a></div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<br>
<p></p>
<p>In case of static compilation, I always get 1 thread.</p>
<p>In case of jit, I get this error:</p>
<p></p>
<div>LLVM ERROR: Program used external function 'omp_set_num_threads' which could not be resolved!</div>
<div><br>
</div>
However, my code works just fine with g++.
<p></p>
<p>Any help is appreciated.</p>
<p><br>
</p>
<div id="Signature">
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<div class="BodyFragment"><font size="2"><span style="font-size:10pt">
<div class="PlainText">Regards,<br>
Marwa Yusuf<br>
Teaching Assistant - Computer Engineering Department<br>
Faculty of Engineering - Benha University<br>
E-JUST PhD Student<br>
Computer Science & Engineering Dept.</div>
</span></font></div>
</div>
</div>
</div>
</body>
</html>