shocker-0x15 / GfxExp

Sandbox for graphics paper implementation
Other
222 stars 19 forks source link

Run-time NRC crash: cuGraphicsGLRegisterImage() #7

Closed pantelis-kan closed 2 years ago

pantelis-kan commented 2 years ago

The VS solution compiles just fine, but when I run neural_radiance_cache.exe with the correct parameters, I get the following error: Error: CUDA call (cuGraphicsGLRegisterImage(&m_cudaGfxResource, glTexID, GL_TEXTURE_2D, flags) ) failed with error: 'OS call failed or operation not supported on this OS' (...\GfxExp\utils\cuda_util.cpp:677)

As a note, the program is able to identify my RTX 3060 card.

shocker-0x15 commented 2 years ago

Hi, What driver version are you using? Do you attempt to try to launch the program via remote desktop?

pantelis-kan commented 2 years ago

Hi! I'm using the latest driver from Nvidia Geforce Experience. No I'm using it from my own PC with Windows 10, latest updates.

The error occures both in Release and Debug mode. It has something to do with Cuda/GL interoperability, but it is very strange that I'm getting this error.

shocker-0x15 commented 2 years ago

Are you using some laptop with iGPU and dGPU (RTX 3060 here)?

pantelis-kan commented 2 years ago

No, I have a desktop.

shocker-0x15 commented 2 years ago

Can you run the other programs (e.g. path_tracing)? Does the issue happen only with NRC?

pantelis-kan commented 2 years ago

I recompiled and it worked this time. Thanks!