Slashdot Mirror


An Open Source Compiler From CUDA To X86-Multicore

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."

4 of 71 comments (clear)

  1. Doesn't sound like a compiler by gnasher719 · · Score: 3, Interesting

    Seems to be just a front-end for LLVM. And if it is just a front-end for LLVM, then why doesn't it support ATI graphics cards? That would actually make it useful; there is no need for a second CUDA compiler for NVidia cards.

  2. Re:Alternative? by Yvan256 · · Score: 2, Interesting

    When did AMD drop the ATI brand?

  3. Re:Wait wut? by Anonymous Coward · · Score: 1, Interesting

    Suppose you have working CUDA code but your dataset is relatively small, say a block of 1000 floating point numbers. Then the overhead of delegating the work to the GPU isn't necessarily worth the trouble.

  4. Re:Wait wut? by Midnight+Thunder · · Score: 2, Interesting

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

    Sounds like there is great potential for a tool that will convert CUDA to OpenCL.

    --
    Jumpstart the tartan drive.