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

Pools support #175

Open
mcquay239 opened this issue Apr 4, 2017 · 2 comments
Open

Pools support #175

mcquay239 opened this issue Apr 4, 2017 · 2 comments
Assignees

Comments

@mcquay239
Copy link

Hi Niklas!

I also need to customize pools for my pipeline :)

I monkey-patched your Graph class, put an add_pool(self, pool_name, pool_depth) method and exported it. In Craftrfile I explicitely called this method.

mcquay239@20544ab

But I suppose you planned to do it in a different way. What do I need to implement to create a pull request?

@NiklasRosenstein
Copy link
Collaborator

Actually, what you got there looks good. 😄 You're only missing a genpool(), or so, function in there. I'm thinking of whether it would make sense to have pool names also be automatically prefixed with the name of your Craftr module, or allow multiple modules create pools with the same name, effectively making them the same pool (even if the module's may not know about the other module that uses the same pool).

What do you think? What do you use pools for?

@mcquay239
Copy link
Author

Well I'm using pools for a heavy-memory-usage rule in my custom geometric pipeline.

I'm not sure that it's possible to reuse pools transparently. I think that a root pipline author may create some kind of pool objects and pass them to the modules, but I'm not sure. But I think that using the module prefix should be an option (like gtn function calling).

@NiklasRosenstein NiklasRosenstein self-assigned this Jan 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants