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: an illegal memory access was encountered #9

Closed
xiemeilong opened this issue Jun 13, 2023 · 1 comment
Closed

Comments

@xiemeilong
Copy link

I just replaced the ply file with my own ply file, then executed recons_colored_mesh.py, and encountered an error:

06-13 15:34:48 (__init__.py:230) [INFO] Input scale factor: 3.5629 
Traceback (most recent call last):
  File "/mnt/disk2/labs/NKSR/examples/recons_colored_mesh.py", line 29, in <module>
    field = nksr.reconstruct(input_xyz, input_normal, detail_level=1.0)
  File "/mnt/disk2/.conda/envs/nksr/lib/python3.10/site-packages/nksr/__init__.py", line 283, in reconstruct
    output_field.solve(
  File "/mnt/disk2/.conda/envs/nksr/lib/python3.10/site-packages/nksr/fields/kernel_field.py", line 291, in solve
    lhs_mat.add_block(
  File "/mnt/disk2/.conda/envs/nksr/lib/python3.10/site-packages/nksr/solver.py", line 34, in add_block
    self.inv_diag[pos_i] = 1.0 / a_x[a_i == a_j]
RuntimeError: CUDA error: an illegal memory access was encountered
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.

My gpu is 3060 12GB.

@xiemeilong
Copy link
Author

It turns out that the numbers in my coordinate system were too large.

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

1 participant