[Installation] installing Google's sparse hashmap without root
hdacnw opened this issue · comments
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
I've installed sparse hashmap in ~/.local/lib following #15 How do I reference it?
Error Line
No such file or directory #include <sparsehash/internal/sparseconfig.h>
Environment
- GCC:
- NVCC:
- PyTorch:
- PyTorch CUDA:
Full Error Log
Error Log
[PUT YOUR ERROR LOG HERE]
Could you please try installing TorchSparse with PyPI:
python -c "$(curl -fsSL https://raw.githubusercontent.com/mit-han-lab/torchsparse/master/install.py)"
Hi @hdacnw, please refer to this file for the installation of Google Sparse Hash. https://github.com/sparsehash/sparsehash/blob/master/INSTALL
If you want to simply install google-sparsehash to build your Torchsparse in developer mode, you can install sparsehash with conda. Please refer to here. And in setup.py, add a gcc compile flag to include the sparsehash pointing to its Conda installation.
I added in library_dirs=['<CUSTOM_DIR>/lib'], include_dirs['<CUSTOM_DIR>/include']
in setup.py
and was able to install. Thanks!