Commit Graph

19193 Commits

Author SHA1 Message Date
David Anderson d89b665ae0 - client: if an app version needs OpenCL/CUDA/CAL,
make sure that the GPU supports it
    (fix bug where sometimes, e.g. CUDA detection fails
    but OpenCL succeeds, and we have a CUDA app).


svn path=/trunk/boinc/; revision=25630
2012-04-30 21:38:25 +00:00
David Anderson 331114d961 - client: minor code shuffle
svn path=/trunk/boinc/; revision=25627
2012-04-30 21:12:35 +00:00
David Anderson bbfbef0fe8 - client: code cleanup. Move RESULT and PROJECT to separate files
svn path=/trunk/boinc/; revision=25621
2012-04-30 21:00:28 +00:00
David Anderson 3b363f9a87 - web RPC: include rpc_time in XML host description
- client: if acct mgr sends us an account with no authenticator,
    show an error message instead of trying to attach


svn path=/trunk/boinc/; revision=25608
2012-04-30 18:46:50 +00:00
Rom Walton 7e3026abfa - WINSCR: Use the DefProcHandler function when processing WM_CLOSE/WM_DESTROY
window messages.  In effect, let Windows do the default thing.  This removes
        the hacks which kept the screensaver running with old versions of
        Microsoft's keyboard/mouse driver software installed.
        
    clientscr/
        screensaver_win.cpp, .h

svn path=/trunk/boinc/; revision=25607
2012-04-27 20:50:27 +00:00
David Anderson 42c909ae03 - scheduler: change ET_RATIO_LIMIT to 250
svn path=/trunk/boinc/; revision=25606
2012-04-27 06:17:59 +00:00
David Anderson e06a11174c - web: put <nobr> around username | log in
svn path=/trunk/boinc/; revision=25605
2012-04-27 06:10:08 +00:00
David Anderson 6888468d6d - scheduler: call get_reliability_and_trust() and get_prefs_info()
in send_work_setup(), so that they run before lost jobs are resent.
    Otherwise lost jobs could get sent using an app version
    that's prohibited by prefs


