boinc/samples/wrappture
David Anderson da74e5caf2 - back end: strip <output_template> tags from output templates
- web: main RSS feed should include all news items, even non-notices


svn path=/trunk/boinc/; revision=23783
2011-06-29 22:26:45 +00:00
..
Makefile - wrappture fixes 2010-12-06 03:06:31 +00:00
README - Fix bugs in Rappture wrapper 2010-12-07 19:28:08 +00:00
driver.xml - wrappture fixes 2010-12-06 03:06:31 +00:00
fermi.cpp - Rappture stuff 2010-11-30 05:27:05 +00:00
fermi_in - Fix bugs in Rappture wrapper 2010-12-07 19:28:08 +00:00
fermi_out - Fix bugs in Rappture wrapper 2010-12-07 19:28:08 +00:00
wrappture.cpp - back end: strip <output_template> tags from output templates 2011-06-29 22:26:45 +00:00
wrappture.h - add support for making wrappers for Rappture: 2010-11-29 22:27:26 +00:00
wrappture_example.cpp svn path=/trunk/boinc/; revision=22821 2010-12-06 03:10:01 +00:00

README

Example of running a Rappture app under BOINC

--------------------------
Creating app versions

A Rappture app version has at minimum two files:

- The core application
- A wrapper that parses the XML parameter file,
    runs the core application with appropriate cmdline,
    parses its stdout for progress messages,
    and interfaces with the BOINC client.

In this directory, fermi.cpp is the core app.
The wrapper consists of two files:
    - wrappture_example.cpp (app-specific)
    - wrappture.cpp (app-independent)

Suppose you want to deploy this app for 64-bit Linux.
Suppose the app name is "fermi".

- compile the programs on a 64-bit Linux machine.
    producing executables "fermi" and "wrappture_example"
- in your project's apps/fermi directory, create a directory
    fermi_1.0_x86_64-pc-linux-gnu
    (the "1.0" is a version number)
- Into this directory, copy
    wrappture_example as fermi_1.0_x86_64-pc-linux-gnu
    fermi as fermi=fermi-core_1.0_x86_64-pc-linux-gnu
- run update_versions.

--------------------------
Submitting jobs

- create input and output templates in your project/templates
    fermi_in: 1 file, logical name "driver.xml"
    fermi_out: 1 file, logical name "fermi_out.dat"
    (you can copy the ones here)
- copy driver.xml to project/driver_1.xml
    (the "1" is a version number)
- copy cw_fermi to project/
    (this is a job-submission script)
- in project/, run cw_fermi

--------------------------
Notes

- wrappture_example links libexpat and libz (among others) dynamically,
    so it won't run on systems that don't have them.
    It would be better to link everything statically,
    i.e. linking libexpat.a rather libexpat.so.
    You may need to download or build the .a versions.