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

Sucessfully compliing #601

Open
HansRen1024 opened this issue Jul 24, 2024 · 2 comments
Open

Sucessfully compliing #601

HansRen1024 opened this issue Jul 24, 2024 · 2 comments

Comments

@HansRen1024
Copy link

error infor:

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

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


Desktop (please complete the following information):

  • OS: Ubuntu24.04
  • Python version: 3.10
  • Pytorch version: 2.3.0
  • CUDA version: 12.1
  • NVIDIA Driver version: 545.23.08
  • Minkowski Engine version 0.5.4
  • Output of the following command. (If you installed the latest MinkowskiEngine, paste the output of python -c "import MinkowskiEngine as ME; ME.print_diagnostics()". Otherwise, paste the output of the following command.)

==========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
Copy link

kuzhang commented Aug 20, 2024

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

EthenJ added a commit to EthenJ/MinkowskiEngine that referenced this issue Sep 29, 2024
EthenJ added a commit to EthenJ/MinkowskiEngine that referenced this issue Sep 29, 2024
EthenJ added a commit to EthenJ/MinkowskiEngine that referenced this issue Sep 29, 2024
@Git-XLAN
Copy link

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

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

3 participants