Rom Walton
952c064f18
* Fix version resource information for wrapper and vboxwrapper.
...
(From: Teemu Mannermaa)
2014-09-08 12:37:15 -04:00
David Anderson
64184333a7
wrapper: comment tweak
2014-07-16 19:28:33 -07:00
David Anderson
658547ccf6
wrapper: add --trickle X cmdline option to periodically report runtime
...
Add logic in wrapper to maintain and checkpoint total runtime.
Also vboxwrapper: slight refactor.
Note: we often use "elapsed time" where we mean "runtime".
Should use the latter.
2014-07-04 12:19:31 -07:00
Oliver Bock
88e840fc95
Normalized line breaks according to latest updates of .gitattributes
...
* As discussed with Rom
* See also: d81607b
, e93af6a
, 26ca219
, 8dad345
2014-06-27 10:12:11 +02:00
David Anderson
0441285cf2
wrapper: fix comment
2014-06-20 19:32:53 -07:00
David Anderson
8992189045
tweaks (fix comments, compile warnings)
2014-06-20 17:15:04 -07:00
David Anderson
25422782a3
wrapper: macro-subsitute GPU_DEVICE_NUM in cmdline passed to app
2014-05-30 14:27:07 -07:00
David Anderson
4d6ebcf6a1
change "core client" to "client" in some comments.
2014-05-30 12:29:08 -07:00
Rom Walton
9f5e9a0b7e
VBOX/WRAPPER: Introduce versioning information to the two wrappers. It is now compiled into the executable instead of relying on file name.
2014-05-21 13:57:16 -04:00
David Anderson
aacf0b0344
wrapper: log task completion as well as start
2014-04-30 15:36:28 -07:00
Rom Walton
91570a3e46
WRAPPER: remove outdated build script
2014-04-18 17:10:11 -04:00
Rom Walton
df17079ef5
WRAPPER: Remove the pthread library when building for Android.
2014-04-18 17:09:17 -04:00
Rom Walton
36d41d9edc
WRAPPER: Fix for previous commit
2014-04-18 16:08:46 -04:00
Rom Walton
673271c618
WRAPPER: Conditionally include pthread based on what platform we are compiling for.
2014-04-18 16:02:17 -04:00
Rom Walton
04eb8512fd
WRAPPER: Use the correct C++ compiler
2014-04-18 15:41:41 -04:00
Rom Walton
3bde3f7d60
ANDROID: Introduce build scripts for building the wrapper on Android.
2014-04-18 15:19:31 -04:00
Rom Walton
433edcf847
wrapper: Simplify error reporting paths.
2013-09-18 18:21:40 -04:00
Rom Walton
ecba0e9d73
wrapper: CreateFile returns INVALID_HANDLE_VALUE when something fails instead of NULL.
2013-09-18 16:59:17 -04:00
Rom Walton
cbf76dd0b0
wrapper: fix build break on Windows
2013-09-18 16:19:38 -04:00
Rom Walton
ff7e173690
wrapper: Use _get_osfhandle() to determine the OS handle for stdout/stderr. Redirect child processes stdout to the wrapper's stderr pipe.
2013-09-18 15:57:38 -04:00
Rom Walton
7fb2c00289
WRAPPER: Simplify the task run logic for Windows. Display the actual command line used by CreateProcess.
2013-09-18 13:09:56 -04:00
Rom Walton
93001d48db
wrapper: Adjust how cmd.exe is launched when the task launches a batch file. Support the cmd file extension as well.
2013-09-18 12:00:46 -04:00
David Anderson
e674006bcd
fix wrapper build script for Android
2013-08-23 09:55:46 -07: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
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
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
David Anderson
f1dd8cec18
- comment tweaks
2013-05-03 15:14:00 -07: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
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
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
0d07e872bd
android: Add execute permissions to shell scripts
2013-03-05 13:53:58 +01:00
Rom Walton
4fd40b9c9c
android: order dependent
2013-03-05 13:39:42 +01:00
Rom Walton
d34bee8759
android: pthread is bundled within the Android libc implementation. We do not need to specify it as an external lib.
2013-03-05 13:39:42 +01:00
Rom Walton
bd087f006f
android: another time
2013-03-05 13:39:42 +01:00
Rom Walton
d8a78b5e4a
android: ugh, one more time
2013-03-05 13:39:42 +01:00
Rom Walton
6f55b792a9
android: round three of makefile fixes for wrapper on android
2013-03-05 13:39:42 +01:00
Rom Walton
4d9d3fd4a0
android: lets try this a different way
2013-03-05 13:39:42 +01:00
Rom Walton
6d2ef43306
android: modify makefile to get around build errors when building for android
2013-03-05 13:39:42 +01:00
Rom Walton
4b3cd5e293
android: bug fix for build scripts
2013-03-05 13:39:42 +01:00
Rom Walton
e95265a1aa
android: commit shell scripts to build uppercase and wrapper for use on Android.
2013-03-05 13:39:42 +01:00
Rom Walton
41af56d679
Wrapper: Add trace statements to debug problems CAS@Home is having with the wrapper.
2013-03-04 17:39:24 +01:00
Rom Walton
076858a729
LIB: Standardize on using windows_format_error_string and drop windows_error_string.
...
* Move the windows_format_error_string function to win_util.cpp, .h instead of it being scattered between util.h and str_util.cpp.
* Convert the Windows error string into UTF8 before allowing it to be used by the caller
* Remove windows_error_string from library
2013-03-04 17:39:24 +01:00
Charlie Fenton
b8293bc457
wrapper: Fix build script and Makefile on Mac
2013-03-04 17:19:38 +01:00
David Anderson
17a4ab8db9
David 11 Dec 2012
...
- Win process control (affects API and wrapper):
Since Win doesn't have an API for process suspend/resume,
we were suspending processes by
1) enumerating all the threads in the system (typically several thousand)
2) suspending those belonging to the given process
The problem: for each thread, the code was calling a function
in diagnostics_win.cpp to see if the thread was exempted from suspension.
This check (which is unnecessary anyway if we're suspending another process)
was surrounded by a semaphore acquire/release.
The result: performance problems.
It could take a minute to suspend the threads.
Solution:
1) do the check for exemption only if we're suspending threads
in our own process (i.e. from the API)
2) if we're suspending multiple processes, enumerate the threads
only once, and see if each one belongs to any of the processes
3) have the wrapper elevate itself to normal priority.
Otherwise it can get preempted for long periods,
sometimes in the middle of scanning the threads.
Note: post-9x versions of Win have a process group API that includes suspend/resume.
We'll switch to this soon.
2013-03-04 17:02:40 +01:00