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

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

Open
jameshod5 opened this issue Jan 15, 2024 · 3 comments · May be fixed by #130
Open

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

jameshod5 opened this issue Jan 15, 2024 · 3 comments · May be fixed by #130

Comments

@jameshod5
Copy link

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:

  • mkdir Gpufit
  • cd Gpufit
  • python -m venv venv
  • source venv/bin/activate
  • pip install wheel
  • pip install Cmake
  • git clone https://github.com/gpufit/Gpufit.git Gpufit
  • mdkir Gpufit-build
  • cd Gpufit-build/
  • cmake -DCMAKE_BUILD_TYPE=RELEASE ../Gpufit
  • make

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

@robert-gledhill
Copy link

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 12b3cf4' and then following the normal cmake procedure gets it to compile for me.

@superchromix
Copy link
Collaborator

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

@superchromix
Copy link
Collaborator

@Kubiczek36

@SimonClifford SimonClifford linked a pull request Feb 6, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

3 participants