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

The version of PyTorch that matches PyTorch 3D 0.4.0 #603

Closed
ghost opened this issue Mar 15, 2021 · 11 comments
Closed

The version of PyTorch that matches PyTorch 3D 0.4.0 #603

ghost opened this issue Mar 15, 2021 · 11 comments
Assignees
Labels
installation Installation questions or issues Stale

Comments

@ghost
Copy link

ghost commented Mar 15, 2021

What version of PyTorch matches the latest version PyTorch 3D 0.4.0?

@ghost ghost changed the title Latest version PyTorch3D 0.4.0 matches the PyTorch version The version of PyTorch that matches PyTorch 3D 0.4.0 Mar 15, 2021
@nikhilaravi nikhilaravi self-assigned this Mar 15, 2021
@nikhilaravi nikhilaravi added the installation Installation questions or issues label Mar 15, 2021
@nikhilaravi
Copy link
Contributor

@faneggs we support several versions of PyTorch - please have a look at INSTALL.md for more details.

@ghost
Copy link
Author

ghost commented Mar 16, 2021

@faneggs we support several versions of PyTorch - please have a look at INSTALL.md for more details.

After I installed Pytorch1.4.0 and Python3.6, I run conda install pytorch3d -c pytorch3d, PyTorch3D 0.2.0 is installed by default. But I wanna install PyTorch3D 0.4.0. My configuration is Ubuntu18.04 and cudatoolkit 10.0.

@bottler
Copy link
Contributor

bottler commented Mar 16, 2021

We borrow a docker image from PyTorch's build infrastructure to do builds for PyTorch3D. A few months ago PyTorch itself stopped doing builds with CUDA 10.0, and the image no longer had CUDA 10.0 available. We therefore stopped building PyTorch3D with CUDA 10.0. PyTorch3D 0.2.0 was the last version before the change.

Is there a reason you need to stay with CUDA 10.0?

Note that PyTorch3D still makes builds for non-current versions of PyTorch, but only using versions of CUDA which PyTorch still supports. CUDA 9.2 is still supported.

@github-actions
Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the Stale label Jun 23, 2021
@xhuan8
Copy link

xhuan8 commented Jun 24, 2021

we have to use CUDA 10.0 for some history modules, is it possible to add it back for 0.4.0?

@bottler
Copy link
Contributor

bottler commented Jun 24, 2021

@xhuan8 can you build PyTorch3D from source?

@xhuan8
Copy link

xhuan8 commented Jun 24, 2021

@bottler got many build errors
pytorch version 1.4.0

/home/xiehuan/anaconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptrtorch::nn::Module torch::nn::Cloneable::clone(const c10::optionalc10::Device&) const [with Derived = torch::nn::CrossMapLRN2dImpl]’:
/tmp/tmpxft_00005394_00000000-5_sigmoid_alpha_blend.cudafe1.stub.c:32:27: required from here
/home/xiehuan/anaconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:44:65: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string, at::Tensor>&’
/home/xiehuan/anaconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:56:59: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string, at::Tensor>’ to type ‘torch::OrderedDict<std::basic_string, at::Tensor>&’
/home/xiehuan/anaconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:68:61: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string, std::shared_ptrtorch::nn::Module >’ to type ‘torch::OrderedDict<std::basic_string, std::shared_ptrtorch::nn::Module >&’
/home/xiehuan/anaconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of ‘std::shared_ptrtorch::nn::Module torch::nn::Cloneable::clone(const c10::optionalc10::Device&) const [with Derived = torch::nn::EmbeddingBagImpl]’:

@bottler
Copy link
Contributor

bottler commented Jun 24, 2021

This is the same problem as #284. Which version of PyTorch are you using, and what compiler are you using?

@xhuan8
Copy link

xhuan8 commented Jun 24, 2021

@bottler you are right, it's the same problem as #284
I'm using PyTorch 1.4 and gcc 5.4
Unfortunately i cannot upgrade PyTorch nor CUDA

@bottler
Copy link
Contributor

bottler commented Jun 24, 2021

I think this might work if you use a newer version of GCC. (You can try doing the build on a separate machine / container if you can't change locally.)
If you can't do that, maybe you can replicate the changes in pytorch/pytorch#37221 in your local PyTorch headers.

@xhuan8
Copy link

xhuan8 commented Jun 24, 2021

fixed with changes in PyTorch, thanks a lot

@bottler bottler closed this as completed Jun 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
installation Installation questions or issues Stale
Projects
None yet
Development

No branches or pull requests

3 participants