Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
d161d0ba
Commit
d161d0ba
authored
Apr 30, 2016
by
Davis King
Browse files
Added a num_device_groups() member function.
parent
909ca040
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
dlib/dnn/tensor_tools.h
dlib/dnn/tensor_tools.h
+10
-0
No files found.
dlib/dnn/tensor_tools.h
View file @
d161d0ba
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment