-
Notifications
You must be signed in to change notification settings - Fork 64
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
ImportError: dynamic module does not define module export function (PyInit_libKeOpsnumpy5ac3d464a2) #23
Comments
I create a new conda virtual environment and install all the demand packages(python,numpy,cmake,pytorch,gcc,cuda), but it failed again...I got the same output as mentioned above. |
I think the problem is that your gcc and nvcc versions are not compatible. You need to upgrade cuda toolkit or downgrade gcc. To check, you can try this : download GetGpuProps.cu which is in keops/keops/examples and try to compile via |
Yes, you are right. When i compile GetGpuProps.cu, it output: error -- unsupported GNU version! gcc versions later than 6 are not supported!
error -- unsupported GNU version! gcc versions later than 6 are not supported! but, when I compile it in a new conda virtual environment(gcc7.3,cudatoolkit10.0.130), it output nvcc GetGpuProps.cu
nvcc fatal : Path to libdevice library not specified |
Ok, but it is still a problem with your installation of cuda ; it is not a KeOps issue. The only solution I can give is to upgrade Cuda to version 10 as root, not via the anaconda package. |
Yes, thanks for your help! Hope that after I upgrade Cuda everything is ok~ |
Hello!
There's something wrong when I run the example code as follow.
Actually I see this bug in #17, but I think they are not the same because it's ok for the first time in #17 but failed in my machine.
code
nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2017 NVIDIA Corporation
Built on Fri_Sep__1_21:08:03_CDT_2017
Cuda compilation tools, release 9.0, V9.0.176
cmake --version
cmake version 3.15.3
which python
/home/lowen/anaconda3/envs/lowenEnv/bin/python
python --version
Python 3.6.8 :: Anaconda, Inc.
gcc --version
gcc (GCC) 7.4.0
Copyright © 2017 Free Software Foundation, Inc.
output
The text was updated successfully, but these errors were encountered: