Yes, shared is a default state, so that spawned an error.<br>Also, you are right, it is parallel for.<br><br><br><div class="gmail_quote">On Sat, Jun 20, 2009 at 8:14 AM, Hamish <span dir="ltr"><<a href="mailto:hamish_b@yahoo.com">hamish_b@yahoo.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;"><div class="im"><br>
Jyothish Soman wrote:<br>
> I think that will be the parallel<br>
> version of the code given in the link. Sorry, I dont have<br>
> the resources right now to check the validity of the code,<br>
> my laptop is fried, working from a common terminal.<br>
><br>
> Just add -fopenmp flag in the make file for the code<br>
<br>
</div>thanks! small problem- `#pragma for` doesn't take shared() as an arg,<br>
for that do you have to do something like:<br>
#pragma omp parallel for<br>
????<br>
<div class="im"><br>
<br>
> I have a small problem in understanding how the vect variable is<br>
> being declared... in function tcholInv and tcholSolveInv.<br>
<br>
</div>i.e. array used but no space never allocated for it?<br>
looks like a bug to me.<br>
<font color="#888888"><br>
<br>
Hamish<br>
<br>
<br>
<br>
<br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>JYOTHISH SOMAN<br>MS-2008-CS<br>Center for Security, Theory And Algorithm Research (CSTAR)<br>International Institute of Information Technology<br>Hyderabad<br>India<br>
Phone:+91-9966222626<br><a href="http://www.iiit.ac.in/">http://www.iiit.ac.in/</a><br>--------------------------------------------------------------<br>The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man.<br>
George Bernard Shaw<br>--------------------------------------------------------<br><br>