NVIDIA: Difference between revisions
imported>Vodkabot2 No edit summary |
imported>Vodkabot2 mNo edit summary |
||
Line 21: | Line 21: | ||
* Pros: out of box experience, just start the game via ''primusrun'' or ''optirun'' wrapper | * Pros: out of box experience, just start the game via ''primusrun'' or ''optirun'' wrapper, works under existing X11 server | ||
* Cons: some performance penalty, no Vulkan support, things like CUDA and OpenCL are problematic to configure | * Cons: some performance penalty, no Vulkan support, things like CUDA and OpenCL are problematic to configure | ||
Line 27: | Line 27: | ||
=== Nvidia PRIME === | === Nvidia PRIME === | ||
Official solution by nvidia, but needs some preparing. ''' | Official solution by nvidia, but needs some preparing. '''Also you need muxless card''' | ||
'''1.''' Configure NixOS to allow Intel and Nvidia X.Org drivers coexist together (only needed because NixOS forces LD_LIBRARY_PATH variable propagation), and also to disable nvidia card by default. | '''1.''' Configure NixOS to allow Intel and Nvidia X.Org drivers coexist together (only needed because NixOS forces LD_LIBRARY_PATH variable propagation), and also to disable nvidia card by default. | ||
Line 46: | Line 46: | ||
* Pros: better performance, Vulkan is supported. CUDA and OpenCL should work, though CUDA needs an additional device creation rule https://github.com/NixOS/nixpkgs/blob/05e375d7103ac51e2da917965c37246c99f1ae4f/nixos/modules/hardware/video/nvidia.nix#L72 | * Pros: better performance, Vulkan is supported. CUDA and OpenCL should work, though CUDA needs an additional device creation rule https://github.com/NixOS/nixpkgs/blob/05e375d7103ac51e2da917965c37246c99f1ae4f/nixos/modules/hardware/video/nvidia.nix#L72 | ||
* Cons: there are still some rough edges noted on the top of script, but otherwise it works fine for me | * Cons: there are still some rough edges noted on the top of script, but otherwise it works fine for me, starts new X11 server | ||
== | == non-NixOS case == | ||
The [https://github.com/guibou/nixGL nixGL project] provides wrapper to use GL drivers outside of NixOS. | * GL drivers on non-NixOS: The [https://github.com/guibou/nixGL nixGL project] provides wrapper to use GL drivers outside of NixOS. You need to have nvidia drivers installed on your distro (for kernel modules). Then supply nvidia driver version you use on host system to nixGL. | ||
* [https://github.com/dukzcry/crap/tree/master/primerun Optimus only]. Primerun will build nvidia kernel modules against your currently running kernel. | |||
[[Category:Video]] | [[Category:Video]] |