Commit Graph

3195 Commits

Author SHA1 Message Date
Rom Walton 0838f5cf43 Fix typo pointed out by Nicolas Alvarez
svn path=/trunk/boinc/; revision=15808
2008-08-12 17:41:03 +00:00
Charlie Fenton f5ab12d217 client: fix compiler warning
svn path=/trunk/boinc/; revision=15801
2008-08-10 08:58:26 +00:00
David Anderson fa0b2749c7 svn path=/trunk/boinc/; revision=15794 2008-08-09 17:03:08 +00:00
David Anderson 9cb87d2fc8 - client: don't use fixed-size buffer when looking for app files
in project prefs (avoid buffer overrun)
- web: don't show credit info if no_computing flag set

svn path=/trunk/boinc/; revision=15793
2008-08-09 16:39:20 +00:00
Rom Walton a2771e5d33 - CLIENT/MGR/TRAY: When installed on Vista and UAC is turned on
the user by default cannot create globally shared objects. This
        becomes a problem when protected application mode is turned off
        for keyboard and mouse detection.  Basically all of the components
        would start up and fail to create the shared memory segment
        and report the error through stderr which most people don't look
        at by default.
        
        The client is now the only component that is allowed to create the
        shared memory segment, if creating the global segment fails it'll
        create a local one instead. Both the tray and manager now just attach
        to the existing segment, first trying the global one then the local
        one.
        

    client/
        main.C
    clientgui/
        BOINCGUIApp.cpp, .h
    clientlib/win/
        boinc_dll.cpp
        IdleTracker.cpp
    clienttray/
        tray_win.cpp, .h
    win_build/
        boinc.sln
        boinctray.vcproj

svn path=/trunk/boinc/; revision=15767
2008-08-07 16:59:52 +00:00
David Anderson 4f66bb4c95 - added copyright and license info to .C, .cpp, .h files
- scheduler: fix bug in adaptive replication:
    if send an unreplicated job to untrusted host,
    set both wu.target_nresults and wu.min_quorum to app.target_nresults.

svn path=/trunk/boinc/; revision=15762
2008-08-06 18:36:30 +00:00
David Anderson 87d55ac90f - added copyright and license info to some C files
svn path=/trunk/boinc/; revision=15759
2008-08-05 22:52:17 +00:00
David Anderson d6f02a6d75 svn path=/trunk/boinc/; revision=15756 2008-08-05 21:40:53 +00:00
David Anderson 02ae8d647c - client: fix crash in this scenario:
A file upload sends request.
    The network is down, and something (e.g. a router)
    sends a long (> 4KB) error page.
    This overruns the 4KB buffer of HTTP_OP::req1.
    Solution: keep track of the size of the buffer,
    and don't overrun it.
    Also move the body of a huge for loop into a separate function.
    From Ian Hay.
    Fixes #705

svn path=/trunk/boinc/; revision=15744
2008-08-03 22:36:41 +00:00
David Anderson bd148a60b8 - client (Unix): fix bugs in setting LD_LIBRARY_PATH.
We need to add paths relative to the slot directory,
    not the BOINC directory (doh!!).

svn path=/trunk/boinc/; revision=15741
2008-08-01 22:50:07 +00:00
Charlie Fenton 45c92838a2 SCR / CLIENT: fix get_screensaver_tasks RPC so it does not exclude tasks suspended for CPU throttling. Fixes the screensaver problem for V6 graphics.
svn path=/trunk/boinc/; revision=15738
2008-08-01 09:50:31 +00:00
David Anderson 74fe548296 - client: show message if no proxy
fixes #704

svn path=/trunk/boinc/; revision=15717
2008-07-30 23:35:21 +00:00
David Anderson 884bad0975 - client: show proxy info in messages at startup and when changed
fixes #704
- web: fix the am_set_info.php RPC
    (most args are optional, not mandatory)

svn path=/trunk/boinc/; revision=15716
2008-07-30 21:37:41 +00:00
David Anderson 85fe380486 - client: report all errors in parsing app_info.xml files
Fixes #703

svn path=/trunk/boinc/; revision=15670
2008-07-24 21:27:42 +00:00
David Anderson cd2c51770f - client: remove accidental debug stuff
svn path=/trunk/boinc/; revision=15669
2008-07-24 19:05:26 +00:00
David Anderson 6c0731e82e - client: bug fixes to the above
- client: better messages reporting coprocessors
    - manager: bounds checks to avoid wxwidgets asserts
        when job CPU estimates are absurdly large

