I checked in a change so that the wrapper, by default,
doesn't pass its own cmdline arguments to sub-programs.
It will do so only if you include <append_cmdline_args/>
in the task descriptor.

NOTE TO PROJECTS USING THE WRAPPER:
if you rely on the wrapper passing its cmdline args to sub-programs,
you'll need to add this to your job.xml files
when upgrading to this version of the wrapper.

-- David

On 13-Mar-2011 7:04 PM, Arnaud Schoofs wrote:
> Hi,
>
> I have one more question/suggestion.
> I noticed that when using:
> boinc_init_parallel()
> in the wrapper.cpp an additional argument is passed to the worker programs 
> (--nthreads x)
> This argument seems to be used by your demo multi-threads application 
> (http://boinc.berkeley.edu/svn/trunk/boinc/samples/multi_thread/multi_thread.cpp),
>  but I don't think it's a good idea to pass it for every workers.
> In my case for instance, the legacy application should take 3 arguments and 
> if there are more, an error is thrown...
> Let me know what you think about it.
>
> To avoid those errors, I'm using a .sh/.bat script to launch the application 
> but it's not really user-friendly (and safe) ...
>
> Thanks again for your assistance and reactivity!
>
> Arnaud Schoofs
> Evo@home project administrator
> http://boinc.run.montefiore.ulg.ac.be/evo/
>
> Le 13 mars 2011 à 13:38, Arnaud Schoofs a écrit :
>
>> Thanks a lot !
>>
>> Le 13 mars 2011 à 08:06, David Anderson a écrit :
>>
>>>
>>>
>>> On 12-Mar-2011 9:43 PM, Arnaud Schoofs wrote:
>>> es from the lockfile ...
>>>>
>>>> Btw, in my wrapper.cpp I have :
>>>>
>>>> boinc_init_parallel();
>>>> boinc_init_optios(&options);
>>>
>>> Just call boinc_init_parallel()
>>> (otherwise you'll get the lockfile error)
>>>
>>> I'll add an option in the job file to tell the wrapper to do this,
>>> as you suggested.
>>>
>>> -- David
>>> _______________________________________________
>>> boinc_dev mailing list
>>> [email protected]
>>> http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev
>>> To unsubscribe, visit the above URL and
>>> (near bottom of page) enter your email address.
>>
>
_______________________________________________
boinc_dev mailing list
[email protected]
http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev
To unsubscribe, visit the above URL and
(near bottom of page) enter your email address.

Reply via email to