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

Problems installing PyTorch with cuda support in conda environment used for compiling robotology-superbuild #1644

Open
traversaro opened this issue May 5, 2024 · 0 comments

Comments

@traversaro
Copy link
Member

@carloscp3009 @GiulioRomualdi reported me that there were problems installing PyTorch with cuda support in an environment used to create robotology-superbuild. I tried now with:

mamba create -n robenvpytorch -c conda-forge ace asio assimp boost eigen freetype glew glfw glm graphviz gsl ipopt irrlicht libjpeg-turbo libmatio libode libxml2 nlohmann_json pcl opencv portaudio qt-main sdl sdl2 sqlite tinyxml tinyxml2 spdlog lua soxr qhull cmake compilers make ninja pkg-config tomlplusplus libzlib ffmpeg onnxruntime-cpp pytorch

that seems to work fine:

(robenvpytorch) traversaro@IITBMP014LW012:~$ python
Python 3.12.2 | packaged by conda-forge | (main, Feb 16 2024, 20:50:58) [GCC 12.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>> torch.cuda.is_available()
True

So we probably need to investigate more what happened on the robot laptop. Note that in general installing packages from channels not compatible with conda-forge (such as pytorch or nvidia) may work but can create problems, see conda-forge/pytorch-cpu-feedstock#218 (comment) .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant