DavidDiazGuerra / gpuRIR

Python library for Room Impulse Response (RIR) simulation with GPU acceleration
GNU Affero General Public License v3.0
488 stars 94 forks source link

error when run example.py #50

Open fromprimary opened 11 months ago

fromprimary commented 11 months ago

After I install gpurir successfully, I tried to run example.py. An error came out, which is miniconda3/envs/crn_train/lib/python3.9/site-packages/gpuRIR-1.2.0-py3.9-linux-x86_64.egg/gpuRIR_bind.cpython-39-x86_64-linux-gnu.so: undefined symbol: cufftExecC2R . How can I solve this problem?

DavidDiazGuerra commented 11 months ago

I have never seen that error, it seems like it wasn't possible to find the cuFFT binaries, but I am surprised about the error coming from cufftExecC2R. That function is not called during example.py and there are other cuFFT functions that should have been called before.

Could you check in which line of example.py the error happens?

fromprimary commented 11 months ago

This error happens when import gpuRIR and then 'from gpuRIR_bind import gpuRIR_bind' in init.py

DavidDiazGuerra commented 11 months ago

It seems like there's some problem with your CUDA and cuFFT installation and Python cannot find the cuFFT binaries. They are installed by default when you install the CUDA Toolkit and if you were able to install the library that means that you have the CUDA Toolkit correctly installed, so I don't know what can be wrong. I'm sorry but I'm afraid I cannot help you with this. The only thing that comes to my mind is reinstalling the CUDA Toolkit and then installing gpuRIR again, but I cannot guarantee that this will work.

guohmweip commented 10 months ago

I have the same problem. If you have solved it, please tell the method.

Underman30 commented 9 months ago

Encounter with the same error, have you resolved it?

fromprimary commented 9 months ago

My cudaTookit is installed by anaconda and I found there is cuFFT binaries, but no cudatookit folder. Maybe reinstalling cudaTookit with other way may work.

DavidDiazGuerra commented 9 months ago

I've always installed the CUDA Toolkit from the Nvidia website, so I don't know if installing it with conda should work or not.

TuttiChi commented 8 months ago

I got the problem too

TuttiChi commented 8 months ago

I occur this problem by change python version to 3.7

DavidDiazGuerra commented 8 months ago

I don't know what can be going on. I'll ask in the NVidia forum to see if someone there has any clue about how to fix this.

quancs commented 3 months ago

I solved this issue by re-installing gpuRIR using following configurations:

python=3.9
gcc=8.4
cuda=10.1
cmake=3.14.4

where the cmake version is essential because newer cmake seems not compatible with this package