Commit Graph

19375 Commits

Author SHA1 Message Date
Rom Walton 62dc78ecf3 - Normalize the way E@H returns OpenCL information to the client
software.
        
    doc/
        get_platforms.inc

svn path=/trunk/boinc/; revision=25678
2012-05-15 17:29:53 +00:00
Rom Walton 4f029af0e7 quick update
svn path=/trunk/boinc/; revision=25677
2012-05-15 17:01:50 +00:00
Rom Walton bd8cee05e6 - MGR: Add OpenCL icon to the ProjectInfo wizard page.
clientgui/
        ProjectInfoPage.cpp, .h
    clientgui/res/
        openclicon.xpm
    clientgui/res/templates/
        openclicon.png
    lib/
        diagnostics.cpp

svn path=/trunk/boinc/; revision=25676
2012-05-15 16:42:39 +00:00
David Anderson 71e93caf85 - scheduler: revision of app_plan_spec mechanism.
Not debugged, but it compiles now.


svn path=/trunk/boinc/; revision=25675
2012-05-14 19:49:12 +00:00
David Anderson 7f3fd1f45e - LAMMPS script: chdir back to html/user, else page_head() breaks
svn path=/trunk/boinc/; revision=25674
2012-05-14 06:54:38 +00:00
David Anderson 245aa70cf9 - web: use gmdate() instead date() to avoid time zone warning
svn path=/trunk/boinc/; revision=25673
2012-05-12 15:13:43 +00:00
Rom Walton af2741f571 quick update
svn path=/trunk/boinc/; revision=25672
2012-05-11 18:54:15 +00:00
Rom Walton 63483b5bb7 - VBOX: When the system confirms our port number request or assigns us a
new port number to work with convert it from network byte order 
        (big endian) to the host byte order (little endian on x86/x64 processors).

    samples/vboxwrapper/
        vbox.cpp

svn path=/trunk/boinc/; revision=25671
2012-05-11 18:53:36 +00:00
Bernd Machenschalk 003700930e scheduler: don't try to send_file_deletes() with an incomplete request
svn path=/trunk/boinc/; revision=25670
2012-05-11 09:45:02 +00:00
David Anderson ceef77edfc - diagnostics lib:
- store file sizes as double rather than int
    - if we're appending to log files, initialize the
        size variables to the current size
    - check return value of fprintf, only increment size if it's +
    - when rotate log file, reset size var to zero


svn path=/trunk/boinc/; revision=25669
2012-05-10 19:47:51 +00:00
Charlie Fenton c251286db5 MGR: Eliminate QuickDraw calls for OS 10.8 compatibility
svn path=/trunk/boinc/; revision=25667
2012-05-10 08:56:58 +00:00
Rom Walton 1751c5d698 - lib: Fix a bug where information that was meant for stdout was
being written to stderr instead.
    - lib: Keep track of the rough estimate of stdout and stderr by
        incrementing internal variables instead of doing a stat on
        each log write.  stat() on Windows is converted to a FindFirstFile()
        call which in turn looks up the file size information in the
        directory structure file system entry.  The directory structure 
        information is only updated periodically.  This lead to larger
        than expected log file for both the manager and core client.
        
        This has the added advantage of reducing the overall number of
        file I/O operations when logging information.
        
    lib/
        diagnostics.cpp

svn path=/trunk/boinc/; revision=25666
2012-05-09 23:22:37 +00:00
David Anderson f022b566de - Win compile fixes
svn path=/trunk/boinc/; revision=25665
2012-05-09 20:06:54 +00:00
David Anderson ed414c26f0 - compile fix
svn path=/trunk/boinc/; revision=25664
2012-05-09 20:03:15 +00:00
David Anderson 7e16deb790 - compile fix
svn path=/trunk/boinc/; revision=25663
2012-05-09 18:24:54 +00:00
David Anderson 24c0fcc9bf - another MAXPATHLEN
svn path=/trunk/boinc/; revision=25660
2012-05-09 18:16:15 +00:00
David Anderson 32a08d27d9 - C++ code: use MAXPATHLEN for char arrays that hold paths
svn path=/trunk/boinc/; revision=25659
2012-05-09 16:11:50 +00:00
Bernd Machenschalk 8b5b765bb7 scheduler: get app_version info for validator items
svn path=/trunk/boinc/; revision=25658
2012-05-09 08:04:21 +00:00
Bernd Machenschalk 84a53855ad scheduler: don't override avg_ncpus per default
svn path=/trunk/boinc/; revision=25657
2012-05-08 12:51:20 +00:00
Bernd Machenschalk f57f4634df scheduler: no functional change, just got rid of DOS linebreaks
svn path=/trunk/boinc/; revision=25656
2012-05-08 12:31:37 +00:00
Bernd Machenschalk 91c3ddda93 lib: added function secs_to_hmsf() which converts (double) seconds
to a string 0h00m00s00

svn path=/trunk/boinc/; revision=25655
2012-05-07 15:41:34 +00:00
David Anderson 4d1063728b - web: if user.has_profile = 0 but there actually is a profile,
update user.has_profile


svn path=/trunk/boinc/; revision=25654
2012-05-07 06:46:36 +00:00
David Anderson 1d43879c0a - client: fix bug where coproc name could be set incorrectly when:
a) there are multiple GPU vendors
    b) one of them is detected via OpenCL but not "native" (CUDA/CAL)


svn path=/trunk/boinc/; revision=25653
2012-05-06 10:25:14 +00:00
Charlie Fenton bb84a36d83 Mac installer: changes for OS 10.8 compatibility
svn path=/trunk/boinc/; revision=25651
2012-05-06 08:22:37 +00:00
Charlie Fenton 7cbfe25ed9 Mac installer: changes for OS 10.8 compatibility
svn path=/trunk/boinc/; revision=25649
2012-05-03 14:09:47 +00:00
Charlie Fenton 208c712946 Mac installer: changes for OS 10.8 compatibility
svn path=/trunk/boinc/; revision=25648
2012-05-03 11:40:55 +00:00
Charlie Fenton bf0a467ba4 Mac installer: changes for OS 10.8 compatibility
svn path=/trunk/boinc/; revision=25645
2012-05-03 11:33:03 +00:00
David Anderson 8ec49c28fc svn path=/trunk/boinc/; revision=25635 2012-05-02 12:05:09 +00:00
David Anderson 9ecf34dfce svn path=/trunk/boinc/; revision=25634 2012-05-02 12:04:14 +00:00
David Anderson 0e1b22fc89 svn path=/trunk/boinc/; revision=25633 2012-05-02 11:57:06 +00:00
Charlie Fenton 01b6037e77 Mac: Update XCode project with new source files
svn path=/trunk/boinc/; revision=25632
2012-04-30 23:55:12 +00:00
Charlie Fenton 633f461d01 lib: Fix compile break on Mac
svn path=/trunk/boinc/; revision=25631
2012-04-30 23:53:57 +00:00
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