Commit Graph

31 Commits

Author SHA1 Message Date
Rom Walton 2cc9a0b6c4 client: Cleanup low hanging fruit with regards to cleaning up sprintf.
Use snprintf instead.
2016-02-18 00:59:13 -05:00
David Anderson bc8b9a5d9e client (Unix): use dlerror() for GPU library failures; shows the filename 2015-12-04 17:54:34 -08:00
David Anderson 65ba7f9990 client: close GPU libraries after we're done with them 2015-12-03 13:02:09 -08:00
Rom Walton 91147106f6 client: Fix build break on Windows 2015-10-28 13:58:42 -04:00
David Anderson f0df42efbd client (Unix): dlclose() dynamic libraries in GPU code 2015-10-21 08:34:02 -07:00
David Anderson 0a74e7fe0d client: GPU name tweak 2015-10-02 00:10:18 -07:00
David Anderson 5c0ec94544 client: updated AMD GPU names, from Jord 2015-10-01 16:42:42 -07:00
David Anderson 4901e27282 client: don't include GPUs that lack OpenCL/Cal/CUDA when main GPU has it
E.g.: if the "best" AMD GPU can do OpenCL, don't include AMD GPUs that can't,
even if use_all_gpus is set.
Otherwise lots of jobs will error out.
2014-04-26 09:05:00 -07:00
David Anderson cf0a0817c0 server: fix some compile warnings
Add a derived class DB_APP_VERSION_VAL for use by the validator,
containing the extra fields it uses,
so that we're not doing memset 0 on vectors
2014-03-19 14:55:16 -07:00
David Anderson c77f580746 client: AMD GPU naming, from Jord 2013-11-05 19:15:54 -08:00
David Anderson 3d644861aa client: AMD GPU detection fixes 2013-10-24 20:56:44 -07:00
David Anderson 5a198b7fcb AMD GPU naming updates, from [P3D] Crashtest 2013-10-23 21:56:20 -07:00
David Anderson d9ee74fc41 client: AMD GPU naming tweak 2013-08-26 20:07:21 -07:00
Charlie Fenton 631e236b08 client: tweaks to code for detecting GPUs via a child process.
Added safety features requested by Rom Walton:
* Change COPROC_ATI::get_available_ram and  COPROC_NVIDIA::get_available_ram to static routines to prevent calling them without first loading CAL or CUDA libraries.
* Add tests for NULL library calls in these routines.
* Add comments warning about need to call from a separate child process on dual-GPU laptops, proper library initialization, etc.
2013-06-27 02:36:20 -07:00
Charlie Fenton 4d74c5abbd client: tweaks to code for detecting GPUs via a child process and change sprintf calls to safer snprintf. 2013-06-26 05:00:25 -07:00
Charlie Fenton 737ab61bce client: tweaks to code for detecting GPUs via a child process and change sprintf calls to safer snprintf. 2013-06-26 02:24:36 -07:00
Charlie Fenton e2b2370e9d client: optionally detect GPUs via a child process, for dual_GPU laptops.
Some dual-GPU laptops (e.g., Macbook Pro) don't power down the more powerful GPU until  all applications which used them exit.  To save battery life, the client launches a second instance of the client as a child process to detect and get info about the GPUs.
The child process writes the info to a temp file which our main client then reads.
This option is enabled at compile time by defining USE_CHILD_PROCESS_TO_DETECT_GPUS as non-zero in gpu_detect.cpp
2013-06-25 04:31:34 -07:00
David Anderson cfd3ba9d13 client: AMD GPU ID tweaks, from [P3D] Crashtest 2013-06-20 12:19:36 -07:00
David Anderson 59215de948 client: AMD GPU identification updates from [P3D] Crashtest 2013-06-06 23:13:07 -07:00
David Anderson 78f7610f6e remove dependency of boinc_api.h on str_replace.h (and hence config.h)
Any files that use strlcpy() or strlcat() must directly include str_replace.h
2013-06-06 17:31:46 -07:00
David Anderson 846b8c7757 all components: change strcpy() to strlcpy() when possible.
This commit should cover the client and manager code.
2013-06-03 20:24:48 -07:00
David Anderson 4142a23ae6 AMD GPU naming tweaks
From [P3D] Crashtest
2013-04-23 23:06:02 -07:00
Charlie Fenton a6f0810145 client: add AMD GPU name for HD 3650 (RV635) 2013-04-15 03:03:10 -07:00
David Anderson b98d6154d1 - client: AMD GPU name tweaks 2013-04-07 00:32:46 -07:00
David Anderson b9a25b8a20 - client: AMD GPU names; from Jord 2013-04-06 22:09:18 -07:00
David Anderson aadb36578b - Client: detect new Win versions and AMD GPUs; from [P3D] Crashtest 2013-04-03 00:19:01 -07:00
Charlie Fenton eb40422c34 client: If OpenCL detection gets an error for a platform or device, finish detection of the remaining platforms and / or devices
svn path=/trunk/boinc/; revision=26047
2012-08-20 10:04:19 +00:00
David Anderson c9f3c16f86 - client: AMD GPU detection addition (from [P3D] Crashtest)
svn path=/trunk/boinc/; revision=25790
2012-06-22 18:23:09 +00:00
David Anderson 126a54c3d9 - client: AMD GPU detection addition (from [P3D] Crashtest)
svn path=/trunk/boinc/; revision=25777
2012-06-20 03:30:13 +00:00
David Anderson b050deecf7 - client: compile fixes
svn path=/trunk/boinc/; revision=25773
2012-06-18 20:41:37 +00:00
David Anderson 5e61c29cc3 - client: split GPU detection code into separate files
svn path=/trunk/boinc/; revision=25771
2012-06-18 20:12:30 +00:00