mirror of https://github.com/BOINC/boinc.git
parent
7e16deb790
commit
ed414c26f0
|
@ -30,8 +30,11 @@
|
|||
#include <string>
|
||||
|
||||
#include "error_numbers.h"
|
||||
#include "boinc_api.h"
|
||||
#include "coproc.h"
|
||||
#include "str_replace.h"
|
||||
|
||||
#include "boinc_api.h"
|
||||
|
||||
#include "boinc_opencl.h"
|
||||
|
||||
// returns an OpenCL error num or zero
|
||||
|
@ -72,10 +75,9 @@ int boinc_get_opencl_ids_aux(
|
|||
strcpy(vendor, GPU_TYPE_ATI);
|
||||
}
|
||||
|
||||
if (strcasestr(vendor, "nvidia"))
|
||||
{
|
||||
if (strcasestr(vendor, "nvidia")) {
|
||||
strcpy(vendor, GPU_TYPE_NVIDIA);
|
||||
}
|
||||
}
|
||||
if (!strcmp(vendor, type)) {
|
||||
*device = device_id;
|
||||
*platform = platforms[platform_index];
|
||||
|
|
|
@ -23,4 +23,6 @@
|
|||
// NOTE: Compile and link this function with your application;
|
||||
// it is not included in the standard BOINC libraries.
|
||||
|
||||
#include "cl_boinc.h"
|
||||
|
||||
int boinc_get_opencl_ids(cl_device_id*, cl_platform_id*);
|
||||
|
|
|
@ -3754,3 +3754,9 @@ David 9 May 2012
|
|||
- C++ code: use MAXPATHLEN for char arrays that hold paths
|
||||
|
||||
(many .cpp files)
|
||||
|
||||
David 9 May 2012
|
||||
- compile fix
|
||||
|
||||
api/
|
||||
boinc_opencl.cpp,h
|
||||
|
|
Loading…
Reference in New Issue