AdamYuan / VkNRC

Vulkan Implementation of NVIDIA's paper Real-time Neural Radiance Caching for Path Tracing.
11 stars 0 forks source link

Compile Error,Run Error! #1

Open clojur opened 1 month ago

clojur commented 1 month ago

I pulled your code and compiled it with an error, and then I solved it through some means. However, the program crashed when running later. Can the author write a detailed compilation and running procedure? I compiled it using VS2022 on Windows. I also hope the author can write a detailed compilation and execution step to make the program run. Thank you

AdamYuan commented 1 month ago

Hi, could you tell me the GPU you are using? The program can only run on new NVIDIA GPUs since it uses the VK_NV_cooperative_matrix extension.

AdamYuan commented 1 month ago

To run the program, you need to drag a .obj model file to the executable. Or you can add a .obj file as argument in command line like ./VkNRC blablabla.obj.

clojur commented 1 month ago

It can run but crashed. There was a place in Cpp that did not compile before, and glslc did not compile nrc_radient_64. comp. I commented nrc_radient_64. comp, and I also commented out the related references to nrc_radient_64. comp before the program can run. My GPU is RTX4090, and the GPU driver is also the latest.

clojur commented 1 month ago

This is the crash screenshot and crash stack after VS Debug. 企业微信截图_20240802105345 企业微信截图_20240802105329 企业微信截图_20240802105224

clojur commented 1 month ago

The following screenshot is the modification I made because I couldn't compile it

clojur commented 1 month ago

1 2 3 4

clojur commented 1 month ago

5

AdamYuan commented 5 days ago

I disabled the shaders for subgroup size = 64 in the latest commit, so there should be no issue about shader compilation now. I still don't know why the glslc on windows can't compile these shaders.

AdamYuan commented 5 days ago

It seems to work fine on the MSVC compiler on my laptop. But on another computer the compiled executable crashes at runtime. While with MinGW compilers there's no problem. I still need to figure out why.