[Developers] admb threading
Matthew Supernaw
matthew.supernaw at noaa.gov
Tue Dec 4 17:46:11 PST 2012
I misinterpreted your joke, I apologize. How about we agree to be polite and continue?
Would a global mutex lock on the gradient_structure work?
If it would work, what is more costly copying data into a master/slave paradigm or having an operational bottle neck at the gradient_structure?
On Dec 4, 2012, at 4:46 PM, dave fournier wrote:
> On 12-12-04 01:15 PM, Matthew Supernaw wrote:
>> Which book, "Concurrent Programming for Procedural Programmers"?
>
> Its usually called a joke. I was referring to the code in my example.
>
>>
>> Anyway, lets step through the logic of:
>>
>> prevariable& operator+(const prevariable& v1, const prevariable& v2)
>>
>>
>> you have a call to:
>>
>> gradient_structure::GRAD_STACK1->set_gradient_stack4(void(*),double*,double*double*)
>
> Go ahead. Do what you want.
>> and then:
>>
>> default_evaluation4()
>>
>> Why can't there be a mutex lock on gradient_structure?
>>
>>
>>
>>
>>
>> On Dec 4, 2012, at 3:00 PM, developers-request at admb-project.org wrote:
>>
>>> Send Developers mailing list submissions to
>>> developers at admb-project.org
>>>
>>> To subscribe or unsubscribe via the World Wide Web, visit
>>> http://lists.admb-project.org/mailman/listinfo/developers
>>> or, via email, send a message with subject or body 'help' to
>>> developers-request at admb-project.org
>>>
>>> You can reach the person managing the list at
>>> developers-owner at admb-project.org
>>>
>>> When replying, please edit your Subject line so it is more specific
>>> than "Re: Contents of Developers digest..."
>>>
>>>
>>> Today's Topics:
>>>
>>> 1. Re: admb threading (dave fournier)
>>>
>>>
>>> ----------------------------------------------------------------------
>>>
>>> Message: 1
>>> Date: Tue, 04 Dec 2012 11:56:50 -0800
>>> From: dave fournier <davef at otter-rsch.com>
>>> To: developers at admb-project.org
>>> Subject: Re: [Developers] admb threading
>>> Message-ID: <50BE5582.3000002 at otter-rsch.com>
>>> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>>>
>>> Read the book!
>>>
>>> A way to synchronize is in my example referred to earlier. Of course
>>> that is
>>> just for dvariables. For df1b2 variables there is a lot more structure,
>>> but the ideas
>>> would be the same.
>>>
>>>
>>> ------------------------------
>>>
>>> _______________________________________________
>>> Developers mailing list
>>> Developers at admb-project.org
>>> http://lists.admb-project.org/mailman/listinfo/developers
>>>
>>>
>>> End of Developers Digest, Vol 46, Issue 10
>>> ******************************************
>> _______________________________________________
>> Developers mailing list
>> Developers at admb-project.org
>> http://lists.admb-project.org/mailman/listinfo/developers
>
More information about the Developers
mailing list