Skip to content

Commit

Permalink
Merge pull request #39 from eschnett/eschnett/groups
Browse files Browse the repository at this point in the history
Support loading group attributes
  • Loading branch information
eschnett authored Jan 13, 2021
2 parents d363d2a + 3d5ad8b commit 9a141e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Hwloc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,8 @@ function load_attr(hattr::Ptr{Cvoid}, type_::Symbol)
elseif type_==:PU
return NullAttr()
elseif type_==:Group
error("not implemented")
ha = unsafe_load(convert(Ptr{hwloc_group_attr_s}, hattr))
return GroupAttr(ha.depth)
elseif type_==:Misc
error("not implemented")
elseif type_==:Bridge
Expand Down

0 comments on commit 9a141e4

Please sign in to comment.