Changes between Version 2 and Version 3 of WorkGeneration


Ignore:
Timestamp:
Apr 18, 2007, 4:05:30 PM (17 years ago)
Author:
davea
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WorkGeneration

    v2 v3  
     1[[PageOutline]]
    12= Generating work =
    23
    3 As described earlier, a workunit represents the inputs to a computation. The steps in creating a workunit are:
    4 
    5     * Write XML 'template files' that describe the workunit and its corresponding results. Generally the same templates will be used for a large number work of workunits.
    6     * Create the workunit's input file(s) and place them in the download directory.
    7     * Invoke a BOINC function or script that creates a database record for the workunit.
    8 
    9 Once this is done, BOINC takes over: it creates one or more results for the workunit, distributes them to client hosts, collects the output files, finds a canonical result, assimilates the canonical result, and deletes files.
     4To submit a job:
     5
     6    * Write XML 'template files' that describe the job's input and outputs (typically the same template files will be used for many jobs).
     7    * Create the job's input file(s) in the download directory.
     8    * Invoke a BOINC function or script that submits the job.
     9
     10Once this is done, BOINC takes over: it creates one or more instances of the job, distributes them to client hosts, collects the output files, finds a canonical instance, assimilates the canonical instance, and deletes files.
    1011
    1112During the testing phase of a project, you can use the [http://boinc.berkeley.edu/busy_work.php make_work daemon] to replicate a given workunit as needed to maintain a constant supply of work. This is useful while testing and debugging the application.
    1213
    13 == Workunit and result template files ==
    14 
    15 A workunit template file has the form
     14== Input and output template files ==
     15
     16An input template file has the form
    1617{{{
    1718<file_info>
     
    5455        The amount of credit to be granted for successful completion of this workunit. Use this only if you know in advance how many FLOPs it will take. Your [http://boinc.berkeley.edu/validate_simple.php validator] must use get_credit_from_wu() as its compute_granted_credit() function.
    5556
    56 Other elements::
    57         Work unit attributes
     57 Other elements::
     58        [http://boinc.berkeley.edu/work.php Work unit attributes]
    5859
    5960Workunit database records include a field, 'xml_doc', that is an XML-format description of the workunit's input files. This is derived from the workunit template as follows:
     
    6263    * Within a <file_ref> element, <file_number>x</file_number> is replaced with an element giving the filename.
    6364
    64 A result template file has the form
     65An output template file has the form
    6566{{{
    6667<file_info>