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

An error when installing extensions #26

Closed
cuixing61 opened this issue Mar 29, 2022 · 3 comments
Closed

An error when installing extensions #26

cuixing61 opened this issue Mar 29, 2022 · 3 comments

Comments

@cuixing61
Copy link

hello, when installing the chamfer_dist, an unexpected error appears.
The verions are: pythorch=1.11.0 cuda=10.2 gcc=5.5.0

/usr/local/cuda/bin/nvcc -I/export2/CX2/anaconda3/envs/cross/lib/python3.7/site-packages/torch/include -I/export2/CX2/anacon
da3/envs/cross/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/export2/CX2/anaconda3/envs/cross/lib/pyth
on3.7/site-packages/torch/include/TH -I/export2/CX2/anaconda3/envs/cross/lib/python3.7/site-packages/torch/include/THC -I/us
r/local/cuda/include -I/export2/CX2/anaconda3/envs/cross/include/python3.7m -c chamfer.cu -o build/temp.linux-x86_64-3.7/cha
mfer.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPER
ATORS__ --expt-relaxed-constexpr --compiler-options '-fPIC' -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\
" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -DTORCH_EXTENSION_NAME=chamfer -D_GLIBCXX_USE_CXX11_
ABI=0 -gencode=arch=compute_61,code=compute_61 -gencode=arch=compute_61,code=sm_61 -std=c++14
/export2/CX2/anaconda3/envs/cross/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h: In
instantiation of ‘std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&)
 const [with Derived = torch::nn::CrossMapLRN2dImpl]’:
/tmp/tmpxft_00009393_00000000-5_chamfer.cudafe1.stub.c:4:27:   required from here
/export2/CX2/anaconda3/envs/cross/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:57:5
9: error: invalid static_cast from type ‘const torch::OrderedDict<std::basic_string<char>, at::Tensor>’ to type ‘torch::Orde
redDict<std::basic_string<char>, at::Tensor>&’
@yuxumin
Copy link
Collaborator

yuxumin commented Apr 12, 2022

Hi, thanks for your interest in our work and sorry for the late reply.
Can you provide more detailed logs and information about your envirnment, nvcc, cuda version and conda package list, etc...?

@ChengYaofeng
Copy link

I met this error too. It is because the pytorch 11.1 deletes the <THC.h> file. I changed my pytorch version to 1.8.1 and success.

@yuxumin
Copy link
Collaborator

yuxumin commented May 5, 2022

Close it since no response. Feel free to re-open it if problems still exist

@yuxumin yuxumin closed this as completed May 5, 2022
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

3 participants