El Miércoles 30 Sep 2009 18:48:23 Kunsheng Chen escribió:
> I set replication_factor as 1 and one workunit only have one result.
>
> The idea is to set a finish symbol in returned file from clients and check
> whether that symbol is in the file, it is considered success.
>
> If not, it means the client hasn't finished the task and will get no
> credit. The credit is defined in WU.
>
> I checked the document and seems following four functions are required in
> the framework. I am a little bit confused about function 'compare_results',
> since I only got one result, what should I do in this function ? Just
> return 0 ?
>
> int init_result(RESULT& /*result*/, void*& /*data*/) {
>
> /* Check symbol in file */
> return 0;
> }
Check symbol in file. If it's there, return 0. If it's not there, return an
error code.
> int compare_results(
> RESULT & r1, void* /*data1*/,
> RESULT const& r2, void* /*data2*/,
> bool& match
> ) {
> /* What should be here ?*/
> return 0;
> }
Just in case, set match to true (pretend they always match), and return 0.
But I don't think this function will get called at all.
> int cleanup_result(RESULT const&, void*) {
> return 0;
> }
Return 0 doing nothing.
--
Nicolas
_______________________________________________
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.