Skip to content

Commit 6828ee8

Browse files
authored
[SYCLomatic] Fix a bug that device are not filter out in device filter (#1943)
Signed-off-by: Ziran Zhang <[email protected]>
1 parent aa326b8 commit 6828ee8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/runtime/dpct-rt/include/dpct/device.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ class dev_mgr {
693693
std::string dev_name = (*iter)->get_info<sycl::info::device::name>();
694694
bool matched = false;
695695
for (const auto &name : dev_subnames) {
696-
if (dev_name.find(name)) {
696+
if (dev_name.find(name) != std::string::npos) {
697697
matched = true;
698698
break;
699699
}

0 commit comments

Comments
 (0)