Changes between Version 87 and Version 88 of WrapperApp


Ignore:
Timestamp:
Jul 4, 2014, 12:06:46 PM (10 years ago)
Author:
davea
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WrapperApp

    v87 v88  
    33= The BOINC Wrapper =
    44
    5 Any existing application (or sequence of applications)
     5An existing application (or sequence of applications)
    66can be run under BOINC using a '''wrapper''' program supplied by BOINC.
    77The wrapper runs the applications as subprocesses,
     
    8484  This is used by the wrapper to report overall fraction done.
    8585 '''exec_dir''':: The directory to start the application in (relative to slot, or use the $PROJECT_DIR macro)
    86  '''multi_process''':: Include this if the application creates multiple processes.  '''Note: each parent process must wait for its children to exit.'''
    87  '''setenv''':: Environmental variable needed for the applications run-time environment - you can have more than one <setenv> entry, use the VARNAME=VAR_VALUE form, e.g. LD_LIBRARY_PATH=$PROJECT_DIR:$LD_LIBRARY_PATH.  You can also use the $NTHREADS or $GPU_DEVICE_NUM macro.
    88  '''daemon''':: Denotes that this task is a 'daemon' process that should run in the background asynchronously while the other tasks are run sequentially.  The wrapper will shut down this daemon when the last task has exited
    89  '''append_cmdline_args''':: if set, the wrapper's command-line arguments (specified in the [JobTemplates#Inputtemplates input template]) are passed to the worker program, after those in <command_line>.
    90  '''time_limit''':: if given, kill the task after the given amount of elapsed (running) time.  Note: on Windows, tasks are killed using !TerminateProcess(), which doesn't flush stdio buffers; take this into account.
     86 '''multi_process''':: Include this if the application creates multiple processes.
     87   '''Note: each parent process must wait for its children to exit.'''
     88 '''setenv''':: Environment variable needed by the applications.
     89   You can have more than one <setenv> entry.
     90   Use the VARNAME=VAR_VALUE form, e.g. LD_LIBRARY_PATH=$PROJECT_DIR:$LD_LIBRARY_PATH.
     91   You can also use the $NTHREADS or $GPU_DEVICE_NUM macro.
     92 '''daemon''':: this task is a 'daemon' process that should run in the background asynchronously
     93    while the other tasks are run sequentially.
     94    The wrapper will shut down this daemon when the last task has exited.
     95 '''append_cmdline_args''':: if set, the wrapper's command-line arguments
     96   (specified in the [JobTemplates#Inputtemplates input template])
     97    are passed to the worker program, after those in <command_line>.
     98 '''time_limit''':: if given, kill the task after the given amount of elapsed (running) time.
     99    Note: on Windows, tasks are killed using !TerminateProcess(),
     100    which doesn't flush stdio buffers; take this into account.
    91101
    92102The job file can specify multiple tasks.
     
    103113
    104114The wrapper can optionally zip output files:
    105  '''zip_output''':: after all tasks are completed, the wrapper will zip output files (specified by one or more regular expressions) into a zip file with the given name.
     115 '''zip_output''':: after all tasks are completed,
     116    the wrapper will zip output files (specified by one or more regular expressions) into a zip file with the given name.
    106117
    107118Notes:
     
    120131  You will therefore want to make and track different versions for each app_version you are supporting.
    121132
     133== Command-line options ==
     134
     135The wrapper has the following command-line options:
     136
     137 '''--device N''': macro-substitute N for '''$GPU_DEVICE_NUM'''
     138   in worker command lines and environment variables.
     139 '''--nthreads X''': macro-substitute X for '''$NTHREADS'''
     140   in worker command lines and environment variables.
     141 '''--trickle X''': send a trickle-up message reporting runtime every X seconds.
     142
    122143== Example ==
    123144
     
    240261The homepage is [http://genwrapper.sourceforge.net here],
    241262and documentation is [http://sourceforge.net/apps/trac/genwrapper/wiki/manual here].
    242 
    243 
    244 
    245