I’m trying to run OptiX on my machine that dual boots Linux with Ubuntu 18.04. Everything works when the machine boots under Windows.
When I run any of the OptiX 6 precompiled samples, I get the error: “A supported NVIDIA GPU could not be found”. I know the machine has supported GPUs because it works under Windows.
Running nvidia-smi produces this output:
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 418.40.04 Driver Version: 418.40.04 CUDA Version: 10.1 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GTX 108... On | 00000000:01:00.0 On | N/A |
| 23% 34C P2 53W / 250W | 479MiB / 11176MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
| 1 Quadro RTX 8000 On | 00000000:02:00.0 Off | Off |
| 35% 26C P8 9W / 260W | 1MiB / 48571MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
When I run my own OptiX-based program, I get the same error when calling rtDeviceGetDeviceCount, and I also get a “Failed to retrieve the display driver version” error from rtGlobalGetAttribute(RT_GLOBAL_ATTRIBUTE_DISPLAY_DRIVER_VERSION_MAJOR).
Have I missed something in the set-up process for Ubuntu?