-
Notifications
You must be signed in to change notification settings - Fork 17
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
Resource requirements #179
Comments
@manthey This is likely related to the issue I mentioned in the HistomicsTK gitter. Gitter name Basically, I would need access to a GPU AND X11, as I want to use a python module that performs OpenCL/OpenGL compute and can run inference on the GPU. Note that I only need X11 for OpenCL/OpenGL compute and not rendering stuff within the docker image itself. For DSA, I figured that you could add X11 by adding this But I think I'm running into an issue as all Tasks that are performed using the HistomicsTK plugin (I'm making my own custom one), uses
As there is no X11, OpenCL is not available, hence, no OpenCL platforms, and importing pyFAST results in But you mentioned a hacky solution to get GPU working? What is that hack specifically? Could a similar idea be used to add X11 support as well? As I believe this is somewhat related to what you are saying above, it felt natural to make a comment here. I hope that is OK. |
Down the rabbit hole I came across this. Is that the hacky way? Could give it a shot. Anyways, he seems to have exactly my issue: Which then in DSA when Im trying to import CLI results in this error. |
Or maybe it was this hack. Anyways, to get this working with DSA, wouldn't I need to add this fix to the |
You can specify some additional parameters that get passed to the docker when it is started via json specification of the CLIs. This (badly) documented on the readme of this repo:
I think this method would fail for passing volumes because (without trying it) it would either result in two I think a possible solution is to merge array parameters from that Without rebuilding containers or modifying an existing library, the truly hacky way to do this is to monkey patch girder_worker to inject the mount, which would be overriding the |
I arrived to the same conclusion. I'm trying to set the GPU with I don't believe that I need to pass volumes actually. It seems to work just by specifying the GPU. And oh yeah, that is a hacky way indeed. What I just find strange is that HistoCloud which is a DSA plugin seem to have GPU support. However, I cannot really see how they did it. I assume you assisted them on the manner, or similar, as they would need GPU support to train models (at least thats the sane way of training them). |
girder_worker looks for a |
I added the LABEL and it works! THANKS!!! I spent way too long on this... I noticed this LABEL in the HistoCloud Dockerfile as well but didn't think much of it. Oh silly me... But cheers! Then I believe I have a working solution. Will continue exploring FAST with DSA :] |
This clearly means we need to document it MUCH better. |
Yes, sure, but I believe it would have been relevant to also document this in the HistomicsTK and/or DSA repos. Anyways, I'm just happy I finally got it working. Thanks for the help, @manthey! |
Currently, we have a somewhat hacky method to indicate a job needs GPU. It would be better if there was an optional command for docker modules like the --list_cli command that would emit a json with requirements that the docker image needs to run.
The text was updated successfully, but these errors were encountered: