boinc/samples/wrappture
David Anderson 439299d7b3 sample apps: include <cmath> instead of <math.h> 2013-05-28 12:00:39 -07:00
..
Makefile Unix build: tweak Makefiles in sample apps 2013-05-16 09:38:31 -07: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 sample apps: include <cmath> instead of <math.h> 2013-05-28 12:00:39 -07: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 sample apps: include <cmath> instead of <math.h> 2013-05-28 12:00:39 -07: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.