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

Error while running transfer_labels.py #55

Open
gamorosino opened this issue Feb 21, 2022 · 0 comments
Open

Error while running transfer_labels.py #55

gamorosino opened this issue Feb 21, 2022 · 0 comments

Comments

@gamorosino
Copy link

Hi all, I have successfully installed geomloss. However, when I run the script, the following Bug results. Any idea about it? thank you


command

python transfer_labels.py

log:


Fetching the atlas... Done.
Fetching the atlas... Done.
Fetching the atlas... Done.
Data loaded.
[pyKeOps] Compiling libKeOpstorch5fbe6e35e9 in /home/gamorosino/.cache/pykeops-1.5-cpython-37-gpu0:
      formula: ArgMin_Reduction(Sum(Square((Var(0,60,0) - Var(1,60,1)))),0)
      aliases: Var(0,60,0); Var(1,60,1);
      dtype  : float32
...
/home/gamorosino/miniconda3/lib/python3.7/site-packages/pykeops/cmake_scripts/script_keops_formula/../../keops/core/formulas/maths/TensorDot.h:201:267: error: expansion pattern ‘tao::seq::map_t<typename tao::seq::difference<typename tao::seq::impl::memoize_sequence<long unsigned int, tao::seq::impl::sequence_size<I>::value>::type, CONTFA>::type, DIMFA>’ contains no argument packs
/home/gamorosino/miniconda3/lib/python3.7/site-packages/pykeops/cmake_scripts/script_keops_formula/../../keops/core/formulas/maths/TensorDot.h:201:410: error: expansion pattern ‘tao::seq::map_t<typename tao::seq::difference<typename tao::seq::impl::memoize_sequence<long unsigned int, tao::seq::impl::sequence_size<DIMFB>::value>::type, CONTFB>::type, DIMFB>’ contains no argument packs
compilation terminated due to -fmax-errors=2.
make[3]: *** [CMakeFiles/copy_KeOps_formula.dir/home/gamorosino/miniconda3/lib/python3.7/site-packages/pykeops/keops/core/link_autodiff.cu.o] Error 1
make[2]: *** [CMakeFiles/copy_KeOps_formula.dir/all] Error 2
make[1]: *** [CMakeFiles/KeOps_formula.dir/rule] Error 2
make: *** [KeOps_formula] Error 2

--------------------- MAKE DEBUG -----------------
Command '['cmake', '--build', '.', '--target', 'KeOps_formula', '--', 'VERBOSE=1']' returned non-zero exit status 2.
/usr/bin/cmake -S/home/gamorosino/miniconda3/lib/python3.7/site-packages/pykeops/cmake_scripts/script_keops_formula -B/home/gamorosino/.cache/pykeops-1.5-cpython-37-gpu0/build-7e6973de82 --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/make  -f CMakeFiles/Makefile2 KeOps_formula
make[1]: Entering directory '/home/gamorosino/.cache/pykeops-1.5-cpython-37-gpu0/build-7e6973de82'
/usr/bin/cmake -S/home/gamorosino/miniconda3/lib/python3.7/site-packages/pykeops/cmake_scripts/script_keops_formula -B/home/gamorosino/.cache/pykeops-1.5-cpython-37-gpu0/build-7e6973de82 --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /home/gamorosino/.cache/pykeops-1.5-cpython-37-gpu0/build-7e6973de82/CMakeFiles 1
/usr/bin/make  -f CMakeFiles/Makefile2 CMakeFiles/KeOps_formula.dir/all
make[2]: Entering directory '/home/gamorosino/.cache/pykeops-1.5-cpython-37-gpu0/build-7e6973de82'
/usr/bin/make  -f CMakeFiles/copy_KeOps_formula.dir/build.make CMakeFiles/copy_KeOps_formula.dir/depend
make[3]: Entering directory '/home/gamorosino/.cache/pykeops-1.5-cpython-37-gpu0/build-7e6973de82'
cd /home/gamorosino/.cache/pykeops-1.5-cpython-37-gpu0/build-7e6973de82 && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/gamorosino/miniconda3/lib/python3.7/site-packages/pykeops/cmake_scripts/script_keops_formula /home/gamorosino/miniconda3/lib/python3.7/site-packages/pykeops/cmake_scripts/script_keops_formula /home/gamorosino/.cache/pykeops-1.5-cpython-37-gpu0/build-7e6973de82 /home/gamorosino/.cache/pykeops-1.5-cpython-37-gpu0/build-7e6973de82 /home/gamorosino/.cache/pykeops-1.5-cpython-37-gpu0/build-7e6973de82/CMakeFiles/copy_KeOps_formula.dir/DependInfo.cmake --color=
make[3]: Leaving directory '/home/gamorosino/.cache/pykeops-1.5-cpython-37-gpu0/build-7e6973de82'
/usr/bin/make  -f CMakeFiles/copy_KeOps_formula.dir/build.make CMakeFiles/copy_KeOps_formula.dir/build
make[3]: Entering directory '/home/gamorosino/.cache/pykeops-1.5-cpython-37-gpu0/build-7e6973de82'
[100%] Building CUDA object CMakeFiles/copy_KeOps_formula.dir/home/gamorosino/miniconda3/lib/python3.7/site-packages/pykeops/keops/core/link_autodiff.cu.o
/usr/local/cuda/bin/nvcc  -ccbin=/usr/bin/c++ -DCUDA_BLOCK_SIZE=192 -DC_CONTIGUOUS=1 -DMAXIDGPU=0 -DMAXTHREADSPERBLOCK0=1024 -DSHAREDMEMPERBLOCK0=49152 -DUSE_CUDA=1 -DUSE_DOUBLE=0 -DUSE_HALF=0 -D_FORCE_INLINES -D_GLIBCXX_USE_CXX11_ABI=0 -D__TYPE__=float -I/home/gamorosino/miniconda3/lib/python3.7/site-packages/pykeops/cmake_scripts/script_keops_formula/../.. -I/home/gamorosino/.cache/pykeops-1.5-cpython-37-gpu0/build-7e6973de82 -I/home/gamorosino/miniconda3/lib/python3.7/site-packages/pykeops/cmake_scripts/script_keops_formula/../../keops -I/usr/local/cuda/targets/x86_64-linux/include -gencode arch=compute_61,code=sm_61 --use_fast_math --compiler-options=-fPIC -DUSE_OPENMP -Xcompiler -fopenmp,-Wall,-Wno-unknown-pragmas,-fmax-errors=2 -O3 -DNDEBUG -Xcompiler=-fPIC -include KeOps_formula.h -std=c++14 -x cu -c /home/gamorosino/miniconda3/lib/python3.7/site-packages/pykeops/keops/core/link_autodiff.cu -o CMakeFiles/copy_KeOps_formula.dir/home/gamorosino/miniconda3/lib/python3.7/site-packages/pykeops/keops/core/link_autodiff.cu.o
CMakeFiles/copy_KeOps_formula.dir/build.make:76: recipe for target 'CMakeFiles/copy_KeOps_formula.dir/home/gamorosino/miniconda3/lib/python3.7/site-packages/pykeops/keops/core/link_autodiff.cu.o' failed
make[3]: Leaving directory '/home/gamorosino/.cache/pykeops-1.5-cpython-37-gpu0/build-7e6973de82'
CMakeFiles/Makefile2:109: recipe for target 'CMakeFiles/copy_KeOps_formula.dir/all' failed
make[2]: Leaving directory '/home/gamorosino/.cache/pykeops-1.5-cpython-37-gpu0/build-7e6973de82'
CMakeFiles/Makefile2:90: recipe for target 'CMakeFiles/KeOps_formula.dir/rule' failed
make[1]: Leaving directory '/home/gamorosino/.cache/pykeops-1.5-cpython-37-gpu0/build-7e6973de82'
Makefile:124: recipe for target 'KeOps_formula' failed

