Creating a Project - Creating work
From Unofficial BOINC Wiki
This is the next hardest part after making the programs. Making work.
Let's create a Work Unit for upper_case, the test program we will use for this project.
NOTE: If you haven't added any applications, see Creating a Project - Adding applications now!
Create the file
$PROJECTROOT/download/in
which should contain the text
This is a test
and the file
$PROJECTROOT/templates/upper_case_wu
with the following text
<file_info>
<number>0</number>
</file_info>
<workunit>
<file_ref>
<file_number>0</file_number>
<open_name>in</open_name>
</file_ref>
<min_quorum>1</min_quorum>
<target_nresults>1</target_nresults>
</workunit>
and finally the file
$PROJECTROOT/templates/upper_case_result
with the following text
<file_info>
<name><OUTFILE_0/></name>
<generated_locally/>
<upload_when_present/>
<max_nbytes>10000</max_nbytes>
<url><UPLOAD_URL/></url>
</file_info>
<result>
<file_ref>
<file_name><OUTFILE_0/></file_name>
<open_name>out</open_name>
</file_ref>
</result>
Because you will hopefully still be in the project's root folder, from now onwards referred to as $PROJECTROOT, you can type
./bin/create_work -appname upper_case -wu_name test -wu_template templates/upper_case_wu -result_temp late templates/upper_case_result in
and it will create 1 Work Unit named test in the database
You are now ready to run the project on a test run.
Next step: Creating a Project - Starting the project
Previous step: Creating a Project - Adding applications
RSS Feeds

