- compile fix

svn path=/trunk/boinc/; revision=25664
This commit is contained in:
David Anderson 2012-05-09 20:03:15 +00:00
parent 7e16deb790
commit ed414c26f0
3 changed files with 14 additions and 4 deletions

View File

@ -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];

View File

@ -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*);

View File

@ -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