mpr icon indicating copy to clipboard operation
mpr copied to clipboard

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

Open Wenretium opened this issue 2 years ago • 0 comments

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

Wenretium avatar Oct 25 '23 09:10 Wenretium