News for hackers. Stuff that matters.
Re:What Makes AI and GPUs So Compatible? by Eridrus on Wednesday September 13, 2017 @07:11PM (#15243609)
> NVIDIA’s current growth spurt is based on big bet that Huang made a few years ago, when he understood that he was in a unique position to help advance AI, machine learning and deep learning.

What kind of bullshit is this. Alex Krizhevsky used CUDA to run neural nets much faster than you could on CPU, blew up ImageNet and NVIDIA found out they were sitting on a goldmine powered by a revolution they really had nothing to do with.

NVIDIA really had nothing to do with any of this taking off, except happening to provide the hardware.

Re:What Makes AI and GPUs So Compatible? by ms013 on Thursday September 14, 2017 @01:36AM (#15245238)
Exactly! Plus, even before CUDA existed, people in numerical computing had already noticed that GPUs were ideal hardware for certain classes of problems and were doing awkward things like embedding numerical calculations as shaders and other tricks to use the graphics APIs as a way to encode computations. I recall colleagues who worked on those pre-CUDA systems meeting some resistance from NVIDIA in terms of opening up the low-level APIs that would make the hardware more directly accessible, versus the encodings that they needed to go through to use graphics primitives for the work.

NVIDIA got lucky by having the right kind of hardware, and created CUDA not due to some insight into the AI world, but based on the needs of scientific computing. Just look at their early papers on CUDA (E.g., Luebke's 2008 paper "CUDA: SCALABLE PARALLEL PROGRAMMING FOR HIGH-PERFORMANCE SCIENTIFIC COMPUTING") - AI was nowhere to be seen. They were focused on traditional high performance computing problems.

Re:What Makes AI and GPUs So Compatible? by dragandj on Thursday September 14, 2017 @05:25AM (#15246226)
HPC techniques are exactly those that ML and deep learning use in implementation. I don't see how DL is much different from this point of view. It relies on fast linear algebra. HPC relies on fast linear algebra. Nvidia perfected the processor that does this job orders of magnitude faster and provided convenient libraries and development environment to make it accessible.
Re:What Makes AI and GPUs So Compatible? by ms013 on Thursday September 14, 2017 @06:04AM (#15246414)
Nobody is arguing that not to be true. The issue is arguing that NVIDIA foresaw their systems being relevant to AI/DL/ML: they simply were lucky. They opened their architecture to HPC people, concerned largely with fluid dynamics, finite element methods, nbody methods, and so on. To claim that they had any insight into the emergence of ML as a core application of their silicon is simply a laughable revision of history: as we were talking about in an ancestor of this thread.
Re:What Makes AI and GPUs So Compatible? by dragandj on Thursday September 14, 2017 @06:31AM (#15246537)
Well, I argue that they did foresaw its business viability. They invested heavily in DL before any one of their competitors. Of course there were researchers everywhere working on that, but there are researchers working on everything. What is the most difficult part is recognizing that it can be taken to mainstream and betting huge resources on that. Of course no one argues that Nvidia CEO is the first man in the world that saw GPU/AI applicability. But of those in positions of power in the tech business community...
Re:What Makes AI and GPUs So Compatible? by Eridrus on Thursday September 14, 2017 @10:56AM (#15248642)
But they didn't really bet anything huge on it. In 2014 they had a few researchers work on cuDNN; a few years after deep learning had already taken off in academia. The first chip they made which did anything specific for DL was the P100 last year; but no-one is actually using that chip, everyone is using high end gaming chips.

They really haven't made much forward looking investment in this area, they just got lucky since they had built CUDA beforehand for other reasons, and that was what people standardized on.

AMD's chips would work just fine for DL if everything wasn't already written in CUDA, needing them to invest in a cross-platform CUDA alternative in the form of ROCm/HIP.

Re:What Makes AI and GPUs So Compatible? by dragandj on Thursday September 14, 2017 @12:52PM (#15249890)
I've been following AMD's efforts, and I think what you say obscures the practical points.

In fact, I prefer OpenCL to CUDA. However, that it is not only a matter of "a few people"'s effort is that AMD had a few people on BLAS libraries since forever, and their stuff is almost unusable for DL, let alone a match for CUDA. Add to that that Nvidia provided cuDNN that everyone uses. That it is not a matter of just a few people can be seen from the fact that AMD still does not provide an alternative, even a toy one, that works. Everythinig in AMD/OpenCL world relies on a few 3-rd party open-source efforts. Some of those work OK, some are cool, some are great, some are garbage, but there is no ecosystem anywhere near Nvidia's.

They have HIP (and they have OpenCL) but these are only general purpose compilers. They have nothing when it comes to the libraries.

Re:What Makes AI and GPUs So Compatible? by Eridrus on Friday September 15, 2017 @09:16AM (#15256853)
It's pointless to keep arguing about who did what, but I will mention that the ROCm folks have significant headcount and are porting all the major libraries to HIP: https://rocm.github.io/dl.html

In comparison, NVIDIA had all this effort done for them by the library developers.

Re:What Makes AI and GPUs So Compatible? by dragandj on Friday September 15, 2017 @09:28AM (#15256951)
As someone who has several top of the line GPUs from 3 years ago that are not even properly supported by ROCm, and someone who invested time in OpenCL 2.0 only to be told by AMD that OpenCL 1.2 is what I'm going to get on ROCm because they don't care, I tend to have a cynical view on this.

I'll just say that there is a reason the projects you linked have only a handful of stars on GitHub, despite having significant headcount and supposed megacorp backing.

People have been burned by AMD so many times that rarely anyone cares any more. I do, but I'm not very optimistic...

Re:What Makes AI and GPUs So Compatible? by Eridrus on Friday September 15, 2017 @11:37AM (#15258001)
Personally, I'm waiting for these projects to get upstreamed, I have no interest in running an AMD fork, and thankfully they seem to be trying to get it upstreamed, but that will also depend on the libraries caring enough.

I think everyone in the deep learning space is interested in AMD succeeding so that we're not all locked into NVIDIA or Google's TPUs, but everyone wants someone else to take the leap first and pay that cost.

I'm certainly not going to buy any AMD GPUs before these versions have been upstreamed and a few people have kicked the tires, the lost productivity just isn't worth it.

Re:What Makes AI and GPUs So Compatible? by JustFinishedBSG on Thursday September 14, 2017 @08:42AM (#15247344)
When Nvidia was targeting HPC the push was for better DP power in GPUs.

Now that Deep Learning is big it's a push toward Half-Precision actually.

Most of the "incredible power" of a Tesla V100 is 100% unusable by a Physicist for example

Also I love your MCMC sampler

Re:What Makes AI and GPUs So Compatible? by dragandj on Thursday September 14, 2017 @10:58AM (#15248661)
Thanks :)
Re:What Makes AI and GPUs So Compatible? by Teodolfo on Thursday September 14, 2017 @03:36AM (#15245700)
In 2009 NVIDIA wouldn't give Geoff Hinton's group the time of day, let alone a single free GPU to try out to see if they wanted to buy more. Geoff Hinton spoke at a NIPS keynote in 2009 and told 1000 people in the audience to all go out and buy a specific NVIDIA card if they wanted to do work in this area and still NVIDIA didn't bat an eye.
Re:What Makes AI and GPUs So Compatible? by gok on Thursday September 14, 2017 @01:33AM (#15245225)
Providing a really well supported platform (CUDA) which only had payoff far in the future did take some foresight. That it could be applied to ML was a good guess, but the fact that the DL revolution happened mostly on NV hardware wasn’t just because the hardware was good. The CUDA environment investment paid off.
Re:What Makes AI and GPUs So Compatible? by kayoone on Thursday September 14, 2017 @02:05AM (#15245331)
But that does not really negate the quote does it? Based on new research in AI, he realized that he was in a unique position and bet a lot of R&D on products that came out years later. Of course he was lucky, but he could have mostly ignored ML and have lost a huge opportunity.
Re:What Makes AI and GPUs So Compatible? by dragandj on Thursday September 14, 2017 @05:27AM (#15246237)
Exactly that! Why the CEO of Intel or the CEO of AMD didn't do the same? It was obvious! Well, it is obvious now, but then it was far from obvious.
Re:What Makes AI and GPUs So Compatible? by isatty on Thursday September 14, 2017 @01:15AM (#15245170)
Pretty much everything this comment said. Nvidia had nothing to do with the first few uses of CUDA for machine learning.

It could be done on FPGAs and stuff but that wasn't easily accessible to the masses.

Re:What Makes AI and GPUs So Compatible? by gok on Thursday September 14, 2017 @01:35AM (#15245232)
It was accessible because they invested in CUDA. That wasn’t a small decision.
Re:What Makes AI and GPUs So Compatible? by godelmachine on Thursday September 14, 2017 @07:50AM (#15246971)
That's what I thought as soon as I read the opening sentence. NVIDIA founders, at best, through of making dedicated processors for high quality graphics. They certainly weren't aware of AI back then.
Re:What Makes AI and GPUs So Compatible? by llukas on Wednesday September 13, 2017 @09:49PM (#15244413)
Sir, you contradict yourself - CUDA is software and NVIDIA invested in CUDA long time before anybody believed it would take off.
Re:What Makes AI and GPUs So Compatible? by DannyBee on Thursday September 14, 2017 @12:27AM (#15245008)
Uh, no. Lots of people invested in things like cuda at roughly the same time. CUDA was also very clearly built to enable general fast math computation, and AI came much much much later

As GP says, this is some interesting revisionist history.

NVidia figured this out at the same time as everyone else.

Re:What Makes AI and GPUs So Compatible? by llukas on Thursday September 14, 2017 @02:46AM (#15245490)
I still can run early CUDA programs unmodified. This is investment.

edit: on newest hardware, without recompilation

Re:What Makes AI and GPUs So Compatible? by frozenport on Wednesday September 13, 2017 @11:24PM (#15244778)
A lot of people thought it woukd take off! Hell people were doing GPGPU with ps2!
Re:What Makes AI and GPUs So Compatible? by arcanus on Wednesday September 13, 2017 @09:53PM (#15244436)
Cuda is a GPGPU paradigm. It was certainly not an investment in machine learning.
Re:What Makes AI and GPUs So Compatible? by nightski on Thursday September 14, 2017 @10:40AM (#15248470)
Seeing as this https://developer.nvidia.com/cudnn exists and is widely used I'd say that isn't really true.
Re:What Makes AI and GPUs So Compatible? by dragandj on Thursday September 14, 2017 @05:30AM (#15246253)
But all major Deep Learning frameworks use Nvidia-s cuDNN library. They provide lots of sugar, but the central thing is developed (or paid for if you prefer) by Nvidia.