Commit Graph

13 Commits

Author SHA1 Message Date
Vitalii Koshura a99950812c
[Android] Fix GPU detection
Starting from Android 8, the GPU detection is broken due to the fact that dlopen() now return NULL.
This was done to fix issues with library names resolution.
New API was introduced, but it's not available from the NDK.
Instead, we have to load the library manually and call the function directly.
Unfortunately, on Android this behavior was changed even more, and now we need to look for other functions.

By fixing this behavior, we have now successful Mali GPU detection.
But unfortunately, this doesn't work for Qualcomm Adreno GPUs.

Looks like implementation of Qualcomm has some problems with clGetDeviceIDs.
It returns CL_DEVICE_NOT_FOUND for CL_DEVICE_TYPE_GPU and CL_DEVICE_TYPE_ACCELERATOR combined.
But it returns CL_SUCCESS when asking separately for CL_DEVICE_TYPE_GPU or CL_DEVICE_TYPE_ACCELERATOR.
So we will ask for CL_DEVICE_TYPE_GPU and CL_DEVICE_TYPE_ACCELERATOR separately.

This fixes #3613 and #4204.

Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2023-08-23 23:59:15 +02:00
David Anderson 13a5b9bf3e change multiple-inclusion guard names to BOINC_FILENAME_H 2017-04-07 23:54:49 -07:00
Rom Walton aba6d8de95 lib: Add more OpenCL defines and HTTP references to the extension documentation 2015-12-18 23:46:08 -05:00
Rom Walton b8934d3a75 lib: Add defines for Nvidia specific OpenCL extensions. To be used later 2015-12-18 23:38:33 -05:00
Rom Walton a6ca46aacc client: AMD decided to put the more descriptive version of the GPU name in a custom extension, so use the custom attribute to get the board name. 2015-12-18 22:32:50 -05:00
David Anderson 6f29a50812 validator: fixes and features
- add --is_gzip option to sample_bitwise_validator.
  If set, all files are treated as gzip archives.
  Check their 10-byte header to verify that it's a gzip file,
  but ignore it when comparing files.
- validator.cpp: don't error out on unparsed cmdline args,
  since we're now using them in sample_bitwise_validator
  and sample_substr_validator.
- fix build error on Debian
2014-03-20 12:38:29 -07:00
Charlie Fenton 031ec10629 Remove Mac Availability Macro and weak-link support from cl_boin.ch
svn path=/trunk/boinc/; revision=24618
2011-11-18 00:05:19 +00:00
Rom Walton c85668d044 Quick Updates
svn path=/trunk/boinc/; revision=24571
2011-11-10 17:41:13 +00:00
Rom Walton e732b9d2ef - client & lib: Update the OpenCL header to include calling conventions
and weak link information for Mac machines.

    lib/
        cl_boinc.h

svn path=/trunk/boinc/; revision=24570
2011-11-10 17:35:26 +00:00
Charlie Fenton 0e5e4da926 API: More fixes to boinc_get_opencl_ids()
svn path=/trunk/boinc/; revision=24103
2011-09-01 08:31:55 +00:00
Charlie Fenton a02c37cbce API: Fix compile errors and warnings, add documentation
svn path=/trunk/boinc/; revision=24101
2011-09-01 00:06:34 +00:00
Charlie Fenton 9256e9f4fd client: write / parse OpenCL info in COPROC XML data
svn path=/trunk/boinc/; revision=24025
2011-08-23 11:29:11 +00:00
David Anderson 247413b291 - server/client: make a stripped-down OpenCL header file, lib/cl_boinc.h,
for the things that BOINC actually needs
    (fixes server compile problems)
- client: fix various compile errors in coproc_detect.cpp


svn path=/trunk/boinc/; revision=23310
2011-04-01 19:39:58 +00:00