<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello all,<br>
<br>
I have a similar question related to using adolc and openmp,
somewhat based on
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<a
href="http://list.coin-or.org/pipermail/adol-c/2014-February/000951.html">http://list.coin-or.org/pipermail/adol-c/2014-February/000951.html</a><br>
<br>
In my case, I have no openmp directives in the function to be traced
and all I want to do is evaluate a traced function at different
independent variable values in an openmp for loop.<br>
<br>
My question is:<br>
<br>
Is it possible to only trace the function on one thread and then
simultaneously evaluate the derivatives (at different values) using
multiple threads?<br>
<br>
I'm thinking this is not possible because the same memory location
would be simultaneously accessed and written to, and thus I would
need to have an independent function trace (i.e., independent memory
location) for each thread. <br>
<br>
Off the top of my head I guess I could create a whole bunch of
function traces indexed by different tags and then just refer to the
appropriate tag depending on the particular thread, but this seems
quite inefficient. <br>
<br>
Does anybody have any thoughts on how I could do this ?<br>
<br>
Thanks,<br>
Ian.<br>
<br>
<br>
<br>
</body>
</html>