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

is my example wrong? I always get 700 illegal memory access error #727

Open
Kitsunetic opened this issue Nov 6, 2024 · 1 comment
Open

Comments

@Kitsunetic
Copy link

Kitsunetic commented Nov 6, 2024

I have tested with multiple GPUs with variable environments:
GPUs: A6000, A5000, RTX 2080Ti, RTX 3090
PyTorch: 2.1.2, 2.3.0, 2.3.1
CUDA version: 11.8 and 12.1.

In addition, I have compiled both cumm and spconv manually following the README, but it still shows same error.

import torch as th
from spconv.pytorch import SubMConv3d, SparseConvTensor

xyz = th.randint(0, 100, (100, 4), dtype=th.int32, device='cuda')
xyz[:, 0] = 0
feat = th.rand(100, 32, device='cuda')

sp = SparseConvTensor(feat, xyz, (200, 200, 200), 1)
SubMConv3d(32, 64, 3)(sp)

>>> cuda failed with error 700 an illegal memory access was encountered. use CUDA_LAUNCH_BLOCKING=1 to get correct traceback.
@pengpeng-yu
Copy link

Hello, maybe you need SubMConv3d(32, 64, 3).cuda() ?

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