Changes between Version 7 and Version 8 of WorkGeneration
- Timestamp:
- Apr 18, 2007, 4:57:59 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WorkGeneration
v7 v8 9 9 10 10 Once 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. 11 12 During 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.13 11 14 12 == Input and output template files == … … 218 216 wu, 219 217 wu_template, 220 "templates/ results_template.xml",221 "templates/ results_template.xml",218 "templates/output_template.xml", 219 "templates/output_template.xml", 222 220 infiles, 223 221 1, … … 237 235 wu, 238 236 wu_template, 239 "templates/ results_template.xml",240 "templates/ results_template.xml",237 "templates/output_template.xml", 238 "templates/output_template.xml", 241 239 infiles, 242 240 1, … … 246 244 } 247 245 }}} 248 Again, you only need one input template file and one output template file. 246 Again, you only need one input template file and one output template file. 247 248 == Sample work generators == 249 250 Two example work generators are supplied with BOINC. 251 252 === make_work === 253 During 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. 254 255 === Sample work generator === 256 Many projects have an essentially infinite supply of work. 257 This can be handled by a 'flow-controlled work generator' 258 that tries to maintain a constant number of unsent jobs 259 (typically a few hundred or thousand). 260 It does this by periodically querying the BOINC database 261 to find the number of unsent jobs. 262 An example of this is sched/sample_work_generator.C. 263 You can easily modify this program to suit your appliation.