Skip to content

Commit 5a5b868

Browse files
Update CLWPlatform.cpp
Application failed to detect the OpenCL platform in case the opencl version having like this from clinfo application "Platform Version: OpenCL 2.0 AMD-APP (2431.0)" . Adding extra space at the end of if statement like "1.0 " would solve this problem.
1 parent e931166 commit 5a5b868

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CLW/CLWPlatform.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ void CLWPlatform::CreateAllPlatforms(std::vector<CLWPlatform>& platforms)
7070

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

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

0 commit comments

Comments
 (0)