-
Notifications
You must be signed in to change notification settings - Fork 1
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
Placement error from "rand" placer #304
Comments
I can't reproduce this (hohoho). That said, I have a few thoughts. The random algorithm works in the following way (with implementationy bits in parentheses):
Based off this, I think the Solutions:
Workarounds:
|
Also, the error message in this case is pretty unhelpful - need to refactor that. |
One way I can think to keep the randomness is to introspect the number of device types that are actually used in the graph (not just declared) to work out how many sets of cores are needed and what the max/min number of cores should be, e.g. 1 set per type with minimum 1 and maximum something sensible. Allocate cores randomly to the sets. These sets then replace the set from step 1. |
This application-specific workaround allows random to place correctly. |
When trying to place a graph using the "rand" method, the following error shows up:
This appears to happen for graphs over a certain size. For smaller graphs it completed, for larger graphs the
same error. This was approximately the first graph size where it failed.
Context
The text was updated successfully, but these errors were encountered: