Giter VIP home page Giter VIP logo

d3d's Introduction

d3d's People

Contributors

cmpute avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

d3d's Issues

Error compiling Cython file:

Hello

Please, I'm installing d3d. I'm getting this error after running python setup.py install, I have been trying to search online I didn't get any clear way to solve this.
I need help thanks.
Error compiling Cython file:

...
pred_key = pred_labels[i] << 16 | pred_ids[i]

        # increase counter
        gt_iter = counter.find(gt_key)
        if gt_iter == counter.end():
            gt_iter = counter.insert(gt_iter, pair[uint32_t, unordered_map[uint32_t, int]](gt_key, unordered_map[uint32_t, int]()))
                                     ^

/home/s_214708038/d3d/d3d/benchmarks.pyx:1015:41: Cannot assign type 'iterator' to 'const_iterator'

Error compiling Cython file:

...
gt_counter[gt_key] = 0
gt_counter[gt_key] += 1

        pred_iter = deref(gt_iter).second.find(pred_key)
        if pred_iter == deref(gt_iter).second.end():
            pred_iter = deref(gt_iter).second.insert(pred_iter, pair[uint32_t, int](pred_key, 0))
                                                     ^

/home/s_214708038/d3d/d3d/benchmarks.pyx:1021:57: Cannot assign type 'iterator' to 'const_iterator'
d3d/CMakeFiles/benchmarks.dir/build.make:73: recipe for target 'd3d/benchmarks.cxx' failed
make[2]: *** [d3d/benchmarks.cxx] Error 1
CMakeFiles/Makefile2:214: recipe for target 'd3d/CMakeFiles/benchmarks.dir/all' failed
make[1]: *** [d3d/CMakeFiles/benchmarks.dir/all] Error 2
Makefile:135: recipe for target 'all' failed
make: *** [all] Error 2
Traceback (most recent call last):
File "/opt/conda/envs/coalign/lib/python3.7/site-packages/skbuild/setuptools_wrap.py", line 674, in setup
cmkr.make(make_args, install_target=cmake_install_target, env=env)
File "/opt/conda/envs/coalign/lib/python3.7/site-packages/skbuild/cmaker.py", line 696, in make
self.make_impl(clargs=clargs, config=config, source_dir=source_dir, install_target=install_target, env=env)
File "/opt/conda/envs/coalign/lib/python3.7/site-packages/skbuild/cmaker.py", line 741, in make_impl
raise SKBuildError(msg)

An error occurred while building with CMake.
Command:
/opt/conda/envs/coalign/lib/python3.7/site-packages/cmake/data/bin/cmake --build . --target install --config Release --
Install target:
install
Source directory:
/home/s_214708038/d3d
Working directory:
/home/s_214708038/d3d/_skbuild/linux-x86_64-3.7/cmake-build
Please check the install target is valid and see CMake's output for more information.

d3d installation error

Hi, when I tried to install d3d with pip install d3d, an error occurred, and the log is below.

`Building wheels for collected packages: d3d
Building wheel for d3d (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [117 lines of output]

  --------------------------------------------------------------------------------
  -- Trying 'Ninja' generator
  --------------------------------
  ---------------------------
  ----------------------
  -----------------
  ------------
  -------
  --
  Not searching for unused variables given on the command line.
  -- The C compiler identification is GNU 7.5.0
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Check for working C compiler: /usr/bin/cc - skipped
  -- Detecting C compile features
  -- Detecting C compile features - done
  -- The CXX compiler identification is GNU 7.5.0
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Check for working CXX compiler: /usr/bin/c++ - skipped
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  -- Configuring done
  -- Generating done
  -- Build files have been written to: /tmp/pip-install-h23dylw2/d3d_d985b53dc8c841468daab3817989f1e4/_cmake_test_compile/build
  --
  -------
  ------------
  -----------------
  ----------------------
  ---------------------------
  --------------------------------
  -- Trying 'Ninja' generator - success
  --------------------------------------------------------------------------------

  Configuring Project
    Working directory:
      /tmp/pip-install-h23dylw2/d3d_d985b53dc8c841468daab3817989f1e4/_skbuild/linux-x86_64-3.7/cmake-build
    Command:
      /home/hys/miniconda3/envs/where2comm/lib/python3.7/site-packages/cmake/data/bin/cmake /tmp/pip-install-h23dylw2/d3d_d985b53dc8c841468daab3817989f1e4 -G Ninja -DCMAKE_INSTALL_PREFIX:PATH=/tmp/pip-install-h23dylw2/d3d_d985b53dc8c841468daab3817989f1e4/_skbuild/linux-x86_64-3.7/cmake-install -DPYTHON_VERSION_STRING:STRING=3.7.15 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/home/hys/miniconda3/envs/where2comm/lib/python3.7/site-packages/skbuild/resources/cmake -DPYTHON_EXECUTABLE:PATH=/home/hys/miniconda3/envs/where2comm/bin/python -DPYTHON_INCLUDE_DIR:PATH=/home/hys/miniconda3/envs/where2comm/include/python3.7m -DPYTHON_LIBRARY:PATH=/home/hys/miniconda3/envs/where2comm/lib/libpython3.7m.so -DPython_EXECUTABLE:PATH=/home/hys/miniconda3/envs/where2comm/bin/python -DPython_ROOT_DIR:PATH=/home/hys/miniconda3/envs/where2comm -DPython_INCLUDE_DIR:PATH=/home/hys/miniconda3/envs/where2comm/include/python3.7m -DPython_FIND_REGISTRY:STRING=NEVER -DPython_NumPy_INCLUDE_DIRS:PATH=/home/hys/miniconda3/envs/where2comm/lib/python3.7/site-packages/numpy/core/include -DPython3_EXECUTABLE:PATH=/home/hys/miniconda3/envs/where2comm/bin/python -DPython3_ROOT_DIR:PATH=/home/hys/miniconda3/envs/where2comm -DPython3_INCLUDE_DIR:PATH=/home/hys/miniconda3/envs/where2comm/include/python3.7m -DPython3_FIND_REGISTRY:STRING=NEVER -DPython3_NumPy_INCLUDE_DIRS:PATH=/home/hys/miniconda3/envs/where2comm/lib/python3.7/site-packages/numpy/core/include -DCMAKE_PREFIX_PATH=/home/hys/miniconda3/envs/where2comm/lib/python3.7/site-packages/torch -DCMAKE_BUILD_TYPE:STRING=Release

  -- The C compiler identification is GNU 7.5.0
  -- The CXX compiler identification is GNU 7.5.0
  -- The CUDA compiler identification is NVIDIA 11.3.58
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Check for working C compiler: /usr/bin/cc - skipped
  -- Detecting C compile features
  -- Detecting C compile features - done
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Check for working CXX compiler: /usr/bin/c++ - skipped
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  -- Detecting CUDA compiler ABI info
  -- Detecting CUDA compiler ABI info - done
  -- Check for working CUDA compiler: /usr/local/cuda-11.3/bin/nvcc - skipped
  -- Detecting CUDA compile features
  -- Detecting CUDA compile features - done
  -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
  -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
  -- 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
  -- Found CUDA: /usr/local/cuda-11.3 (found version "11.3")
  -- Caffe2: CUDA detected: 11.3
  -- Caffe2: CUDA nvcc is: /usr/local/cuda-11.3/bin/nvcc
  -- Caffe2: CUDA toolkit directory: /usr/local/cuda-11.3
  -- Caffe2: Header version is: 11.3
  -- Found CUDNN: /usr/local/cuda-11.3/lib64/libcudnn.so
  -- Found cuDNN: v8.2.1  (include: /usr/local/cuda-11.3/include, library: /usr/local/cuda-11.3/lib64/libcudnn.so)
  -- /usr/local/cuda-11.3/lib64/libnvrtc.so shorthash is 8aa72235
  -- Autodetected CUDA architecture(s):  8.6 8.6 8.6 8.6 8.6 8.6 8.6 8.6
  -- Added CUDA NVCC flags for: -gencode;arch=compute_86,code=sm_86
  CMake Warning at /home/hys/miniconda3/envs/where2comm/lib/python3.7/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:22 (message):
    static library kineto_LIBRARY-NOTFOUND not found.
  Call Stack (most recent call first):
    /home/hys/miniconda3/envs/where2comm/lib/python3.7/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:127 (append_torchlib_if_found)
    CMakeLists.txt:8 (find_package)


  -- Found Torch: /home/hys/miniconda3/envs/where2comm/lib/python3.7/site-packages/torch/lib/libtorch.so
  -- Found PythonInterp: /home/hys/miniconda3/envs/where2comm/bin/python (found version "3.7.15")
  -- Found PythonLibs: /home/hys/miniconda3/envs/where2comm/lib/libpython3.7m.so (found version "3.7.15")
  CMake Error at CMakeLists.txt:25 (set_target_properties):
    set_target_properties called with incorrect number of arguments.


  -- Found Cython: /home/hys/miniconda3/envs/where2comm/bin/cython
  -- Found NumPy: /home/hys/miniconda3/envs/where2comm/lib/python3.7/site-packages/numpy/core/include (found version "1.21.5")
  -- Performing Test Weak Link MODULE -> SHARED (gnu_ld_ignore) - Success
  _modinit_prefix:PyInit_
  _modinit_prefix:PyInit_
  _modinit_prefix:PyInit_
  _modinit_prefix:PyInit_
  _modinit_prefix:PyInit_
  -- Configuring incomplete, errors occurred!
  See also "/tmp/pip-install-h23dylw2/d3d_d985b53dc8c841468daab3817989f1e4/_skbuild/linux-x86_64-3.7/cmake-build/CMakeFiles/CMakeOutput.log".
  See also "/tmp/pip-install-h23dylw2/d3d_d985b53dc8c841468daab3817989f1e4/_skbuild/linux-x86_64-3.7/cmake-build/CMakeFiles/CMakeError.log".
  Traceback (most recent call last):
    File "/home/hys/miniconda3/envs/where2comm/lib/python3.7/site-packages/skbuild/setuptools_wrap.py", line 646, in setup
      languages=cmake_languages,
    File "/home/hys/miniconda3/envs/where2comm/lib/python3.7/site-packages/skbuild/cmaker.py", line 338, in configure
      "An error occurred while configuring with CMake.\n"

  An error occurred while configuring with CMake.
    Command:
      /home/hys/miniconda3/envs/where2comm/lib/python3.7/site-packages/cmake/data/bin/cmake /tmp/pip-install-h23dylw2/d3d_d985b53dc8c841468daab3817989f1e4 -G Ninja -DCMAKE_INSTALL_PREFIX:PATH=/tmp/pip-install-h23dylw2/d3d_d985b53dc8c841468daab3817989f1e4/_skbuild/linux-x86_64-3.7/cmake-install -DPYTHON_VERSION_STRING:STRING=3.7.15 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/home/hys/miniconda3/envs/where2comm/lib/python3.7/site-packages/skbuild/resources/cmake -DPYTHON_EXECUTABLE:PATH=/home/hys/miniconda3/envs/where2comm/bin/python -DPYTHON_INCLUDE_DIR:PATH=/home/hys/miniconda3/envs/where2comm/include/python3.7m -DPYTHON_LIBRARY:PATH=/home/hys/miniconda3/envs/where2comm/lib/libpython3.7m.so -DPython_EXECUTABLE:PATH=/home/hys/miniconda3/envs/where2comm/bin/python -DPython_ROOT_DIR:PATH=/home/hys/miniconda3/envs/where2comm -DPython_INCLUDE_DIR:PATH=/home/hys/miniconda3/envs/where2comm/include/python3.7m -DPython_FIND_REGISTRY:STRING=NEVER -DPython_NumPy_INCLUDE_DIRS:PATH=/home/hys/miniconda3/envs/where2comm/lib/python3.7/site-packages/numpy/core/include -DPython3_EXECUTABLE:PATH=/home/hys/miniconda3/envs/where2comm/bin/python -DPython3_ROOT_DIR:PATH=/home/hys/miniconda3/envs/where2comm -DPython3_INCLUDE_DIR:PATH=/home/hys/miniconda3/envs/where2comm/include/python3.7m -DPython3_FIND_REGISTRY:STRING=NEVER -DPython3_NumPy_INCLUDE_DIRS:PATH=/home/hys/miniconda3/envs/where2comm/lib/python3.7/site-packages/numpy/core/include -DCMAKE_PREFIX_PATH=/home/hys/miniconda3/envs/where2comm/lib/python3.7/site-packages/torch -DCMAKE_BUILD_TYPE:STRING=Release
    Source directory:
      /tmp/pip-install-h23dylw2/d3d_d985b53dc8c841468daab3817989f1e4
    Working directory:
      /tmp/pip-install-h23dylw2/d3d_d985b53dc8c841468daab3817989f1e4/_skbuild/linux-x86_64-3.7/cmake-build
  Please see CMake's output for more information.
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for d3d
Running setup.py clean for d3d
Failed to build d3d
Installing collected packages: d3d
Running setup.py install for d3d ... error
error: subprocess-exited-with-error

× Running setup.py install for d3d did not run successfully.
│ exit code: 1
╰─> [119 lines of output]
/home/hys/miniconda3/envs/where2comm/lib/python3.7/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
setuptools.SetuptoolsDeprecationWarning,

  --------------------------------------------------------------------------------
  -- Trying 'Ninja' generator
  --------------------------------
  ---------------------------
  ----------------------
  -----------------
  ------------
  -------
  --
  Not searching for unused variables given on the command line.
  -- The C compiler identification is GNU 7.5.0
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Check for working C compiler: /usr/bin/cc - skipped
  -- Detecting C compile features
  -- Detecting C compile features - done
  -- The CXX compiler identification is GNU 7.5.0
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Check for working CXX compiler: /usr/bin/c++ - skipped
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  -- Configuring done
  -- Generating done
  -- Build files have been written to: /tmp/pip-install-h23dylw2/d3d_d985b53dc8c841468daab3817989f1e4/_cmake_test_compile/build
  --
  -------
  ------------
  -----------------
  ----------------------
  ---------------------------
  --------------------------------
  -- Trying 'Ninja' generator - success
  --------------------------------------------------------------------------------

  Configuring Project
    Working directory:
      /tmp/pip-install-h23dylw2/d3d_d985b53dc8c841468daab3817989f1e4/_skbuild/linux-x86_64-3.7/cmake-build
    Command:
      /home/hys/miniconda3/envs/where2comm/lib/python3.7/site-packages/cmake/data/bin/cmake /tmp/pip-install-h23dylw2/d3d_d985b53dc8c841468daab3817989f1e4 -G Ninja -DCMAKE_INSTALL_PREFIX:PATH=/tmp/pip-install-h23dylw2/d3d_d985b53dc8c841468daab3817989f1e4/_skbuild/linux-x86_64-3.7/cmake-install -DPYTHON_VERSION_STRING:STRING=3.7.15 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/home/hys/miniconda3/envs/where2comm/lib/python3.7/site-packages/skbuild/resources/cmake -DPYTHON_EXECUTABLE:PATH=/home/hys/miniconda3/envs/where2comm/bin/python -DPYTHON_INCLUDE_DIR:PATH=/home/hys/miniconda3/envs/where2comm/include/python3.7m -DPYTHON_LIBRARY:PATH=/home/hys/miniconda3/envs/where2comm/lib/libpython3.7m.so -DPython_EXECUTABLE:PATH=/home/hys/miniconda3/envs/where2comm/bin/python -DPython_ROOT_DIR:PATH=/home/hys/miniconda3/envs/where2comm -DPython_INCLUDE_DIR:PATH=/home/hys/miniconda3/envs/where2comm/include/python3.7m -DPython_FIND_REGISTRY:STRING=NEVER -DPython_NumPy_INCLUDE_DIRS:PATH=/home/hys/miniconda3/envs/where2comm/lib/python3.7/site-packages/numpy/core/include -DPython3_EXECUTABLE:PATH=/home/hys/miniconda3/envs/where2comm/bin/python -DPython3_ROOT_DIR:PATH=/home/hys/miniconda3/envs/where2comm -DPython3_INCLUDE_DIR:PATH=/home/hys/miniconda3/envs/where2comm/include/python3.7m -DPython3_FIND_REGISTRY:STRING=NEVER -DPython3_NumPy_INCLUDE_DIRS:PATH=/home/hys/miniconda3/envs/where2comm/lib/python3.7/site-packages/numpy/core/include -DCMAKE_PREFIX_PATH=/home/hys/miniconda3/envs/where2comm/lib/python3.7/site-packages/torch -DCMAKE_BUILD_TYPE:STRING=Release

  -- The C compiler identification is GNU 7.5.0
  -- The CXX compiler identification is GNU 7.5.0
  -- The CUDA compiler identification is NVIDIA 11.3.58
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Check for working C compiler: /usr/bin/cc - skipped
  -- Detecting C compile features
  -- Detecting C compile features - done
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Check for working CXX compiler: /usr/bin/c++ - skipped
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  -- Detecting CUDA compiler ABI info
  -- Detecting CUDA compiler ABI info - done
  -- Check for working CUDA compiler: /usr/local/cuda-11.3/bin/nvcc - skipped
  -- Detecting CUDA compile features
  -- Detecting CUDA compile features - done
  -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
  -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
  -- 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
  -- Found CUDA: /usr/local/cuda-11.3 (found version "11.3")
  -- Caffe2: CUDA detected: 11.3
  -- Caffe2: CUDA nvcc is: /usr/local/cuda-11.3/bin/nvcc
  -- Caffe2: CUDA toolkit directory: /usr/local/cuda-11.3
  -- Caffe2: Header version is: 11.3
  -- Found CUDNN: /usr/local/cuda-11.3/lib64/libcudnn.so
  -- Found cuDNN: v8.2.1  (include: /usr/local/cuda-11.3/include, library: /usr/local/cuda-11.3/lib64/libcudnn.so)
  -- /usr/local/cuda-11.3/lib64/libnvrtc.so shorthash is 8aa72235
  -- Autodetected CUDA architecture(s):  8.6 8.6 8.6 8.6 8.6 8.6 8.6 8.6
  -- Added CUDA NVCC flags for: -gencode;arch=compute_86,code=sm_86
  CMake Warning at /home/hys/miniconda3/envs/where2comm/lib/python3.7/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:22 (message):
    static library kineto_LIBRARY-NOTFOUND not found.
  Call Stack (most recent call first):
    /home/hys/miniconda3/envs/where2comm/lib/python3.7/site-packages/torch/share/cmake/Torch/TorchConfig.cmake:127 (append_torchlib_if_found)
    CMakeLists.txt:8 (find_package)


  -- Found Torch: /home/hys/miniconda3/envs/where2comm/lib/python3.7/site-packages/torch/lib/libtorch.so
  -- Found PythonInterp: /home/hys/miniconda3/envs/where2comm/bin/python (found version "3.7.15")
  -- Found PythonLibs: /home/hys/miniconda3/envs/where2comm/lib/libpython3.7m.so (found version "3.7.15")
  CMake Error at CMakeLists.txt:25 (set_target_properties):
    set_target_properties called with incorrect number of arguments.


  -- Found Cython: /home/hys/miniconda3/envs/where2comm/bin/cython
  -- Found NumPy: /home/hys/miniconda3/envs/where2comm/lib/python3.7/site-packages/numpy/core/include (found version "1.21.5")
  -- Performing Test Weak Link MODULE -> SHARED (gnu_ld_ignore) - Success
  _modinit_prefix:PyInit_
  _modinit_prefix:PyInit_
  _modinit_prefix:PyInit_
  _modinit_prefix:PyInit_
  _modinit_prefix:PyInit_
  -- Configuring incomplete, errors occurred!
  See also "/tmp/pip-install-h23dylw2/d3d_d985b53dc8c841468daab3817989f1e4/_skbuild/linux-x86_64-3.7/cmake-build/CMakeFiles/CMakeOutput.log".
  See also "/tmp/pip-install-h23dylw2/d3d_d985b53dc8c841468daab3817989f1e4/_skbuild/linux-x86_64-3.7/cmake-build/CMakeFiles/CMakeError.log".
  Traceback (most recent call last):
    File "/home/hys/miniconda3/envs/where2comm/lib/python3.7/site-packages/skbuild/setuptools_wrap.py", line 646, in setup
      languages=cmake_languages,
    File "/home/hys/miniconda3/envs/where2comm/lib/python3.7/site-packages/skbuild/cmaker.py", line 338, in configure
      "An error occurred while configuring with CMake.\n"

  An error occurred while configuring with CMake.
    Command:
      /home/hys/miniconda3/envs/where2comm/lib/python3.7/site-packages/cmake/data/bin/cmake /tmp/pip-install-h23dylw2/d3d_d985b53dc8c841468daab3817989f1e4 -G Ninja -DCMAKE_INSTALL_PREFIX:PATH=/tmp/pip-install-h23dylw2/d3d_d985b53dc8c841468daab3817989f1e4/_skbuild/linux-x86_64-3.7/cmake-install -DPYTHON_VERSION_STRING:STRING=3.7.15 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/home/hys/miniconda3/envs/where2comm/lib/python3.7/site-packages/skbuild/resources/cmake -DPYTHON_EXECUTABLE:PATH=/home/hys/miniconda3/envs/where2comm/bin/python -DPYTHON_INCLUDE_DIR:PATH=/home/hys/miniconda3/envs/where2comm/include/python3.7m -DPYTHON_LIBRARY:PATH=/home/hys/miniconda3/envs/where2comm/lib/libpython3.7m.so -DPython_EXECUTABLE:PATH=/home/hys/miniconda3/envs/where2comm/bin/python -DPython_ROOT_DIR:PATH=/home/hys/miniconda3/envs/where2comm -DPython_INCLUDE_DIR:PATH=/home/hys/miniconda3/envs/where2comm/include/python3.7m -DPython_FIND_REGISTRY:STRING=NEVER -DPython_NumPy_INCLUDE_DIRS:PATH=/home/hys/miniconda3/envs/where2comm/lib/python3.7/site-packages/numpy/core/include -DPython3_EXECUTABLE:PATH=/home/hys/miniconda3/envs/where2comm/bin/python -DPython3_ROOT_DIR:PATH=/home/hys/miniconda3/envs/where2comm -DPython3_INCLUDE_DIR:PATH=/home/hys/miniconda3/envs/where2comm/include/python3.7m -DPython3_FIND_REGISTRY:STRING=NEVER -DPython3_NumPy_INCLUDE_DIRS:PATH=/home/hys/miniconda3/envs/where2comm/lib/python3.7/site-packages/numpy/core/include -DCMAKE_PREFIX_PATH=/home/hys/miniconda3/envs/where2comm/lib/python3.7/site-packages/torch -DCMAKE_BUILD_TYPE:STRING=Release
    Source directory:
      /tmp/pip-install-h23dylw2/d3d_d985b53dc8c841468daab3817989f1e4
    Working directory:
      /tmp/pip-install-h23dylw2/d3d_d985b53dc8c841468daab3817989f1e4/_skbuild/linux-x86_64-3.7/cmake-build
  Please see CMake's output for more information.
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> d3d

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.`

The cmake version is 3.24.3
could you tell me how to fix it, thank you~

How to use modified Bessel autograd function in Pytorch?

Hi, thanks for your work! I have noticed that you provide "the modified Bessel autograd function in Pytorch with GPU support" in this project, but how to use it to realize von-Mises NLL Loss for angular uncertainty estimation, thank you!

error of ptxas fatal when install

I try the command python setup.py install and there is a Cmake Error:

--------------------------------------------------------------------------------
-- Trying 'Ninja' generator
--------------------------------
---------------------------
----------------------
-----------------
------------
-------
--
Not searching for unused variables given on the command line.
-- The C compiler identification is GNU 7.5.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- The CXX compiler identification is GNU 7.5.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done (0.9s)
-- Generating done (0.0s)
-- Build files have been written to: /data/mengh3/CoAlign/d3d/_cmake_test_compile/build
--
-------
------------
-----------------
----------------------
---------------------------
--------------------------------
-- Trying 'Ninja' generator - success
--------------------------------------------------------------------------------

Configuring Project
  Working directory:
    /data/mengh3/CoAlign/d3d/_skbuild/linux-x86_64-3.7/cmake-build
  Command:
    /data/mengh3/myconda/envs/coalign/lib/python3.7/site-packages/cmake/data/bin/cmake /data/mengh3/CoAlign/d3d -G Ninja --no-warn-unused-cli -DCMAKE_INSTALL_PREFIX:PATH=/data/mengh3/CoAlign/d3d/_skbuild/linux-x86_64-3.7/cmake-install -DPYTHON_VERSION_STRING:STRING=3.7.12 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/data/mengh3/myconda/envs/coalign/lib/python3.7/site-packages/skbuild/resources/cmake -DPYTHON_EXECUTABLE:PATH=/data/mengh3/myconda/envs/coalign/bin/python -DPYTHON_INCLUDE_DIR:PATH=/data/mengh3/myconda/envs/coalign/include/python3.7m -DPYTHON_LIBRARY:PATH=/data/mengh3/myconda/envs/coalign/lib/libpython3.7m.so -DPython_EXECUTABLE:PATH=/data/mengh3/myconda/envs/coalign/bin/python -DPython_ROOT_DIR:PATH=/data/mengh3/myconda/envs/coalign -DPython_FIND_REGISTRY:STRING=NEVER -DPython_INCLUDE_DIR:PATH=/data/mengh3/myconda/envs/coalign/include/python3.7m -DPython_NumPy_INCLUDE_DIRS:PATH=/data/mengh3/myconda/envs/coalign/lib/python3.7/site-packages/numpy/core/include -DPython3_EXECUTABLE:PATH=/data/mengh3/myconda/envs/coalign/bin/python -DPython3_ROOT_DIR:PATH=/data/mengh3/myconda/envs/coalign -DPython3_FIND_REGISTRY:STRING=NEVER -DPython3_INCLUDE_DIR:PATH=/data/mengh3/myconda/envs/coalign/include/python3.7m -DPython3_NumPy_INCLUDE_DIRS:PATH=/data/mengh3/myconda/envs/coalign/lib/python3.7/site-packages/numpy/core/include -DBUILD_WITH_PYTORCH=ON -DCMAKE_PREFIX_PATH=/data/mengh3/myconda/envs/coalign/lib/python3.7/site-packages/torch -DBUILD_WITH_CUDA=ON -DCYTHON_WITH_NO_DOCSTRINGS_ARG=FALSE -DCMAKE_BUILD_TYPE:STRING=Release

Not searching for unused variables given on the command line.
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PythonInterp: /data/mengh3/myconda/envs/coalign/bin/python (found version "3.7.12")
-- Found PythonLibs: /data/mengh3/myconda/envs/coalign/lib/libpython3.7m.so (found version "3.7.12")
-- Found Cython: /data/mengh3/myconda/envs/coalign/bin/cython
-- Found NumPy: /usr/include (found version "1.21.5")
CMake Error at /data/mengh3/myconda/envs/coalign/lib/python3.7/site-packages/cmake/data/share/cmake-3.26/Modules/CMakeDetermineCompilerId.cmake:751 (message):
  Compiling the CUDA compiler identification source file
  "CMakeCUDACompilerId.cu" failed.

  Compiler: /usr/bin/nvcc

  Build flags:

  Id flags: --keep;--keep-dir;tmp -v



  The output was:

  255

  #$ _SPACE_=

  #$ _CUDART_=cudart

  #$ _HERE_=/usr/lib/nvidia-cuda-toolkit/bin

  #$ _THERE_=/usr/lib/nvidia-cuda-toolkit/bin

  #$ _TARGET_SIZE_=

  #$ _TARGET_DIR_=

  #$ _TARGET_SIZE_=64

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

  #$
  PATH=/usr/lib/nvidia-cuda-toolkit/bin:/data/public/CUDA11/cuda-11.2/bin:/data/mengh3/myconda/envs/coalign/bin:/data/mengh3/myconda/envs/coalign/bin:/data/mengh3/myconda/envs/coalign/bin:/data/public/CUDA11/cuda-11.0/bin:/usr/local/cuda/bin:/data/public/CUDA11/cuda-11.0/bin:/data/public/CUDA11/cuda-11.0/bin:/usr/local/cuda/bin:/data/public/CUDA11/cuda-11.0/bin:/usr/local/cuda/bin:/home/mengh3/bin:/home/mengh3/.local/bin:/usr/local/cuda/bin:/data/mengh3/myconda/envs/coalign/bin:/opt/anaconda3/condabin:/opt/anaconda3/bin:/usr/local/cuda-9.0/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin


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

  #$ rm tmp/a_dlink.reg.c

  #$ gcc -std=c++14 -D__CUDA_ARCH__=300 -E -x c++
  -DCUDA_DOUBLE_MATH_FUNCTIONS -D__CUDACC__ -D__NVCC__
  -D"__CUDACC_VER_BUILD__=85" -D"__CUDACC_VER_MINOR__=1"
  -D"__CUDACC_VER_MAJOR__=9" -include "cuda_runtime.h" -m64
  "CMakeCUDACompilerId.cu" > "tmp/CMakeCUDACompilerId.cpp1.ii"

  #$ cicc --c++14 --gnu_version=70500 --allow_managed -arch compute_30 -m64
  -ftz=0 -prec_div=1 -prec_sqrt=1 -fmad=1 --include_file_name
  "CMakeCUDACompilerId.fatbin.c" -tused -nvvmir-library
  "/usr/lib/nvidia-cuda-toolkit/libdevice/libdevice.10.bc"
  --gen_module_id_file --module_id_file_name
  "tmp/CMakeCUDACompilerId.module_id" --orig_src_file_name
  "CMakeCUDACompilerId.cu" --gen_c_file_name
  "tmp/CMakeCUDACompilerId.cudafe1.c" --stub_file_name
  "tmp/CMakeCUDACompilerId.cudafe1.stub.c" --gen_device_file_name
  "tmp/CMakeCUDACompilerId.cudafe1.gpu" "tmp/CMakeCUDACompilerId.cpp1.ii" -o
  "tmp/CMakeCUDACompilerId.ptx"

  #$ ptxas -arch=sm_30 -m64 "tmp/CMakeCUDACompilerId.ptx" -o
  "tmp/CMakeCUDACompilerId.sm_30.cubin"

  ptxas fatal : Value 'sm_30' is not defined for option 'gpu-name'

  # --error 0xff --





