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

NameError: name '_C' is not defined again and again, it made me mad, cuda installed , nvcc worked well #377

Open
xdfai4x opened this issue Dec 14, 2024 · 4 comments

Comments

@xdfai4x
Copy link

xdfai4x commented Dec 14, 2024

Hi, my os is Ubuntu 24.04 desktop, with a RTX 4090 card, I deploy this project for so many times but I always got this error.
Is there anybody can help me with that?
here is my environments:
$ echo $CUDA_HOME
/usr/local/cuda-12.6

$ ll /usr/local/cuda-12.6
drwxr-xr-x 15 root root 4096 Nov 2 19:26 ./
drwxr-xr-x 15 root root 4096 Nov 5 15:31 ../
drwxr-xr-x 3 root root 4096 Nov 2 19:26 bin/
drwxr-xr-x 5 root root 4096 Nov 2 19:26 compute-sanitizer/
drwxr-xr-x 3 root root 4096 Nov 2 19:26 doc/
-rw-r--r-- 1 root root 160 Sep 12 17:51 DOCS
-rw-r--r-- 1 root root 63021 Sep 12 17:51 EULA.txt
drwxr-xr-x 4 root root 4096 Nov 2 19:26 extras/
drwxr-xr-x 3 root root 4096 Nov 2 19:26 gds/
lrwxrwxrwx 1 root root 28 Sep 12 17:47 include -> targets/x86_64-linux/include/
lrwxrwxrwx 1 root root 24 Sep 12 17:47 lib64 -> targets/x86_64-linux/lib/
drwxr-xr-x 7 root root 4096 Nov 2 19:26 libnvvp/
drwxr-xr-x 2 root root 4096 Nov 2 19:26 nsightee_plugins/
drwxr-xr-x 3 root root 4096 Nov 2 19:26 nvml/
drwxr-xr-x 6 root root 4096 Nov 2 19:26 nvvm/
-rw-r--r-- 1 root root 524 Sep 12 17:51 README
drwxr-xr-x 3 root root 4096 Nov 2 19:26 share/
drwxr-xr-x 2 root root 4096 Nov 2 19:26 src/
drwxr-xr-x 3 root root 4096 Nov 2 19:26 targets/
drwxr-xr-x 2 root root 4096 Nov 2 19:26 tools/
-rw-r--r-- 1 root root 3297 Sep 20 02:21 version.json
$ ll /usr/local/cuda-12.6/bin
drwxr-xr-x 3 root root 4096 Nov 2 19:26 ./
drwxr-xr-x 15 root root 4096 Nov 2 19:26 ../
-rwxr-xr-x 1 root root 88848 Sep 12 18:07 bin2c*
lrwxrwxrwx 1 root root 4 Sep 19 23:24 computeprof -> nvvp*
-rwxr-xr-x 1 root root 112 Sep 12 22:21 compute-sanitizer*
drwxr-xr-x 2 root root 4096 Nov 2 19:26 crt/
-rwxr-xr-x 1 root root 7674584 Sep 12 18:07 cudafe++*
-rwxr-xr-x 1 root root 1951 Sep 12 18:51 cuda-gdb*
-rwxr-xr-x 1 root root 13757288 Sep 12 18:51 cuda-gdb-minimal*
-rwxr-xr-x 1 root root 16040360 Sep 12 18:51 cuda-gdb-python3.10-tui*
-rwxr-xr-x 1 root root 16040032 Sep 12 18:51 cuda-gdb-python3.11-tui*
-rwxr-xr-x 1 root root 16048512 Sep 12 18:51 cuda-gdb-python3.12-tui*
-rwxr-xr-x 1 root root 16040248 Sep 12 18:51 cuda-gdb-python3.8-tui*
-rwxr-xr-x 1 root root 16040296 Sep 12 18:51 cuda-gdb-python3.9-tui*
-rwxr-xr-x 1 root root 825936 Sep 12 18:51 cuda-gdbserver*
-rwxr-xr-x 1 root root 75928 Sep 12 18:00 cu++filt*
-rwxr-xr-x 1 root root 708112 Sep 12 17:53 cuobjdump*
-rwxr-xr-x 1 root root 1245272 Sep 12 18:07 fatbinary*
-rwxr-xr-x 1 root root 3826 Sep 20 02:21 ncu*
-rwxr-xr-x 1 root root 3616 Sep 20 02:21 ncu-ui*
-rwxr-xr-x 1 root root 1580 Sep 12 18:09 nsight_ee_plugins_manage.sh*
-rwxr-xr-x 1 root root 197 Sep 20 02:21 nsight-sys*
-rwxr-xr-x 1 root root 743 Sep 20 02:21 nsys*
-rwxr-xr-x 1 root root 833 Sep 20 02:21 nsys-ui*
-rwxr-xr-x 1 root root 23091656 Sep 12 18:07 nvcc*
-rwxr-xr-x 1 root root 10456 Sep 12 18:07 __nvcc_device_query*
-rw-r--r-- 1 root root 425 Sep 12 18:07 nvcc.profile
-rwxr-xr-x 1 root root 50683896 Sep 12 17:53 nvdisasm*
-rwxr-xr-x 1 root root 31360568 Sep 12 18:07 nvlink*
-rwxr-xr-x 1 root root 6030656 Sep 20 00:16 nvprof*
-rwxr-xr-x 1 root root 113664 Sep 12 17:49 nvprune*
-rwxr-xr-x 1 root root 285 Sep 19 23:24 nvvp*
-rwxr-xr-x 1 root root 31026944 Sep 12 18:07 ptxas*

$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2024 NVIDIA Corporation
Built on Thu_Sep_12_02:18:05_PDT_2024
Cuda compilation tools, release 12.6, V12.6.77
Build cuda_12.6.r12.6/compiler.34841621_0

It really made me so sad, what's the problem?
any commets will good, really appriciate.
thanks.

@prashantmetadome
Copy link

+1 facing this issue

@JiannBai
Copy link

me too

@phucbienvan
Copy link

I also encountered this error.

@debryu
Copy link

debryu commented Dec 19, 2024

Same problem here

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

5 participants