add some command-line options

--use_jacobi
--allow_opencl_cpu

b3LauncherCL constructor takes string, to make it easier to determine failing OpenCL kernel
b3SetCustomErrorMessageFunc, printf error and exit(0)
This commit is contained in:
erwin coumans
2013-11-19 13:42:53 -08:00
parent 54909160a7
commit 26dfaa441e
27 changed files with 491 additions and 448 deletions

View File

@@ -163,7 +163,8 @@ public:
cl_device_type deviceType = CL_DEVICE_TYPE_ALL;
cl_int errNum;
cl_context context = b3OpenCLUtils::createContextFromPlatform(platform,deviceType,&errNum);
if (context)
{
Gwen::UnicodeString strIn = Gwen::Utility::StringToUnicode(platformInfo.m_platformName);
Gwen::UnicodeString txt = Gwen::Utility::Format( L"Platform %d (",i)+strIn + Gwen::Utility::Format(L")");
@@ -305,7 +306,7 @@ public:
}
}
}
}
/*