Skip to content

Commit 28c7bae

Browse files
committed
More precise check for OpenCL version string, avoiding to refuse some existing drivers (ex: Intel).
1 parent c02bef7 commit 28c7bae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CLW/CLWPlatform.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ void CLWPlatform::CreateAllPlatforms(std::vector<CLWPlatform>& platforms)
7070

7171
std::string versionstr(version.begin(), version.end());
7272

73-
if (versionstr.find("1.0") != std::string::npos ||
74-
versionstr.find("1.1") != std::string::npos)
73+
if (versionstr.find("OpenCL 1.0") != std::string::npos ||
74+
versionstr.find("OpenCL 1.1") != std::string::npos)
7575
{
7676
continue;
7777
}

0 commit comments

Comments
 (0)