News for hackers. Stuff that matters.
Re:Nvidia adds telemetry to latest drivers by EpicEng on Sunday November 06, 2016 @11:03AM (#12885637)
Why, exactly?
Re:Nvidia adds telemetry to latest drivers by bnmillar on Sunday November 06, 2016 @11:18AM (#12885732)
Firstly for all the previous things they have done, for example their lack of driver support for free operating systems which is why Linus said this, their lack of Free Software drivers, their tight lockdown on proprietary technologies like PhysX that hurts portability and hurts non-Nvidia users and finally default collection of telemetry data is a highly unethical practice and the inclusion of the extra code to do it can only hurt stability and performance and increase driver size. Go ahead and downvote me to hell, I'm not bothered, go ahead and buy Nvidia chips, I will avoid Nvida like the plague till the day I die.
Re:Nvidia adds telemetry to latest drivers by KirinDave on Sunday November 06, 2016 @11:35AM (#12885816)
> Firstly for all the previous things they have done, for example their lack of driver support for free operating systems which is why Linus said this

It is not Nvidia's job to prop up the desktop linux ecosystem. It's wise not to invest time in that ecosystem, as far as I can tell. It's got an ongoing history of disappointing its customers and vendors over and over. And we get good enough computational support ever business or individual out there, Nvidia GPUs are still preferred for clustering.

> I will avoid Nvida like the plague till the day I die.

The way you talk makes it sound like it's a religious or political debate. You're mad that they don't support your demagogue or your shared values. Isn't Hacker News a place where we're supposed to keep politics at bay and focus on the technology?

Re:Nvidia adds telemetry to latest drivers by wwalexander on Sunday November 06, 2016 @11:50AM (#12885903)
NVIDIA could release documentation on their hardware that would make it easier for Nouveau developers to do their work, but they don't. Nobody is asking for free labor on a low-marketshare OS.
Re:Nvidia adds telemetry to latest drivers by dogma1138 on Sunday November 06, 2016 @12:14PM (#12886031)
NVIDIA's own linux drivers are excellent, they are considerably better than AMD's ones (reversal from the days of ATI), but they are closed source.

NVIDIA released Linux drivers hand in hand with their Windows based ones, you get at least one update every month.

So while it's true that you can't have a completely open source driver for NVIDIA you do have excellent Linux drivers.

On the compute side NVIDIA's support for Linux is also unmatched, in fact for many things CUDA actually works better on Linux than on Windows.

Re:Nvidia adds telemetry to latest drivers by vetinari on Sunday November 06, 2016 @02:06PM (#12886523)
Unfortunately, Nvidia's proprietary drivers are excellent for features where the puck has been and not-so-excellent in features where the puck is going. See also Wayland support or switchable GPUs.
Re:Nvidia adds telemetry to latest drivers by dogma1138 on Sunday November 06, 2016 @04:11PM (#12887056)
Been hearing about Wayland for a while wake me up when it's actually here. Also there is no problem with switchable GPU's which is specific to nVIDIA anymore the Optimus chip is no longer used (and haven't been for a while) since Intels Iris came out it powered a single generation of mobile GPUs and was a hack even on Windows.
Re:Nvidia adds telemetry to latest drivers by vetinari on Sunday November 06, 2016 @04:28PM (#12887127)
Wayland is actually there; it has been shipping with Fedora for some time and for 25 (release in less than two weeks), it is going to be default.

There is still problem with switchable GPUs: namely those, where one GPU is using Mesa and the other is not (i.e. Nvidia). Those computers didn't disappear for the face of the Earth, people are still using it and expect it to work, even if there are never laptops available on the market. It is being worked on (https://blogs.gnome.org/uraeus/2016/11/01/discrete-graphics-...).

Re:Nvidia adds telemetry to latest drivers by dogma1138 on Sunday November 06, 2016 @08:59PM (#12888285)
Because of MESA, also nvidia tried to make Optimus work on Linux when it supported it couldn't.

Intel doesn't supports GPU switching on its MESA drivers it requires the proprietary one.

Get the prop nvidia and intel drivers and get nvidia prime and you are golden.

Same issue with AMD GPUs with intel CPUs especially the PowerXpress ones.

Re:Nvidia adds telemetry to latest drivers by vetinari on Monday November 07, 2016 @03:56AM (#12889723)
Intel doesn't have a proprietary driver for GPUs for Linux.

They do have a binary firmware, for Broxton and newer, however that's a thing that runs on the GPU. It does not have anything with how Mesa or other OpenGL stack shares buffers and video output devices.

Re:Nvidia adds telemetry to latest drivers by dogma1138 on Monday November 07, 2016 @10:31AM (#12891815)
Sorry that's what I mean, in Ubuntu it's under the display driver, they call it microcode.
Re:Nvidia adds telemetry to latest drivers by stirner on Sunday November 06, 2016 @07:13PM (#12887898)
> Also there is no problem with switchable GPU's which is specific to nVIDIA anymore the Optimus chip is no longer used

Do you have a source for this? In any case, just because some hardware has been recently phased out doesn't mean the manufacturer shouldn't be expected to support it. Not everyone has enough money to buy a new computer every year; I'm a student with an Optimus laptop and I know I won't be able to afford a replacement in the next year or two.

If NVIDIA can't be asked to fully support their hardware on Linux, the least they can do is release some documentation so the Nouveau devs don't need to grope in the dark.

Re:Nvidia adds telemetry to latest drivers by dogma1138 on Sunday November 06, 2016 @08:36PM (#12888209)
>If NVIDIA can't be asked to fully support their hardware on Linux, the least they can do is release some documentation so the Nouveau devs don't need to grope in the dark.

I don't disagree in principle, but they've killed it, releasing information to make it work might be a problem for them, and since this thing is no longer supported adding compatibility for older devices isn't a high priority for them.

It worked poorly on many windows machine, it's effectively still doesn't work on Windows 10 [0] and it's been effectively killed since 2014.

[0]https://forums.geforce.com/default/topic/860554/geforce-mobi...

It's also worth noting that NVIDIA couldn't get the darn thing to work on Linux, it's also worth noting that AMD also had/has similar issues with PowerXpress on non-Iris based Intel CPUs, it does somewhat work well on AMD's own CPU's with integrated graphics and it's more modern "APUs".

>Do you have a source for this?

Source for what? under Iris Intel the CPU handles the switching between GPUs not that it works that well, but it doesn't work well on most OSs other than windows mostly due to how the display driver infrastructure is setup and how the composition manager works (even on OSX you still likely to want to use gpu-switch than rely on the OS).

If you want to blame some one blame the OS tbh, if OSX and Linux had proper user mode display drivers like WDDM, had modern display drivers like WDDM and actually had a composition manager capable of using multiple GPUs then there might be better solutions for this.

But overall it works, it does require you to use the proprietary drivers from both NVIDIA and Intel but it works, at least on Ubuntu I never had issues with following a similar guide to this http://ubuntuhandbook.org/index.php/2016/04/switch-intel-nvi... (reading the comments on that guide it seems that it missing an important part which is apt-get install nvidia-prime) So this just works...

To switch between the 2 on demand you can simply use these commands:

-prime-select intel

-prime-select nvidia

On other distros (or if you are not using nvidia-prime) you might need to use /proc/acpi/bbswitch And modprobe/rmmod to do the switching, there are bash scripts online ready to use which are available as long as you have the proper drivers installed.

P.S. Sorta OT but relevant: http://i.imgur.com/Ql1dsZC.jpg

Re:Nvidia adds telemetry to latest drivers by dogma1138 on Monday November 07, 2016 @02:37AM (#12889496)
EDIT: Since it's been too long bbswitch = Bumblebee (which NVIDIA actually helps also) the open source implementation of prime, both of which also support the older Optimus laptops but ymmv with BB.

Also it looks like PRIME supports synchronization now if you have a distro with DRM support (no not the bad kind ;) https://devtalk.nvidia.com/default/topic/957814/prime-and-pr... so if you are using their currently suggested setup you don't need to switch manually anymore.

Re:Nvidia adds telemetry to latest drivers by Kubuxu on Monday November 07, 2016 @04:18AM (#12889794)
Prime and Bumblebee are totally different from Nvidia Optimus. They have to render to render to Nvidia's GFX framebuffer and then copy it to Intel's GFX display framebuffer.

This is much more expensive than hardware implementation of Nvidia Optimus.

Re:Nvidia adds telemetry to latest drivers by dogma1138 on Monday November 07, 2016 @05:10AM (#12889984)
No they aren't, PRIME and BB only now support synchronisation which is how it also works on Windows.

It's more expensive on Linux because the DRM on Linux is broken, there is no longer "Optimus" since NVIDIA no longer uses a dedicated chip, you share a frame buffer with the IGP.

PRIME also supports the older Optimus chip laptops, but again this doesn't work that well, but then again these don't work well with Windows 10 either due to the changes to WDDM.

Re:Nvidia adds telemetry to latest drivers by andromeduck on Sunday November 06, 2016 @12:17PM (#12886044)
Unlikely to happen without major business motivation/incentives to do so. Right now outside that small community, nobody really cares if it's open source or not as long as it works well and it does.
Re:Nvidia adds telemetry to latest drivers by throwaway2048 on Sunday November 06, 2016 @11:39AM (#12885846)
You are fooling yourself if you think technology can be separated from politics.
Re:Nvidia adds telemetry to latest drivers by KirinDave on Sunday November 06, 2016 @11:43AM (#12885860)
Personally I think that the HN response of, "We flag politics" is really just a blind for not discussing sensitive topics like racism, sexism, and human rights in a larger sense.

But that won't stop me from trying to fairly apply the policy to the free software people who are utterly convinced that serving their agenda is a net good rather than a lifestyle choice.

Re:Nvidia adds telemetry to latest drivers by bumblebeard on Sunday November 06, 2016 @01:08PM (#12886263)
Why isn't free software a net good?
Re:Nvidia adds telemetry to latest drivers by squarefoot on Sunday November 06, 2016 @11:14AM (#12885708)
Some background. https://www.youtube.com/watch?v=IVpOyKCNZYw

Shouldn't be a problem anymore under Linux as most distros today install Nouveau drivers by default. https://nouveau.freedesktop.org/wiki/

Re:Nvidia adds telemetry to latest drivers by greydius on Sunday November 06, 2016 @11:24AM (#12885757)
Nouveau has no CUDA support, unfortunately.
Re:Nvidia adds telemetry to latest drivers by valarauca1 on Sunday November 06, 2016 @01:14PM (#12886295)
CUDA is proprietary to Nvidia.

CUDA only exists because Nvidia is attempting to pretend OpenCL, Vulkan, and DX12 don't exist [1]. These require hardware scheduling on the GPU to switch shaders. Rather then dedicated X amount of chip hardware to Y shader for Z ms.

It should be noted for GPGPU compute Nvidia is not the correct choice. AMD RX 480 has 5.8TFLOPS @$200 ($37/TFLOP) vs Nvidia GTX1080 8.9TFLOPS @$600 ($67/TFLOP). In reality you should be doing GPU programming in OpenCL so you are GPU agnostic. You can switch vendors or platforms seamlessly (in most cases if you avoid proprietary extensions) even target AMD64, ARM, and POWER8/9 hardware.

That being said I own a boat load of Nvidia stock because their marketing is excellent. Really marketing is all 80% of people pay attention too. CUDA has some great marketing around it. In reality CUDA is slower then OpenCL (on Nvidia's platforms even) and no easier to work in.

[1] https://postimg.org/image/vsnidk8p5/

Re:Nvidia adds telemetry to latest drivers by nhaehnle on Sunday November 06, 2016 @04:34PM (#12887167)
It's worth pointing out that ROCm is basically AMD's answer to CUDA. Similar programming model and everything.

Let's hope it gets picked up by machine learning frameworks etc., because this market badly needs the competition, as your comparison of per-dollar raw performance numbers shows.

Re:Nvidia adds telemetry to latest drivers by maksimum on Sunday November 06, 2016 @09:03PM (#12888297)
I agree with your point about avoiding vendor lockins, something I experienced for myself with MATLAB. I also happened to buy a RX 480 recently, so I'm happy to hear it's good for GPGPU.

But I'm curious in how the FLOPS on these cards were measured. For example one concern I have is that presumably these two cards have slightly different levels of parallelism. So it may be more or less difficult to extract the full performance from a particular card due to parallelism overhead. Then there's driver overhead, ease of programming, etc.

Re:Nvidia adds telemetry to latest drivers by valarauca1 on Monday November 07, 2016 @09:13AM (#12891085)
FLOPS is always calculated via the simple formual

      F * (1/Hz) * 2 = FLOPS
Where F is # of FPU front ends (SIMD and scalar). This is wrong because scalar math often is slower then SIMD, and compute kernels rarely run on the scalar pipeline.

Where Hz is the well.. the clock rate, inverse to get cycles per second. This is wrong because stalls happen, memory transfers, cache misses etc. It is also wrong because the clock rate is throttled and you are not always at Maximum boost clock.

Then multiply by 2 for FMA (fused multiply add). This is wrong because well not every operation is a one cycle FMA. Division can be many (>100). Also scalar pipelines don't have FMA.

Ultimately all vendors use the same crappy calculation so we are comparing apples to apples. Just rotten apples to rotten apples. It gives you a good ideal circumstance you can optimize towards but never actually attain.

Re:Nvidia adds telemetry to latest drivers by Kubuxu on Monday November 07, 2016 @04:14AM (#12889775)
There is difference in job scheduling between AMD and Nvidia. So if you want to optimize your OpenCL applications you can do it only for one of them or do it twice.

Sample applies to integer math, long double math and so on.

Re:Nvidia adds telemetry to latest drivers by nitrogen on Sunday November 06, 2016 @10:25PM (#12888573)
Do the power consumption numbers cancel out the up-front price advantage?
Re:Nvidia adds telemetry to latest drivers by valarauca1 on Monday November 07, 2016 @09:13AM (#12891088)
RX480 consumes less power then the GTX1080 so they'd amplify the initial price advantage.
Re:Nvidia adds telemetry to latest drivers by nitrogen on Monday November 07, 2016 @02:29PM (#12894130)
Is that total power, or power per GFLOP?
Re:Nvidia adds telemetry to latest drivers by valarauca1 on Monday November 07, 2016 @04:29PM (#12895324)
Are you seriously asking me to do division for you? Do you own a calculator, cellphone or computer? Or are you actually that helpless?

AMD RX 480 has 5.8TFLOPS @$200 ($37/TFLOP) @231Watt Peak (2.5GFLOPS/Watt)

Nvidia GTX1080 8.9TFLOPS @$600 ($67/TFLOP) @318Watt Peak (2.8GFLOPS/Watt)

See Furmark benchmark for wattage values [1]

Typical KW-H in the US $0.12KW-H [2]. So the delta-cost of GTX1080 vs RX480 will be mitigated by GFLOPS/Watt efficiency savings in 4 years, 4 months. Which on a typical 2, 3, or even 4 year hardware replacement cycle the extra cost will NEVER be re-couped.

[1] http://www.anandtech.com/show/10325/the-nvidia-geforce-gtx-1... for load wattage numbers

[2] http://www.npr.org/sections/money/2011/10/27/141766341/the-p...

Re:Nvidia adds telemetry to latest drivers by nitrogen on Monday November 07, 2016 @05:12PM (#12895703)
Thanks for the info.
Re:Nvidia adds telemetry to latest drivers by zanny on Sunday November 06, 2016 @12:10PM (#12886013)
It can't, Nouveau is not developed by Nvidia.
Re:Nvidia adds telemetry to latest drivers by shmerl on Sunday November 06, 2016 @05:59PM (#12887586)
Nouveau has no reclocking, so it's practically useless as is. If you want a working open driver - use AMD.
Re:Nvidia adds telemetry to latest drivers by z3t4 on Sunday November 06, 2016 @11:18AM (#12885726)
Nvidia do not want to support linux nor themselves or let anyone else do it.
Re:Nvidia adds telemetry to latest drivers by andromeduck on Sunday November 06, 2016 @12:23PM (#12886072)
They've had the best 3D drivers on Linux for years. There were issues with Optimus and Ion but IIRC a lot of it was legal and issues with Linux's driver infra back then meant it required far more effort than it was worth at the time.
Re:Nvidia adds telemetry to latest drivers by blockoperation on Sunday November 06, 2016 @03:44PM (#12886933)
Their drivers might work, but saying to users "here, load this giant blob with a history of privesc bugs into your kernel" isn't what I'd call "supporting Linux".

Meanwhile, AMD are active contributors to Mesa and DRM, which benefits everyone.

Re:Nvidia adds telemetry to latest drivers by EpicEng on Sunday November 06, 2016 @04:49PM (#12887258)
I wish they'd open things up too, but it's there prerogative, and Linux repesents a minuscule share of their market. The fact that they support it in the way they do today is surprising.