--------------------- ----------- -----------------
[pyKeOps] Compiling pybind11 template libKeOps_template_354d16605e in /home/gamorosino/.cache/pykeops-1.5-cpython-37-gpu0 ... Traceback (most recent call last):
 File "transfer_labels.py", line 253, in <module>
   C_i_flat, labs_i = KMeans(X_i_flat, C_i_flat)
 File "transfer_labels.py", line 223, in KMeans
   labs_i = nn_search(x_i, c_j, ranges=ranges)
 File "transfer_labels.py", line 210, in nn_search
   return D_ij.argmin(dim=1).view(-1)
 File "/home/gamorosino/miniconda3/lib/python3.7/site-packages/pykeops/common/lazy_tensor.py", line 1929, in argmin
   return self.reduction("ArgMin", axis=axis, **kwargs)
 File "/home/gamorosino/miniconda3/lib/python3.7/site-packages/pykeops/common/lazy_tensor.py", line 744, in reduction
   return res()
 File "/home/gamorosino/miniconda3/lib/python3.7/site-packages/pykeops/common/lazy_tensor.py", line 929, in __call__
   return self.callfun(*args, *self.variables, **self.kwargs)
 File "/home/gamorosino/miniconda3/lib/python3.7/site-packages/pykeops/torch/generic/generic_red.py", line 579, in __call__
   *args
 File "/home/gamorosino/miniconda3/lib/python3.7/site-packages/pykeops/torch/generic/generic_red.py", line 48, in forward
   formula, aliases, dtype, "torch", optional_flags, include_dirs
 File "/home/gamorosino/miniconda3/lib/python3.7/site-packages/pykeops/common/keops_io.py", line 48, in __init__
   self._safe_compile()
 File "/home/gamorosino/miniconda3/lib/python3.7/site-packages/pykeops/common/utils.py", line 75, in wrapper_filelock
   func_res = func(*args, **kwargs)
 File "/home/gamorosino/miniconda3/lib/python3.7/site-packages/pykeops/common/keops_io.py", line 63, in _safe_compile
   self.build_folder,
 File "/home/gamorosino/miniconda3/lib/python3.7/site-packages/pykeops/common/compile_routines.py", line 246, in compile_generic_routine
   dtype, lang, include_dirs, use_prebuilt_formula=True
 File "/home/gamorosino/miniconda3/lib/python3.7/site-packages/pykeops/common/compile_routines.py", line 67, in get_or_build_pybind11_template
   os.mkdir(template_build_folder)
FileExistsError: [Errno 17] File exists: '/home/gamorosino/.cache/pykeops-1.5-cpython-37-gpu0//build-pybind11_template-libKeOps_template_354d16605e'
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

1 participant