Changes between Version 33 and Version 34 of WorkGeneration
- Timestamp:
- Apr 15, 2010, 9:48:55 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WorkGeneration
v33 v34 56 56 The program must be run in the project directory. 57 57 58 == Making lots of workunits == #cpp-lots58 == Making lots of jobs == #cpp-lots 59 59 60 If you're making lots of workunits (e.g. to do the various parts of a parallel computation) you'll want the workunits to differ either in their input files, their command-line arguments, or both. 60 If you're making lots of jobs (e.g. to do the various parts of a parallel computation) 61 you'll want the jobs to differ in their input files and/or their command-line arguments. 61 62 62 63 {{{ … … 64 65 }}} 65 66 66 For example, let's say you want to run a program on ten input files 'file0', 'file1', ..., 'file9'. You might modify the above program with the following code: 67 For example, let's say you want to run a program on ten input files 'file0', 'file1', ..., 'file9'. 68 You might modify the above program with the following code: 67 69 {{{ 68 70 char filename[256]; … … 135 137 bin/create_work -appname setiathome -wu_name sah_nodelete -wu_template templates/setiathome_wu_0 -result_template templates/setiathome_result_0 12ja04aa 136 138 }}} 137 {{{138 #!comment Why, if the workunit is never deleted?139 }}}