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

Error: unknown error ../gui/tex.cu 29 #4

Open
Wenretium opened this issue Oct 25, 2023 · 0 comments
Open

Error: unknown error ../gui/tex.cu 29 #4

Wenretium opened this issue Oct 25, 2023 · 0 comments

Comments

@Wenretium
Copy link

Hello! Thanks for your excellent work. I don't know much about your research, but I'm very interested in that. I tried for two days and finally managed to compile and run the code you provided. However, I got stuck in using the gui demo. I compiled and got the 'demo' file. When I run it, I got:

Error: unknown error ../gui/tex.cu 29

which corresponds to the source code

cudaGraphicsResource* register_texture(GLuint t)
{
    cudaGraphicsResource* gl_tex;
    CUDA_CHECK(cudaGraphicsGLRegisterImage(&gl_tex, t, GL_TEXTURE_2D,
                                      cudaGraphicsMapFlagsWriteDiscard)); // this line
    return gl_tex;
}

I tried to delete the function CUDA_CHECK( ) and successfully opened the gui window! But it seems to be all black and no any model. Is this because I deleted that function? What should I do next?
image

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