Skip to content

Commit 3885ef4

Browse files
committed
修复bug
1 parent b10d5a7 commit 3885ef4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/test_match_by_text.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ int main(int argc, char *argv[])
2424
{
2525
ax_dev_sys_init(axcl_device, 0);
2626
}
27-
else
27+
28+
if (!ax_devices.host.available && ax_devices.devices.count == 0)
2829
{
2930
printf("no device available\n");
3031
return -1;

0 commit comments

Comments
 (0)