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

RuntimeError: CUDA error: invalid configuration argument #342

Open
lihc-cz opened this issue Jan 1, 2025 · 1 comment
Open

RuntimeError: CUDA error: invalid configuration argument #342

lihc-cz opened this issue Jan 1, 2025 · 1 comment

Comments

@lihc-cz
Copy link

lihc-cz commented Jan 1, 2025

          I was running the code on A6000 with distributed training, using outdoor large-scale point cloud data. When I set batch_size to 2 on each GPU, an error occurred at the 25rd epoch. I tried increasing the batch_size to 3, but an error occurred at the 63rd epoch.
"/mnt/sdb/anaconda3/envs/pointcept/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/mnt/sdb/anaconda3/envs/pointcept/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1527, in _call_impl
    return forward_call(*args, **kwargs)
  File "/mnt/sdb/anaconda3/envs/pointcept/lib/python3.8/site-packages/torchsparse-2.1.0-py3.8-linux-x86_64.egg/torchsparse/nn/modules/conv.py", line 98, in forward
    return F.conv3d(
  File "/mnt/sdb/anaconda3/envs/pointcept/lib/python3.8/site-packages/torchsparse-2.1.0-py3.8-linux-x86_64.egg/torchsparse/nn/functional/conv/conv.py", line 92, in conv3d
    kmap = F.build_kernel_map(
  File "/mnt/sdb/anaconda3/envs/pointcept/lib/python3.8/site-packages/torchsparse-2.1.0-py3.8-linux-x86_64.egg/torchsparse/nn/functional/conv/kmap/build_kmap.py", line 193, in build_kernel_map
    out_in_map_bwd = F.convert_transposed_out_in_map(
  File "/mnt/sdb/anaconda3/envs/pointcept/lib/python3.8/site-packages/torchsparse-2.1.0-py3.8-linux-x86_64.egg/torchsparse/nn/functional/conv/hash/query.py", line 48, in convert_transposed_out_in_map
    out_in_map_t = torch.full(
RuntimeError: CUDA error: invalid configuration argument
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
Compile with TORCH_USE_CUDA_DSA to enable device-side assertions.

Originally posted by @lihc-cz in #16 (comment)

@SamMaoYS
Copy link

I also encountered the same issue. Checkout the issue here in spconv.

In my case, it is caused by the normalized and discretized point cloud after the layers of downsample 3d conv. One dimension is being flat, and thus one dimension is missing and has shape [0].

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

2 participants