creiser / kilonerf

Code for KiloNeRF: Speeding up Neural Radiance Fields with Thousands of Tiny MLPs
474 stars 51 forks source link

Error when running cuda code #29

Open CheungBH opened 1 year ago

CheungBH commented 1 year ago

Thanks for your great work. I followed your instruction, but met some errors while importing kilonerf cuda: Traceback (most recent call last): File "run_nerf.py", line 21, in from run_nerf_helpers import * File "/vol/datastore/xxx/kilonerf/run_nerf_helpers.py", line 6, in import kilonerf_cuda ImportError: /media/sda1/xxx/anaconda3/envs/py3-mink/lib/python3.8/site-packages/kilonerf_cuda.cpython-38-x86_64-linux-gnu.so: undefined symbol: MKL_Get_Version

But I successfully installed your cuda library with: $ pip install $KILONERF_HOME/cuda/dist/kilonerf_cuda-0.0.0-cp38-cp38-linux_x86_64.whl Processing ./cuda/dist/kilonerf_cuda-0.0.0-cp38-cp38-linux_x86_64.whl kilonerf-cuda is already installed with the same version as the provided wheel. Use --force-reinstall to force an installation of the wheel.

Are there any suggestions?

Ikarosy commented 11 months ago

I encountered with the same issue. Just solve it by conda install mkl conda install mkl-service

that-liu commented 10 months ago

I have the same error ,solve by conda install mkl conda install mkl-service,But not feasible;Are there any suggestions? My error: ImportError: /home/xx/miniconda3/envs/pmpi/lib/python3.8/site-packages/kilonerf_cuda.cpython-38-x86_64-linux-gnu.so: undefined symbol: MKL_Get_Version Traceback (most recent call last): File "build_occupancy_tree.py", line 18, in from utils import File "/home/xxI/kilonerf/utils.py", line 9, in import run_nerf_helpers File "/home/xx/kilonerf/run_nerf_helpers.py", line 6, in import kilonerf_cuda ImportError: /home/xx/miniconda3/envs/pmpi/lib/python3.8/site-packages/kilonerf_cuda.cpython-38-x86_64-linux-gnu.so: undefined symbol: MKL_Get_Version Traceback (most recent call last): File "local_distill.py", line 19, in from utils import File "/home/xx/MPI/kilonerf/utils.py", line 9, in import run_nerf_helpers File "/home/xx/MPI/kilonerf/run_nerf_helpers.py", line 6, in import kilonerf_cuda ImportError: /home/xx/miniconda3/envs/pmpi/lib/python3.8/site-packages/kilonerf_cuda.cpython-38-x86_64-linux-gnu.so: undefined symbol: MKL_Get_Version Traceback (most recent call last): File "run_nerf.py", line 21, in from run_nerf_helpers import * File "/home/xx/MPI/kilonerf/run_nerf_helpers.py", line 6, in import kilonerf_cuda ImportError: /home/xx/miniconda3/envs/pmpi/lib/python3.8/site-packages/kilonerf_cuda.cpython-38-x86_64-linux-gnu.so: undefined symbol: MKL_Get_Version

Ikarosy commented 9 months ago

This error report has already clearly pointed out what was wrong: "undefined symbol: MKL_Get_Version". You can go ahead and solve it accordingly.

SuperFCR commented 1 month ago

Me too, can you provide any solutions?