mirror of https://github.com/BOINC/boinc.git
client: strcasestr does exist on Windows in lib/str_replace.cpp, but I just needed to #include "str_replace.h". This is preferable because it handles INTEL as well as Intel and intel
This commit is contained in:
parent
2f67ee08ce
commit
f3c11f5831
|
@ -7310,3 +7310,11 @@ Rom 5 Dec 2012
|
|||
|
||||
client/
|
||||
gpu_opencl.cpp
|
||||
|
||||
Charlie 5 Dec 2012
|
||||
- client: strcasestr does exist on Windows in lib/str_replace.cpp,
|
||||
but I just needed to #include "str_replace.h". This is
|
||||
preferable because it handles INTEL as well as Intel and intel.
|
||||
|
||||
client/
|
||||
gpu_opencl.cpp
|
||||
|
|
|
@ -37,6 +37,7 @@ using std::string;
|
|||
|
||||
#include "coproc.h"
|
||||
#include "util.h"
|
||||
#include "str_replace.h"
|
||||
|
||||
#include "client_msgs.h"
|
||||
#include "gpu_detect.h"
|
||||
|
@ -318,9 +319,7 @@ void COPROCS::get_opencl(
|
|||
}
|
||||
|
||||
//////////// INTEL GPU //////////////
|
||||
if ((strstr(prop.vendor, "intel")) ||
|
||||
(strstr(prop.vendor, "Intel"))
|
||||
) {
|
||||
if (strcasestr(prop.vendor, "intel")) {
|
||||
cl_device_type device_type;
|
||||
|
||||
ciErrNum = (*__clGetDeviceInfo)(prop.device_id, CL_DEVICE_TYPE,
|
||||
|
|
Loading…
Reference in New Issue