getkeops / keops

KErnel OPerationS, on CPUs and GPUs, with autodiff and without memory overflows
https://www.kernel-operations.io
MIT License
1.04k stars 64 forks source link

Install problem #207

Closed tao840813 closed 2 years ago

tao840813 commented 2 years ago

Hi i have check the requirements : g++ (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0 gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0 cmake version 3.19.0 Cuda compilation tools, release 10.1 CUDA Version: 11.5

and install pykeops with pip

However, when i execute "pykeops.test_numpy_bindings() " It turns out

Is there any solvation?

[pyKeOps] Initializing build folder for dtype=float64 and lang=numpy in /home/theodore/.cache/pykeops-1.5-cpython-38 ... CMake Error at /usr/local/share/cmake-3.19/Modules/CMakeDetermineCompilerId.cmake:642 (message): Compiling the CUDA compiler identification source file "CMakeCUDACompilerId.cu" failed.

Compiler: /usr/bin/nvcc

Build flags:

Id flags: --keep;--keep-dir;tmp;-ccbin=/usr/bin/c++ -v

The output was:

1

$ SPACE=

$ CUDART=cudart

$ HERE=/usr/lib/nvidia-cuda-toolkit/bin

$ THERE=/usr/lib/nvidia-cuda-toolkit/bin

$ _TARGETSIZE=

$ _TARGETDIR=

$ _TARGETSIZE=64

$ NVVMIR_LIBRARY_DIR=/usr/lib/nvidia-cuda-toolkit/libdevice

$

PATH=/usr/lib/nvidia-cuda-toolkit/bin:/home/theodore/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

$ LIBRARIES= -L/usr/lib/x86_64-linux-gnu/stubs -L/usr/lib/x86_64-linux-gnu

$ rm tmp/a_dlink.reg.c

$ "/usr/bin"/c++ -D__CUDA_ARCH__=300 -E -x c++

-DCUDA_DOUBLE_MATH_FUNCTIONS -DCUDACC -DNVCC -DCUDACC_VER_MAJOR=10 -DCUDACC_VER_MINOR=1 -DCUDACC_VER_BUILD=243 -include "cuda_runtime.h" -m64 "CMakeCUDACompilerId.cu" > "tmp/CMakeCUDACompilerId.cpp1.ii"

In file included from /usr/include/cuda_runtime.h:83,

               from <command-line>:

/usr/include/crt/host_config.h:138:2: error: #error -- unsupported GNU version! gcc versions later than 8 are not supported!

138 | #error -- unsupported GNU version! gcc versions later than 8 are not supported!
    |  ^~~~~

--error 0x1 --

Call Stack (most recent call first): /usr/local/share/cmake-3.19/Modules/CMakeDetermineCompilerId.cmake:34 (CMAKE_DETERMINE_COMPILER_ID_BUILD) /usr/local/share/cmake-3.19/Modules/CMakeDetermineCUDACompiler.cmake:260 (CMAKE_DETERMINE_COMPILER_ID) /home/theodore/.local/lib/python3.8/site-packages/pykeops/keops/cuda.cmake:24 (enable_language) CMakeLists.txt:29 (include)

--------------------- CMAKE DEBUG ----------------- Command '['cmake', '/home/theodore/.local/lib/python3.8/site-packages/pykeops/cmake_scripts/script_keops_formula/', "-DCMAKE_BUILD_TYPE='Release'", "-Dshared_obj_name='KeOps_formula'", "-DPYTHON_LANG='numpy'", "-DTYPE='double'", '-DC_CONTIGUOUS=1', "-DcommandLine=cmake /home/theodore/.local/lib/python3.8/site-packages/pykeops/cmake_scripts/script_keops_formula/ -DCMAKE_BUILD_TYPE='Release' -Dshared_obj_name='KeOps_formula' -DPYTHON_LANG='numpy' -DTYPE='double' -DC_CONTIGUOUS=1"]' returned non-zero exit status 1. -- The CXX compiler identification is GNU 9.3.0 -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Looking for a CUDA compiler -- Looking for a CUDA compiler - /usr/bin/nvcc -- The CUDA Host CXX Compiler: /usr/bin/c++ -- Configuring incomplete, errors occurred! See also "/home/theodore/.cache/pykeops-1.5-cpython-38/build-b898a939ae/CMakeFiles/CMakeOutput.log". See also "/home/theodore/.cache/pykeops-1.5-cpython-38/build-b898a939ae/CMakeFiles/CMakeError.log".


done. [pyKeOps] Compiling libKeOpsnumpy39d282ce2b in /home/theodore/.cache/pykeops-1.5-cpython-38: formula: Sum_Reduction(SqNorm2(x - y),1) aliases: x = Vi(0,3); y = Vj(1,3); dtype : float64 ... make: *** 沒有規則可製作目標「KeOps_formula」。 停止。

--------------------- MAKE DEBUG ----------------- Command '['cmake', '--build', '.', '--target', 'KeOps_formula', '--', 'VERBOSE=1']' returned non-zero exit status 2.


[pyKeOps] Compiling pybind11 template libKeOps_template_b963418f37 in /home/theodore/.cache/pykeops-1.5-cpython-38 ... [pyKeOps] Initializing build folder for dtype=float64 and lang=numpy in /home/theodore/.cache/pykeops-1.5-cpython-38 ... CMake Error at /usr/local/share/cmake-3.19/Modules/CMakeDetermineCompilerId.cmake:642 (message): Compiling the CUDA compiler identification source file "CMakeCUDACompilerId.cu" failed.

Compiler: /usr/bin/nvcc

Build flags:

Id flags: --keep;--keep-dir;tmp;-ccbin=/usr/bin/c++ -v

The output was:

1

$ SPACE=

$ CUDART=cudart

$ HERE=/usr/lib/nvidia-cuda-toolkit/bin

$ THERE=/usr/lib/nvidia-cuda-toolkit/bin

$ _TARGETSIZE=

$ _TARGETDIR=

$ _TARGETSIZE=64

$ NVVMIR_LIBRARY_DIR=/usr/lib/nvidia-cuda-toolkit/libdevice

$

PATH=/usr/lib/nvidia-cuda-toolkit/bin:/home/theodore/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

$ LIBRARIES= -L/usr/lib/x86_64-linux-gnu/stubs -L/usr/lib/x86_64-linux-gnu

$ rm tmp/a_dlink.reg.c

$ "/usr/bin"/c++ -D__CUDA_ARCH__=300 -E -x c++

-DCUDA_DOUBLE_MATH_FUNCTIONS -DCUDACC -DNVCC -DCUDACC_VER_MAJOR=10 -DCUDACC_VER_MINOR=1 -DCUDACC_VER_BUILD=243 -include "cuda_runtime.h" -m64 "CMakeCUDACompilerId.cu" > "tmp/CMakeCUDACompilerId.cpp1.ii"

In file included from /usr/include/cuda_runtime.h:83,

               from <command-line>:

/usr/include/crt/host_config.h:138:2: error: #error -- unsupported GNU version! gcc versions later than 8 are not supported!

138 | #error -- unsupported GNU version! gcc versions later than 8 are not supported!
    |  ^~~~~

--error 0x1 --

Call Stack (most recent call first): /usr/local/share/cmake-3.19/Modules/CMakeDetermineCompilerId.cmake:34 (CMAKE_DETERMINE_COMPILER_ID_BUILD) /usr/local/share/cmake-3.19/Modules/CMakeDetermineCUDACompiler.cmake:260 (CMAKE_DETERMINE_COMPILER_ID) /home/theodore/.local/lib/python3.8/site-packages/pykeops/keops/cuda.cmake:24 (enable_language) CMakeLists.txt:29 (include)

--------------------- CMAKE DEBUG ----------------- Command '['cmake', '/home/theodore/.local/lib/python3.8/site-packages/pykeops/cmake_scripts/script_keops_formula/', "-DCMAKE_BUILD_TYPE='Debug'", "-Dshared_obj_name='KeOps_formula'", "-DPYTHON_LANG='numpy'", "-DTYPE='double'", '-DC_CONTIGUOUS=1', "-DcommandLine=cmake /home/theodore/.local/lib/python3.8/site-packages/pykeops/cmake_scripts/script_keops_formula/ -DCMAKE_BUILD_TYPE='Debug' -Dshared_obj_name='KeOps_formula' -DPYTHON_LANG='numpy' -DTYPE='double' -DC_CONTIGUOUS=1"]' returned non-zero exit status 1. -- The CXX compiler identification is GNU 9.3.0 -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Looking for a CUDA compiler -- Looking for a CUDA compiler - /usr/bin/nvcc -- The CUDA Host CXX Compiler: /usr/bin/c++ -- Configuring incomplete, errors occurred! See also "/home/theodore/.cache/pykeops-1.5-cpython-38/build-a2058c715f/CMakeFiles/CMakeOutput.log". See also "/home/theodore/.cache/pykeops-1.5-cpython-38/build-a2058c715f/CMakeFiles/CMakeError.log".


done. [pyKeOps] Compiling libKeOpsnumpy39d282ce2b in /home/theodore/.cache/pykeops-1.5-cpython-38: formula: Sum_Reduction(SqNorm2(x - y),1) aliases: x = Vi(0,3); y = Vj(1,3); dtype : float64 ... make: *** 沒有規則可製作目標「KeOps_formula」。 停止。

--------------------- MAKE DEBUG ----------------- Command '['cmake', '--build', '.', '--target', 'KeOps_formula', '--', 'VERBOSE=1']' returned non-zero exit status 2.


[pyKeOps] Compiling pybind11 template libKeOps_template_e16dfed055 in /home/theodore/.cache/pykeops-1.5-cpython-38 ... Traceback (most recent call last): File "/home/theodore/.local/lib/python3.8/site-packages/pykeops/test/install.py", line 22, in test_numpy_bindings my_conv = pknp.Genred(formula, var) File "/home/theodore/.local/lib/python3.8/site-packages/pykeops/numpy/generic/generic_red.py", line 182, in init self.myconv = LoadKeOps( File "/home/theodore/.local/lib/python3.8/site-packages/pykeops/common/keops_io.py", line 48, in init self._safe_compile() File "/home/theodore/.local/lib/python3.8/site-packages/pykeops/common/utils.py", line 75, in wrapper_filelock func_res = func(*args, **kwargs) File "/home/theodore/.local/lib/python3.8/site-packages/pykeops/common/keops_io.py", line 55, in _safe_compile compile_generic_routine( File "/home/theodore/.local/lib/python3.8/site-packages/pykeops/common/compile_routines.py", line 245, in compile_generic_routine template_name, is_rebuilt = get_or_build_pybind11_template( File "/home/theodore/.local/lib/python3.8/site-packages/pykeops/common/compile_routines.py", line 86, in get_or_build_pybind11_template os.rename( FileNotFoundError: [Errno 2] No such file or directory: '/home/theodore/.cache/pykeops-1.5-cpython-38//KeOps_formula.o' -> '/home/theodore/.cache/pykeops-1.5-cpython-38//build-pybind11_template-libKeOps_template_b963418f37/KeOps_formula.o'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "", line 1, in File "/home/theodore/.local/lib/python3.8/site-packages/pykeops/test/install.py", line 35, in test_numpy_bindings my_conv = pknp.Genred(formula, var) File "/home/theodore/.local/lib/python3.8/site-packages/pykeops/numpy/generic/generic_red.py", line 182, in init self.myconv = LoadKeOps( File "/home/theodore/.local/lib/python3.8/site-packages/pykeops/common/keops_io.py", line 48, in init self._safe_compile() File "/home/theodore/.local/lib/python3.8/site-packages/pykeops/common/utils.py", line 75, in wrapper_filelock func_res = func(*args, **kwargs) File "/home/theodore/.local/lib/python3.8/site-packages/pykeops/common/keops_io.py", line 55, in _safe_compile compile_generic_routine( File "/home/theodore/.local/lib/python3.8/site-packages/pykeops/common/compile_routines.py", line 245, in compile_generic_routine template_name, is_rebuilt = get_or_build_pybind11_template( File "/home/theodore/.local/lib/python3.8/site-packages/pykeops/common/compile_routines.py", line 86, in get_or_build_pybind11_template os.rename( FileNotFoundError: [Errno 2] No such file or directory: '/home/theodore/.cache/pykeops-1.5-cpython-38//KeOps_formula.o' -> '/home/theodore/.cache/pykeops-1.5-cpython-38//build-pybind11_template-libKeOps_template_e16dfed055/KeOps_formula.o'