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

Cuda_assert: unknown error #6

Open
h8c2 opened this issue Jul 5, 2022 · 9 comments
Open

Cuda_assert: unknown error #6

h8c2 opened this issue Jul 5, 2022 · 9 comments

Comments

@h8c2
Copy link

h8c2 commented Jul 5, 2022

Loading model from: "/home/DISCOVER_summer2022/houc/mega-nerf/Datasets/building-pixsfm/building-pixsfm-8.pt" Model loaded cuda_assert: unknown error /home/DISCOVER_summer2022/houc/mega-nerf-viewer/src/renderer/cuda_renderer.cpp 444 Segmentation fault

@h8c2
Copy link
Author

h8c2 commented Jul 5, 2022

line 442-449 in cuda_render.cpp
cuda_assert(cudaGraphicsGLRegisterImage(&cgr[index * 2], rb[index], GL_RENDERBUFFER, cudaGraphicsRegisterFlagsSurfaceLoadStore | cudaGraphicsRegisterFlagsWriteDiscard), __FILE__, __LINE__); cuda_assert(cudaGraphicsGLRegisterImage(&cgr[index * 2 + 1], depth_rb[index], GL_RENDERBUFFER, cudaGraphicsRegisterFlagsSurfaceLoadStore | cudaGraphicsRegisterFlagsWriteDiscard), __FILE__, __LINE__);

@alan355
Copy link

alan355 commented Aug 4, 2022

Have you solved this question?I meet the same problem with you

@pengzhao-life
Copy link

pengzhao-life commented Aug 5, 2022

I got the same error.

@h8c2
Copy link
Author

h8c2 commented Aug 6, 2022

Have you solved this question?I meet the same problem with you

I failed to run this code on a remote server while I succeeded in running it on the local computer. The problem may be caused by the graphic display setting of the computer. The remote server is likely to use Integrated graphics instead of independent GPU by default.

@alan355
Copy link

alan355 commented Aug 6, 2022

Have you solved this question?I meet the same problem with you

I failed to run this code on a remote server while I succeeded in running it on the local computer. The problem may be caused by the graphic display setting of the computer. The remote server is likely to use Integrated graphics instead of independent GPU by default.

Thank you a lot. I have got your idea.

@chl2
Copy link

chl2 commented Sep 21, 2022

I got the same error. How to save as obj or video format?

@abovzv
Copy link

abovzv commented Oct 10, 2022

Have you solved this question?I meet the same problem with you

I failed to run this code on a remote server while I succeeded in running it on the local computer. The problem may be caused by the graphic display setting of the computer. The remote server is likely to use Integrated graphics instead of independent GPU by default.

image
Maybe I got the same problem with yours, and this GPU is 3090, which is not Integrated though it's still on the remote server.
How can I work it out? Thanks~

@hvkwak
Copy link

hvkwak commented Nov 17, 2022

I had the same problem and asked a question at nigels-com/glew#375 to see if there's a solution. Anyone found a solution?

@annkri
Copy link

annkri commented Aug 18, 2023

I had the same issue, and fixed it by adding __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia before the command; the second one absolutely necessary for it to start.
(Inspired by this thread: https://forums.developer.nvidia.com/t/running-sample-gives-code-999-cudaerrorunknown-how-can-this-be-solved/128947)

__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia ./mega-nerf-viewer ~/data/rubble/output/rubble_octree.npz --model_path ~/data/rubble/rubble-pixsfm-8.pt

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

7 participants