spconv: Floating point exception (core dumped)
I always get floating point exception while I’m using SubMConv3d.
Here is my test code:
import torch as th
from spconv.pytorch import SubMConv3d, SparseConvTensor
xyz = th.randint(0, 32, (1000, 4), dtype=th.int64, device='cuda')
xyz[:, 0] = 0
feat = th.randn(1000, 32, device='cuda', dtype=th.float32)
sp = SparseConvTensor(feat, xyz, (32, 32, 32), 1, 1, 1)
conv = SubMConv3d(32, 64, 3).cuda()
conv(sp)
>>> Floating point exception (core dumped)
I’m using PyTorch 2.3.0 with CUDA 11.8, and spconv-cu18==2.3.6. Is there something wrong in my code, or someone knows the clue?
I have tested with A5000 and RTX 2080Ti GPUs but the result was always same.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 6
- Comments: 15
It seems to do with numpy version >= 2.0.0. I installed numpy 1.26.4 and
spconv.pytorch.ops.implicit_gemmcan be called without raisingFloating point exception (core dumped). Something is wrong with the argmasksof implicit_gemm which is also a numpy array.This worked for me! Thanks!
Hi,
I have the same issue… Please share it with me if you solve this issue.
in my case, the exception occurs when the kernel size = 3
Thanks!
I found that downgrading PyTorch to version 2.2.2 resolves the issue.
Thanks @shim94kr @JunseoMin @GCChen97 @Ecalpal ! I solved too. I will close this issue then.