Commit Graph

477 Commits

Author SHA1 Message Date
David Anderson 213bb934a7 Condor interface changes
BOINC_QUERY_BATCHES now prints, for each queried batch,
    a count of jobs followed by the jobs
BOINC_ABORT_JOBS takes a list of jobs, which may belong to different batches.
    The handler for this looks up the batches and makes sure
    the jobs belong to the user.
2013-05-30 23:38:33 -07:00
David Anderson ff261cb6df Condor interface: bug fixes; add request_gen script; add retire_batch command 2013-05-30 09:44:58 -07:00
David Anderson 439299d7b3 sample apps: include <cmath> instead of <math.h> 2013-05-28 12:00:39 -07:00
David Anderson 8009a8cecb Condor interface: various fixes, mostly from Jaime Frey
- XML parser: for parse_string(), malloc the 256KB buffer instead of
    allocating it on the stack; the latter crashes threads with 32KB stacks.
    However, do the malloc() only if we've actually seen the start tag
    (this required a bit of code shuffle).
- BOINC GAHP: escape spaces in error msgs
2013-05-27 11:45:10 -07:00
David Anderson ff1311bf11 BOINC/Condor interface: tweaks from Jaime Frey 2013-05-21 20:35:14 -07:00
David Anderson 8e2524f55f Unix build: Makefile changes for "make install", from Steffen Moeller
"make install" followed by make_project should now work
2013-05-20 15:19:13 -07:00
David Anderson 2c3bc9c9b9 Unix build: tweak Makefiles in sample apps 2013-05-16 09:38:31 -07:00
David Anderson 1d63b6d8cc Condor: tweak 2013-05-15 16:50:27 -07:00
David Anderson ed2fb9d26a Condor: various fixes to BOINC GAHP 2013-05-15 16:47:17 -07:00
Rom Walton a627b1a9a5 VBOX: Break the modify VM phase into smaller chunks. Some platforms do not support turning off LPT ports for instance. 2013-05-09 10:04:26 -04:00
David Anderson bb2ee893d3 wrapper: add task time limit feature 2013-05-08 22:38:44 -07:00
David Anderson 767054fa87 wrapper: resolve names of zip and unzip files 2013-05-06 01:48:06 -07:00
Charlie Fenton fc0e6d20a0 VBOX: a value of 0 in <cpu_usage_limit> means "no limit", so set it to 100 if it is 0. 2013-05-06 01:06:08 -07:00
Charlie Fenton 99c0b80b96 VBoxWrapper: Balance braces because unbalanced braces confuse Xcode's text editor. 2013-05-06 00:47:50 -07:00
David Anderson f1dd8cec18 - comment tweaks 2013-05-03 15:14:00 -07:00
Rom Walton b6ab8718ee VBOX: Adjust the failsafe minimum CPU Usage value to 1. The VM should eventually boot. 2013-05-01 14:01:06 -04:00
Rom Walton b90297021c VBOX: Update project files 2013-05-01 11:38:24 -04:00
Rom Walton d291c59d6c VBOX: Fix version check so that it can work with RPM based distros of Linux.
VBOX: Adjust the set_cpu_usage() and set_network_usage() function prototypes to use ints and handle the preference conversion in the calling function.
VBOX: Set the minimum CPU usage value to 5%, if for some reason somebody chooses 0% (on purpose or bug) VirtualBox goes nuts.  This should give the VM at least enough time to render a few frames and eventually boot.
2013-05-01 11:27:04 -04:00
David Anderson 4ad5cf05f6 Improve Makefiles for sample apps. From Gianfranco. 2013-04-26 13:46:28 -07:00
David Anderson 2d8e1c39b6 Improve sample application Makefiles
Use CXXFLAGS, CPPFLAGS, LDFLAGS if they're defined in the environment.
From Guo Yixuan.
2013-04-25 01:26:24 -07:00
Rom Walton e80958162d VBOX: Disable virtualized COM ports, LPT ports, and audio cards. Also disable bi-directional clipboard and drag and drop services.
This probably isn't needed, but VirtualBox templates may change in the future and disabling them reduces our exposure to various types of errors.
2013-04-24 15:18:56 -04:00
Rom Walton 2871721c90 VBOX: Add some text to atderr about the incompatible version of VirtualBox. 2013-04-24 15:05:32 -04:00
Rom Walton b19d1ea85f VBOX: Start keeping track on incompatible versions of VirtualBox.
Set the temporary exit delay to one day if an incompatible version is detected.  This gives the volunteer a chance to take corrective action before the task errors out after it exceeds its deadline.
2013-04-24 15:03:26 -04:00
Rom Walton 0a39e44a79 VBOX: Disable USB support in virtual machines by default.
On Linux the currently signed-in user has to be added to the vboxusers group in order to handle bridging USB devices.  If the user has not taken that step virtual box throws a warning that looks like an error.  This caused vboxwrapper to believe that the VM had failed to start.  Since we do not know of any VM enabled problem that needs to communicate with an external USB device, just disable the feature entirely.
2013-04-24 10:31:06 -04:00
David Anderson a5bcf6ab3b - client: work fetch message tweaks: show state before actions 2013-04-02 17:04:45 -07:00
David Anderson a78705a8d4 - client emulator: ignore non-CPU-intensive apps
- remote job submission:
    - prefix error messages with "BOINC server:"
      so higher levels can tell where the error is coming from
    - "get templates" RPC can take job name instead of app name
- Condor interface
    - add BOINC_SELECT_PROJECT function
    - BOINC_SUBMIT no longer has info about output files
    - Change BOINC_FETCH_OUTPUT semantics
2013-03-22 22:04:35 -07:00
David Anderson d95da0f75c - Condor integration:
- change "query_batch" to "query_batches"; allow multiple batches
    - add "ping server" web RPC and GAHP function
    - change BoincDb::get() so that it generates XML error message if needed
2013-03-22 10:25:39 +01:00
David Anderson bd8ecb1b00 - Condor integration:
- add Web RPC for querying a completed job (returns status,
        stderr out, run times, etc.)
    - support Jaime's changes to GAHP protocol
    - support for zipped output files
2013-03-15 13:38:44 +01:00
David Anderson 72d38818b4 - BOINC/Condor stuff
- C++ interfaces to remote functions: add error_msg argument,
    so caller can get textual description of error
2013-03-07 11:31:39 +01:00
Charlie Fenton 59e11b8b38 Create unified OpenCL sample; delete obsolete separate NVIDIA OpenCL sample files 2013-03-07 11:28:43 +01:00
Charlie Fenton 36dddfd073 samples/openclapp: delete obsolete make file 2013-03-07 11:28:43 +01:00
Charlie Fenton f8c7518c56 Create unified OpenCL sample; update to use boinc_get_opencl_ids();fix bugs 2013-03-07 11:28:43 +01:00
Charlie Fenton 52a25f8194 Create unified OpenCL sample 2013-03-07 11:28:43 +01:00
Charlie Fenton c2f6e9c845 Create unified OpenCL sample 2013-03-07 11:28:43 +01:00
David Anderson d6c92d870c - Code cleanup for remote job submission
- Add abort_jobs operation to BOINC GAHP
- Change batch-related RPCs so that you can identify batch
    either by database ID or name
2013-03-05 17:15:18 +01:00
David Anderson 47d3c9ffff - wrapper: eliminate spurious error message in zip parsing;
make it work if stderr.txt is one of the files being zipped.
- user web: show GPU driver version as 341.07
2013-03-05 17:11:23 +01:00
David Anderson a6af5bf272 - remote job submission tweaks 2013-03-05 17:10:31 +01:00
David Anderson c3ec0e91de - client: show nvidia driver version as 314.07 instead of 314.7 2013-03-05 16:58:44 +01:00
David Anderson 3a530a4c34 - client: check return value of the function (statfs or statvfs)
used to find disk space and usage.
    This may be failing for in-memory filesystems on Linux.
2013-03-05 15:05:29 +01:00
David Anderson 3977ad8845 - Condor interface: small code shuffle 2013-03-05 14:52:38 +01:00
David Anderson 4eed4c1b7d - client: message tweak
- remote job submission: output file fetch now working.  Woo hoo!
2013-03-05 14:52:37 +01:00
David Anderson 46f06b9350 - Remote job submission stuff for Condor.
Submit and Query are more or less working.
2013-03-05 14:52:37 +01:00
David Anderson 7f4263b079 - Condor stuff; basic function works now! 2013-03-05 14:26:40 +01:00
Rom Walton 0efd0b2738 wrapper: remove unneeded debug code from the wrapper 2013-03-05 14:17:54 +01:00
David Anderson 98fbd13a9e - Wrapper: CPU time account was broken on Windows 2013-03-05 14:17:54 +01:00
Rom Walton 32f8e130a9 android: Add environment variables for CC and CFLAGS. The regex stuff in the wrapper was using the Linux(x86) compiler instead of the Android (ARM) cross-compiler. 2013-03-05 14:17:54 +01:00
David Anderson 3321837b01 - wrapper: fix CPU time accounting on Unix 2013-03-05 14:05:04 +01:00
David Anderson 6108deb7b0 - wrapper: use waitpid() instead of wait4(), which is missing on Android. 2013-03-05 14:05:04 +01:00
David Anderson 2a73dc0e01 - remote file management stuff for Condor 2013-03-05 14:05:04 +01:00
David Anderson a46a5926ae - remote file management and job submission stuff for Condor 2013-03-05 14:05:04 +01:00