Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror
×
Programming

An Open Source Compiler From CUDA To X86-Multicore 71

Gregory Diamos writes "An open source project, Ocelot, has recently released a just-in-time compiler for CUDA, allowing the same programs to be run on NVIDIA GPUs or x86 CPUs and providing an alternative to OpenCL. A description of the compiler was recently posted on the NVIDIA forums. The compiler works by translating GPU instructions to LLVM and then generating native code for any LLVM target. It has been validated against over 100 CUDA applications. All of the code is available under the New BSD license."
This discussion has been archived. No new comments can be posted.

An Open Source Compiler From CUDA To X86-Multicore

Comments Filter:
  • Alternative? (Score:5, Insightful)

    by Guspaz ( 556486 ) on Wednesday December 23, 2009 @03:11PM (#30537744)

    This isn't an alternative to CUDA; it lets CUDA code run on x86, but still doesn't do anything for AMD graphics cards. In other words, your choices as a developer are to use OpenCL and have your code run everywhere (AMD, nVidia, x86 slowly), or use CUDA and have your code run on nVidia or x86 slowly.

    What possible reason could you have to want to be locked into one GPU vendor?

  • Wait wut? (Score:4, Insightful)

    by Icegryphon ( 715550 ) on Wednesday December 23, 2009 @03:16PM (#30537808)
    Why would you go from CUDA(Fast Floating-points) to x86(slower Floating-points)?
    Is there support yet for double-precision floating points yet on Nvidia cards?
    This makes as much sense as a Wookiee on the planet Endor.
    Unless the Point is portability but, then why write it in Cuda to begin with?
  • Re:Alternative? (Score:2, Insightful)

    by Anonymous Coward on Wednesday December 23, 2009 @03:19PM (#30537834)

    I think Cuda was first out there, later on OpenCL occurred. And i see it as bad thing really, since that binds you to using Nvidia card. I hope it wont become popular i dont want to stick to Nvidia.(ot, when AMD has Linux drivers open sourced)

  • Re:Wait wut? (Score:4, Insightful)

    by tepples ( 727027 ) <tepplesNO@SPAMgmail.com> on Wednesday December 23, 2009 @03:22PM (#30537870) Homepage Journal

    Why would you go from CUDA(Fast Floating-points) to x86(slower Floating-points)?

    For running legacy apps that were developed between the release of CUDA and the release of OpenCL. There aren't many, I'd guess.

  • Re:Wait wut? (Score:3, Insightful)

    by SpinyNorman ( 33776 ) on Wednesday December 23, 2009 @03:40PM (#30538036)

    I can think of a couple of reasons it may be useful on x86 :

    - Better debugging tools
    - Allows CUDA development without buying specialized hardware up-front (a lesson I've learnt - don't buy hardware until the software is ready)

    It's also another option for multi-core programming. If the CUDA API is good, maybe it's an efficient way to develop certain types of parallel apps even if you never intend to use it on a GPU.

  • Re:Alternative? (Score:4, Insightful)

    by Guspaz ( 556486 ) on Wednesday December 23, 2009 @03:55PM (#30538198)

    Progressively more and more.

    Example: Go to "ati.com" and you get redirected to the regular amd.com front page. Go to desktop graphics products and you get a page titled "AMD Graphics for Desktop PCs" inviting you to shop for "AMD Desktop Graphics Cards".

    The actual cards themselves have as product name "ATI Radeon", but describing an "ATI Radeon" as an "AMD graphics card" is accurate.

  • by Anonymous Coward on Wednesday December 23, 2009 @04:40PM (#30538594)

    Why would you go from CUDA(Fast Floating-points) to x86(slower Floating-points)?

    Because if you don't have the right hardware, CUDA isn't fast floats. It's a program that doesn't run at all.

  • by smcdow ( 114828 ) on Wednesday December 23, 2009 @05:49PM (#30539248) Homepage

    A bit off topic, but since I'm seeing posts about OpenCL and portability...

    OpenCL will indeed get you portability between processors, however OpenCL does not make any guarantees about how well that portable code will run. In the end, to get optimum performance you still have to code to the particular architecture on which that your code is going to run. For example, performance on Nvidia chips is extremely sensitive to memory access patterns. You could write OpenCL code that runs very well on Nvidia chips, but runs poorly on a different architecture.

    Not saying that portability isn't a good thing, but a lot of people seem to be thinking that OpenCL will solve all your portability problems. It won't. It only will let code run on multiple architectures. You'll still have to more or less hand optimize to the architecture.

A morsel of genuine history is a thing so rare as to be always valuable. -- Thomas Jefferson

Working...