<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">Hello, yes this is a known problem. The fix is already on svn trunk but requires testing before it can be released.<br>
-- <br>
Dr. Kshitij Kulshreshtha<br>
<br>
Sent via Mobile Phone.<br><br><div class="gmail_quote">Brad Bell &lt;bradbell@seanet.com&gt; wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

    When I try to <br>
    &nbsp;&nbsp;&nbsp; make install<br>
    ADOL-C-2.2.0&nbsp; with the configure flag<br>
    &nbsp;&nbsp;&nbsp; --with-openmp-flag=-fopenmp<br>
    (which is the OpenMP flag for g++) I get the messages<br>
    &nbsp;&nbsp;&nbsp; Making install in ADOL-C<br>
    &nbsp;&nbsp;&nbsp; Making install in src<br>
    &nbsp;&nbsp;&nbsp; Making install in drivers<br>
    &nbsp;&nbsp;&nbsp; &nbsp; CC&nbsp;&nbsp;&nbsp; drivers.o<br>
    &nbsp;&nbsp;&nbsp; &nbsp; CC&nbsp;&nbsp;&nbsp; driversf.o<br>
    &nbsp;&nbsp;&nbsp; &nbsp; CC&nbsp;&nbsp;&nbsp; odedrivers.o<br>
    &nbsp;&nbsp;&nbsp; In file included from odedrivers.c:20:<br>
    &nbsp;&nbsp;&nbsp; ../../../ADOL-C/src/taping_p.h:297:2: error: #error nicht hier<br>
    &nbsp;&nbsp;&nbsp; make[4]: *** [odedrivers.lo] Error 1<br>
    <br>
    On 9/17/2011 1:15 PM, Ingrid Hallen wrote:
    <blockquote cite="mid:COL106-W190023014C72CC78341381D2090@phx.gbl"
      type="cite">
      <pre wrap="">
Hi everyone!

I've been experimenting a bit with adol-c and OpenMP (not differentiating
OpenMP code, just trying to paralellize some code that uses adoubles). Anyway,
I have a piece of code that looks something like this:

"adouble t1, t2;
adouble t0, tf;
t0.setValue(0.0); tf.setValue(1.0);
double nn[] = {1.0,2.0,3.0,4.0,5.0};
int i;
    
#pragma omp parallel shared(t0,tf,nn) private(i,t1,t2)
 {
        #pragma omp for nowait
        for (i=0;i&lt;4;i++) {
            t1 = (t0+tf)*nn[i];
            t2 = (t0+tf)*nn[i+1];
            std::cout &lt;&lt; i &lt;&lt; i+1 &lt;&lt; t1.value() &lt;&lt; t2.value();
        }
}"

Now if I run the loop using just one thread everything works fine, but for more
than one I get some weird results, like, say, the following output:

0 1 1.000 2.000
2 3 3.000 2.000
3 4 4.000 4.000
1 2 2.000 3.000

Here I think the second line should read "2 3 3.000 4.000" and the third "3 4 4.000 5.000".

Anyone have an idea why this strange behavior occurs?

cheers
ingrid

                                               
</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
ADOL-C mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ADOL-C@list.coin-or.org">ADOL-C@list.coin-or.org</a>
<a class="moz-txt-link-freetext" href="http://list.coin-or.org/mailman/listinfo/adol-c">http://list.coin-or.org/mailman/listinfo/adol-c</a></pre>
    </blockquote>
    <br>
  </blockquote></div></body>
</html>