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

Issue with correlation_cuda #259

Open
kayleeliyx opened this issue Jun 29, 2021 · 2 comments
Open

Issue with correlation_cuda #259

kayleeliyx opened this issue Jun 29, 2021 · 2 comments

Comments

@kayleeliyx
Copy link

I could not import correlation_cuda and got this error everytime I import it:

correlation_cuda-0.0.0-py3.6-linux-x86_64.egg/correlation_cuda.cpython-36m-x86_64-linux-gnu.so: undefined symbol: THPVariableClass

I use torch-1.7.1+cu110 torchaudio-0.7.2 torchvision-0.8.2+cu110

@ajinkyakhoche
Copy link

I have the exact same issue. It seems you are constrained to use lower PyTorch versions

@Yee-Sing
Copy link

Yee-Sing commented May 30, 2024

There are 3 steps to solve this issue in my environment :1. setup.py ,edit ‘nvcc_args’ like this :nvcc_args = [
# '-gencode', 'arch=compute_50,code=sm_50',
# '-gencode', 'arch=compute_52,code=sm_52',
# '-gencode', 'arch=compute_60,code=sm_60',
# '-gencode', 'arch=compute_61,code=sm_61',
# '-gencode', 'arch=compute_70,code=sm_70',
# '-gencode', 'arch=compute_70,code=compute_70'
'-gencode', 'arch=compute_86,code=sm_86',
'-gencode', 'arch=compute_86,code=compute_86'
];
2. setup.py ,edit ‘cxx_args’ like this :# cxx_args = ['-std=c++11']
cxx_args = ['-std=c++14'];
3. setup.py ,edit ‘cmdclass’ like this :# cmdclass={'build_ext': BuildExtension},
cmdclass={'build_ext': BuildExtension.with_options(use_ninja=False)}.

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