jeanfeydy / geomloss

Geometric loss functions between point clouds, images and volumes
MIT License
570 stars 57 forks source link

recipe for target 'libKeOpstorch05a7ba1328' failed #46

Closed MiladInk closed 3 years ago

MiladInk commented 3 years ago

Hi! I am using the suggested !pip install geomloss[full] on google colab. When I try to run the color transfer example I get:

Compiling libKeOpstorch05a7ba1328 in /root/.cache/pykeops-1.4.2-cpython-37:
       formula: Max_SumShiftExp_Reduction(( B - (P * (SqDist(X,Y) / IntCst(2)) ) ),0)
       aliases: X = Vi(0,3); Y = Vj(1,3); B = Vj(2,1); P = Pm(3,1); 
       dtype  : float32
... 
--------------------- MAKE DEBUG -----------------
Command '['cmake', '--build', '.', '--target', 'libKeOpstorch05a7ba1328', '--', 'VERBOSE=1']' returned non-zero exit status 2.
/usr/local/lib/python2.7/dist-packages/cmake/data/bin/cmake -H/usr/local/lib/python3.7/dist-packages/pykeops -B/root/.cache/pykeops-1.4.2-cpython-37/build-libKeOpstorch05a7ba1328 --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/make -f CMakeFiles/Makefile2 libKeOpstorch05a7ba1328
make[1]: Entering directory '/root/.cache/pykeops-1.4.2-cpython-37/build-libKeOpstorch05a7ba1328'
/usr/local/lib/python2.7/dist-packages/cmake/data/bin/cmake -H/usr/local/lib/python3.7/dist-packages/pykeops -B/root/.cache/pykeops-1.4.2-cpython-37/build-libKeOpstorch05a7ba1328 --check-build-system CMakeFiles/Makefile.cmake 0
/usr/local/lib/python2.7/dist-packages/cmake/data/bin/cmake -E cmake_progress_start /root/.cache/pykeops-1.4.2-cpython-37/build-libKeOpstorch05a7ba1328/CMakeFiles 5
/usr/bin/make -f CMakeFiles/Makefile2 CMakeFiles/libKeOpstorch05a7ba1328.dir/all
make[2]: Entering directory '/root/.cache/pykeops-1.4.2-cpython-37/build-libKeOpstorch05a7ba1328'
/usr/bin/make -f CMakeFiles/keopslibKeOpstorch05a7ba1328.dir/build.make CMakeFiles/keopslibKeOpstorch05a7ba1328.dir/depend
make[3]: Entering directory '/root/.cache/pykeops-1.4.2-cpython-37/build-libKeOpstorch05a7ba1328'
cd /root/.cache/pykeops-1.4.2-cpython-37/build-libKeOpstorch05a7ba1328 && /usr/local/lib/python2.7/dist-packages/cmake/data/bin/cmake -E cmake_depends "Unix Makefiles" /usr/local/lib/python3.7/dist-packages/pykeops /usr/local/lib/python3.7/dist-packages/pykeops /root/.cache/pykeops-1.4.2-cpython-37/build-libKeOpstorch05a7ba1328 /root/.cache/pykeops-1.4.2-cpython-37/build-libKeOpstorch05a7ba1328 /root/.cache/pykeops-1.4.2-cpython-37/build-libKeOpstorch05a7ba1328/CMakeFiles/keopslibKeOpstorch05a7ba1328.dir/DependInfo.cmake --color=
make[3]: Leaving directory '/root/.cache/pykeops-1.4.2-cpython-37/build-libKeOpstorch05a7ba1328'
/usr/bin/make -f CMakeFiles/keopslibKeOpstorch05a7ba1328.dir/build.make CMakeFiles/keopslibKeOpstorch05a7ba1328.dir/build
make[3]: Entering directory '/root/.cache/pykeops-1.4.2-cpython-37/build-libKeOpstorch05a7ba1328'
[ 20%] Building CUDA object CMakeFiles/keopslibKeOpstorch05a7ba1328.dir/keops/core/link_autodiff.cu.o
/usr/local/cuda/bin/nvcc -ccbin=/usr/bin/c++ -DCUDA_BLOCK_SIZE=192 -DC_CONTIGUOUS=1 -DENABLECHUNK=1 -DKERNEL_GEOM_TYPE=0 -DKERNEL_SIG_TYPE=0 -DKERNEL_SPHERE_TYPE=0 -DMAXIDGPU=0 -DMAXTHREADSPERBLOCK0=1024 -DMODULE_NAME=libKeOpstorch05a7ba1328 -DMODULE_NAME_FSHAPE_SCP=fshape_scp_gaussiangaussiangaussian_unoriented_float -DSHAREDMEMPERBLOCK0=49152 -DSUM_SCHEME=1 -DUSE_CUDA=1 -DUSE_DOUBLE=0 -DUSE_HALF=0 -D_FORCE_INLINES -D_GLIBCXX_USE_CXX11_ABI=0 -D__TYPEACC__=float -D__TYPE__=float -DkeopslibKeOpstorch05a7ba1328_EXPORTS -I/usr/local/cuda/targets/x86_64-linux/include -I/usr/local/lib/python3.7/dist-packages/pykeops -I/usr/local/lib/python3.7/dist-packages/pykeops/keops -I/root/.cache/pykeops-1.4.2-cpython-37/build-libKeOpstorch05a7ba1328 -I/usr/local/lib/python3.7/dist-packages/torch/include -I/usr/local/lib/python3.7/dist-packages/torch/include/torch/csrc/api/include  -gencode arch=compute_70,code=sm_70 --use_fast_math --compiler-options=-fPIC -O3 -DNDEBUG -Xcompiler=-fPIC   -include libKeOpstorch05a7ba1328.h -std=c++14 -x cu -c /usr/local/lib/python3.7/dist-packages/pykeops/keops/core/link_autodiff.cu -o CMakeFiles/keopslibKeOpstorch05a7ba1328.dir/keops/core/link_autodiff.cu.o
CMakeFiles/keopslibKeOpstorch05a7ba1328.dir/build.make:62: recipe for target 'CMakeFiles/keopslibKeOpstorch05a7ba1328.dir/keops/core/link_autodiff.cu.o' failed
make[3]: Leaving directory '/root/.cache/pykeops-1.4.2-cpython-37/build-libKeOpstorch05a7ba1328'
CMakeFiles/Makefile2:331: recipe for target 'CMakeFiles/keopslibKeOpstorch05a7ba1328.dir/all' failed
make[2]: Leaving directory '/root/.cache/pykeops-1.4.2-cpython-37/build-libKeOpstorch05a7ba1328'
CMakeFiles/Makefile2:306: recipe for target 'CMakeFiles/libKeOpstorch05a7ba1328.dir/rule' failed
make[1]: Leaving directory '/root/.cache/pykeops-1.4.2-cpython-37/build-libKeOpstorch05a7ba1328'
Makefile:196: recipe for target 'libKeOpstorch05a7ba1328' failed

Would you mind taking a look?

jeanfeydy commented 3 years ago

Hi @MiladInk ,

Thanks for your interest in the library! The problem is likely related to this issue on the KeOps repository. As described here, a current work-around is to downgrade CUDA on Colab prior to installing KeOps. We're actively working on fixing this configuration problem with a new KeOps version - hopefully, things will be back to normal very soon!

Best regards, Jean

MiladInk commented 3 years ago

Hi @jeanfeydy ! That solved my problem. Thank you very much for the fast reply!