Re: [Nix-dev] Nvidia & Cuda & Optimus - root required?

2017-05-12 Thread Marc Weber
> Isn't there some /dev/* file representing the device that you can set > permissions on? (Half guessing here...) There are, but chmod 777 on /dev/nvidi* didn't help. Also it worked on a desktop machine if I recall correctly. So it eventually is optimus related. Marc Weber

Re: [Nix-dev] Nvidia & Cuda & Optimus - root required?

2017-05-12 Thread Bjørn Forsman
On 12 May 2017 at 16:07, Marc Weber wrote: > Nvidia & Cuda: > > As root it works, as user it doesn't (even exporting the env from root). > Easiest way to reproduce: > > $(nix-build cudatoolkit)/extras/demo_suite/deviceQuery > > Either outputs 'FAILED' or some info > > Has

[Nix-dev] Nvidia & Cuda & Optimus - root required?

2017-05-12 Thread Marc Weber
Nvidia & Cuda: As root it works, as user it doesn't (even exporting the env from root). Easiest way to reproduce: $(nix-build cudatoolkit)/extras/demo_suite/deviceQuery Either outputs 'FAILED' or some info Has anybody a solution yet? Marc Weber