svn path=/trunk/boinc/; revision=15644
2008-07-21 19:56:01 +00:00
David Anderson 0496591da2 - client: if an app is using CUDA coprocessors,
pass it additional command line arg(s) "--device X" (X=0,1,...)
    to tell it which GPU(s) to use.

svn path=/trunk/boinc/; revision=15642
2008-07-21 16:25:03 +00:00
Rom Walton 992a8e812e - WINSETUP: Revamp the various strings used.
win_build/installerv2/
        BOINC.ism
        BOINCx64.ism

svn path=/trunk/boinc/; revision=15612
2008-07-16 17:03:43 +00:00
David Anderson d0ca745a0b - client, Linux: change CUDA probing.
libcudart{32,64}.so is bundled with client.
    client loads it and if successful calls the device-query functions.
- client, Linux: append the current directory
    (i.e., the BOINC data directory) to the LD_LIBRARY_PATH for apps.
    This goes after the project dir and the slot dir.
    This lets apps link to libcudartX.so.
    NOTE: this is not recommended; better to include it with your app.
- client: allow for multiple messages from coproc probing
- fixed indentation in cs_platforms.C


svn path=/trunk/boinc/; revision=15591
2008-07-10 21:57:18 +00:00
Rom Walton dddeba4c77 - CC: Read the config file before setting the max file sizes.
client/
        main.C

svn path=/trunk/boinc/; revision=15588
2008-07-10 21:49:24 +00:00
Charlie Fenton 98ae7219a4 client: Fix build breaks on Mac due to removal of headers from cpp.h
svn path=/trunk/boinc/; revision=15582
2008-07-09 11:08:53 +00:00
Eric J. Korpela cbde755a32 sparc-solaris: detect_platforms() now checks if it is possible to run 64-bit
apps.

svn path=/trunk/boinc/; revision=15573
2008-07-08 23:51:54 +00:00
David Anderson f69a288ac0 - web: if stop_web file is present, don't allow any DB access
(I broke this a few days ago)
- client: improve message for file upload server errors

svn path=/trunk/boinc/; revision=15569
2008-07-08 21:07:33 +00:00
David Anderson 234234569b - Improvements to single-job submission:
1) the assimilator creates a job_summary_WUID file saying
        - what host did the job
        - error status if any
        - info about missing output files
    2) all output files are now optional.
    3) the assimilator deletes temp files (templates, job dir file)

svn path=/trunk/boinc/; revision=15551
2008-07-04 19:41:58 +00:00
Eric J. Korpela 0124e04750 Fixes ticket #537. Forces use of small files in zlib.h and when /proc
filesystem is used on solaris.

svn path=/trunk/boinc/; revision=15530
2008-07-01 21:27:25 +00:00
David Anderson cff13c8871 - server: add optional <no_validate> element to output file <file_ref>s.
This tells the sample bitwise validator to ignore this file.
- client: parse the above field (avoid "unparsed XML" msgs)

svn path=/trunk/boinc/; revision=15514
2008-06-30 16:46:05 +00:00
David Anderson b21be7c4d4 - client: add "Suspending computation" messages for
system idle and initial delay cases.
    Rom: please back-port

svn path=/trunk/boinc/; revision=15513
2008-06-29 20:57:21 +00:00
David Anderson 1bd7742c4a - more gcc fixes
svn path=/trunk/boinc/; revision=15496
2008-06-26 20:53:51 +00:00
David Anderson 2bee18c937 - client: fix battery detection on newer Linux
(from Roberto Virga)


svn path=/trunk/boinc/; revision=15492
2008-06-26 18:39:25 +00:00
David Anderson 3dd69f52cd - client: improve error messages when can't copy files
- client: change CUDA detection on Linux and Mac.
    Look for libcuda.so in /usr/lib/nvidia and /usr/lib64/nvidia.
    If we find it, assume that libcudart is in the library path.

