Commit d161d0ba authored by Davis King's avatar Davis King

Added a num_device_groups() member function.

parent 909ca040
......@@ -1069,6 +1069,16 @@ namespace dlib { namespace tt
}
}
size_t num_device_groups(
) const { return accessible_groups.size(); }
/*!
ensures
- The devices given to set() are grouped together when they can directly
access each other using GPUDirect. This function returns the number of
such groups. For example, if all devices can directly access each other
then the number of groups is 1.
!*/
void average()
/*!
requires
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment