gpufit / Gpufit

GPU-accelerated Levenberg-Marquardt curve fitting in CUDA
MIT License
312 stars 92 forks source link

ModuleNotFoundError: No module named 'cpufit' - Running 'make' #129

Open jameshod5 opened 9 months ago

jameshod5 commented 9 months ago

Trying to make gpufit on CentOS Linux. The error I receive is:

[ 2%] Building CXX object Cpufit/CMakeFiles/Cpufit.dir/cpufit.cpp.o [ 5%] Building CXX object Cpufit/CMakeFiles/Cpufit.dir/info.cpp.o [ 8%] Building CXX object Cpufit/CMakeFiles/Cpufit.dir/lm_fit.cpp.o [ 11%] Building CXX object Cpufit/CMakeFiles/Cpufit.dir/lm_fit_cpp.cpp.o [ 14%] Building CXX object Cpufit/CMakeFiles/Cpufit.dir/interface.cpp.o [ 17%] Linking CXX shared library libCpufit.so [ 17%] Built target Cpufit [ 17%] Built target PYTHON_PACKAGE_CPUFIT [ 20%] Preparing Python Wheel Traceback (most recent call last): File "setup.py", line 10, in import pycpufit.version as vs File "/home/ir-hods1/Gpufit/Gpufit-build/pyCpufit/pycpufit/init.py", line 1, in from cpufit import * ModuleNotFoundError: No module named 'cpufit' make[2]: [Cpufit/python/CMakeFiles/PYTHON_WHEEL_CPUFIT] Error 1 make[1]: [Cpufit/python/CMakeFiles/PYTHON_WHEEL_CPUFIT.dir/all] Error 2 make: *** [all] Error 2

Steps to reproduce have been from:

Running with python/3.7, CUDA/9.1 and gcc/6.

robert-gledhill commented 9 months ago

It looks like this is a problem with the python cpufit binding project. I have gotten gpufit to compile by rowing back to an earlier version before the pycpufit merge:

'git reset --hard 12b3cf4f9b0bf040e06f24d71f0364cc59e8e6d7' and then following the normal cmake procedure gets it to compile for me.

superchromix commented 9 months ago

Hi, as mentioned, this problem was introduced in the recent commits. We will work on fixing it. Thanks for raising the issue.

superchromix commented 9 months ago

@Kubiczek36