Skip to content

Commit 022fb83

Browse files
committed
simplified the check in xcl2
1 parent f2e66f9 commit 022fb83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/includes/xcl2/xcl2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ std::vector<cl::Device> get_devices(const std::string &vendor_name) {
3434
platform = platforms[i];
3535
OCL_CHECK(err, std::string platformName =
3636
platform.getInfo<CL_PLATFORM_NAME>(&err));
37-
if (platformName.compare(vendor_name) == 0) {
37+
if (!(platformName.compare(vendor_name))) {
3838
std::cout << "Found Platform" << std::endl;
3939
std::cout << "Platform Name: " << platformName.c_str() << std::endl;
4040
break;

0 commit comments

Comments
 (0)