Skip to content

Commit e931166

Browse files
authored
Merge pull request #147 from imerso/master
More precise check for the supported OpenCL version
2 parents 55591e1 + c336baa commit e931166

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)