NVlabs / instant-ngp

Instant neural graphics primitives: lightning fast NeRF and more
https://nvlabs.github.io/instant-ngp
Other
16k stars 1.93k forks source link

Could not initialize Vulkan and NGX. DLSS not supported. #1041

Closed hh0525 closed 2 years ago

hh0525 commented 2 years ago

I use WSL2 with ubuntu22.04. I want to try the DLSS and I have installed Vulkan, but it still throws a waring like below.

 huhao@DESKTOP-ICMSFQU:~/projects/instant-ngp$ ./build/testbed --scene data/nerf_synthetic/lego/transforms_train.json
18:12:58 INFO     Loading NeRF dataset from
18:12:58 INFO       data/nerf_synthetic/lego/transforms_train.json
18:12:58 SUCCESS  Loaded 100 images after 0s
18:12:58 INFO       cam_aabb=[min=[-0.800156,-0.795949,0.668189], max=[1.72901,1.8035,1.83007]]
18:12:59 INFO     Loading network config from: configs/nerf/base.json
18:12:59 INFO     GridEncoding:  Nmin=16 b=1.38191 F=2 T=2^19 L=16
18:12:59 INFO     Density model: 3--[HashGrid]-->32--[FullyFusedMLP(neurons=64,layers=3)]-->1
18:12:59 INFO     Color model:   3--[Composite]-->16+16--[FullyFusedMLP(neurons=64,layers=4)]-->3
18:12:59 INFO       total_encoding_params=12196240 total_network_params=10240
WARNING: dzn is not a conformant Vulkan implementation, testing use only.
18:13:01 WARNING  Could not initialize Vulkan and NGX. DLSS not supported. (Failed to find Vulkan device corresponding to CUDA device.)

These are what I get when I run the vkvia.

huhao@DESKTOP-ICMSFQU:~$ vkvia
dpkg-query: no packages found matching vulkan-sdk
WARNING: dzn is not a conformant Vulkan implementation, testing use only.
WARNING: dzn is not a conformant Vulkan implementation, testing use only.
VIA_INFO:    SDK Found! - Will attempt to run tests
VIA_INFO:       Attempting to run ./vkcube in /home/huhao/vulkan/1.3.231.0/x86_64/bin
VIA_INFO:           Command-line: ./vkcube --c 100 --suppress_popups
WARNING: dzn is not a conformant Vulkan implementation, testing use only.
Selected GPU 0: Microsoft Direct3D12 (NVIDIA GeForce RTX 3060), type: IntegratedGpu
VIA_INFO:           Command-line: ./vkcube --c 100 --suppress_popups --validate
WARNING: dzn is not a conformant Vulkan implementation, testing use only.
Selected GPU 0: Microsoft Direct3D12 (NVIDIA GeForce RTX 3060), type: IntegratedGpu
SUCCESS: Vulkan analysis completed properly using Vulkan 1.3

Why could not initialize Vulkan? How to solve it? I appreciate any help!

Tom94 commented 2 years ago

Hi, WSL2 does not support native Vulkan, which is required for DLSS. What you see when running vkvia is a Vulkan emulation implemented via DX12 (called dzn). There's nothing instant-ngp can do until WSL does support native Vulkan (short of implementing a second DLSS codepath that goes through DX12, but that's not on the roadmap).