Commit Graph

150 Commits

Author SHA1 Message Date
David Anderson fc2d5dece4 svn path=/trunk/boinc_samples/; revision=15430 2008-06-18 20:33:21 +00:00
David Anderson 156471c2a7 - fixes
svn path=/trunk/boinc_samples/; revision=15429
2008-06-18 20:12:55 +00:00
David Anderson ce755ea704 - wrapper: replace $PROJECT_DIR with project dir in task command lines
- wrapper: if program name starts with $PROJECT_DIR,
    substitute with project dir and treat as physical name

svn path=/trunk/boinc_samples/; revision=15426
2008-06-18 18:55:06 +00:00
David Anderson 4aa2175cdb - change name of exit code
svn path=/trunk/boinc_samples/; revision=15424
2008-06-18 16:44:12 +00:00
David Anderson 1ee13f3448 svn path=/trunk/boinc_samples/; revision=15421 2008-06-17 20:44:17 +00:00
David Anderson 3c9af3d960 - wrapper: add two new features.
1) each task can include a <weight> (double, default=1).
        The task's contribution to total fraction done is
        proportional to the weight.
    2) each task can include a <checkpoint_filename> (string)
        This names a checkpoint file used by the app.
        If its mod time changes, we'll assume a checkpoint
        has been done and notify the client.

svn path=/trunk/boinc_samples/; revision=15420
2008-06-17 20:39:59 +00:00
David Anderson 6e305b387e - graphics: if no graphics app is running,
don't bother updating shmem
    (not important in the example app,
    but a useful technique if updating the shmem is expensive)

