| 1 | = Dealing with numerical discrepancies = |
| 2 | |
| 3 | Most numerical applications produce different outcomes for a given workunit depending on the machine architecture, operating system, compiler, and compiler flags. For some applications these discrepancies produce only small differences in the final output, and results can be validated using a 'fuzzy comparison' function that allows for deviations of a few percent. |
| 4 | |
| 5 | Other applications are 'divergent' in the sense that small numerical differences lead to unpredictably large differences in the final output. For such applications it may be difficult to distinguish between results that are correct but differ because of numerical discrepancies, and results that are erroneous. The 'fuzzy comparison' approach does not work for such applications. |
| 6 | |
| 7 | == Eliminating discrepancies == |
| 8 | |
| 9 | One approach is to eliminate numerical discrepancies. Some notes on how to do this for Fortran programs are given in a paper, [http://boinc.berkeley.edu/MOM1MP01.pdf Massive Tracking on Heterogeneous Platforms] and in an earlier [http://boinc.berkeley.edu/fortran_numerics.txt text document], both courtesy of Eric !McIntosh from CERN. |
| 10 | |
| 11 | == Homogeneous redundancy == |
| 12 | |
| 13 | BOINC provides a feature called '''homogeneous redundancy''' to handle divergent applications. You can enable it for a project by including the line |
| 14 | {{{ |
| 15 | <homogeneous_redundancy/> |
| 16 | }}} |
| 17 | in the [ProjectConfigFile config.xml] file. |
| 18 | |
| 19 | Alternatively, you can enable it selectively for a single application by setting the `homogeneous_redundancy` field in its database record. |
| 20 | |
| 21 | When this feature is enabled, the BOINC scheduler will send results for a given workunit only to hosts with the same operation system name and CPU vendor (i.e., the os_name and p_vendor fields of the host description). For example: if a result has been sent to a host of type (Windows XP, Intel), then other results of that workunit will only be sent to hosts of type (Windows XP, Intel). |
| 22 | |
| 23 | If homogeneous redundancy is enabled, it may be possible to use strict equality to compare redundant results. |