Commit Graph

1546 Commits

Author SHA1 Message Date
Eric J. Korpela 1f2d65bccb - Makefiles:
added client/scripts to default client build
    removed sea from the default clientgui build
    added locale/client to the default clientgui build
    moved installed headers from $(includedir) to $(pkgincludedir) which
       is $(includedir)/boinc by default.
    removed redefinitions of $(includedir) from Makefiles.
- configure:
    added locale/client/Makefile to AC_CONFIG_FILES


svn path=/trunk/boinc/; revision=15300
2008-05-28 01:38:39 +00:00
Rom Walton 02141eb5fc - DIAG: When an application crashes, dump out the install and data
directory as part of the crash report.
        
    lib/
        diagnostics_win.C

svn path=/trunk/boinc/; revision=15295
2008-05-27 21:18:17 +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 9a390c235d svn path=/trunk/boinc/; revision=15272 2008-05-22 03:57:55 +00:00
David Anderson 640f0d85c9 - boinccmd (Windows): chdir to the data directory (from registry)
svn path=/trunk/boinc/; revision=15271
2008-05-22 03:09:11 +00:00
Rom Walton f28fda8dac - DIAG: For Windows, lookup and store the install directory
location so that the diagnostics framework can use the
        debugger libraries.
        
        NOTE: This is only a problem for applications running
          under the v6 clients.
        
    lib/
        diagnostics.C, .h
        diagnostics_win.C
        

svn path=/trunk/boinc/; revision=15266
2008-05-21 05:09:15 +00:00
David Anderson 58b5f80366 - Added <d_allowed> element to get_disk_usage GUI RPC
svn path=/trunk/boinc/; revision=15190
2008-05-13 19:52:35 +00:00
David Anderson 1c8c140f95 - client: add <allow_multiple_clients> cc_config.xml option
- client: remove stress_shmem code

svn path=/trunk/boinc/; revision=15185
2008-05-12 21:27:14 +00:00
David Anderson 4f184cb9ef - client (win): bug fixes to yesterday's checkin
svn path=/trunk/boinc/; revision=15178
2008-05-12 20:29:57 +00:00
David Anderson db4164daba - Client (Windows) change the way core/app shmem segs are created.
Old: get_shmem_seg_name() tries names of the form shm_boinc_N
        until it finds one for which creating succeeds.
        Then it detaches (deletes) the segment and records the name.
        Later, the segment is created again.
        This creates a race condition if two core clients
        are running on the same host.
        It's also kind of silly.
    New: get_shmem_seg_name() doesn't detach the segment,
        and we dont have to create it again later.

svn path=/trunk/boinc/; revision=15172
2008-05-11 23:11:16 +00:00
David Anderson 3ab788cbd7 - tools: performance enhancement to crypt functions,
and have crypt_prog exit nonzero on failure
    (from Nicolas Alvarez)

svn path=/trunk/boinc/; revision=15170
2008-05-09 21:27:22 +00:00
David Anderson 6ab203081d - client part of the above
svn path=/trunk/boinc/; revision=15169
2008-05-09 21:07:15 +00:00
David Anderson d2a02a5184 - client and server: in coprocessor records, change "name" to "type"
to avoid confusion with "name" field of CUDA.
    This is a bug fix - please port.
- start script: don't error out if run_state.xml file is empty
    (which happens if project runs out of disk space)

svn path=/trunk/boinc/; revision=15168
2008-05-09 20:54:52 +00:00
Rom Walton f08acab0c2 Quick Updates
svn path=/trunk/boinc/; revision=15167
2008-05-09 17:45:34 +00:00
Rom Walton a514fa29ed Quick Updates
svn path=/trunk/boinc/; revision=15166
2008-05-09 17:44:50 +00:00
Rom Walton 82983c00dc - DIAG: Include the PDB filename that is linked to the EXE at
compile time to the module information dumped during a crash.
        
      NOTE: This should give a project admin a tickle that the PDB
        and EXE names need to be set before compiling and not renamed
        after the fact.
        
    lib/
        stackwalker_win.cpp

svn path=/trunk/boinc/; revision=15165
2008-05-09 17:41:07 +00:00
Rom Walton b146c3b68a - DIAG: Include the list of libraries loaded as well as their locations
when the runtime debugger is engaged.
        
    lib/
        stackwalker_win.cpp

svn path=/trunk/boinc/; revision=15161
2008-05-09 09:23:24 +00:00
Rom Walton f20ae55690 - DIAG: Passing a null value to fclose in VS 2005 will cause a crash, so
check to make sure that stdout_file and stderr_file are not null before
        attempting to close them. If they are null return ERR_FOPEN so that
        the next message logged can attempt to cycle the log without error.
    - CLIENT: Make sure the diagnostics framework is initialized before
        the config file is parsed or the command line is parsed, that way
        if and unexpected XML tab or command line parameter is found the
        client doesn't crash.
        
        NOTE: The client would only crash if the log file was already greater
          than 2MB which would cause the client to attempt to cycle the
          log files. Since the diagnostics framework wasn't initialized yet
          nothing was logged to the log file, no call stack was generated, 
          and the default Windows debugging environment was fired up.
          
    client/
        main.C
    lib/
        diagnostics.C

