-
Notifications
You must be signed in to change notification settings - Fork 21
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
Issues installing torch with the GPU on top of synerbi/sirf:service-gpu #213
Comments
but current config uses SIRF-Exercises/.devcontainer.json Line 10 in 9d3b979
Also it doesn't have any GPU-specific options like Does this not work for you? $ docker run --rm --gpus all -it ghcr.io/synerbi/sirf:latest-gpu /bin/bash
sirf$ pip install torch
sirf$ python -c 'import torch; print(torch.cuda.is_available())' |
I must've used the older config. I've just tried with the the new image and ir still does not recognise |
hmm... on my machine I have: $ docker run --rm --gpus all -it ghcr.io/synerbi/sirf:latest-gpu nvidia-smi
Mon Apr 15 09:40:26 2024
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 550.54.15 Driver Version: 550.54.15 CUDA Version: 12.4 |
... (So cuda version 12.4) |
It works! I just needed launch the devcontainer with slight updates: |
Great. Is there a way to have 2 devcontainer specs? |
Apart from templates (vis. SyneRBI/SIRF-SuperBuild#865) not really afaik |
@paskino just made this for @gschramm SIRF-SuperBuild/docker/compose.sh -bg -- \
--build-arg EXTRA_BUILD_FLAGS="-DSIRF_TAG=2c66faff3bc0f12c864cfc2a2931eba5ade60ba0" FROM synerbi/sirf:latest-gpu
RUN pip install torch docker build -t ghcr.io/synerbi/sirf:training2024_0.1 . and pushed it to Though I think it should be: FROM synerbi/sirf:latest-gpu
RUN mamba install jupytext parallelproj \
&& pip install --no-cache-dir torch \
&& mamba clean -a -y -f && fix-permissions "${CONDA_DIR}" /home/${NB_USER} |
Not 100% sure about adding So... do we need (Obviously, all the |
|
@samdporter @NicoleJurjew dod you need jupytext? If so, it should be added to the |
Hi Kris,
no, not installed on my machine.
Nicole
…________________________________
From: Kris Thielemans ***@***.***>
Sent: 14 May 2024 09:15
To: SyneRBI/SIRF-Exercises ***@***.***>
Cc: Jurjew, Nicole ***@***.***>; Mention ***@***.***>
Subject: Re: [SyneRBI/SIRF-Exercises] Issues installing torch with the GPU on top of synerbi/sirf:service-gpu (Issue #213)
⚠ Caution: External sender
@samdporter<https://github.com/samdporter> @NicoleJurjew<https://github.com/NicoleJurjew> dod you need jupytext?
If so, it should be added to the environment.yml
—
Reply to this email directly, view it on GitHub<#213 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AUSFUBVZYBLIRNQ2SZ6MXSTZCHB2NAVCNFSM6AAAAABEJQGLIKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBZGU2TQNBQGI>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
I'm not using it either (although having a read about it, it looks like I probably should?) |
Ok. I'll just add |
I ran into some issues installing torch within the
synerbi/sirf:service-gpu
container.I cloned the SIRF-Exercises locally, then opened the folder within VSCode changing the .devcontainer base image from devel-sevice to sevice-gpu. I then "Reopen in devcontainer" this takes a while to pull the image and update the environment.
In the new container the command
nvidia-smi
is not found, butnvcc
is found. I tried installing torch, but can't seem to get the GPU working:torch.cuda.is_available()
is false.It was giving some more sinister error when I tried a couple of weeks ago (something to do with not finding some cuda libraries) but can't seem to recreate... I am quite sure mamba is just choosing the cpu version of torch due to not being able to find some drivers? Perhaps all what's needed is a apt update but I run into permission issues...
@casperdcl apologies if this isn't the right place to put this issue!
The text was updated successfully, but these errors were encountered: