NVIDIA / MinkowskiEngine

Minkowski Engine is an auto-diff neural network library for high-dimensional sparse tensors
https://nvidia.github.io/MinkowskiEngine
Other
2.47k stars 367 forks source link

Sucessfully compliing #601

Open HansRen1024 opened 3 months ago

HansRen1024 commented 3 months ago

error infor:

error: namespace "thrust" has no member "device"

error: namespace "thrust" has no member "remove_if"


Desktop (please complete the following information):

==========System========== Linux-6.5.0-44-generic-x86_64-with-glibc2.35 DISTRIB_ID=Ubuntu DISTRIB_RELEASE=22.04 DISTRIB_CODENAME=jammy DISTRIB_DESCRIPTION="Ubuntu 22.04.4 LTS" 3.10.12 (main, Mar 22 2024, 16:50:05) [GCC 11.4.0] ==========Pytorch========== 2.3.0+cu121 torch.cuda.is_available(): True ==========NVIDIA-SMI========== /usr/bin/nvidia-smi Driver Version 545.23.08 CUDA Version 12.3 VBIOS Version 95.02.3C.40.D1 Image Version G002.0000.00.03 GSP Firmware Version N/A ==========NVCC========== /usr/local/cuda/bin/nvcc nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2023 NVIDIA Corporation Built on Wed_Nov_22_10:17:15_PST_2023 Cuda compilation tools, release 12.3, V12.3.107 Build cuda_12.3.r12.3/compiler.33567101_0 ==========CC========== /usr/bin/c++ c++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 Copyright (C) 2021 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

==========MinkowskiEngine========== 0.5.4 MinkowskiEngine compiled with CUDA Support: True NVCC version MinkowskiEngine is compiled: 12030 CUDART version MinkowskiEngine is compiled: 12030


Ways to fix the bug

  git clone https://github.com/NVIDIA/MinkowskiEngine.git
  1. MinkowskiEngine/src/3rdparty/concurrent_unordered_map.cuh: Add '#include <thrust/execution_policy.h>'
  2. MinkowskiEngine/src/convolution_kernel.cuh: Add '#include <thrust/execution_policy.h>'
  3. MinkowskiEngine/src/coordinate_map_gpu.cu: Add '#include <thrust/unique.h>' and '#include <thrust/remove.h>'
  4. MinkowskiEngine/src/spmm.cu: Add '#include <thrust/execution_policy.h>', '#include <thrust/reduce.h>', and '#include <thrust/sort.h>'
  cd MinkowskiEngine
  python setup.py install --blas=openblas
kuzhang commented 2 months ago

This works for me. Thank you so much for sharing!

Git-XLAN commented 1 week ago

Oh! My hero, thank you! It's work!