svn path=/trunk/boinc/; revision=15477
2008-06-26 03:50:03 +00:00
David Anderson 48675cea31 - client: print msgs if can't find CUDA libs
svn path=/trunk/boinc/; revision=15446
2008-06-23 02:41:34 +00:00
David Anderson e88e698106 - scheduler: change message if bad auth (fixes #685)
svn path=/trunk/boinc/; revision=15445
2008-06-22 19:14:53 +00:00
David Anderson 5a3d1fc0a5 - client (Win): if we're not in protected mode,
don't create shmem segs in global name space.
    Hopefully this will fix a bug
    (on Vista, UAC off, non-protected install)
    where apps fail to attach to shmem.

svn path=/trunk/boinc/; revision=15444
2008-06-20 21:33:02 +00:00
David Anderson bf55f0838d - client (Win): if running as service, and service is suspended/resumed,
restore previous run state rather than going to auto.
- client: improve startup messages (non-system user??)

svn path=/trunk/boinc/; revision=15442
2008-06-20 16:21:55 +00:00
David Anderson 796a8ef835 - change EXIT_ABORTED_VIA_GUI to EXIT_ABORTED_BY_CLIENT
- change ERR_CHILD_FAILED TO EXIT_CHILD_FAILED
    (it's an exit code, not a function error code)
- client: reduce severity of benchmark error
- scheduler: compile fix

svn path=/trunk/boinc/; revision=15423
2008-06-18 16:43:05 +00:00
David Anderson d737c428ff - scheduler: if host.n_bwdown is zero, skip the bandwidth check;
the host hasn't been measured yet.

svn path=/trunk/boinc/; revision=15409
2008-06-17 16:09:27 +00:00
David Anderson ccc92976e9 - client: fix crashing bug when detach from project.
The problem: the variable ordered_scheduled_results
    has a list of pointers to RESULTs.
    These pointers become dangling when the project is detached.
    It's not sufficient to do schedule_cpus() because this returns
    immediately if # projects == 0.
    So clear the list directly.
    Rom: please port to 6.2

svn path=/trunk/boinc/; revision=15407
2008-06-16 16:52:17 +00:00
David Anderson 77c7ff3649 - client/API: add "computation_deadline" to APP_INIT_DATA.
This supports apps that can do variable amounts of computing;
    they can boinc_finish() if their deadline is near.
    Rom: please back-port.

svn path=/trunk/boinc/; revision=15395
2008-06-12 19:05:14 +00:00
David Anderson 3eaff2b345 - API/runtime system: remove "fraction done update period" stuff.
This was always 1 second, which is fine.


svn path=/trunk/boinc/; revision=15394
2008-06-12 18:35:19 +00:00
David Anderson 4387e4491b - Fix emacs mode line in Makefile.am's
svn path=/trunk/boinc/; revision=15375
2008-06-08 22:18:52 +00:00
David Anderson 96eabc043b - server: added -simulation option to feeder, validator, and assimilator
(for use in server simulator)

svn path=/trunk/boinc/; revision=15344
2008-06-01 03:43:47 +00:00
David Anderson eeeb3b7951 - client: on startup, detect when the system clock has been set backwards,
and clear all timeout variables.
    This should fix the situation where, say:
    1) the user sets the system clock forward by a year;
    2) all projects get their min_rpc_time set;
    3) the user sets the system clock back to the correct time.
    Previously, BOINC would not do anything for a year.

    Note: a restart of BOINC is required to fix things.
    It would be harder to do this on the fly.

svn path=/trunk/boinc/; revision=15314
2008-05-28 19:15:44 +00:00
David Anderson 5583762116 - web: style tweaks; fixes #667
svn path=/trunk/boinc/; revision=15307
2008-05-28 16:33:51 +00:00
David Anderson a143d50ddf - client: reduce min CPU time for valid benchmark from 3 to 2
svn path=/trunk/boinc/; revision=15292
2008-05-25 04:06:45 +00:00
David Anderson ac77678d16 - client: test the above; compile fixes for Win
svn path=/trunk/boinc/; revision=15290
2008-05-23 22:20:45 +00:00
David Anderson 18d6f5e708 - client: handle coprocs in RR simulation. Not tested.
TODO: handle multithread apps in RR simulation; should be easy now.

svn path=/trunk/boinc/; revision=15288
2008-05-23 22:03:27 +00:00
David Anderson c01e75ec4c - client: shuffle code to abstract coprocessor reservation
svn path=/trunk/boinc/; revision=15287
2008-05-23 21:24:36 +00:00
David Anderson cea5801b89 - client: shuffle to code to give an abstraction (RR_SIM_STATUS)
of a project's state during round-robin simulation
    (first step to handling coprocs in RR sim)

svn path=/trunk/boinc/; revision=15286
2008-05-23 20:58:06 +00:00
David Anderson 8befa29f81 - client: if GUI RPC auth error, close the socket.
This prevents a DoS by sending <auth1> over and over,
    filling the send buffer and eventually causing the client to block.
- Unix build: if m4 missing, check for gm4


svn path=/trunk/boinc/; revision=15282
2008-05-23 19:24:20 +00:00
David Anderson 8294fba98f - client: print a message at startup if computation is suspended
svn path=/trunk/boinc/; revision=15279
2008-05-22 20:57:12 +00:00