svn path=/trunk/boinc/; revision=15157
2008-05-09 05:57:11 +00:00
Rom Walton fd5d31ff71 - LIB: Windows 9X doesn't like it when you specify a security descriptor, so
special case Win9X so that it'll pass a NULL to CreateFileMapping.
    
    lib/
        shmem.C

svn path=/trunk/boinc/; revision=15152
2008-05-08 20:10:20 +00:00
David Anderson e6a5d0cbfb - scheduler: add new log flags debug_edf_sim_workload, debug_edf_sim_details
for getting info on EDF simulation;
    change output from seconds to hours
- API: remove extern "C" from graphics API
    (convince me it's needed before restoring)

svn path=/trunk/boinc/; revision=15148
2008-05-08 17:48:40 +00:00
Charlie Fenton 9126894098 client: Fix compiler warning
svn path=/trunk/boinc/; revision=15146
2008-05-08 01:42:21 +00:00
David Anderson 58645a3be1 - client (Unix): linking libcudart.so wasn't working,
so CUDA detection failed.
    For reasons I don't understand,
    adding "/usr/local/cuda/lib" to LD_LIBRARY_PATH
    and then doing dlopen("libcudart.so") wasn't working,
    even though the library is in that dir.
    I worked around this by calling
    dlopen("/usr/local/cuda/lib/libcudart.so") and if that fails call
    dlopen("libcudart.so"),
- Unix: commented out Eric's setenv() stuff.
    After doing a configure, HAVE_SETENV is not in config.h,
    so something's messed up with it.
- client: trimmed down "pre-release software" message


svn path=/trunk/boinc/; revision=15143
2008-05-07 21:46:49 +00:00
Eric J. Korpela 8b72dc9370 - Added implementation of setenv() for systems without it.
- Fixed bug in x_opengl.C.  On systems where putenv() adds the string to
      the environment rather than copies it, the environment would end up
      containing a random peice of the stack where the DISPLAY variable had
      been temporarily stored.



svn path=/trunk/boinc/; revision=15134
2008-05-06 17:10:44 +00:00
David Anderson 6e6fab3e7c - scheduler: clean up message log.
Merge redundant messages.
    Condition various messages on config flags.
- client (Unix) fix to CUDA detection if LD_LIBRARY_PATH is ""

svn path=/trunk/boinc/; revision=15122
2008-05-02 17:48:29 +00:00
Rom Walton 3dc77154e5 - MGR/CLI: remove direct references to CreateEnvironmentBlock and
DestroyEnvironmentBlock since Win98 doesn't support them. This
        functionality is only required for the Windows sandbox implementation
        anyway.
    - LIB: Remove direct reference to OpenThread in win_util.C since it
        isn't supported on Win98.
    - MGR: Another fix for CC execution on a Linux machine.
        
    client/
        app_start.C
    clientgui/
        BOINCClientManager.cpp
    lib/
        proc_control.C
        win_util.C

svn path=/trunk/boinc/; revision=15117
2008-05-02 15:59:37 +00:00
David Anderson d9645557a5 - scheduler: matchmaking scheduler now works;
uncomment MATCHMAKER to enable it.
    More testing needed.
- client (unix): avoid crash if LD_LIBRARY_PATH not set
    (port to 6.1 branch)


svn path=/trunk/boinc/; revision=15115
2008-05-01 22:11:08 +00:00
Charlie Fenton 72df062b6c implement Mac CUDA detection; fix compiler errors and warnings; change boinc_cmd to boinccmd/
svn path=/trunk/boinc/; revision=15111
2008-05-01 09:25:51 +00:00
David Anderson a850123b39 - boinc_cmd: changed help strings to say "boinccmd".
I'd like to change the filename too but can't figure out Makefile stuff

svn path=/trunk/boinc/; revision=15110
2008-04-30 21:59:46 +00:00
David Anderson 938d77ce4c - client (Unix) Add /usr/local/cuda/lib/ to LD_LIBRARY_PATH
before looking for CUDA library
- scheduler: some additional work on matchmaker scheduling
    Changed check_app_filter() so that it doesn't depend on
    the current multi-phase approach;
    move that logic to scan_array()


svn path=/trunk/boinc/; revision=15109
2008-04-30 20:31:33 +00:00
David Anderson 8d61ca0ad6 - client: Win: fix CUDA detection:
look in the registry to find the CUDA install directory,
		and look for cudart.dll in that dir.
	- client: for CUDA, don't confuse coproc.name ("CUDA")
		from coproc.prop.name (e.g., "Device Emulation (CPU)" on my PC,
		which doesn't have a recent-enough GPU)
	- client: if no coprocessors present, say so in startup messages

svn path=/trunk/boinc/; revision=15107
2008-04-30 19:18:51 +00:00
Rom Walton e796847658 - DIAG: Add an easy way for projects to initialize the diagnostics
framework for graphics applications.
    - DIAG: Make SetDllDirectory work for Win2k3, Vista, and Win2k8
    
    lib/
        diagnostics.C, .h
        stackwalker_win.cpp

svn path=/trunk/boinc/; revision=15105
2008-04-30 05:42:06 +00:00
Rom Walton 5a46215511 - MGR: Make help system work again
- MGR: Add pre-release to the BOINC Manager title bar and about
        dialog if it is a pre-release version of BOINC.
    - CLI: Add some pre-release text to the CC startup routine and
        suggest they revert back to a released build if they don't
        plan on testing the client.

    /
        version.h
        version.h.in
    client/
        auto_update.C
        client_state.C
    clientgui/
        AdvancedFrame.cpp
        DlgAbout.cpp
        sg_BoincSimpleGUI.cpp
        sg_DlgMessages.cpp
        sg_DlgPreferences.cpp
        SkinManager.cpp
    lib/
        common_defs.h

svn path=/trunk/boinc/; revision=15067
2008-04-17 16:18:16 +00:00
David Anderson fa6d38a51e - scheduler: fix FCGI compile problem.
FCGI can't use libboinc.a; is needs its own specially-compiled
    versions of everything in lib/


svn path=/trunk/boinc/; revision=15066
2008-04-17 15:43:51 +00:00
Charlie Fenton 8743712223 Fix is_file() and is_dir() to compile properly on Windows.
svn path=/trunk/boinc/; revision=15064
2008-04-16 09:04:12 +00:00
Charlie Fenton 8a3f4dc1e5 Fix is_file() to use S_ISREG() macro; fix is_dir() to use S_ISDIR() macro
svn path=/trunk/boinc/; revision=15063
2008-04-16 02:30:11 +00:00
Charlie Fenton 5740168365 API: fix boinc_resolve_filename_s() to handle symlinks the same as boinc_resolve_filename().
svn path=/trunk/boinc/; revision=15053
2008-04-15 10:30:06 +00:00
Charlie Fenton 4cfdf581f8 Fix is_symlink() to use S_ISLNK() macro
svn path=/trunk/boinc/; revision=15044
2008-04-14 09:15:01 +00:00
David Anderson ff70bf259e - client: use symlinks only if project has <use_symlinks/> element.
- API: fixed boinc_resolve_filename() bug: didn't work right for symlinks

svn path=/trunk/boinc/; revision=15043
2008-04-14 04:04:45 +00:00
Rom Walton c8bea1f7bd - LIB: Fix build break on Linux compat VM.
lib/
        util.C

svn path=/trunk/boinc/; revision=15038
2008-04-10 16:42:09 +00:00
Rom Walton c969d98c29 - DIAG: Make sure that if the symstore isn't defined at all, don't
construct the symstore search path.
        
    lib/
        stackwalker_win.cpp

svn path=/trunk/boinc/; revision=15035
2008-04-09 19:08:16 +00:00
David Anderson fe75c574a9 - client: send client_cap_plan_class as <x>1</x> rather than <x/>
in scheduler request; the latter breaks older schedulers.
- old parse code: make skip_unexpected() work with <x/>

svn path=/trunk/boinc/; revision=15027
2008-04-07 16:04:02 +00:00
Charlie Fenton e949c3cd41 Mac: Fix new backtrace code for x86_64 Client and project applications
svn path=/trunk/boinc/; revision=15023
2008-04-07 08:00:38 +00:00
Charlie Fenton 89538db7c4 Mac: Fix new backtrace code for x86_64 Client and project applications
svn path=/trunk/boinc/; revision=15022
2008-04-07 07:55:26 +00:00
David Anderson d439244f3f - fixes for gcc 4.3
svn path=/trunk/boinc/; revision=15020
2008-04-06 03:15:36 +00:00
Charlie Fenton f074fca337 Mac: Fix bugs in new backtrace code.
svn path=/trunk/boinc/; revision=15017
2008-04-04 12:32:28 +00:00
Charlie Fenton 907581140b Added a comment
svn path=/trunk/boinc/; revision=15016
2008-04-04 10:47:15 +00:00
Charlie Fenton 62b7599359 Mac: Fix bugs in new backtrace code
svn path=/trunk/boinc/; revision=15015
2008-04-04 10:39:22 +00:00
David Anderson e584774f08 - API: change boinc_resolve_filename() so that it detects symbolic links
and treats them as a special case.
    Also, if the virtual file doesn't exist (as in the standalone case)
    just return zero; otherwise if the app is running standalone
    and checks the return value, it will error out.

    NOTE: apps that check the return value of boinc_resolve_filename()
    won't work on 6.12+ under Unix;
    recompiling with this change will fix the problem.

svn path=/trunk/boinc/; revision=15012
2008-04-03 21:59:05 +00:00
David Anderson b33276bee3 - compile fixes for gcc 4.x; fixes #592
svn path=/trunk/boinc/; revision=15007
2008-04-02 19:33:12 +00:00