svn path=/trunk/boinc_samples/; revision=15383
2008-06-10 23:29:32 +00:00
David Anderson 2728cdcf55 add Makefile.debian
svn path=/trunk/boinc_samples/; revision=15355
2008-06-04 22:11:12 +00:00
David Anderson 3ddffa642a svn path=/trunk/boinc_samples/; revision=15273 2008-05-22 04:05:04 +00:00
David Anderson 5fbf895e3b - wrapper: when run a job, write program name and cmdline to stderr
svn path=/trunk/boinc_samples/; revision=15240
2008-05-16 22:12:05 +00:00
David Anderson c4a02dc9c9 - uppercase: borrow CPU-burning routine from multithread
(won't be optimized out)

svn path=/trunk/boinc_samples/; revision=15203
2008-05-14 20:32:40 +00:00
David Anderson 763152171d - uppercase: use binary output mode on Win,
otherwise results don't match.
- graphics app: call boinc_finish_diag() instead of diagnostics_finish()
    (API calls should start with boinc_;
    it would be nice it the init/finish names matched)

svn path=/trunk/boinc_samples/; revision=15156
2008-05-08 21:16:39 +00:00
Rom Walton 01efe29929 - Example_App - Rename Uc2 stuff to example_app stuff.
win_build/
        <various Files>

svn path=/trunk/boinc_samples/; revision=15153
2008-05-08 21:01:20 +00:00
Rom Walton dcb607bce1 - Uc2 - Change the call to diagnostics_init to boinc_init_graphics_diagnostics
for the graphics application.
        
    example_app/
        uc2_graphics.C

svn path=/trunk/boinc_samples/; revision=15147
2008-05-08 17:13:12 +00:00
Charlie Fenton f5999a9dda Fix a comment
svn path=/trunk/boinc_samples/; revision=15116
2008-05-02 08:55:43 +00:00
Charlie Fenton 9bbbea5942 Fix a comment
svn path=/trunk/boinc_samples/; revision=15005
2008-04-02 10:17:47 +00:00
Charlie Fenton ae7601a412 example_app: Remove -fvisibility* compiler flags from all 3 Mac build methods
svn path=/trunk/boinc_samples/; revision=14999
2008-04-02 00:23:30 +00:00
David Anderson 5f015a005f - example graphics app: if no heartbeat, quit after 5 seconds
svn path=/trunk/boinc_samples/; revision=14988
2008-03-31 17:05:12 +00:00
David Anderson cfc5b5a230 - multi_thread: suspend/resume didn't work in the Unix implementation.
REMINDER TO SELF: you can't suspend or resume pthreads - period.
    So I changed things so that in the Unix implementation,
    we fork a second process, in which the threads run.
    The first process handles suspend/resume messages
    by signaling the 2nd process.
    The 2nd process generates system messages (frac done, CPU time)

svn path=/trunk/boinc_samples/; revision=14977
2008-03-28 17:39:00 +00:00
Charlie Fenton cb3da20d48 example_app: Fixes to Mac build script
svn path=/trunk/boinc_samples/; revision=14976
2008-03-28 11:19:44 +00:00
Charlie Fenton 181680e1f1 example_app: Fixes to Mac build script.
svn path=/trunk/boinc_samples/; revision=14972
2008-03-27 23:34:30 +00:00
David Anderson 6d90f48829 - multi_thread: maintain fraction done;
get nthreads from command line, not init file

svn path=/trunk/boinc_samples/; revision=14965
2008-03-27 18:00:40 +00:00
Charlie Fenton 7eb38d2825 svn path=/trunk/boinc_samples/; revision=14962 2008-03-26 15:07:43 +00:00
Charlie Fenton f7218cfa05 Update Mac makefile and build script, create second, stand-alone Mac makefile
svn path=/trunk/boinc_samples/; revision=14961
2008-03-26 14:43:00 +00:00
Charlie Fenton 3ae2111de6 Invoke script with sh instead of source; fix comments.
svn path=/trunk/boinc_samples/; revision=14960
2008-03-25 14:00:08 +00:00
Charlie Fenton 10956721fb example_app: Create Mac makefile and build script to demonstrate building project applications for the Mac using makefiles.
svn path=/trunk/boinc_samples/; revision=14959
2008-03-25 12:25:34 +00:00
David Anderson 38d9099b47 - multi-thread: the Windows version was running unexpectedly fast.
It turned out that the VS2005 C++ compiler was noticing
		that giga_flop() didn't use any inputs or globals,
		so it was caching its value after the first run.
		Very impressive!

svn path=/trunk/boinc_samples/; revision=14952
2008-03-20 22:52:16 +00:00
David Anderson 31b604a77b - multi_thread: default to 1 thread; print to stderr at end
svn path=/trunk/boinc_samples/; revision=14939
2008-03-18 21:15:21 +00:00
David Anderson 27caca9ef2 svn path=/trunk/boinc_samples/; revision=14915 2008-03-14 19:55:55 +00:00
David Anderson 68531f2076 - added example multi-thread application
svn path=/trunk/boinc_samples/; revision=14912
2008-03-14 17:35:22 +00:00
Rom Walton 142cb160e6 - Uppercase: Initialize the diagnostics framework for graphics
application.

    example_app/
        uc2_graphics.C

svn path=/trunk/boinc_samples/; revision=14910
2008-03-14 01:50:38 +00:00
Charlie Fenton e44e51b14e UpperCase: delete XCode project for deprecated uppercase application
svn path=/trunk/boinc_samples/; revision=14891
2008-03-11 10:01:54 +00:00
Charlie Fenton d0ed03a2e2 Delete deprecated uppercase project file
svn path=/trunk/boinc_samples/; revision=14890
2008-03-11 09:53:14 +00:00
David Anderson 98815d0b82 - compile fixes for Win
svn path=/trunk/boinc_samples/; revision=14882
2008-03-10 22:53:01 +00:00
David Anderson 6131537c57 - wrapper: compile fixes for Mac
- delete uppercase/


svn path=/trunk/boinc_samples/; revision=14873
2008-03-09 18:18:21 +00:00
David Anderson 1345448cb5 - fix #if
svn path=/trunk/boinc_samples/; revision=14869
2008-03-07 17:53:58 +00:00
David Anderson c6a1211706 - Wrapper (Mac): use elapse wall time as CPU time;
there's no easy way to get another process's CPU time in Mac OS X

svn path=/trunk/boinc_samples/; revision=14867
2008-03-07 04:43:08 +00:00
David Anderson 3802e31e37 compile fix
svn path=/trunk/boinc_samples/; revision=14864
2008-03-06 18:34:32 +00:00
David Anderson 08026c94f1 - wrapper (Win): suspend or resume all the threads in an app,
not just the initial one.
- wrapper: merge app_suspended and TASK::suspended variables

svn path=/trunk/boinc_samples/; revision=14862
2008-03-06 18:31:33 +00:00
David Anderson 480f497e03 - wrapper: if a child exits with nonzero status X,
call boinc_finish() with ERR_CHILD_FAILED rather than X.
    If X is zero in the low-order byte
    (e.g. if the program isn't executable)
    the BOINC client will restart us, which isn't what we want.

svn path=/trunk/boinc_samples/; revision=14858
2008-03-06 16:15:17 +00:00
David Anderson 1e1c8ee5bf - uppercase is deprecated
svn path=/trunk/boinc_samples/; revision=14790
2008-02-25 22:46:11 +00:00
Charlie Fenton 08e1acebec Mac: Add an application icon to example_app graphics application
svn path=/trunk/boinc_samples/; revision=14769
2008-02-21 11:39:03 +00:00
Charlie Fenton 25f3f0fe46 Mac: Restore "-DAPP_GRAPHICS" to XCode project C flags.
svn path=/trunk/boinc_samples/; revision=14763
2008-02-20 01:05:01 +00:00
David Anderson 67f553ffbb project file fix
svn path=/trunk/boinc_samples/; revision=14727
2008-02-12 20:50:15 +00:00
David Anderson eee33e34e2 - print error return from boinc_init()
svn path=/trunk/boinc_samples/; revision=14638
2008-01-29 20:10:46 +00:00
David Anderson cbe6b403b1 - example app: parse <max_frames_sec> and <max_gfx_cpu_pct>
from project-specific prefs.  This gives the user a couple
        of ways of limiting CPU usage for graphics.
    - example app: define APP_GRAPHICS in project file, not source

svn path=/trunk/boinc_samples/; revision=14636
2008-01-29 19:55:25 +00:00
David Anderson 345c38ae9c - small bug fix
svn path=/trunk/boinc_samples/; revision=14476
2008-01-06 22:27:35 +00:00
Charlie Fenton d88125b85d Mac: Add x86_64_Deployment build configuration to XCode project
svn path=/trunk/boinc_samples/; revision=14312
2007-11-28 09:58:06 +00:00
David Anderson 4e5f7f21c4 - wrapper, Win: if GetProcessTimes() fails (which it does on Win 98/ME),
use wall CPU time as estimate of CPU time

svn path=/trunk/boinc_samples/; revision=14308
2007-11-27 19:15:32 +00:00
David Anderson 1fd9f19713 svn path=/trunk/boinc_samples/; revision=13953 2007-10-24 22:08:16 +00:00