I can try, but it is weird because compiling a simple example of open mp on a .c file requires nothing else than -fopenmp flag.<br><br>I'll give feedback in a second.<br><br><div class="gmail_quote">On Thu, May 20, 2010 at 11:58 PM, Vasilis Liaskovitis <span dir="ltr"><<a href="mailto:vliaskov@gmail.com">vliaskov@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>
I don't know if pd works with openmp.<br>
<br>
For your undefined reference problem, you can try adding "-lgomp" to<br>
your compilation/linking command line.<br>
If that doesn't work, you may also have to point to the exact path of<br>
libgomp.so on your system.<br>
<br>
E.g. on my system I would add this:<br>
-L/usr/lib/gcc/x86_64-linux-gnu/4.3 -lgomp<br>
<br>
hope that helps,<br>
<br>
- Vasilis<br>
<div><div></div><div class="h5"><br>
On Thu, May 20, 2010 at 4:46 PM, Pedro Lopes <<a href="mailto:pedro.lopes@ist.utl.pt">pedro.lopes@ist.utl.pt</a>> wrote:<br>
> I was trying to include pragma comments of OpenMp in a PD external, but it<br>
> does not seem to work for some reason. I tryed to look a bit on the web<br>
> about Pd and parallel code but couldn't find any thing specific about OpenMP<br>
> - does the current architecture of Pd allow parallelization with OpenMP<br>
> directives?<br>
><br>
> I included a simple directive, it compiled with -fopenmp with no error nor<br>
> warnings but in creation time (inside PD):<br>
>>undefined symbol: GOMP_parallel_start<br>
>> dtw<br>
>>... couldn't create<br>
><br>
> I found this [1] and also some references to Miller's conference about the<br>
> topic in Brasil but couldn't figure out exactly if OpenMP is allowed in pd<br>
> external code.<br>
><br>
> best regards,<br>
> Pedro Lopes<br>
><br>
> [1]<br>
> <a href="http://www.eecs.berkeley.edu/%7Edemmel/cs267_Spr10/Lectures/Wessel_Final_ICMC2010.pdf" target="_blank">http://www.eecs.berkeley.edu/~demmel/cs267_Spr10/Lectures/Wessel_Final_ICMC2010.pdf</a><br>
><br>
> --<br>
> Pedro Lopes<br>
> contacto: <a href="mailto:jazz@radiozero.pt">jazz@radiozero.pt</a><br>
> website: <a href="http://web.ist.utl.pt/Pedro.Lopes" target="_blank">http://web.ist.utl.pt/Pedro.Lopes</a><br>
><br>
</div></div>> _______________________________________________<br>
> <a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
> UNSUBSCRIBE and account-management -><br>
> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
><br>
><br>
</blockquote></div><br><br clear="all"><br>-- <br>Pedro Lopes<br>contacto: <a href="mailto:jazz@radiozero.pt">jazz@radiozero.pt</a><br>website: <a href="http://web.ist.utl.pt/Pedro.Lopes">http://web.ist.utl.pt/Pedro.Lopes</a> <br>