Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[glow/runtime] First cut DeviceManager with CPU backend #2134

Closed
wants to merge 1 commit into from

Conversation

nickgg
Copy link
Contributor

@nickgg nickgg commented Dec 6, 2018

Description: A first prototype of the DeviceManager, which is the interface to a single inference Device. Per our design discussion the interface supports three operations:

** addNetwork() - compile and load a module (or sub module) onto the device ready to be executed.
** evictNetwork() - unload a module from the device and from memory.
** runFunction() - run a Function (subgraph) with the provided context and callback with results.

The DeviceManager operates in it's own thread, which for the CPU backend implemented here also does compilation and running of the function.

Testing: Ported one unit test model to the new execution scheme as an example POC. A better test would be parallelizing the execution, however.
Documentation:
Part of the high level Runtime issue #2045.

@nickgg nickgg force-pushed the deviceManager branch 4 times, most recently from 873af91 to 41b07de Compare December 6, 2018 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants