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

Compile Issue - No module named 'libKeOpstorchd5f55273e3' #56

Closed
kheyer opened this issue Mar 27, 2020 · 9 comments
Closed

Compile Issue - No module named 'libKeOpstorchd5f55273e3' #56

kheyer opened this issue Mar 27, 2020 · 9 comments

Comments

@kheyer
Copy link

kheyer commented Mar 27, 2020

I'm trying to get KeOps working and I'm having compiler issues that appear to be related to compiling Pytorch bindings.

I read through similar issues (https://github.com/getkeops/keops/issues/28, https://github.com/getkeops/keops/issues/49, https://github.com/getkeops/keops/issues/8), but these mention fixes in v1.4 release. I'm running into the following issue using the v1.4 pip install.

Test script:

import pykeops
pykeops.verbose = True
pykeops.build_type = 'Debug'
pykeops.clean_pykeops()
pykeops.test_torch_bindings()

Terminal output:

Compiling libKeOpstorchd5f55273e3 in /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3:
       formula: Sum_Reduction(SqNorm2(x - y),1)
       aliases: x = Vi(0,3); y = Vj(1,3);
       dtype  : float32
... -- The CXX compiler identification is GNU 7.3.0
-- Check for working CXX compiler: /home/ubuntu/anaconda3/envs/pytorch_p36/bin/x86_64-conda_cos6-linux-gnu-c++
-- Check for working CXX compiler: /home/ubuntu/anaconda3/envs/pytorch_p36/bin/x86_64-conda_cos6-linux-gnu-c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for C++ include pthread.h
-- Looking for C++ include pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Compute properties automatically set to: -DMAXIDGPU=0;-DMAXTHREADSPERBLOCK0=1024;-DSHAREDMEMPERBLOCK0=49152
-- The CUDA compiler identification is NVIDIA 10.1.243
-- Check for working CUDA compiler: /usr/local/cuda-10.1/bin/nvcc
-- Check for working CUDA compiler: /usr/local/cuda-10.1/bin/nvcc -- works
-- Detecting CUDA compiler ABI info
-- Detecting CUDA compiler ABI info - done
-- The CUDA Host CXX Compiler: /home/ubuntu/anaconda3/envs/pytorch_p36/bin/x86_64-conda_cos6-linux-gnu-c++
-- Autodetected CUDA architecture(s):  3.7
-- Using shared_obj_name: libKeOpstorchd5f55273e3
-- First i variables detected is 0
-- First j variables detected is 1
-- Compiled formula is Sum_Reduction(SqNorm2(x - y),1); auto x = Vi(0,3); auto y = Vj(1,3); where the number of args is 2.
-- Found PythonInterp: /home/ubuntu/anaconda3/envs/pytorch_p36/bin/python3.6 (found suitable version "3.6.5", minimum required is "3.6")
-- Found PythonLibs: /home/ubuntu/anaconda3/envs/pytorch_p36/lib/libpython3.6m.so
-- pybind11 v2.3.dev1
-- Performing Test HAS_FLTO
-- Performing Test HAS_FLTO - Success
-- LTO enabled
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3

/home/ubuntu/anaconda3/envs/pytorch_p36/x86_64-conda_cos6-linux-gnu/include/c++/7.3.0/bits/stl_pair.h(79): error: inline specifier allowed on function declarations only

/home/ubuntu/anaconda3/envs/pytorch_p36/x86_64-conda_cos6-linux-gnu/include/c++/7.3.0/bits/stl_pair.h(437): error: argument list for class template "std::pair" is missing

/home/ubuntu/anaconda3/envs/pytorch_p36/x86_64-conda_cos6-linux-gnu/include/c++/7.3.0/bits/stl_pair.h(437): error: expected a ")"

/home/ubuntu/anaconda3/envs/pytorch_p36/x86_64-conda_cos6-linux-gnu/include/c++/7.3.0/bits/stl_pair.h(437): error: template parameter "_T1" may not be redeclared in this scope

/home/ubuntu/anaconda3/envs/pytorch_p36/x86_64-conda_cos6-linux-gnu/include/c++/7.3.0/bits/stl_pair.h(437): error: expected a ";"

/home/ubuntu/anaconda3/envs/pytorch_p36/x86_64-conda_cos6-linux-gnu/include/c++/7.3.0/utility(366): error: inline specifier allowed on function declarations only

6 errors detected in the compilation of "/tmp/tmpxft_00002eb0_00000000-6_link_autodiff.cpp1.ii".
CMake Error at keopslibKeOpstorchd5f55273e3_generated_link_autodiff.cu.o.Debug.cmake:279 (message):
  Error generating file
  /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3/CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core/./keopslibKeOpstorchd5f55273e3_generated_link_autodiff.cu.o


make[3]: *** [CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core/keopslibKeOpstorchd5f55273e3_generated_link_autodiff.cu.o] Error 1
make[2]: *** [CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/all] Error 2
make[1]: *** [CMakeFiles/libKeOpstorchd5f55273e3.dir/rule] Error 2
make: *** [libKeOpstorchd5f55273e3] Error 2

--------------------- MAKE DEBUG -----------------
Command '['cmake', '--build', '.', '--target', 'libKeOpstorchd5f55273e3', '--', 'VERBOSE=1']' returned non-zero exit status 2.
/usr/local/lib/python3.5/dist-packages/cmake/data/bin/cmake -S/home/ubuntu/.local/lib/python3.6/site-packages/pykeops -B/home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3 --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/make -f CMakeFiles/Makefile2 libKeOpstorchd5f55273e3
make[1]: Entering directory '/home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3'
/usr/local/lib/python3.5/dist-packages/cmake/data/bin/cmake -S/home/ubuntu/.local/lib/python3.6/site-packages/pykeops -B/home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3 --check-build-system CMakeFiles/Makefile.cmake 0
/usr/local/lib/python3.5/dist-packages/cmake/data/bin/cmake -E cmake_progress_start /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3/CMakeFiles 5
/usr/bin/make -f CMakeFiles/Makefile2 CMakeFiles/libKeOpstorchd5f55273e3.dir/all
make[2]: Entering directory '/home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3'
/usr/bin/make -f CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/build.make CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/depend
make[3]: Entering directory '/home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3'
[ 20%] Building NVCC (Device) object CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core/keopslibKeOpstorchd5f55273e3_generated_link_autodiff.cu.o
cd /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3/CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core && /usr/local/lib/python3.5/dist-packages/cmake/data/bin/cmake -E make_directory /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3/CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core/.
cd /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3/CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core && /usr/local/lib/python3.5/dist-packages/cmake/data/bin/cmake -D verbose:BOOL=1 -D build_configuration:STRING=Debug -D generated_file:STRING=/home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3/CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core/./keopslibKeOpstorchd5f55273e3_generated_link_autodiff.cu.o -D generated_cubin_file:STRING=/home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3/CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core/./keopslibKeOpstorchd5f55273e3_generated_link_autodiff.cu.o.cubin.txt -P /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3/CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core/keopslibKeOpstorchd5f55273e3_generated_link_autodiff.cu.o.Debug.cmake
-- Removing /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3/CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core/./keopslibKeOpstorchd5f55273e3_generated_link_autodiff.cu.o
/usr/local/lib/python3.5/dist-packages/cmake/data/bin/cmake -E remove /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3/CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core/./keopslibKeOpstorchd5f55273e3_generated_link_autodiff.cu.o
-- Generating dependency file: /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3/CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core/keopslibKeOpstorchd5f55273e3_generated_link_autodiff.cu.o.NVCC-depend
/usr/local/cuda-10.1/bin/nvcc -M -D__CUDACC__ /home/ubuntu/.local/lib/python3.6/site-packages/pykeops/keops/core/link_autodiff.cu -o /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3/CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core/keopslibKeOpstorchd5f55273e3_generated_link_autodiff.cu.o.NVCC-depend -m64 -DkeopslibKeOpstorchd5f55273e3_EXPORTS -DMAXIDGPU=0 -DMAXTHREADSPERBLOCK0=1024 -DSHAREDMEMPERBLOCK0=49152 -D_FORCE_INLINES -DCUDA_BLOCK_SIZE=192 -DUSE_CUDA=1 -D__TYPE__=float -DC_CONTIGUOUS=1 -D__TYPEACC__=float -DSUM_SCHEME=1 -DMODULE_NAME=libKeOpstorchd5f55273e3 -D_GLIBCXX_USE_CXX11_ABI=0 -DUSE_DOUBLE=0 -DUSE_HALF=0 -DKERNEL_GEOM_TYPE=0 -DKERNEL_SIG_TYPE=0 -DKERNEL_SPHERE_TYPE=0 -DMODULE_NAME_FSHAPE_SCP=fshape_scp_gaussiangaussiangaussian_unoriented_float -Xcompiler ,\"-fvisibility-inlines-hidden\",\"-std=c++17\",\"-fmessage-length=0\",\"-march=nocona\",\"-mtune=haswell\",\"-ftree-vectorize\",\"-fPIC\",\"-fstack-protector-strong\",\"-fno-plt\",\"-O2\",\"-ffunction-sections\",\"-pipe\",\"-isystem\",\"/home/ubuntu/anaconda3/envs/pytorch_p36/include\",\"-DUSE_OPENMP\",\"-fopenmp\",\"-Wall\",\"-Wno-unknown-pragmas\",\"-fmax-errors=2\",\"-fPIC\",\"-g\",\"-O0\",\"-g\" -gencode arch=compute_37,code=sm_37 --use_fast_math --compiler-options=-fPIC -ccbin /home/ubuntu/anaconda3/envs/pytorch_p36/bin/x86_64-conda_cos6-linux-gnu-c++ --pre-include=libKeOpstorchd5f55273e3.h -DNVCC -I/usr/local/cuda-10.1/include -I/home/ubuntu/.local/lib/python3.6/site-packages/pykeops -I/home/ubuntu/.local/lib/python3.6/site-packages/pykeops/keops -I/home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3 -I/home/ubuntu/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/torch/include -I/home/ubuntu/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/torch/include/torch/csrc/api/include
-- Generating temporary cmake readable file: /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3/CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core/keopslibKeOpstorchd5f55273e3_generated_link_autodiff.cu.o.depend.tmp
/usr/local/lib/python3.5/dist-packages/cmake/data/bin/cmake -D input_file:FILEPATH=/home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3/CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core/keopslibKeOpstorchd5f55273e3_generated_link_autodiff.cu.o.NVCC-depend -D output_file:FILEPATH=/home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3/CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core/keopslibKeOpstorchd5f55273e3_generated_link_autodiff.cu.o.depend.tmp -D verbose=1 -P /usr/local/lib/python3.5/dist-packages/cmake/data/share/cmake-3.13/Modules/FindCUDA/make2cmake.cmake
-- Copy if different /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3/CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core/keopslibKeOpstorchd5f55273e3_generated_link_autodiff.cu.o.depend.tmp to /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3/CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core/keopslibKeOpstorchd5f55273e3_generated_link_autodiff.cu.o.depend
/usr/local/lib/python3.5/dist-packages/cmake/data/bin/cmake -E copy_if_different /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3/CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core/keopslibKeOpstorchd5f55273e3_generated_link_autodiff.cu.o.depend.tmp /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3/CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core/keopslibKeOpstorchd5f55273e3_generated_link_autodiff.cu.o.depend
-- Removing /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3/CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core/keopslibKeOpstorchd5f55273e3_generated_link_autodiff.cu.o.depend.tmp and /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3/CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core/keopslibKeOpstorchd5f55273e3_generated_link_autodiff.cu.o.NVCC-depend
/usr/local/lib/python3.5/dist-packages/cmake/data/bin/cmake -E remove /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3/CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core/keopslibKeOpstorchd5f55273e3_generated_link_autodiff.cu.o.depend.tmp /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3/CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core/keopslibKeOpstorchd5f55273e3_generated_link_autodiff.cu.o.NVCC-depend
-- Generating /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3/CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core/./keopslibKeOpstorchd5f55273e3_generated_link_autodiff.cu.o
/usr/local/cuda-10.1/bin/nvcc /home/ubuntu/.local/lib/python3.6/site-packages/pykeops/keops/core/link_autodiff.cu -c -o /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3/CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core/./keopslibKeOpstorchd5f55273e3_generated_link_autodiff.cu.o -m64 -DkeopslibKeOpstorchd5f55273e3_EXPORTS -DMAXIDGPU=0 -DMAXTHREADSPERBLOCK0=1024 -DSHAREDMEMPERBLOCK0=49152 -D_FORCE_INLINES -DCUDA_BLOCK_SIZE=192 -DUSE_CUDA=1 -D__TYPE__=float -DC_CONTIGUOUS=1 -D__TYPEACC__=float -DSUM_SCHEME=1 -DMODULE_NAME=libKeOpstorchd5f55273e3 -D_GLIBCXX_USE_CXX11_ABI=0 -DUSE_DOUBLE=0 -DUSE_HALF=0 -DKERNEL_GEOM_TYPE=0 -DKERNEL_SIG_TYPE=0 -DKERNEL_SPHERE_TYPE=0 -DMODULE_NAME_FSHAPE_SCP=fshape_scp_gaussiangaussiangaussian_unoriented_float -Xcompiler ,\"-fvisibility-inlines-hidden\",\"-std=c++17\",\"-fmessage-length=0\",\"-march=nocona\",\"-mtune=haswell\",\"-ftree-vectorize\",\"-fPIC\",\"-fstack-protector-strong\",\"-fno-plt\",\"-O2\",\"-ffunction-sections\",\"-pipe\",\"-isystem\",\"/home/ubuntu/anaconda3/envs/pytorch_p36/include\",\"-DUSE_OPENMP\",\"-fopenmp\",\"-Wall\",\"-Wno-unknown-pragmas\",\"-fmax-errors=2\",\"-fPIC\",\"-g\",\"-O0\",\"-g\" -gencode arch=compute_37,code=sm_37 --use_fast_math --compiler-options=-fPIC -ccbin /home/ubuntu/anaconda3/envs/pytorch_p36/bin/x86_64-conda_cos6-linux-gnu-c++ --pre-include=libKeOpstorchd5f55273e3.h -DNVCC -I/usr/local/cuda-10.1/include -I/home/ubuntu/.local/lib/python3.6/site-packages/pykeops -I/home/ubuntu/.local/lib/python3.6/site-packages/pykeops/keops -I/home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3 -I/home/ubuntu/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/torch/include -I/home/ubuntu/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/torch/include/torch/csrc/api/include
-- Removing /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3/CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core/./keopslibKeOpstorchd5f55273e3_generated_link_autodiff.cu.o
/usr/local/lib/python3.5/dist-packages/cmake/data/bin/cmake -E remove /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3/CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core/./keopslibKeOpstorchd5f55273e3_generated_link_autodiff.cu.o
CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/build.make:63: recipe for target 'CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core/keopslibKeOpstorchd5f55273e3_generated_link_autodiff.cu.o' failed
make[3]: Leaving directory '/home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3'
CMakeFiles/Makefile2:331: recipe for target 'CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/all' failed
make[2]: Leaving directory '/home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3'
CMakeFiles/Makefile2:306: recipe for target 'CMakeFiles/libKeOpstorchd5f55273e3.dir/rule' failed
make[1]: Leaving directory '/home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3'
Makefile:196: recipe for target 'libKeOpstorchd5f55273e3' failed

--------------------- ----------- -----------------
Done.
Compiling libKeOpstorchd5f55273e3 in /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3:
       formula: Sum_Reduction(SqNorm2(x - y),1)
       aliases: x = Vi(0,3); y = Vj(1,3);
       dtype  : float32
... -- The CXX compiler identification is GNU 7.3.0
-- Check for working CXX compiler: /home/ubuntu/anaconda3/envs/pytorch_p36/bin/x86_64-conda_cos6-linux-gnu-c++
-- Check for working CXX compiler: /home/ubuntu/anaconda3/envs/pytorch_p36/bin/x86_64-conda_cos6-linux-gnu-c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for C++ include pthread.h
-- Looking for C++ include pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Compute properties automatically set to: -DMAXIDGPU=0;-DMAXTHREADSPERBLOCK0=1024;-DSHAREDMEMPERBLOCK0=49152
-- The CUDA compiler identification is NVIDIA 10.1.243
-- Check for working CUDA compiler: /usr/local/cuda-10.1/bin/nvcc
-- Check for working CUDA compiler: /usr/local/cuda-10.1/bin/nvcc -- works
-- Detecting CUDA compiler ABI info
-- Detecting CUDA compiler ABI info - done
-- The CUDA Host CXX Compiler: /home/ubuntu/anaconda3/envs/pytorch_p36/bin/x86_64-conda_cos6-linux-gnu-c++
-- Autodetected CUDA architecture(s):  3.7
-- Using shared_obj_name: libKeOpstorchd5f55273e3
-- First i variables detected is 0
-- First j variables detected is 1
-- Compiled formula is Sum_Reduction(SqNorm2(x - y),1); auto x = Vi(0,3); auto y = Vj(1,3); where the number of args is 2.
-- Found PythonInterp: /home/ubuntu/anaconda3/envs/pytorch_p36/bin/python3.6 (found suitable version "3.6.5", minimum required is "3.6")
-- Found PythonLibs: /home/ubuntu/anaconda3/envs/pytorch_p36/lib/libpython3.6m.so
-- pybind11 v2.3.dev1
-- Performing Test HAS_FLTO
-- Performing Test HAS_FLTO - Success
-- LTO enabled
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3

/home/ubuntu/anaconda3/envs/pytorch_p36/x86_64-conda_cos6-linux-gnu/include/c++/7.3.0/bits/stl_pair.h(79): error: inline specifier allowed on function declarations only

/home/ubuntu/anaconda3/envs/pytorch_p36/x86_64-conda_cos6-linux-gnu/include/c++/7.3.0/bits/stl_pair.h(437): error: argument list for class template "std::pair" is missing

/home/ubuntu/anaconda3/envs/pytorch_p36/x86_64-conda_cos6-linux-gnu/include/c++/7.3.0/bits/stl_pair.h(437): error: expected a ")"

/home/ubuntu/anaconda3/envs/pytorch_p36/x86_64-conda_cos6-linux-gnu/include/c++/7.3.0/bits/stl_pair.h(437): error: template parameter "_T1" may not be redeclared in this scope

/home/ubuntu/anaconda3/envs/pytorch_p36/x86_64-conda_cos6-linux-gnu/include/c++/7.3.0/bits/stl_pair.h(437): error: expected a ";"

/home/ubuntu/anaconda3/envs/pytorch_p36/x86_64-conda_cos6-linux-gnu/include/c++/7.3.0/utility(366): error: inline specifier allowed on function declarations only

6 errors detected in the compilation of "/tmp/tmpxft_0000308a_00000000-6_link_autodiff.cpp1.ii".
CMake Error at keopslibKeOpstorchd5f55273e3_generated_link_autodiff.cu.o.Debug.cmake:279 (message):
  Error generating file
  /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3/CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core/./keopslibKeOpstorchd5f55273e3_generated_link_autodiff.cu.o


make[3]: *** [CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core/keopslibKeOpstorchd5f55273e3_generated_link_autodiff.cu.o] Error 1
make[2]: *** [CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/all] Error 2
make[1]: *** [CMakeFiles/libKeOpstorchd5f55273e3.dir/rule] Error 2
make: *** [libKeOpstorchd5f55273e3] Error 2

--------------------- MAKE DEBUG -----------------
Command '['cmake', '--build', '.', '--target', 'libKeOpstorchd5f55273e3', '--', 'VERBOSE=1']' returned non-zero exit status 2.
/usr/local/lib/python3.5/dist-packages/cmake/data/bin/cmake -S/home/ubuntu/.local/lib/python3.6/site-packages/pykeops -B/home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3 --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/make -f CMakeFiles/Makefile2 libKeOpstorchd5f55273e3
make[1]: Entering directory '/home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3'
/usr/local/lib/python3.5/dist-packages/cmake/data/bin/cmake -S/home/ubuntu/.local/lib/python3.6/site-packages/pykeops -B/home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3 --check-build-system CMakeFiles/Makefile.cmake 0
/usr/local/lib/python3.5/dist-packages/cmake/data/bin/cmake -E cmake_progress_start /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3/CMakeFiles 5
/usr/bin/make -f CMakeFiles/Makefile2 CMakeFiles/libKeOpstorchd5f55273e3.dir/all
make[2]: Entering directory '/home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3'
/usr/bin/make -f CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/build.make CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/depend
make[3]: Entering directory '/home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3'
[ 20%] Building NVCC (Device) object CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core/keopslibKeOpstorchd5f55273e3_generated_link_autodiff.cu.o
cd /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3/CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core && /usr/local/lib/python3.5/dist-packages/cmake/data/bin/cmake -E make_directory /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3/CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core/.
cd /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3/CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core && /usr/local/lib/python3.5/dist-packages/cmake/data/bin/cmake -D verbose:BOOL=1 -D build_configuration:STRING=Debug -D generated_file:STRING=/home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3/CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core/./keopslibKeOpstorchd5f55273e3_generated_link_autodiff.cu.o -D generated_cubin_file:STRING=/home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3/CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core/./keopslibKeOpstorchd5f55273e3_generated_link_autodiff.cu.o.cubin.txt -P /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3/CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core/keopslibKeOpstorchd5f55273e3_generated_link_autodiff.cu.o.Debug.cmake
-- Removing /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3/CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core/./keopslibKeOpstorchd5f55273e3_generated_link_autodiff.cu.o
/usr/local/lib/python3.5/dist-packages/cmake/data/bin/cmake -E remove /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3/CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core/./keopslibKeOpstorchd5f55273e3_generated_link_autodiff.cu.o
-- Generating dependency file: /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3/CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core/keopslibKeOpstorchd5f55273e3_generated_link_autodiff.cu.o.NVCC-depend
/usr/local/cuda-10.1/bin/nvcc -M -D__CUDACC__ /home/ubuntu/.local/lib/python3.6/site-packages/pykeops/keops/core/link_autodiff.cu -o /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3/CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core/keopslibKeOpstorchd5f55273e3_generated_link_autodiff.cu.o.NVCC-depend -m64 -DkeopslibKeOpstorchd5f55273e3_EXPORTS -DMAXIDGPU=0 -DMAXTHREADSPERBLOCK0=1024 -DSHAREDMEMPERBLOCK0=49152 -D_FORCE_INLINES -DCUDA_BLOCK_SIZE=192 -DUSE_CUDA=1 -D__TYPE__=float -DC_CONTIGUOUS=1 -D__TYPEACC__=float -DSUM_SCHEME=1 -DMODULE_NAME=libKeOpstorchd5f55273e3 -D_GLIBCXX_USE_CXX11_ABI=0 -DUSE_DOUBLE=0 -DUSE_HALF=0 -DKERNEL_GEOM_TYPE=0 -DKERNEL_SIG_TYPE=0 -DKERNEL_SPHERE_TYPE=0 -DMODULE_NAME_FSHAPE_SCP=fshape_scp_gaussiangaussiangaussian_unoriented_float -Xcompiler ,\"-fvisibility-inlines-hidden\",\"-std=c++17\",\"-fmessage-length=0\",\"-march=nocona\",\"-mtune=haswell\",\"-ftree-vectorize\",\"-fPIC\",\"-fstack-protector-strong\",\"-fno-plt\",\"-O2\",\"-ffunction-sections\",\"-pipe\",\"-isystem\",\"/home/ubuntu/anaconda3/envs/pytorch_p36/include\",\"-DUSE_OPENMP\",\"-fopenmp\",\"-Wall\",\"-Wno-unknown-pragmas\",\"-fmax-errors=2\",\"-fPIC\",\"-g\",\"-O0\",\"-g\" -gencode arch=compute_37,code=sm_37 --use_fast_math --compiler-options=-fPIC -ccbin /home/ubuntu/anaconda3/envs/pytorch_p36/bin/x86_64-conda_cos6-linux-gnu-c++ --pre-include=libKeOpstorchd5f55273e3.h -DNVCC -I/usr/local/cuda-10.1/include -I/home/ubuntu/.local/lib/python3.6/site-packages/pykeops -I/home/ubuntu/.local/lib/python3.6/site-packages/pykeops/keops -I/home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3 -I/home/ubuntu/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/torch/include -I/home/ubuntu/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/torch/include/torch/csrc/api/include
-- Generating temporary cmake readable file: /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3/CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core/keopslibKeOpstorchd5f55273e3_generated_link_autodiff.cu.o.depend.tmp
/usr/local/lib/python3.5/dist-packages/cmake/data/bin/cmake -D input_file:FILEPATH=/home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3/CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core/keopslibKeOpstorchd5f55273e3_generated_link_autodiff.cu.o.NVCC-depend -D output_file:FILEPATH=/home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3/CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core/keopslibKeOpstorchd5f55273e3_generated_link_autodiff.cu.o.depend.tmp -D verbose=1 -P /usr/local/lib/python3.5/dist-packages/cmake/data/share/cmake-3.13/Modules/FindCUDA/make2cmake.cmake
-- Copy if different /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3/CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core/keopslibKeOpstorchd5f55273e3_generated_link_autodiff.cu.o.depend.tmp to /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3/CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core/keopslibKeOpstorchd5f55273e3_generated_link_autodiff.cu.o.depend
/usr/local/lib/python3.5/dist-packages/cmake/data/bin/cmake -E copy_if_different /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3/CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core/keopslibKeOpstorchd5f55273e3_generated_link_autodiff.cu.o.depend.tmp /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3/CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core/keopslibKeOpstorchd5f55273e3_generated_link_autodiff.cu.o.depend
-- Removing /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3/CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core/keopslibKeOpstorchd5f55273e3_generated_link_autodiff.cu.o.depend.tmp and /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3/CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core/keopslibKeOpstorchd5f55273e3_generated_link_autodiff.cu.o.NVCC-depend
/usr/local/lib/python3.5/dist-packages/cmake/data/bin/cmake -E remove /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3/CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core/keopslibKeOpstorchd5f55273e3_generated_link_autodiff.cu.o.depend.tmp /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3/CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core/keopslibKeOpstorchd5f55273e3_generated_link_autodiff.cu.o.NVCC-depend
-- Generating /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3/CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core/./keopslibKeOpstorchd5f55273e3_generated_link_autodiff.cu.o
/usr/local/cuda-10.1/bin/nvcc /home/ubuntu/.local/lib/python3.6/site-packages/pykeops/keops/core/link_autodiff.cu -c -o /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3/CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core/./keopslibKeOpstorchd5f55273e3_generated_link_autodiff.cu.o -m64 -DkeopslibKeOpstorchd5f55273e3_EXPORTS -DMAXIDGPU=0 -DMAXTHREADSPERBLOCK0=1024 -DSHAREDMEMPERBLOCK0=49152 -D_FORCE_INLINES -DCUDA_BLOCK_SIZE=192 -DUSE_CUDA=1 -D__TYPE__=float -DC_CONTIGUOUS=1 -D__TYPEACC__=float -DSUM_SCHEME=1 -DMODULE_NAME=libKeOpstorchd5f55273e3 -D_GLIBCXX_USE_CXX11_ABI=0 -DUSE_DOUBLE=0 -DUSE_HALF=0 -DKERNEL_GEOM_TYPE=0 -DKERNEL_SIG_TYPE=0 -DKERNEL_SPHERE_TYPE=0 -DMODULE_NAME_FSHAPE_SCP=fshape_scp_gaussiangaussiangaussian_unoriented_float -Xcompiler ,\"-fvisibility-inlines-hidden\",\"-std=c++17\",\"-fmessage-length=0\",\"-march=nocona\",\"-mtune=haswell\",\"-ftree-vectorize\",\"-fPIC\",\"-fstack-protector-strong\",\"-fno-plt\",\"-O2\",\"-ffunction-sections\",\"-pipe\",\"-isystem\",\"/home/ubuntu/anaconda3/envs/pytorch_p36/include\",\"-DUSE_OPENMP\",\"-fopenmp\",\"-Wall\",\"-Wno-unknown-pragmas\",\"-fmax-errors=2\",\"-fPIC\",\"-g\",\"-O0\",\"-g\" -gencode arch=compute_37,code=sm_37 --use_fast_math --compiler-options=-fPIC -ccbin /home/ubuntu/anaconda3/envs/pytorch_p36/bin/x86_64-conda_cos6-linux-gnu-c++ --pre-include=libKeOpstorchd5f55273e3.h -DNVCC -I/usr/local/cuda-10.1/include -I/home/ubuntu/.local/lib/python3.6/site-packages/pykeops -I/home/ubuntu/.local/lib/python3.6/site-packages/pykeops/keops -I/home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3 -I/home/ubuntu/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/torch/include -I/home/ubuntu/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/torch/include/torch/csrc/api/include
-- Removing /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3/CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core/./keopslibKeOpstorchd5f55273e3_generated_link_autodiff.cu.o
/usr/local/lib/python3.5/dist-packages/cmake/data/bin/cmake -E remove /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3/CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core/./keopslibKeOpstorchd5f55273e3_generated_link_autodiff.cu.o
CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/build.make:63: recipe for target 'CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/keops/core/keopslibKeOpstorchd5f55273e3_generated_link_autodiff.cu.o' failed
make[3]: Leaving directory '/home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3'
CMakeFiles/Makefile2:331: recipe for target 'CMakeFiles/keopslibKeOpstorchd5f55273e3.dir/all' failed
make[2]: Leaving directory '/home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3'
CMakeFiles/Makefile2:306: recipe for target 'CMakeFiles/libKeOpstorchd5f55273e3.dir/rule' failed
make[1]: Leaving directory '/home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpstorchd5f55273e3'
Makefile:196: recipe for target 'libKeOpstorchd5f55273e3' failed

--------------------- ----------- -----------------
Done.
Traceback (most recent call last):
  File "/home/ubuntu/.local/lib/python3.6/site-packages/pykeops/test/install.py", line 55, in test_torch_bindings
    if torch.allclose(my_conv(x, y).view(-1), torch.tensor(expected_res).type(torch.float32)):
  File "/home/ubuntu/.local/lib/python3.6/site-packages/pykeops/torch/generic/generic_red.py", line 396, in __call__
    device_id, ranges, self.accuracy_flags, *args)
  File "/home/ubuntu/.local/lib/python3.6/site-packages/pykeops/torch/generic/generic_red.py", line 22, in forward
    myconv = LoadKeOps(formula, aliases, dtype, 'torch', optional_flags).import_module()
  File "/home/ubuntu/.local/lib/python3.6/site-packages/pykeops/common/keops_io.py", line 52, in import_module
    return importlib.import_module(self.dll_name)
  File "/home/ubuntu/anaconda3/envs/pytorch_p36/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'libKeOpstorchd5f55273e3'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "Optimal Transport/compile_test.py", line 5, in <module>
    pykeops.test_torch_bindings()    # perform the compilation
  File "/home/ubuntu/.local/lib/python3.6/site-packages/pykeops/test/install.py", line 66, in test_torch_bindings
    print(my_conv(x, y))
  File "/home/ubuntu/.local/lib/python3.6/site-packages/pykeops/torch/generic/generic_red.py", line 396, in __call__
    device_id, ranges, self.accuracy_flags, *args)
  File "/home/ubuntu/.local/lib/python3.6/site-packages/pykeops/torch/generic/generic_red.py", line 22, in forward
    myconv = LoadKeOps(formula, aliases, dtype, 'torch', optional_flags).import_module()
  File "/home/ubuntu/.local/lib/python3.6/site-packages/pykeops/common/keops_io.py", line 52, in import_module
    return importlib.import_module(self.dll_name)
  File "/home/ubuntu/anaconda3/envs/pytorch_p36/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'libKeOpstorchd5f55273e3'

Compiler settings:

gcc -v

Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.4.0-6ubuntu1~16.04.12' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.12)
g++ -v

Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.4.0-6ubuntu1~16.04.12' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.12)

Compilers are installed locally using Anaconda.

cmake version 3.13.3

nvcc Install

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2018 NVIDIA Corporation
Built on Sat_Aug_25_21:08:01_CDT_2018
Cuda compilation tools, release 10.0, V10.0.130

Any assistance with this would be helpful.

@bcharlier
Copy link
Member

Hi @kheyer ,

there is a mismatch between the detected CXX compiler

-- The CXX compiler identification is GNU 7.3.0
-- Check for working CXX compiler: /home/ubuntu/anaconda3/envs/pytorch_p36/bin/x86_64-conda_cos6-linux-gnu-c++
-- Check for working CXX compiler: /home/ubuntu/anaconda3/envs/pytorch_p36/bin/x86_64-conda_cos6-linux-gnu-c++ -- works

and the one you are expecting to use

$ g++ -v

Using built-in specs.
COLLECT_GCC=g++
[...]
gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.12)

Moreover, from my point of view, using the c++ compiler shipped by anaconda is not a good idea. You better have install a newer g++ from ubuntu apt repo. Here are your error:

/home/ubuntu/anaconda3/envs/pytorch_p36/x86_64-conda_cos6-linux-gnu/include/c++/7.3.0/bits/stl_pair.h(79): error: inline specifier allowed on function declarations only

/home/ubuntu/anaconda3/envs/pytorch_p36/x86_64-conda_cos6-linux-gnu/include/c++/7.3.0/bits/stl_pair.h(437): error: argument list for class template "std::pair" is missing

/home/ubuntu/anaconda3/envs/pytorch_p36/x86_64-conda_cos6-linux-gnu/include/c++/7.3.0/bits/stl_pair.h(437): error: expected a ")"

/home/ubuntu/anaconda3/envs/pytorch_p36/x86_64-conda_cos6-linux-gnu/include/c++/7.3.0/bits/stl_pair.h(437): error: template parameter "_T1" may not be redeclared in this scope

/home/ubuntu/anaconda3/envs/pytorch_p36/x86_64-conda_cos6-linux-gnu/include/c++/7.3.0/bits/stl_pair.h(437): error: expected a ";"

/home/ubuntu/anaconda3/envs/pytorch_p36/x86_64-conda_cos6-linux-gnu/include/c++/7.3.0/utility(366): error: inline specifier allowed on function declarations only

@kheyer
Copy link
Author

kheyer commented Mar 27, 2020

Hi @bcharlier thanks for responding.

I tried setting Anaconda to use the Anaconda install of g++, which uses version 7.3.0

export CXX=/home/ubuntu/anaconda3/envs/pytorch_p36/bin/x86_64-conda_cos6-linux-gnu-g++

This successfully changes the compiler used:

... -- The CXX compiler identification is GNU 7.3.0
-- Check for working CXX compiler: /home/ubuntu/anaconda3/envs/pytorch_p36/bin/x86_64-conda_cos6-linux-gnu-g++
-- Check for working CXX compiler: /home/ubuntu/anaconda3/envs/pytorch_p36/bin/x86_64-conda_cos6-linux-gnu-g++ -- works

However the same errors are thrown.

I tried using the non-Anaconda version of g++

> which g++
/usr/bin/g++
> export CXX=/usr/bin/g++

Although this fails with

... CMake Error at /usr/local/lib/python3.5/dist-packages/cmake/data/share/cmake-3.13/Modules/CMakeTestCXXCompiler.cmake:45 (message):
  The C++ compiler

    "/usr/bin/g++"

  is not able to compile a simple test program.

I tried totally uninstalling the Anaconda compilers and doing a fresh install of g++ and cmake using apt-install, but the error persisted.

Searching around I found one reference to the following error:

/home/ubuntu/anaconda3/envs/pytorch_p36/x86_64-conda_cos6-linux-gnu/include/c++/7.3.0/bits/stl_pair.h(79): error: inline specifier allowed on function declarations only

On this issue, which points to CUDA compilation issues.

Do you have any thoughts on how to go about debugging this?

@bcharlier
Copy link
Member

Hi @bcharlier thanks for responding.

I tried setting Anaconda to use the Anaconda install of g++, which uses version 7.3.0

export CXX=/home/ubuntu/anaconda3/envs/pytorch_p36/bin/x86_64-conda_cos6-linux-gnu-g++

This successfully changes the compiler used:

... -- The CXX compiler identification is GNU 7.3.0
-- Check for working CXX compiler: /home/ubuntu/anaconda3/envs/pytorch_p36/bin/x86_64-conda_cos6-linux-gnu-g++
-- Check for working CXX compiler: /home/ubuntu/anaconda3/envs/pytorch_p36/bin/x86_64-conda_cos6-linux-gnu-g++ -- works

However the same errors are thrown.

No change with your first attempt. This was the anaconda g++ already in use.

I tried using the non-Anaconda version of g++

> which g++
/usr/bin/g++
> export CXX=/usr/bin/g++

Although this fails with

You definitely need a working decent c++ compiler on your system.

Do you have any thoughts on how to go about debugging this?

If you're admin on the machine

$sudo apt install g++-XX

where XX=6,7 or 8 should be the way to go. If you don't have the admin rights, send a mail to your IT and ask for the installation.

b.

@kheyer
Copy link
Author

kheyer commented Mar 27, 2020

Installing g++8 fixes the "not able to compile" error but the compilation errors remain.

> sudo apt install g++-8
> which g++-8
/usr/bin/g++-8
> export CXX=/usr/bin/g++-8

At the start of compilation I see

... -- The CXX compiler identification is GNU 8.3.0
-- Check for working CXX compiler: /usr/bin/g++-8
-- Check for working CXX compiler: /usr/bin/g++-8 -- works

Then the following errors are thrown

/usr/include/c++/8/bits/stl_pair.h(79): error: inline specifier allowed on function declarations only

/usr/include/c++/8/bits/stl_pair.h(442): error: argument list for class template "std::pair" is missing

/usr/include/c++/8/bits/stl_pair.h(442): error: expected a ")"

/usr/include/c++/8/bits/stl_pair.h(442): error: template parameter "_T1" may not be redeclared in this scope

/usr/include/c++/8/bits/stl_pair.h(442): error: expected a ";"

/usr/include/c++/8/bits/basic_string.h(5896): error: argument list for class template "std::basic_string" is missing

/usr/include/c++/8/bits/basic_string.h(5896): error: expected a ")"

/usr/include/c++/8/bits/basic_string.h(5896): error: template parameter "_InputIterator" may not be redeclared in this scope

/usr/include/c++/8/bits/basic_string.h(5897): error: expected a ";"

/usr/include/c++/8/bits/basic_string.h(5904): error: argument list for class template "std::basic_string" is missing

/usr/include/c++/8/bits/basic_string.h(5904): error: expected a ")"

/usr/include/c++/8/bits/basic_string.h(5904): error: "basic_string_view" is not a function or static data member

/usr/include/c++/8/bits/basic_string.h(5910): error: argument list for class template "std::basic_string" is missing

/usr/include/c++/8/bits/basic_string.h(5910): error: expected a ")"

/usr/include/c++/8/bits/basic_string.h(5910): error: "basic_string_view" is not a function or static data member

/usr/include/c++/8/utility(353): error: inline specifier allowed on function declarations only

/home/ubuntu/.local/lib/python3.6/site-packages/pykeops/keops/lib/sequences/include/tao/seq/sum.hpp(33): error: expected an expression

/home/ubuntu/.local/lib/python3.6/site-packages/pykeops/keops/lib/sequences/include/tao/seq/is_any.hpp(23): error: expected an expression

/home/ubuntu/.local/lib/python3.6/site-packages/pykeops/keops/lib/sequences/include/tao/seq/is_any.hpp(23): error: parameter pack "Bs" was referenced but not expanded

/home/ubuntu/.local/lib/python3.6/site-packages/pykeops/keops/lib/sequences/include/tao/seq/prod.hpp(30): error: expected an expression

/usr/include/c++/8/bits/stl_vector.h(1737): error: argument list for class template "std::vector" is missing

/usr/include/c++/8/bits/stl_vector.h(1737): error: expected a ")"

/usr/include/c++/8/bits/stl_vector.h(1732): error: redefinition of default argument

/usr/include/c++/8/bits/stl_vector.h(1734): error: redefinition of default argument

/usr/include/c++/8/bits/stl_vector.h(1735): error: redefinition of default argument

/usr/include/c++/8/bits/stl_vector.h(1736): error: redefinition of default argument

/usr/include/c++/8/bits/stl_vector.h(1737): error: variable template "std::_InputIterator" has already been defined

/usr/include/c++/8/bits/stl_vector.h(1738): error: expected a ";"

@bcharlier
Copy link
Member

@fradav , an idea ?

@fradav
Copy link
Contributor

fradav commented Mar 28, 2020

Hello,

Please provide the whole cmake output, as it appears that a crucial flag have been borked in the process (-std=c++14). Did you clean your build dir when you upgraded to g++-8 (deleted the CmakeCache.txt file) ?

Regards,

@kheyer
Copy link
Author

kheyer commented Mar 28, 2020

I ran lb clean and locate CMakeCache doesn't return anything. Here's the full output:

Compiling libKeOpsnumpyd46837e05c in /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c:
       formula: Sum_Reduction(SqNorm2(x - y),1)
       aliases: x = Vi(0,3); y = Vj(1,3);
       dtype  : float64
... -- The CXX compiler identification is GNU 8.3.0
-- Check for working CXX compiler: /usr/bin/g++-8
-- Check for working CXX compiler: /usr/bin/g++-8 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for C++ include pthread.h
-- Looking for C++ include pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Compute properties automatically set to: -DMAXIDGPU=0;-DMAXTHREADSPERBLOCK0=1024;-DSHAREDMEMPERBLOCK0=49152
-- The CUDA compiler identification is NVIDIA 10.1.243
-- Check for working CUDA compiler: /usr/local/cuda-10.1/bin/nvcc
-- Check for working CUDA compiler: /usr/local/cuda-10.1/bin/nvcc -- works
-- Detecting CUDA compiler ABI info
-- Detecting CUDA compiler ABI info - done
-- The CUDA Host CXX Compiler: /usr/bin/g++-8
-- Autodetected CUDA architecture(s):  3.7
-- Using shared_obj_name: libKeOpsnumpyd46837e05c
-- First i variables detected is 0
-- First j variables detected is 1
-- Compiled formula is Sum_Reduction(SqNorm2(x - y),1); auto x = Vi(0,3); auto y = Vj(1,3); where the number of args is 2.
-- Found PythonInterp: /home/ubuntu/anaconda3/envs/pytorch_p36/bin/python3.6 (found suitable version "3.6.5", minimum required is "3.6")
-- Found PythonLibs: /home/ubuntu/anaconda3/envs/pytorch_p36/lib/libpython3.6m.so
-- pybind11 v2.3.dev1
-- Performing Test HAS_FLTO
-- Performing Test HAS_FLTO - Success
-- LTO enabled
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c

/usr/include/c++/8/bits/stl_pair.h(79): error: inline specifier allowed on function declarations only

/usr/include/c++/8/bits/stl_pair.h(442): error: argument list for class template "std::pair" is missing

/usr/include/c++/8/bits/stl_pair.h(442): error: expected a ")"

/usr/include/c++/8/bits/stl_pair.h(442): error: template parameter "_T1" may not be redeclared in this scope

/usr/include/c++/8/bits/stl_pair.h(442): error: expected a ";"

/usr/include/c++/8/bits/basic_string.h(5896): error: argument list for class template "std::basic_string" is missing

/usr/include/c++/8/bits/basic_string.h(5896): error: expected a ")"

/usr/include/c++/8/bits/basic_string.h(5896): error: template parameter "_InputIterator" may not be redeclared in this scope

/usr/include/c++/8/bits/basic_string.h(5897): error: expected a ";"

/usr/include/c++/8/bits/basic_string.h(5904): error: argument list for class template "std::basic_string" is missing

/usr/include/c++/8/bits/basic_string.h(5904): error: expected a ")"

/usr/include/c++/8/bits/basic_string.h(5904): error: "basic_string_view" is not a function or static data member

/usr/include/c++/8/bits/basic_string.h(5910): error: argument list for class template "std::basic_string" is missing

/usr/include/c++/8/bits/basic_string.h(5910): error: expected a ")"

/usr/include/c++/8/bits/basic_string.h(5910): error: "basic_string_view" is not a function or static data member

/usr/include/c++/8/utility(353): error: inline specifier allowed on function declarations only

/home/ubuntu/.local/lib/python3.6/site-packages/pykeops/keops/lib/sequences/include/tao/seq/sum.hpp(33): error: expected an expression

/home/ubuntu/.local/lib/python3.6/site-packages/pykeops/keops/lib/sequences/include/tao/seq/is_any.hpp(23): error: expected an expression

/home/ubuntu/.local/lib/python3.6/site-packages/pykeops/keops/lib/sequences/include/tao/seq/is_any.hpp(23): error: parameter pack "Bs" was referenced but not expanded

/home/ubuntu/.local/lib/python3.6/site-packages/pykeops/keops/lib/sequences/include/tao/seq/prod.hpp(30): error: expected an expression

/usr/include/c++/8/bits/stl_vector.h(1737): error: argument list for class template "std::vector" is missing

/usr/include/c++/8/bits/stl_vector.h(1737): error: expected a ")"

/usr/include/c++/8/bits/stl_vector.h(1732): error: redefinition of default argument

/usr/include/c++/8/bits/stl_vector.h(1734): error: redefinition of default argument

/usr/include/c++/8/bits/stl_vector.h(1735): error: redefinition of default argument

/usr/include/c++/8/bits/stl_vector.h(1736): error: redefinition of default argument

/usr/include/c++/8/bits/stl_vector.h(1737): error: variable template "std::_InputIterator" has already been defined

/usr/include/c++/8/bits/stl_vector.h(1738): error: expected a ";"

28 errors detected in the compilation of "/tmp/tmpxft_000038a2_00000000-6_link_autodiff.cpp1.ii".
CMake Error at keopslibKeOpsnumpyd46837e05c_generated_link_autodiff.cu.o.Debug.cmake:279 (message):
  Error generating file
  /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c/CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core/./keopslibKeOpsnumpyd46837e05c_generated_link_autodiff.cu.o


make[3]: *** [CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core/keopslibKeOpsnumpyd46837e05c_generated_link_autodiff.cu.o] Error 1
make[2]: *** [CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/all] Error 2
make[1]: *** [CMakeFiles/libKeOpsnumpyd46837e05c.dir/rule] Error 2
make: *** [libKeOpsnumpyd46837e05c] Error 2

--------------------- MAKE DEBUG -----------------
Command '['cmake', '--build', '.', '--target', 'libKeOpsnumpyd46837e05c', '--', 'VERBOSE=1']' returned non-zero exit status 2.
/usr/local/lib/python3.5/dist-packages/cmake/data/bin/cmake -S/home/ubuntu/.local/lib/python3.6/site-packages/pykeops -B/home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/make -f CMakeFiles/Makefile2 libKeOpsnumpyd46837e05c
make[1]: Entering directory '/home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c'
/usr/local/lib/python3.5/dist-packages/cmake/data/bin/cmake -S/home/ubuntu/.local/lib/python3.6/site-packages/pykeops -B/home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c --check-build-system CMakeFiles/Makefile.cmake 0
/usr/local/lib/python3.5/dist-packages/cmake/data/bin/cmake -E cmake_progress_start /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c/CMakeFiles 5
/usr/bin/make -f CMakeFiles/Makefile2 CMakeFiles/libKeOpsnumpyd46837e05c.dir/all
make[2]: Entering directory '/home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c'
/usr/bin/make -f CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/build.make CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/depend
make[3]: Entering directory '/home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c'
[ 20%] Building NVCC (Device) object CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core/keopslibKeOpsnumpyd46837e05c_generated_link_autodiff.cu.o
cd /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c/CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core && /usr/local/lib/python3.5/dist-packages/cmake/data/bin/cmake -E make_directory /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c/CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core/.
cd /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c/CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core && /usr/local/lib/python3.5/dist-packages/cmake/data/bin/cmake -D verbose:BOOL=1 -D build_configuration:STRING=Debug -D generated_file:STRING=/home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c/CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core/./keopslibKeOpsnumpyd46837e05c_generated_link_autodiff.cu.o -D generated_cubin_file:STRING=/home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c/CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core/./keopslibKeOpsnumpyd46837e05c_generated_link_autodiff.cu.o.cubin.txt -P /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c/CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core/keopslibKeOpsnumpyd46837e05c_generated_link_autodiff.cu.o.Debug.cmake
-- Removing /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c/CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core/./keopslibKeOpsnumpyd46837e05c_generated_link_autodiff.cu.o
/usr/local/lib/python3.5/dist-packages/cmake/data/bin/cmake -E remove /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c/CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core/./keopslibKeOpsnumpyd46837e05c_generated_link_autodiff.cu.o
-- Generating dependency file: /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c/CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core/keopslibKeOpsnumpyd46837e05c_generated_link_autodiff.cu.o.NVCC-depend
/usr/local/cuda-10.1/bin/nvcc -M -D__CUDACC__ /home/ubuntu/.local/lib/python3.6/site-packages/pykeops/keops/core/link_autodiff.cu -o /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c/CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core/keopslibKeOpsnumpyd46837e05c_generated_link_autodiff.cu.o.NVCC-depend -m64 -DkeopslibKeOpsnumpyd46837e05c_EXPORTS -DMAXIDGPU=0 -DMAXTHREADSPERBLOCK0=1024 -DSHAREDMEMPERBLOCK0=49152 -D_FORCE_INLINES -DCUDA_BLOCK_SIZE=192 -DUSE_CUDA=1 -D__TYPE__=double -DC_CONTIGUOUS=1 -D__TYPEACC__=double -DSUM_SCHEME=1 -DMODULE_NAME=libKeOpsnumpyd46837e05c -D_GLIBCXX_USE_CXX11_ABI=0 -DUSE_DOUBLE=1 -DUSE_HALF=0 -DKERNEL_GEOM_TYPE=0 -DKERNEL_SIG_TYPE=0 -DKERNEL_SPHERE_TYPE=0 -DMODULE_NAME_FSHAPE_SCP=fshape_scp_gaussiangaussiangaussian_unoriented_double -Xcompiler ,\"-fvisibility-inlines-hidden\",\"-std=c++17\",\"-fmessage-length=0\",\"-march=nocona\",\"-mtune=haswell\",\"-ftree-vectorize\",\"-fPIC\",\"-fstack-protector-strong\",\"-fno-plt\",\"-O2\",\"-ffunction-sections\",\"-pipe\",\"-isystem\",\"/home/ubuntu/anaconda3/envs/pytorch_p36/include\",\"-DUSE_OPENMP\",\"-fopenmp\",\"-Wall\",\"-Wno-unknown-pragmas\",\"-fmax-errors=2\",\"-fPIC\",\"-g\",\"-O0\",\"-g\" -gencode arch=compute_37,code=sm_37 --use_fast_math --compiler-options=-fPIC -ccbin /usr/bin/g++-8 --pre-include=libKeOpsnumpyd46837e05c.h -DNVCC -I/usr/local/cuda-10.1/include -I/home/ubuntu/.local/lib/python3.6/site-packages/pykeops -I/home/ubuntu/.local/lib/python3.6/site-packages/pykeops/keops -I/home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c
-- Generating temporary cmake readable file: /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c/CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core/keopslibKeOpsnumpyd46837e05c_generated_link_autodiff.cu.o.depend.tmp
/usr/local/lib/python3.5/dist-packages/cmake/data/bin/cmake -D input_file:FILEPATH=/home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c/CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core/keopslibKeOpsnumpyd46837e05c_generated_link_autodiff.cu.o.NVCC-depend -D output_file:FILEPATH=/home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c/CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core/keopslibKeOpsnumpyd46837e05c_generated_link_autodiff.cu.o.depend.tmp -D verbose=1 -P /usr/local/lib/python3.5/dist-packages/cmake/data/share/cmake-3.13/Modules/FindCUDA/make2cmake.cmake
-- Copy if different /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c/CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core/keopslibKeOpsnumpyd46837e05c_generated_link_autodiff.cu.o.depend.tmp to /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c/CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core/keopslibKeOpsnumpyd46837e05c_generated_link_autodiff.cu.o.depend
/usr/local/lib/python3.5/dist-packages/cmake/data/bin/cmake -E copy_if_different /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c/CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core/keopslibKeOpsnumpyd46837e05c_generated_link_autodiff.cu.o.depend.tmp /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c/CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core/keopslibKeOpsnumpyd46837e05c_generated_link_autodiff.cu.o.depend
-- Removing /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c/CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core/keopslibKeOpsnumpyd46837e05c_generated_link_autodiff.cu.o.depend.tmp and /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c/CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core/keopslibKeOpsnumpyd46837e05c_generated_link_autodiff.cu.o.NVCC-depend
/usr/local/lib/python3.5/dist-packages/cmake/data/bin/cmake -E remove /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c/CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core/keopslibKeOpsnumpyd46837e05c_generated_link_autodiff.cu.o.depend.tmp /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c/CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core/keopslibKeOpsnumpyd46837e05c_generated_link_autodiff.cu.o.NVCC-depend
-- Generating /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c/CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core/./keopslibKeOpsnumpyd46837e05c_generated_link_autodiff.cu.o
/usr/local/cuda-10.1/bin/nvcc /home/ubuntu/.local/lib/python3.6/site-packages/pykeops/keops/core/link_autodiff.cu -c -o /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c/CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core/./keopslibKeOpsnumpyd46837e05c_generated_link_autodiff.cu.o -m64 -DkeopslibKeOpsnumpyd46837e05c_EXPORTS -DMAXIDGPU=0 -DMAXTHREADSPERBLOCK0=1024 -DSHAREDMEMPERBLOCK0=49152 -D_FORCE_INLINES -DCUDA_BLOCK_SIZE=192 -DUSE_CUDA=1 -D__TYPE__=double -DC_CONTIGUOUS=1 -D__TYPEACC__=double -DSUM_SCHEME=1 -DMODULE_NAME=libKeOpsnumpyd46837e05c -D_GLIBCXX_USE_CXX11_ABI=0 -DUSE_DOUBLE=1 -DUSE_HALF=0 -DKERNEL_GEOM_TYPE=0 -DKERNEL_SIG_TYPE=0 -DKERNEL_SPHERE_TYPE=0 -DMODULE_NAME_FSHAPE_SCP=fshape_scp_gaussiangaussiangaussian_unoriented_double -Xcompiler ,\"-fvisibility-inlines-hidden\",\"-std=c++17\",\"-fmessage-length=0\",\"-march=nocona\",\"-mtune=haswell\",\"-ftree-vectorize\",\"-fPIC\",\"-fstack-protector-strong\",\"-fno-plt\",\"-O2\",\"-ffunction-sections\",\"-pipe\",\"-isystem\",\"/home/ubuntu/anaconda3/envs/pytorch_p36/include\",\"-DUSE_OPENMP\",\"-fopenmp\",\"-Wall\",\"-Wno-unknown-pragmas\",\"-fmax-errors=2\",\"-fPIC\",\"-g\",\"-O0\",\"-g\" -gencode arch=compute_37,code=sm_37 --use_fast_math --compiler-options=-fPIC -ccbin /usr/bin/g++-8 --pre-include=libKeOpsnumpyd46837e05c.h -DNVCC -I/usr/local/cuda-10.1/include -I/home/ubuntu/.local/lib/python3.6/site-packages/pykeops -I/home/ubuntu/.local/lib/python3.6/site-packages/pykeops/keops -I/home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c
-- Removing /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c/CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core/./keopslibKeOpsnumpyd46837e05c_generated_link_autodiff.cu.o
/usr/local/lib/python3.5/dist-packages/cmake/data/bin/cmake -E remove /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c/CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core/./keopslibKeOpsnumpyd46837e05c_generated_link_autodiff.cu.o
CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/build.make:63: recipe for target 'CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core/keopslibKeOpsnumpyd46837e05c_generated_link_autodiff.cu.o' failed
make[3]: Leaving directory '/home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c'
CMakeFiles/Makefile2:331: recipe for target 'CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/all' failed
make[2]: Leaving directory '/home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c'
CMakeFiles/Makefile2:306: recipe for target 'CMakeFiles/libKeOpsnumpyd46837e05c.dir/rule' failed
make[1]: Leaving directory '/home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c'
Makefile:196: recipe for target 'libKeOpsnumpyd46837e05c' failed

--------------------- ----------- -----------------
Done.
Compiling libKeOpsnumpyd46837e05c in /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c:
       formula: Sum_Reduction(SqNorm2(x - y),1)
       aliases: x = Vi(0,3); y = Vj(1,3);
       dtype  : float64
... -- The CXX compiler identification is GNU 8.3.0
-- Check for working CXX compiler: /usr/bin/g++-8
-- Check for working CXX compiler: /usr/bin/g++-8 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for C++ include pthread.h
-- Looking for C++ include pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Compute properties automatically set to: -DMAXIDGPU=0;-DMAXTHREADSPERBLOCK0=1024;-DSHAREDMEMPERBLOCK0=49152
-- The CUDA compiler identification is NVIDIA 10.1.243
-- Check for working CUDA compiler: /usr/local/cuda-10.1/bin/nvcc
-- Check for working CUDA compiler: /usr/local/cuda-10.1/bin/nvcc -- works
-- Detecting CUDA compiler ABI info
-- Detecting CUDA compiler ABI info - done
-- The CUDA Host CXX Compiler: /usr/bin/g++-8
-- Autodetected CUDA architecture(s):  3.7
-- Using shared_obj_name: libKeOpsnumpyd46837e05c
-- First i variables detected is 0
-- First j variables detected is 1
-- Compiled formula is Sum_Reduction(SqNorm2(x - y),1); auto x = Vi(0,3); auto y = Vj(1,3); where the number of args is 2.
-- Found PythonInterp: /home/ubuntu/anaconda3/envs/pytorch_p36/bin/python3.6 (found suitable version "3.6.5", minimum required is "3.6")
-- Found PythonLibs: /home/ubuntu/anaconda3/envs/pytorch_p36/lib/libpython3.6m.so
-- pybind11 v2.3.dev1
-- Performing Test HAS_FLTO
-- Performing Test HAS_FLTO - Success
-- LTO enabled
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c

/usr/include/c++/8/bits/stl_pair.h(79): error: inline specifier allowed on function declarations only

/usr/include/c++/8/bits/stl_pair.h(442): error: argument list for class template "std::pair" is missing

/usr/include/c++/8/bits/stl_pair.h(442): error: expected a ")"

/usr/include/c++/8/bits/stl_pair.h(442): error: template parameter "_T1" may not be redeclared in this scope

/usr/include/c++/8/bits/stl_pair.h(442): error: expected a ";"

/usr/include/c++/8/bits/basic_string.h(5896): error: argument list for class template "std::basic_string" is missing

/usr/include/c++/8/bits/basic_string.h(5896): error: expected a ")"

/usr/include/c++/8/bits/basic_string.h(5896): error: template parameter "_InputIterator" may not be redeclared in this scope

/usr/include/c++/8/bits/basic_string.h(5897): error: expected a ";"

/usr/include/c++/8/bits/basic_string.h(5904): error: argument list for class template "std::basic_string" is missing

/usr/include/c++/8/bits/basic_string.h(5904): error: expected a ")"

/usr/include/c++/8/bits/basic_string.h(5904): error: "basic_string_view" is not a function or static data member

/usr/include/c++/8/bits/basic_string.h(5910): error: argument list for class template "std::basic_string" is missing

/usr/include/c++/8/bits/basic_string.h(5910): error: expected a ")"

/usr/include/c++/8/bits/basic_string.h(5910): error: "basic_string_view" is not a function or static data member

/usr/include/c++/8/utility(353): error: inline specifier allowed on function declarations only

/home/ubuntu/.local/lib/python3.6/site-packages/pykeops/keops/lib/sequences/include/tao/seq/sum.hpp(33): error: expected an expression

/home/ubuntu/.local/lib/python3.6/site-packages/pykeops/keops/lib/sequences/include/tao/seq/is_any.hpp(23): error: expected an expression

/home/ubuntu/.local/lib/python3.6/site-packages/pykeops/keops/lib/sequences/include/tao/seq/is_any.hpp(23): error: parameter pack "Bs" was referenced but not expanded

/home/ubuntu/.local/lib/python3.6/site-packages/pykeops/keops/lib/sequences/include/tao/seq/prod.hpp(30): error: expected an expression

/usr/include/c++/8/bits/stl_vector.h(1737): error: argument list for class template "std::vector" is missing

/usr/include/c++/8/bits/stl_vector.h(1737): error: expected a ")"

/usr/include/c++/8/bits/stl_vector.h(1732): error: redefinition of default argument

/usr/include/c++/8/bits/stl_vector.h(1734): error: redefinition of default argument

/usr/include/c++/8/bits/stl_vector.h(1735): error: redefinition of default argument

/usr/include/c++/8/bits/stl_vector.h(1736): error: redefinition of default argument

/usr/include/c++/8/bits/stl_vector.h(1737): error: variable template "std::_InputIterator" has already been defined

/usr/include/c++/8/bits/stl_vector.h(1738): error: expected a ";"

28 errors detected in the compilation of "/tmp/tmpxft_00003aa6_00000000-6_link_autodiff.cpp1.ii".
CMake Error at keopslibKeOpsnumpyd46837e05c_generated_link_autodiff.cu.o.Debug.cmake:279 (message):
  Error generating file
  /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c/CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core/./keopslibKeOpsnumpyd46837e05c_generated_link_autodiff.cu.o


make[3]: *** [CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core/keopslibKeOpsnumpyd46837e05c_generated_link_autodiff.cu.o] Error 1
make[2]: *** [CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/all] Error 2
make[1]: *** [CMakeFiles/libKeOpsnumpyd46837e05c.dir/rule] Error 2
make: *** [libKeOpsnumpyd46837e05c] Error 2

--------------------- MAKE DEBUG -----------------
Command '['cmake', '--build', '.', '--target', 'libKeOpsnumpyd46837e05c', '--', 'VERBOSE=1']' returned non-zero exit status 2.
/usr/local/lib/python3.5/dist-packages/cmake/data/bin/cmake -S/home/ubuntu/.local/lib/python3.6/site-packages/pykeops -B/home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/make -f CMakeFiles/Makefile2 libKeOpsnumpyd46837e05c
make[1]: Entering directory '/home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c'
/usr/local/lib/python3.5/dist-packages/cmake/data/bin/cmake -S/home/ubuntu/.local/lib/python3.6/site-packages/pykeops -B/home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c --check-build-system CMakeFiles/Makefile.cmake 0
/usr/local/lib/python3.5/dist-packages/cmake/data/bin/cmake -E cmake_progress_start /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c/CMakeFiles 5
/usr/bin/make -f CMakeFiles/Makefile2 CMakeFiles/libKeOpsnumpyd46837e05c.dir/all
make[2]: Entering directory '/home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c'
/usr/bin/make -f CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/build.make CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/depend
make[3]: Entering directory '/home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c'
[ 20%] Building NVCC (Device) object CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core/keopslibKeOpsnumpyd46837e05c_generated_link_autodiff.cu.o
cd /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c/CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core && /usr/local/lib/python3.5/dist-packages/cmake/data/bin/cmake -E make_directory /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c/CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core/.
cd /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c/CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core && /usr/local/lib/python3.5/dist-packages/cmake/data/bin/cmake -D verbose:BOOL=1 -D build_configuration:STRING=Debug -D generated_file:STRING=/home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c/CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core/./keopslibKeOpsnumpyd46837e05c_generated_link_autodiff.cu.o -D generated_cubin_file:STRING=/home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c/CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core/./keopslibKeOpsnumpyd46837e05c_generated_link_autodiff.cu.o.cubin.txt -P /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c/CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core/keopslibKeOpsnumpyd46837e05c_generated_link_autodiff.cu.o.Debug.cmake
-- Removing /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c/CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core/./keopslibKeOpsnumpyd46837e05c_generated_link_autodiff.cu.o
/usr/local/lib/python3.5/dist-packages/cmake/data/bin/cmake -E remove /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c/CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core/./keopslibKeOpsnumpyd46837e05c_generated_link_autodiff.cu.o
-- Generating dependency file: /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c/CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core/keopslibKeOpsnumpyd46837e05c_generated_link_autodiff.cu.o.NVCC-depend
/usr/local/cuda-10.1/bin/nvcc -M -D__CUDACC__ /home/ubuntu/.local/lib/python3.6/site-packages/pykeops/keops/core/link_autodiff.cu -o /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c/CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core/keopslibKeOpsnumpyd46837e05c_generated_link_autodiff.cu.o.NVCC-depend -m64 -DkeopslibKeOpsnumpyd46837e05c_EXPORTS -DMAXIDGPU=0 -DMAXTHREADSPERBLOCK0=1024 -DSHAREDMEMPERBLOCK0=49152 -D_FORCE_INLINES -DCUDA_BLOCK_SIZE=192 -DUSE_CUDA=1 -D__TYPE__=double -DC_CONTIGUOUS=1 -D__TYPEACC__=double -DSUM_SCHEME=1 -DMODULE_NAME=libKeOpsnumpyd46837e05c -D_GLIBCXX_USE_CXX11_ABI=0 -DUSE_DOUBLE=1 -DUSE_HALF=0 -DKERNEL_GEOM_TYPE=0 -DKERNEL_SIG_TYPE=0 -DKERNEL_SPHERE_TYPE=0 -DMODULE_NAME_FSHAPE_SCP=fshape_scp_gaussiangaussiangaussian_unoriented_double -Xcompiler ,\"-fvisibility-inlines-hidden\",\"-std=c++17\",\"-fmessage-length=0\",\"-march=nocona\",\"-mtune=haswell\",\"-ftree-vectorize\",\"-fPIC\",\"-fstack-protector-strong\",\"-fno-plt\",\"-O2\",\"-ffunction-sections\",\"-pipe\",\"-isystem\",\"/home/ubuntu/anaconda3/envs/pytorch_p36/include\",\"-DUSE_OPENMP\",\"-fopenmp\",\"-Wall\",\"-Wno-unknown-pragmas\",\"-fmax-errors=2\",\"-fPIC\",\"-g\",\"-O0\",\"-g\" -gencode arch=compute_37,code=sm_37 --use_fast_math --compiler-options=-fPIC -ccbin /usr/bin/g++-8 --pre-include=libKeOpsnumpyd46837e05c.h -DNVCC -I/usr/local/cuda-10.1/include -I/home/ubuntu/.local/lib/python3.6/site-packages/pykeops -I/home/ubuntu/.local/lib/python3.6/site-packages/pykeops/keops -I/home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c
-- Generating temporary cmake readable file: /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c/CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core/keopslibKeOpsnumpyd46837e05c_generated_link_autodiff.cu.o.depend.tmp
/usr/local/lib/python3.5/dist-packages/cmake/data/bin/cmake -D input_file:FILEPATH=/home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c/CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core/keopslibKeOpsnumpyd46837e05c_generated_link_autodiff.cu.o.NVCC-depend -D output_file:FILEPATH=/home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c/CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core/keopslibKeOpsnumpyd46837e05c_generated_link_autodiff.cu.o.depend.tmp -D verbose=1 -P /usr/local/lib/python3.5/dist-packages/cmake/data/share/cmake-3.13/Modules/FindCUDA/make2cmake.cmake
-- Copy if different /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c/CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core/keopslibKeOpsnumpyd46837e05c_generated_link_autodiff.cu.o.depend.tmp to /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c/CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core/keopslibKeOpsnumpyd46837e05c_generated_link_autodiff.cu.o.depend
/usr/local/lib/python3.5/dist-packages/cmake/data/bin/cmake -E copy_if_different /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c/CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core/keopslibKeOpsnumpyd46837e05c_generated_link_autodiff.cu.o.depend.tmp /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c/CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core/keopslibKeOpsnumpyd46837e05c_generated_link_autodiff.cu.o.depend
-- Removing /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c/CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core/keopslibKeOpsnumpyd46837e05c_generated_link_autodiff.cu.o.depend.tmp and /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c/CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core/keopslibKeOpsnumpyd46837e05c_generated_link_autodiff.cu.o.NVCC-depend
/usr/local/lib/python3.5/dist-packages/cmake/data/bin/cmake -E remove /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c/CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core/keopslibKeOpsnumpyd46837e05c_generated_link_autodiff.cu.o.depend.tmp /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c/CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core/keopslibKeOpsnumpyd46837e05c_generated_link_autodiff.cu.o.NVCC-depend
-- Generating /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c/CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core/./keopslibKeOpsnumpyd46837e05c_generated_link_autodiff.cu.o
/usr/local/cuda-10.1/bin/nvcc /home/ubuntu/.local/lib/python3.6/site-packages/pykeops/keops/core/link_autodiff.cu -c -o /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c/CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core/./keopslibKeOpsnumpyd46837e05c_generated_link_autodiff.cu.o -m64 -DkeopslibKeOpsnumpyd46837e05c_EXPORTS -DMAXIDGPU=0 -DMAXTHREADSPERBLOCK0=1024 -DSHAREDMEMPERBLOCK0=49152 -D_FORCE_INLINES -DCUDA_BLOCK_SIZE=192 -DUSE_CUDA=1 -D__TYPE__=double -DC_CONTIGUOUS=1 -D__TYPEACC__=double -DSUM_SCHEME=1 -DMODULE_NAME=libKeOpsnumpyd46837e05c -D_GLIBCXX_USE_CXX11_ABI=0 -DUSE_DOUBLE=1 -DUSE_HALF=0 -DKERNEL_GEOM_TYPE=0 -DKERNEL_SIG_TYPE=0 -DKERNEL_SPHERE_TYPE=0 -DMODULE_NAME_FSHAPE_SCP=fshape_scp_gaussiangaussiangaussian_unoriented_double -Xcompiler ,\"-fvisibility-inlines-hidden\",\"-std=c++17\",\"-fmessage-length=0\",\"-march=nocona\",\"-mtune=haswell\",\"-ftree-vectorize\",\"-fPIC\",\"-fstack-protector-strong\",\"-fno-plt\",\"-O2\",\"-ffunction-sections\",\"-pipe\",\"-isystem\",\"/home/ubuntu/anaconda3/envs/pytorch_p36/include\",\"-DUSE_OPENMP\",\"-fopenmp\",\"-Wall\",\"-Wno-unknown-pragmas\",\"-fmax-errors=2\",\"-fPIC\",\"-g\",\"-O0\",\"-g\" -gencode arch=compute_37,code=sm_37 --use_fast_math --compiler-options=-fPIC -ccbin /usr/bin/g++-8 --pre-include=libKeOpsnumpyd46837e05c.h -DNVCC -I/usr/local/cuda-10.1/include -I/home/ubuntu/.local/lib/python3.6/site-packages/pykeops -I/home/ubuntu/.local/lib/python3.6/site-packages/pykeops/keops -I/home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c
-- Removing /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c/CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core/./keopslibKeOpsnumpyd46837e05c_generated_link_autodiff.cu.o
/usr/local/lib/python3.5/dist-packages/cmake/data/bin/cmake -E remove /home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c/CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core/./keopslibKeOpsnumpyd46837e05c_generated_link_autodiff.cu.o
CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/build.make:63: recipe for target 'CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/keops/core/keopslibKeOpsnumpyd46837e05c_generated_link_autodiff.cu.o' failed
make[3]: Leaving directory '/home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c'
CMakeFiles/Makefile2:331: recipe for target 'CMakeFiles/keopslibKeOpsnumpyd46837e05c.dir/all' failed
make[2]: Leaving directory '/home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c'
CMakeFiles/Makefile2:306: recipe for target 'CMakeFiles/libKeOpsnumpyd46837e05c.dir/rule' failed
make[1]: Leaving directory '/home/ubuntu/.cache/pykeops-1.4-cpython-36/build-libKeOpsnumpyd46837e05c'
Makefile:196: recipe for target 'libKeOpsnumpyd46837e05c' failed

--------------------- ----------- -----------------
Done.
Traceback (most recent call last):
  File "/home/ubuntu/.local/lib/python3.6/site-packages/pykeops/test/install.py", line 18, in test_numpy_bindings
    my_conv = pknp.Genred(formula, var)
  File "/home/ubuntu/.local/lib/python3.6/site-packages/pykeops/numpy/generic/generic_red.py", line 142, in __init__
    self.myconv = LoadKeOps(self.formula, self.aliases, self.dtype, 'numpy', optional_flags).import_module()
  File "/home/ubuntu/.local/lib/python3.6/site-packages/pykeops/common/keops_io.py", line 52, in import_module
    return importlib.import_module(self.dll_name)
  File "/home/ubuntu/anaconda3/envs/pytorch_p36/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'libKeOpsnumpyd46837e05c'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "Optimal Transport/compile_test.py", line 5, in <module>
    pykeops.test_numpy_bindings()    # perform the compilation
  File "/home/ubuntu/.local/lib/python3.6/site-packages/pykeops/test/install.py", line 31, in test_numpy_bindings
    my_conv = pknp.Genred(formula, var)
  File "/home/ubuntu/.local/lib/python3.6/site-packages/pykeops/numpy/generic/generic_red.py", line 142, in __init__
    self.myconv = LoadKeOps(self.formula, self.aliases, self.dtype, 'numpy', optional_flags).import_module()
  File "/home/ubuntu/.local/lib/python3.6/site-packages/pykeops/common/keops_io.py", line 52, in import_module
    return importlib.import_module(self.dll_name)
  File "/home/ubuntu/anaconda3/envs/pytorch_p36/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'libKeOpsnumpyd46837e05c'

I noticed that some of the outputs related to nvcc have the "-std=c++17\" set, which might be the issue. According to the nvcc docs only c++ 03, 11 and 14 are supported flags. Do either of you know where this is being set? Thanks.

@kheyer
Copy link
Author

kheyer commented Mar 29, 2020

I figured it out. $CXXFLAGS and $CXXFLAGS_USED on my machine specified -std=c++17. This may also be a conda thing but I'm not sure. Changing the flag to c++14 caused things to compile correctly.

And wow my GPU memory usage just dropped from 11 GB to 300 MB

@ljmartin
Copy link

Hi @kheyer , thanks for posting that solution - it works for me as well.

Would someone mind explaining how to set the CXXFLAGS environmental variable so that it persists? For instance I can set it once and run the test script, but then every time I re-open a shell or the conda env it returns to the -std=c++17.
Thanks

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

No branches or pull requests

4 participants