Commit Graph

3208 Commits

Author SHA1 Message Date
David Anderson 6d61da36a6 - fix compile warnings and Manager error
svn path=/trunk/boinc/; revision=15905
2008-08-20 18:24:08 +00:00
David Anderson 87cf35f89b - client: fix CPU scheduling logic related to coprocessors
Old: when checking whether an app can be run,
        check for sufficient coprocessors relative to
        the current coprocessor usage.
        Bug: it there are 2 CUDA jobs,
        the scheduler will decide to run both.
        enforce_scheduler() will only be able to run one,
        and the other CPU will be idle.
    New: include coprocessor usage (along with RAM and CPUs)
        in the check, and do a simulated reservation.
        In the above scenario, the scheduler will select
        one CUDA app and one non-CUDA app.

svn path=/trunk/boinc/; revision=15904
2008-08-20 17:34:18 +00:00
Rom Walton 9254672696 - client: Update the Windows version detection code to account for
Windows 7 and Windows Server 2008 "R2".
        
    client/
        hostinfo_win.C

svn path=/trunk/boinc/; revision=15873
2008-08-18 18:47:07 +00:00
David Anderson 9f6c4a133e - client: don't leak handles to shared-mem files
- client: don't leak process handles when abort jobs
- client: if an app exits or we kill it, always destroy the shmem segment.
- web: more HTML 4.01 Transitional conformity changes

svn path=/trunk/boinc/; revision=15865
2008-08-16 20:59:53 +00:00
Rom Walton 4aa95488a7 - WIN: remove accelerators from the HOST_INFO class. It doesn't appear
to be used by anybody, and was only meant as a stop-gap until
        we had some formal way to deal with co-processors.
        
    client/
        hostinfo_win.C
    lib/
        hostinfo.C, .h

svn path=/trunk/boinc/; revision=15849
2008-08-15 04:59:09 +00:00
Rom Walton d1fda159e4 - WIN: Update OS Detection code.
NOTE: Holy cow, Between Vista and Server 2008 there are now
          26 different SKUs.
          
    client/
        hostinfo_win.C

svn path=/trunk/boinc/; revision=15834
2008-08-14 13:39:09 +00:00
Rom Walton 106b5f1c92 - WIN: Remove any remaining references to Seed and CPDNBBC.
client/win/
        boinc_cli.rc
        boinc_cmd.rc
    clientgui/
        BOINCGUIApp.rc
    clientgui/res/
        seed16.xpm
        seed32.xpm
        seedamwizard.xpm
        seedapwizard.xpm
    clientlib/win/
        boinc_dll.rc
    clientscr/
        boinc_ss.rc
    clientscr/res/
        seed.bmp

svn path=/trunk/boinc/; revision=15832
2008-08-14 03:08:15 +00:00
Rom Walton 4a6fd43a5c - WIN: Remove Visual Studio 2003 solution and project files
- WIN: Fix build files so all build configurations work again
    - WIN: Create the 'Samples - Debug' and 'Samples - Release'
        configurations to build sample files.  Leave the previous
        configurations to build just the client software.
    - WIN: Remove Seed project files
        
    client/win/
        boinc.exe.manifest
        boinc_cli_2003.rc
        boinc_cmd_2003.rc
        boinccmd.exe.manifest
    clientgui/
        BOINCGUIApp_2003.rc
        boincmgr.exe.manifest
    clientlib/win/
        boinc.dll.manifest
        boinc_dll_2003.rc
    clientscr/
        boinc.scr.manifest
        boinc_ss_2003.rc
    samples/win_build/
        samples_2003.sln
    win_build/
        boinc.sln
        boinc_2003.sln
        seed.sln
        <Various .vcproj files>

svn path=/trunk/boinc/; revision=15831
2008-08-14 02:58:05 +00:00
Rom Walton 5d915bf830 - Update copyright strings in various Windows resource files.
client/win/
        boinc_cli.rc
        boinc_cli_2003.rc
        boinc_cmd.rc
    clientgui/
        BOINCGUIApp.rc
        BOINCGUIApp_2003.rc
    clientlib/win/
        boinc_dll.rc
        boinc_dll_2003.rc
    clientscr/
        boinc_ss.rc
        boinc_ss_2003.rc
    clienttray/
        boinc_tray.rc

svn path=/trunk/boinc/; revision=15827
2008-08-13 20:44:08 +00:00
David Anderson 104655a358 - client and server: add "len" arg to xml_escape() and xml_unescape()
(prevent buffer overrun).
    Also remove 1024 char limit for team description in db_dump.

svn path=/trunk/boinc/; revision=15820
2008-08-13 17:27:13 +00:00
Charlie Fenton c480c46a9f client: fix compile error
svn path=/trunk/boinc/; revision=15812
2008-08-12 22:30:37 +00:00
Charlie Fenton 31d0997a61 client: fix compile error
svn path=/trunk/boinc/; revision=15811
2008-08-12 22:19:50 +00:00
David Anderson 6337181571 - scheduler: don't send jobs for "hard apps" (weight==-1)
to hosts with total_credit=0
- client: add a buffer size check

svn path=/trunk/boinc/; revision=15809
2008-08-12 19:06:35 +00:00
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