IMO, open sourcing their GPU libraries would be a much bigger deal than only open sourcing the compiler. I would like to see CUBLAS, CUFFT, CUSPARSE, CURAND, etc all get opened up to the community. The pain is not in compiling GPU code; rather, the pain is in writing good GPU code. The major difference between NVIDIA and AMD (and the major edge NVIDIA has over AMD) is not as much the compiler as it is the libraries.…
Also, OpenCL is not going away, even if someone figured out how to get CUDA code to run well on ATI GPUs. OpenCL is gaining a lot of traction by mobile GPU vendors too (e.g. ARM Mali, Imagination PowerVR, Qualcomm Adreno, etc)
Nvidia Opens CUDA Platform, Releases Compiler Source Code
11–20 of 30 posts
Re: Nvidia Opens CUDA Platform, Releases Compiler Source Code
#12Earlier quoted context omitted.
Also, OpenCL is not going away, even if someone figured out how to get CUDA code to run well on ATI GPUs. OpenCL is gaining a lot of traction by mobile GPU vendors too (e.g. ARM Mali, Imagination PowerVR, Qualcomm Adreno, etc)
I think you meant OpenCL is not going away, and I agree.
Re: Nvidia Opens CUDA Platform, Releases Compiler Source Code
#13IMO, open sourcing their GPU libraries would be a much bigger deal than only open sourcing the compiler. I would like to see CUBLAS, CUFFT, CUSPARSE, CURAND, etc all get opened up to the community. The pain is not in compiling GPU code; rather, the pain is in writing good GPU code. The major difference between NVIDIA and AMD (and the major edge NVIDIA has over AMD) is not as much the compiler as it is the libraries.…
A viable alternative is to not write the GPU code yourself. Write a code generator in Scala that spits out GPU code in C. For details see Claudio Rebbi's work, which uses Scala as a higher level code genarator for CUDA to solve the Dirac-Wilson equation on the lattice( http://wwwold.jlab.org/conferences/lattice2008/talks/poster/... ). In finance, we are actively looking at CUDA for derivative pricing problems in risk analytics. None of us wants to actually write GPU code in C, and we do have considerable amount of risk analytics work being done in Scala, so a code generator might actually be the way to go.
Re: Nvidia Opens CUDA Platform, Releases Compiler Source Code
#14we just need documentation to understand what the generated code does then, as AFAIK the output is code for undocumented hardware.
Re: Nvidia Opens CUDA Platform, Releases Compiler Source Code
#15IMO, open sourcing their GPU libraries would be a much bigger deal than only open sourcing the compiler. I would like to see CUBLAS, CUFFT, CUSPARSE, CURAND, etc all get opened up to the community. The pain is not in compiling GPU code; rather, the pain is in writing good GPU code. The major difference between NVIDIA and AMD (and the major edge NVIDIA has over AMD) is not as much the compiler as it is the libraries.…
> the pain is in writing good GPU code A viable alternative is to not write the GPU code yourself. Write a code generator in Scala that spits out GPU code in C. For details see Claudio Rebbi's work, which uses Scala as a higher level code genarator for CUDA to solve the Dirac-Wilson equation on the lattice( http://wwwold.jlab.org/conferences/lattice2008/talks/poster/... ). In finance, we are actively looking at CUDA…
Re: Nvidia Opens CUDA Platform, Releases Compiler Source Code
#16They're "opening the platform". We'll see what they actually do.
Re: Nvidia Opens CUDA Platform, Releases Compiler Source Code
#17Re: Nvidia Opens CUDA Platform, Releases Compiler Source Code
#18we just need documentation to understand what the generated code does then, as AFAIK the output is code for undocumented hardware.
There's a good chance the LLVM backend will emit PTX, not machine code. PTX is well documented [1]. Under such a system, the generated PTX would be JITed at runtime by the driver. Note that LLVM already has a (very experimental and not complete) PTX backend [2]. [1] http://developer.download.nvidia.com/compute/cuda/3_0/toolki... [2] http://llvm.org/releases/3.0/docs/ReleaseNotes.html#whatsnew
Re: Nvidia Opens CUDA Platform, Releases Compiler Source Code
#19IMO, open sourcing their GPU libraries would be a much bigger deal than only open sourcing the compiler. I would like to see CUBLAS, CUFFT, CUSPARSE, CURAND, etc all get opened up to the community. The pain is not in compiling GPU code; rather, the pain is in writing good GPU code. The major difference between NVIDIA and AMD (and the major edge NVIDIA has over AMD) is not as much the compiler as it is the libraries.…
> the pain is in writing good GPU code A viable alternative is to not write the GPU code yourself. Write a code generator in Scala that spits out GPU code in C. For details see Claudio Rebbi's work, which uses Scala as a higher level code genarator for CUDA to solve the Dirac-Wilson equation on the lattice( http://wwwold.jlab.org/conferences/lattice2008/talks/poster/... ). In finance, we are actively looking at CUDA…
or am i missing something? how do you see code generators helping you get algorithms right?
Re: Nvidia Opens CUDA Platform, Releases Compiler Source Code
#20What it doesn't answer is who's going to write the compilers and if they will ever happen.
But it does prove NVIDIA is still a player in the many-core game and that there are still a few more rounds to go before there's a winner.