-
Notifications
You must be signed in to change notification settings - Fork 177
Description
Is there an existing issue for this?
- I have searched the existing issues
Have you followed all the steps in the FAQ?
- I have tried the steps in the FAQ.
Current Behavior
Hello, this is a note for those who have installations of missing google/dense_hash_map:
It can be solved via installing sudo apt-get install libsparsehash-dev. Pypi won't resolve this automatically.
Error Line
In file included from torchsparse/backend/hashmap/hashmap_cpu.cpp:1:
torchsparse/backend/hashmap/hashmap_cpu.hpp:7:10: fatal error: google/dense_hash_map: No such file or directory
7 | #include <google/dense_hash_map>
| ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Environment
- GCC: 11.4.0
- NVCC:12.4
- PyTorch: 2.5.1
- PyTorch CUDA: 12.4Full Error Log
Error Log
UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the
slow distutils backend.
warnings.warn(msg.format('we could not find ninja.'))
In file included from torchsparse/backend/hashmap/hashmap_cpu.cpp:1:
torchsparse/backend/hashmap/hashmap_cpu.hpp:7:10: fatal error: google/dense_hash_map: No such file or directory
7 | #include <google/dense_hash_map>
| ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
error: command '/usr/bin/x86_64-linux-gnu-g++' failed with exit code 1