提交 a7d27588 编写于 作者: S Stefan Weil

opencl: Fix typo in name of local variable

Signed-off-by: NStefan Weil <sw@weilnetz.de>
上级 2fbc8cf4
......@@ -3171,7 +3171,7 @@ ds_device OpenclDevice::getDeviceSelection( ) {
// cleanup
// TODO: call destructor for profile object?
bool overrided = false;
bool overridden = false;
char *overrideDeviceStr = getenv("TESSERACT_OPENCL_DEVICE");
if (overrideDeviceStr != NULL) {
int overrideDeviceIdx = atoi(overrideDeviceStr);
......@@ -3181,7 +3181,7 @@ ds_device OpenclDevice::getDeviceSelection( ) {
"%i)\n",
overrideDeviceStr, overrideDeviceIdx);
bestDeviceIdx = overrideDeviceIdx - 1;
overrided = true;
overridden = true;
} else {
printf(
"[DS] Ignoring invalid TESSERACT_OPENCL_DEVICE=%s ([1,%i] are "
......@@ -3190,7 +3190,7 @@ ds_device OpenclDevice::getDeviceSelection( ) {
}
}
if (overrided) {
if (overridden) {
printf("[DS] Overridden Device[%i]: \"%s\" (%s)\n", bestDeviceIdx + 1,
profile->devices[bestDeviceIdx].oclDeviceName,
profile->devices[bestDeviceIdx].type == DS_DEVICE_OPENCL_DEVICE
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册