svn path=/trunk/boinc/; revision=25604
2012-04-26 21:40:20 +00:00
David Anderson 909315552f - compile fix
svn path=/trunk/boinc/; revision=25603
2012-04-26 20:32:00 +00:00
David Anderson 88b19afae1 - compile fix
svn path=/trunk/boinc/; revision=25602
2012-04-26 06:56:02 +00:00
David Anderson 72368a6b20 - A first attempt to fix the bug where apps die with exit(1)
(whereas they didn't do this w/ older clients).
    On Windows, the client uses TerminateProcess(h, 1) to kill processes;
    the 1 is the exit code the process will appear to have.

    So instead, add a "will_restart" bool arg to the various kill
    functions, and if set use 0 (= STATUS_SUCCESS),
    otherwise use EXIT_ABORTED_BY_CLIENT.

    Note: in principle this shouldn't make any difference
    for quitting tasks,
    since handle_exited_app() checks for task state QUIT_PENDING
    and ignores the exit code in that case.
    The only place I can see where it would make any difference
    is when we kill a process because it hasn't been handling
    queued shared-memory messages for 180 seconds.

- client: add more info to the message about an exited app

- client: function return values (ERR_*) are different from
    process exit codes (EXIT_*).
    But in many places we were using return values as exit codes.
    Fix these.
    Also, break out the different types of limits a job can exceed
    (time, disk, memory) into difference exit codes.


svn path=/trunk/boinc/; revision=25601
2012-04-26 05:28:45 +00:00
David Anderson db44fa1371 - client: enforce <no_gpus> in config file not just at startup,
but also when config file is re-read.


svn path=/trunk/boinc/; revision=25600
2012-04-25 18:14:28 +00:00
David Anderson 813470f08d - Bad logic in Win code:
if you have
        *pbuf = HeapAlloc(...)
    then you need
        if (*pbuf == NULL)
    not
        if (pbuf == NULL)
- various code cleanups from 
- Makefile.am: don't include clientgui/res; nothing to make there

from Steffen Moeller


svn path=/trunk/boinc/; revision=25599
2012-04-25 07:09:14 +00:00
David Anderson 6591272c80 - client: fix crashing bug that happened when a scheduler reply
had a parse error, and it included project files.
    While parsing the scheduler reply we'd add FILE_REFs to
    PROJECT::project_files,
    but wouldn't link them to FILE_INFOs since this is done
    only if the reply parses correctly.
    The next garbage_collect() would dereference these NULL pointers.

    Solution: parse the FILE_REFS into SCHEDULER_REPLY::project_files.
    Copy this to PROJECT::project_files only if the reply parses.


svn path=/trunk/boinc/; revision=25598
2012-04-25 05:51:26 +00:00
David Anderson 9d25481174 - scheduler: fix bug that tried to open plan class spec file
on each request.
- client: when showing how much work a scheduler request returned,
    scale by availability (as is done to show the amount of the request)
- client in account manager request, <not_started_dur> and
    <in_progress_dur> are in wall time, not run time
    (i.e. scale them by availability)

Note: there's some confusion in the code between runtime and wall time,
    where in general wall time = runtime / availability.
    New convention: let's use "runtime" for the former,
    and "duration" for the latter.

svn path=/trunk/boinc/; revision=25597
2012-04-25 04:10:29 +00:00
David Anderson 6041cb40f9 - update_versions: eliminate PHP warnings when no version.xml file
svn path=/trunk/boinc/; revision=25596
2012-04-24 19:24:31 +00:00
Rom Walton f6ac59104b - WINSETUP: Fix long standing installer bug where we were attempting
to add the boinc_master account to the boinc_admins group when
        installing in the non-service install mode.  boinc_master is only
        created during service installs.  This was causing a setup failure
        on Windows 8. As far as I can tell it should have also been failing
        on Win7 and WinVista.
        
    win_build/installerv2/redist/Windows/src/boinccas/
        boinccas.rc
        CACreateBOINCGroups.cpp
    win_build/installerv2/redist/Windows/Win32/
        boinccas.dll
        boinccas95.dll
    win_build/installerv2/redist/Windows/x64/
        boinccas.dll
        boinccas95.dll

svn path=/trunk/boinc/; revision=25594
2012-04-24 17:05:56 +00:00
David Anderson b6b02aedf4 - client: fix bug that caused a project's jobs to all be run EDF
if the project has the <dont_use_dcf> flag set.

svn path=/trunk/boinc/; revision=25593
2012-04-24 06:07:36 +00:00
Eric J. Korpela 6e65ae4df1 Added NVIDIA GPU platform detection to boinc_get_opencl_ids_aux()
svn path=/trunk/boinc/; revision=25592
2012-04-23 21:23:40 +00:00
Rom Walton 27520b8ac0 - client: fix function prototypes for CUDA detection.
client/
        coproc_detect.cpp

svn path=/trunk/boinc/; revision=25591
2012-04-23 20:38:25 +00:00
David Anderson d65cf2cb8a - client: fix bug that could erroneously cause a GPU to
be "blocked by config file".


svn path=/trunk/boinc/; revision=25590
2012-04-22 06:28:47 +00:00
David Anderson 643c731411 - client: if we're contacting a project to ask it for work
of a particular processor type,
    ask it for work of other types only if we're below
    max buffer for those types.


svn path=/trunk/boinc/; revision=25589
2012-04-20 23:51:20 +00:00
Rom Walton b1c957d5b6 - MGR: Show() does not restore the window state from a minimized state. Use
maximize(false) to handle that situation.
        
    clientgui/
        BOINCBaseFrame.cpp
        BOINCGUIApp.cpp

svn path=/trunk/boinc/; revision=25588
2012-04-20 21:08:21 +00:00
David Anderson ce47c7aa6c - client/server: remove assert()s from message log code
svn path=/trunk/boinc/; revision=25587
2012-04-20 19:33:31 +00:00
David Anderson b07ce4aebb - client: add <suspend_debug> log flag
svn path=/trunk/boinc/; revision=25586
2012-04-20 18:50:10 +00:00
David Anderson 0f3491baa7 - client: add <suspend_debug> log flag
svn path=/trunk/boinc/; revision=25585
2012-04-20 17:46:27 +00:00
David Anderson f12e82917f - back end: print error messages instead of numbers in several places
svn path=/trunk/boinc/; revision=25584
2012-04-20 17:23:07 +00:00
Rom Walton e3571aab9c - Update copyrights.
client/win/
        boinc_cli.rc
        boinc_cmd.rc
        boinc_log.rc
    clientctrl/
        boincsvcctrl.rc
    clientgui/
        BOINCGUIApp.rc
        DlgAbout.cpp
    clientscr/
        boinc_ss.rc
        boinc_ss_opengl.rc
    clienttray/
        boinc_tray.rc

svn path=/trunk/boinc/; revision=25583
2012-04-19 20:43:35 +00:00
David Anderson 9c154484ee - fix many problems with validator_test
svn path=/trunk/boinc/; revision=25582
2012-04-19 08:47:38 +00:00
David Anderson c34093e374 - web: don't show account keys on account page;
rewrite the page explaining and showing account keys.
- client: remove <std_debug> log flag
- client: remove <zero_debts> config option


svn path=/trunk/boinc/; revision=25581
2012-04-19 07:36:47 +00:00
Wenjing Wu dffcd99498 fix bugs of step cpu calc and killing child process
svn path=/trunk/boinc/; revision=25580
2012-04-18 13:20:57 +00:00
David Anderson 66b20e1138 - scheduler: handling of allow_multiple_clients flag from client
was wrong.  From Bernd.


svn path=/trunk/boinc/; revision=25579
2012-04-17 23:23:22 +00:00
David Anderson 8208a3b72f - scheduler: add a program that targets remaining jobs in a batch
to a particular user (e.g. for cloud execution).
    From Derrick Kondo.


svn path=/trunk/boinc/; revision=25576
2012-04-17 21:50:13 +00:00
David Anderson fca2956408 - scheduler: fix bug in assigned-job logic (from Derrick Kondo)
- client: only send active tasks in get_simple_gui_info GUI RPC


svn path=/trunk/boinc/; revision=25575
2012-04-17 21:39:55 +00:00
David Anderson 1abff8dd98 win compile fix
svn path=/trunk/boinc/; revision=25560
2012-04-14 04:56:35 +00:00
David Anderson f4d985c659 - client: add PID to random stuff used to make host CPID,
in case running multiple clients on same host


svn path=/trunk/boinc/; revision=25559
2012-04-14 04:48:20 +00:00
Wenjing Wu ccad62b912 - wrapper: when reading fraction-done file, read the last line
(or at least the last double).
    This accommodates a particular application (LAMMPS)
    that can only append to this file.
- CAS@home stuff


svn path=/trunk/boinc/; revision=25557
2012-04-13 09:44:01 +00:00
Wenjing Wu bd3d4fee43 - CAS@home stuff
svn path=/trunk/boinc/; revision=25556
2012-04-13 05:45:16 +00:00
Rom Walton 94b6b0299d Quick Updates
svn path=/trunk/boinc/; revision=25555
2012-04-13 01:12:27 +00:00
Charlie Fenton f8f78c44fd web: Set Mac Intel platform to x86_64-apple-darwin instead of i686-apple-darwin
svn path=/trunk/boinc/; revision=25554
2012-04-12 22:41:35 +00:00
Charlie Fenton 4fd7e9890e web: separate Intel-only from Universal (PowerPC & Intel) clients on download-all page
svn path=/trunk/boinc/; revision=25553
2012-04-12 22:31:28 +00:00
Charlie Fenton 97af0e7e50 web: separate Intel-only from Universal (PowerPC & Intel) clients on download-all page
svn path=/trunk/boinc/; revision=25552
2012-04-12 22:30:02 +00:00
Charlie Fenton cff3533f86 web: separate Intel-only from Universal (PowerPC & Intel) clients on download-all page
svn path=/trunk/boinc/; revision=25551
2012-04-12 22:24:51 +00:00
Wenjing Wu dfc84b1916 - add script for canceling jobs
- CAS@home stuff


svn path=/trunk/boinc/; revision=25550
2012-04-12 12:20:16 +00:00
Wenjing Wu b15b04c6e8 - add cancel_wu script
svn path=/trunk/boinc/; revision=25549
2012-04-12 08:54:37 +00:00
Wenjing Wu 6c02937500 - CAS@home stuff
svn path=/trunk/boinc/; revision=25548
2012-04-12 07:30:45 +00:00
David Anderson d35758bedb - CAS@home stuff
svn path=/trunk/boinc/; revision=25547
2012-04-12 05:18:22 +00:00
David Anderson eb52ef9545 - stuff for CAS@home
svn path=/trunk/boinc/; revision=25546
2012-04-12 02:50:53 +00:00
David Anderson 30ec61bc7b svn path=/trunk/boinc/; revision=25544 2012-04-11 04:10:41 +00:00
David Anderson 8b9c871002 - API: fix C compile error
- initial checkin of remote job stuff for app from ICT


svn path=/trunk/boinc/; revision=25543
2012-04-10 06:11:19 +00:00