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

undefined symbol: cudaSetupArgument #92

Open
wangleishan opened this issue Oct 27, 2021 · 5 comments
Open

undefined symbol: cudaSetupArgument #92

wangleishan opened this issue Oct 27, 2021 · 5 comments

Comments

@wangleishan
Copy link

After I finished processing dependencies for soft-renderer==1.0.0, I run you code. But I has a error below. I try python=3.6 or python=3.7. it all failed. my cudatoolkit =10.1.243 .

Traceback (most recent call last):
File "trainval.py", line 8, in
import soft_renderer as sr
File "/home/wangls@1/anaconda3/envs/py37/lib/python3.7/site-packages/soft_renderer-1.0.0-py3.7-linux-x86_64.egg/soft_renderer/init.py", line 1, in
from . import functional
File "/home/wangls@1/anaconda3/envs/py37/lib/python3.7/site-packages/soft_renderer-1.0.0-py3.7-linux-x86_64.egg/soft_renderer/functional/init.py", line 4, in
from .load_obj import load_obj
File "/home/wangls@1/anaconda3/envs/py37/lib/python3.7/site-packages/soft_renderer-1.0.0-py3.7-linux-x86_64.egg/soft_renderer/functional/load_obj.py", line 7, in
import soft_renderer.cuda.load_textures as load_textures_cuda
ImportError: /home/wangls@1/anaconda3/envs/py37/lib/python3.7/site-packages/soft_renderer-1.0.0-py3.7-linux-x86_64.egg/soft_renderer/cuda/load_textures.cpython-37m-x86_64-linux-gnu.so: undefined symbol: cudaSetupArgument

@ShichenLiu
Copy link
Owner

Can you try removing "/home/wangls@1/anaconda3/envs/py37/lib/python3.7/site-packages/soft_renderer-1.0.0-py3.7-linux-x86_64.egg" folder and rebuilding it? It seems that the problem is due to version mismatch between already built modules and current cuda version.

@wangleishan
Copy link
Author

The error is not resolved, when I create a new environment, the error is still the same .

@ShichenLiu
Copy link
Owner

Can you make sure your system cuda version is also 10.1? Because compiling cuda code does not necessarily use the cudatoolkit version.

@wangleishan
Copy link
Author

yes. when I use 'nvcc -V' it show that my cuda version is 10.1

@cavalier501
Copy link

yes. when I use 'nvcc -V' it show that my cuda version is 10.1

I also meet the problem, I changed my "nvcc -V" to 10.1 but also have the problem of version dismatch. However, I try again a few days later and the problem is solved

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