summaryrefslogtreecommitdiff
path: root/opencl/source/opencl_device.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'opencl/source/opencl_device.cxx')
-rw-r--r--opencl/source/opencl_device.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/opencl/source/opencl_device.cxx b/opencl/source/opencl_device.cxx
index fed84cfdf0c6..d6ec25c1630d 100644
--- a/opencl/source/opencl_device.cxx
+++ b/opencl/source/opencl_device.cxx
@@ -475,7 +475,7 @@ int matchDevice(std::unique_ptr<ds_profile>& profile, char* deviceName)
int deviceMatch = -1;
for (unsigned int d = 0; d < profile->devices.size() - 1; d++)
{
- if ((std::string(profile->devices[d].sDeviceName.getStr())).find(deviceName) != std::string::npos)
+ if (profile->devices[d].sDeviceName.indexOf(deviceName) != -1)
deviceMatch = d;
}
if (std::string("NATIVE_CPU").find(deviceName) != std::string::npos)