Coder Social home page Coder Social logo

Comments (15)

ar4 avatar ar4 commented on August 29, 2024

from deepwave.

erellaz avatar erellaz commented on August 29, 2024

Thanks for your very prompt response and your time. Really appreciated.

I just did an install of Ubuntu 20.10, which comes with Nvidia GPU drivers for my card. Then I installed cuda (sudo apt install nvidia-cuda-toolkit), then Anaconda, then pytorch (conda install pytorch torchvision cudatoolkit=10.1 -c pytorch) then deepwave. I tried both versions of deepwave (stable and dev) with (pip3 install deepwave). This installed pytorch 1.8. As it was not working I tried pytorch 1.7.1 (pip3 install "torch==1.7.1") since it seems to be the version preferred by deepwave. The message when calling the propagator remains the same.
The Python environment should be clean, as Deepwave and its dependency are the only things I have installed since installing Linux.
I will try to repeat the procedure, but without using Anaconda in a new virtual environment.

from deepwave.

ar4 avatar ar4 commented on August 29, 2024

from deepwave.

erellaz avatar erellaz commented on August 29, 2024

Thanks again for your continued support!

When changing torch versions I removed deepwave first, then reinstalled deepwave after the other version of torch is set up:
pip3 uninstall deepwave
pip3 uninstall torch
pip3 install "torch==1.7.1"
pip3 install deepwave

Both CPU and GPU give similar error, with caffe in the symbol of the compiled object.

Caffe2 comes with the Cuda toolkit, so I tested removing the Cuda toolkit:

sudo apt-get remove nvidia-cuda-toolkits
sudo apt-get autoremove nvidia-cuda-toolkit
sudo apt-get remove --purge nvidia*

and re installed torch & deepwave without Cuda toolkit, but the error persists. However, I am not 100% sure that I removed all the dependencies coming with the first install of the Cuda toolkit. At this point I am testing various combinations of Cuda & pytorch versions to see if the error goes away. I will also test various Nvidia drivers. If that fails I will reinstall Ubuntu, which may be the quickest way to get rid of all cuda dependencies with certainty.

from deepwave.

ar4 avatar ar4 commented on August 29, 2024

from deepwave.

ar4 avatar ar4 commented on August 29, 2024

from deepwave.

erellaz avatar erellaz commented on August 29, 2024

Just tried Cuda toolkit 11. Unfortunately it did not help.

from deepwave.

ar4 avatar ar4 commented on August 29, 2024

from deepwave.

erellaz avatar erellaz commented on August 29, 2024

I tried the above procedure on a new install of Ubuntu 20.10, and it works perfectly. No more error message. So I will stay on CPUs for the time being and enjoy the possibilities of Deepwave.

Thanks again.

from deepwave.

ar4 avatar ar4 commented on August 29, 2024

from deepwave.

ar4 avatar ar4 commented on August 29, 2024

from deepwave.

erellaz avatar erellaz commented on August 29, 2024

Thanks again!
I tried the above method to install Pytorch with cudatoolkit 11.1. When installing Deepwave it gives an error (CUDA_HOME variable not set) and indeed Cuda is not installed (at least not in /usr/local/cuda). I did not investigate too deeply, but instead reversed to CPUs only, which should be fine for my current application.
Thanks a lot for all the help and the time spent on it. At this point I am very happy to have a functional version of deepwave and will focus on my application.

from deepwave.

ar4 avatar ar4 commented on August 29, 2024

from deepwave.

Shipeng-Xiao avatar Shipeng-Xiao commented on August 29, 2024

HI ,Thanks for writing Deepwave!
I ran into the same problem as erellaz, and I can't even implement it on the CPU. I installed deepwave on the computers of friends around me, but we encountered many warnings during the installation process.
Thanks for your sharing. If you have a good way, please let me know.

from deepwave.

ar4 avatar ar4 commented on August 29, 2024

Hi Shipeng,

Thank you for your comment. I created a new issue (#38) for this in case it turns out to be a separate problem to that encountered by @erellaz .

from deepwave.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.