Commit Graph

492 Commits

Author SHA1 Message Date
David Anderson 98123560e2 Condor: add variant of uppercase that processes multiple files 2013-08-27 21:24:01 -07:00
David Anderson e674006bcd fix wrapper build script for Android 2013-08-23 09:55:46 -07:00
Rom Walton 04217e2c97 VBOX: Code cleanup 2013-08-22 21:09:24 -04:00
Rom Walton 84b5162d2d VBOX: Be more specific on the reason for the VirtualBox not being ready. It was a long time between incidents in dealing with a Linux kernel upgrade and the need to recompile the VirtualBox drivers. Vboxwrapper properly put the task into a waiting mode but the status message in the manager didn't give the right kind of hint as to the problem. 2013-08-21 12:39:37 -04:00
Rom Walton 655fd5e429 VBOX: Fix trickle-up message passing. (From: Christian Beer) 2013-08-19 13:05:57 -04:00
Rom Walton e3316714ff VBOX: Make the disable USB/COM/LPT/Clipboard/DragDrop VM modifications non-fatal. Some commands appear to have introduced in recent builds of VirtualBox and error out on older builds. 2013-08-14 11:51:30 -04:00
Rom Walton d0c765b101 VBOX: When running a 32-bit vboxwrapper on a 64-bit Windows machine, exit with a temporary error suggesting that the volunteer upgrade to a 64-bit BOINC client. 32-bit vboxwrapper cannot detect VirtualBox on a 64-bit system. 2013-08-13 00:26:12 -04:00
David Anderson e0a8ac2427 Wrapper (Android): don't get the CPU time of tasks. The function sometimes crashes (under investigation), and the GUI doesn't show CPU time anyway. 2013-08-10 22:20:17 -07:00
David Anderson 1c31f6feaa Condor: fix bug when 2 input files have same contents; fix error messages 2013-08-09 16:06:36 -07:00
David Anderson 74a8a8cad7 Condor: use flockfile() instead of pthread mutex 2013-08-09 14:55:41 -07:00
David Anderson 37e822fe3a Condor: implement asynchronous mode in BOINC GAHP; from Jaime 2013-08-09 13:41:58 -07:00
David Anderson 53f97f9cf1 Condor: fix memory-allocation bugs, from Jaime 2013-08-09 13:33:03 -07:00
Charlie Fenton aafa5e45c0 nvcuda sample: add comments about missing features in the BOINC CUDA sample code:
* Code to determine the correct device assigned by BOINC.
* Code to select which NVIDIA GPU to use if there are more than one.
2013-07-29 23:22:17 -07:00
Rom Walton 54bbd98b02 VBOX: Add an additional error check to determine if a stale VM needs to be unregistered. 2013-07-08 20:42:03 -04:00
David Anderson 519a0bcbef API: add test harness for the runtime system
- If you run the client with --run_test_app,
  runs "test_app" in the current directory and interacts with it
  (and does nothing else).
  It can suspend/resume it with arbitrary timing;
  this is controlled in run_test_app() (app_start.cpp).
- example app: add --critical_section option.
  This lets you test the runtime system for apps that do
  most of their work in a critical section (like GPU apps).
- Add some logging messages (conditioned by DEBUG_BOINC_API)
  to the runtime system.
- boinc_finish() waits for the timer thread to write final messages;
  make sure it doesn't do anything else
  (like suspend the worker thread) during this period
2013-07-04 16:00:10 -07:00
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