Closed tilmantroester closed 4 months ago
Hi @tilmantroester . Thank you for your interest in TorchSparse! TorchSparse v2.1 is not designed for CPU-only use cases. If you want to run TorchSparse without nvcc, I would suggest you use TorchSparse v1.4/2.0 instead.
Hi @ys-2020, are there any plans to add a (unoptimised) CPU implementation to allow for local development and testing?
Hi! The optimizations we applied in v2.1 are mostly GPU-oriented. Thus I think starting from v1.4/2.0 might be a better choice for local development and testing for CPU implementation.
Close as completed due to inactivity. If you have further questions, feel free to reopen it.
Is there an existing issue for this?
Current Behavior
After some small changes to
setup.py
I managed to install torchsparse on osx arm64 (M1). Some more changes to avoid hardcodeddevice="cuda:0"
and cuda calls inbackends.init
hastest.py
finally fail withLooking at
pybind_cpu.cpp
andpybind_cuda.cu
this is not surprising, since only the CUDA version definesbuild_kernel_map_subm_hashmap
.Similarly,
examples/backbones.py
fails withAttributeError: module 'torchsparse.backend' has no attribute 'GPUHashTable'
, which is only defined inpybind_cuda.cu
again.Can torchsparse be used on a machine without
nvcc
, considering there doesn't seem to be a CPU implementation for these functions?Expected Behavior
No response
Environment
Anything else?
Potentially related to #255.