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 c34a6b0 commit 752c12fCopy full SHA for 752c12f
doc/hwloc.doxy
@@ -4700,7 +4700,7 @@ Type hwloc_obj_osdev_type_t is also renamed to ::hwloc_obj_osdev_types_t.
4700
Codes looking OS device types should be updated as follows:
4701
\verbatim
4702
#if HWLOC_API_VERSION >= 0x30000
4703
- if (obj->type == HWLOC_OBJ_OS_DEVICE && obj->attr->osdev.types & HWLOC_OSDEV_TYPE_GPU)
+ if (obj->type == HWLOC_OBJ_OS_DEVICE && (obj->attr->osdev.types & HWLOC_OSDEV_TYPE_GPU))
4704
/* obj is a 3.x GPU OS device */
4705
#else
4706
if (obj->type == HWLOC_OBJ_OS_DEVICE && obj->attr->osdev.type == HWLOC_OSDEV_TYPE_GPU)
0 commit comments