News for hackers. Stuff that matters.
Re:Microsoft Bets Its Future on a Reprogrammable Computer Chip by aab0 on Sunday September 25, 2016 @09:33PM (#12578605)
That raises as many questions as it answers. Why FPGAs and not GPUs which can run just about any deep neural network but usually faster and more efficiently?
Re:Microsoft Bets Its Future on a Reprogrammable Computer Chip by Const-me on Monday September 26, 2016 @12:39AM (#12579276)
One reason is FPGAs are more flexible.

Sure, GPUs deliver impressive raw performance. To be useful, the task must benefit from massively parallel hardware. GPU hardware works fantastic for shading polygons, training neural networks, or raytracing. For compression and encryption algorithms however, GPUs aren’t terribly good.

Another reason is while a GPU delivers impressive bandwidth on parallel-friendly workloads, it’s usually possible to achieve lower latencies with FPGA. An FPGA doesn’t decode any instructions, and its computing modules exchange data directly.

Re:Microsoft Bets Its Future on a Reprogrammable Computer Chip by Eridrus on Monday September 26, 2016 @08:47AM (#12581320)
GPUs give you great throughput, but they're expensive, eat a lot of power, only work well in batch and aren't tuned to prediction (eg poor INT8 performance and too much VRAM).
Re:Microsoft Bets Its Future on a Reprogrammable Computer Chip by emcq on Monday September 26, 2016 @03:53PM (#12585009)
GPUs have worse performance per watt than a tuned FPGA. Some newer FPGAs can have 400 megabits of on chip RAM - that's huge, significantly larger than the 128-256k cache typically available on chip for a GPU that turns into big energy savings.
Re:Microsoft Bets Its Future on a Reprogrammable Computer Chip by p1esk on Tuesday September 27, 2016 @11:36AM (#12590371)
GPUs have worse performance per watt than a tuned FPGA

Citation needed.

Maxwell Jetson TX1 is claimed to achieve 1TFlops FP16 at <10W, and soon to be released Pascal based replacement will probably be even more efficient.

Re:Microsoft Bets Its Future on a Reprogrammable Computer Chip by emcq on Tuesday September 27, 2016 @01:11PM (#12591168)
While I dont have any external publications addressing this general claim, this is taken from my current and past experiences with internal studies focused on neural networks implemented on the TX1, other GPU, custom ASICs, and FPGA approaches. In terms of power efficiency it generally goes ASIC > FPGA > GPU > CPU. If you're doing just fp32 BLAS it's hard to beat a GPU, but it turns out many problems have features that you can optimize for.

The TX1 power consumption including DRAM and other subsystems peaks 20-30W. Typical usage is 10-15W if you're running anything useful.

That 1 TFLOP counts a FMA instruction as 2 flops - while accurate and useful for say dot products - for other workloads the throughput will be half of this number.

As an example of an FPGA performing significantly better than the TX1 is DeepPhi [0].

[0] http://www.deephi.com/en/technology/

Re:Microsoft Bets Its Future on a Reprogrammable Computer Chip by p1esk on Tuesday September 27, 2016 @02:02PM (#12591583)
In that link, where's the comparison of fpga vs TX1?
Re:Microsoft Bets Its Future on a Reprogrammable Computer Chip by emcq on Tuesday September 27, 2016 @02:32PM (#12591810)
If you click on Papers, there is a link to "Going Deeper with Embedded FPGA for Convolutional Neural Network", which compares against the TK1: https://nicsefc.ee.tsinghua.edu.cn/media/publications/2016/F...

While not the TX1 vs FPGA result you want, this is very close. For example they aren't using the latest FPGA or GPU, and are not using TensorRT on the GPU and on the FPGA side they are using fatty 16-bit weights on an older FPGA rather than newer stuff you can do with lower precision (which improves the efficiency of the FPGA having more high speed RAM collocated with computation vs GPU which is primarily off-chip).

If you want to learn more about this stuff, I suggest a presentation by one of Bill Dally's students (chief scientist at NVIDIA): http://on-demand.gputechconf.com/gtc/2016/presentation/s6561...

Re:Microsoft Bets Its Future on a Reprogrammable Computer Chip by p1esk on Tuesday September 27, 2016 @04:17PM (#12592754)
Thanks, but TK1 is using FP32 weights, as opposed to FP16 on FPGA. If you double the GOP/s number for TK1 to account for that, you will end up with pretty much identical performance, and the paper claims they both consume ~9W.

I'm not saying you're wrong, just that to make a convincing claim that FPGAs are more power efficient than GPUs, one needs to do an apples to apples comparison.

And of course, let's not forget about price: Zynq ZC706 board is what, over $6k? And Jetson TK1 was what when released, $300? If you need to deploy a thousand of these chips in your datacenter, to save a million per year on power, you will need several years to break even, and by that time, you will probably need to upgrade.

It just seems that GPUs are a better deal currently, with or without looking at power efficiency.