Call Stack (most recent call first):
  /data/mengh3/myconda/envs/coalign/lib/python3.7/site-packages/cmake/data/share/cmake-3.26/Modules/CMakeDetermineCompilerId.cmake:8 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
  /data/mengh3/myconda/envs/coalign/lib/python3.7/site-packages/cmake/data/share/cmake-3.26/Modules/CMakeDetermineCompilerId.cmake:53 (__determine_compiler_id_test)
  /data/mengh3/myconda/envs/coalign/lib/python3.7/site-packages/cmake/data/share/cmake-3.26/Modules/CMakeDetermineCUDACompiler.cmake:309 (CMAKE_DETERMINE_COMPILER_ID)
  CMakeLists.txt:14 (enable_language)


-- Configuring incomplete, errors occurred!
Traceback (most recent call last):
  File "/data/mengh3/myconda/envs/coalign/lib/python3.7/site-packages/skbuild/setuptools_wrap.py", line 671, in setup
    languages=cmake_languages,
  File "/data/mengh3/myconda/envs/coalign/lib/python3.7/site-packages/skbuild/cmaker.py", line 357, in configure
    raise SKBuildError(msg)

An error occurred while configuring with CMake.
  Command:
    /data/mengh3/myconda/envs/coalign/lib/python3.7/site-packages/cmake/data/bin/cmake /data/mengh3/CoAlign/d3d -G Ninja --no-warn-unused-cli -DCMAKE_INSTALL_PREFIX:PATH=/data/mengh3/CoAlign/d3d/_skbuild/linux-x86_64-3.7/cmake-install -DPYTHON_VERSION_STRING:STRING=3.7.12 -DSKBUILD:INTERNAL=TRUE -DCMAKE_MODULE_PATH:PATH=/data/mengh3/myconda/envs/coalign/lib/python3.7/site-packages/skbuild/resources/cmake -DPYTHON_EXECUTABLE:PATH=/data/mengh3/myconda/envs/coalign/bin/python -DPYTHON_INCLUDE_DIR:PATH=/data/mengh3/myconda/envs/coalign/include/python3.7m -DPYTHON_LIBRARY:PATH=/data/mengh3/myconda/envs/coalign/lib/libpython3.7m.so -DPython_EXECUTABLE:PATH=/data/mengh3/myconda/envs/coalign/bin/python -DPython_ROOT_DIR:PATH=/data/mengh3/myconda/envs/coalign -DPython_FIND_REGISTRY:STRING=NEVER -DPython_INCLUDE_DIR:PATH=/data/mengh3/myconda/envs/coalign/include/python3.7m -DPython_NumPy_INCLUDE_DIRS:PATH=/data/mengh3/myconda/envs/coalign/lib/python3.7/site-packages/numpy/core/include -DPython3_EXECUTABLE:PATH=/data/mengh3/myconda/envs/coalign/bin/python -DPython3_ROOT_DIR:PATH=/data/mengh3/myconda/envs/coalign -DPython3_FIND_REGISTRY:STRING=NEVER -DPython3_INCLUDE_DIR:PATH=/data/mengh3/myconda/envs/coalign/include/python3.7m -DPython3_NumPy_INCLUDE_DIRS:PATH=/data/mengh3/myconda/envs/coalign/lib/python3.7/site-packages/numpy/core/include -DBUILD_WITH_PYTORCH=ON -DCMAKE_PREFIX_PATH=/data/mengh3/myconda/envs/coalign/lib/python3.7/site-packages/torch -DBUILD_WITH_CUDA=ON -DCYTHON_WITH_NO_DOCSTRINGS_ARG=FALSE -DCMAKE_BUILD_TYPE:STRING=Release
  Source directory:
    /data/mengh3/CoAlign/d3d
  Working directory:
    /data/mengh3/CoAlign/d3d/_skbuild/linux-x86_64-3.7/cmake-build
Please see CMake's output for more information.

Install d3d

How to install d3d? There is no details in readme, look forward to your reply!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.