We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2e66f9 commit 022fb83Copy full SHA for 022fb83
common/includes/xcl2/xcl2.cpp
@@ -34,7 +34,7 @@ std::vector<cl::Device> get_devices(const std::string &vendor_name) {
34
platform = platforms[i];
35
OCL_CHECK(err, std::string platformName =
36
platform.getInfo<CL_PLATFORM_NAME>(&err));
37
- if (platformName.compare(vendor_name) == 0) {
+ if (!(platformName.compare(vendor_name))) {
38
std::cout << "Found Platform" << std::endl;
39
std::cout << "Platform Name: " << platformName.c_str() << std::endl;
40
break;
0 commit comments