Slashdot Mirror


AMD's OpenCL Allows GPU Code To Run On X86 CPUs

eldavojohn writes "Two blog posts from AMD are causing a stir in the GPU community. AMD has created and released the industry's first OpenCL which allows developers to code against AMD's graphics API (normally only used for their GPUs) and run it on any x86 CPU. Now, as a developer, you can divide the workload between the two as you see fit instead of having to commit to either GPU or CPU. Ars has more details."

15 of 176 comments (clear)

  1. The real benefit by HappySqurriel · · Score: 4, Insightful

    Wouldn't the real benefit be that you wouldn't have to create two separate code-bases to create an application that both supported GPU optimization and could run naively on any system?

  2. Re:Optimization by jjoelc · · Score: 2, Insightful

    Actually, this will provide more flexibility in their optimizations. There are some aspects that the CPU does very well, and there are others that the GPU handle well... being able to say "perform THIS function on the CPU and THAT one on the GPU, will free up resources on each chip. Utilizing the CPU for some functions will free up resources on the GPU, and vise-versa, allowing (theoretically) to optimize the performance of EACH one for a better overall experience.

  3. Re:Optimization by Timothy+Brownawell · · Score: 4, Insightful

    So now programmers can write code that will work on either processor and will be optimized on neither. Brilliant. I'm sure this is somehow a great step forward.

    -sigh-

    Um, what? How does the existence of a compiler that generates x86 code prevent the existence of an optimizing compiler that generate GPU instructions?

  4. Re:Optimization by olsmeister · · Score: 5, Insightful

    Welcome back to the days of the math coprocessor....

  5. GPUs are dying - the cycle continues by realmolo · · Score: 2, Insightful

    Now that we have CPUs with literally more cores than we know what to do with, it makes sense to use those cores for graphics processing. I think that within a few years, we'll start seeing games that don't require a high-end graphics card- they'll just use a couple of the cores on your CPU. It makes sense, and is actually a good thing. Fewer discrete chips is better, as far as power consumption and heat, ease-of-programming and compatibility are concerned.

    1. Re:GPUs are dying - the cycle continues by Pentium100 · · Score: 3, Insightful

      A dedicated graphics processor will be faster than a general purpose processor. Yes, you could use an 8 core CPU for graphics, or you could use a 4 year old VGA. Guess which one is cheaper.

    2. Re:GPUs are dying - the cycle continues by Khyber · · Score: 3, Insightful

      Hey, my nVidia 9800GTX+ has over 120 processing cores of one form or another in one package..

      Show me an Intel offering or AMD offering in the CPU market with similar numbers of cores in one package.

      --
      Still waiting on Serviscope_minor to wake up to fucking reality and realize that Jessica Price isn't going to fuck him.
  6. Re:Nice by Anonymous Coward · · Score: 1, Insightful

    No you shouldn't, this way you got +5 interesting AND +5 informative ;)

  7. Re:Nice by Briareos · · Score: 3, Insightful

    I suppose I could have been clearer. I'm talking about gpu decoding of HD video, conspicuously absent on AMD drivers in Linux, fully functional on NVIDIA.

    Fixed that for you. Or does installing Linux somehow magically unsolder the video decoding part of AMD's GPUs?

    np: Death Cab For Cutie - Information Travels Faster (The Photo Album)

    --

    "I'm not anti-anything, I'm anti-everything, it fits better." - Sole

  8. Not any time soon by Sycraft-fu · · Score: 4, Insightful

    I agree that the eventual goal is everything on the CPU. After all, that is the great thing about a computer. You do everything in software, you don't need dedicated devices for each feature, you just need software. However, even as powerful as CPUs are, they are WAY behind what is needed to get the kind of graphics we do out of a GPU. At this point in time, dedicated hardware is still far ahead of what you can do with a CPU. So it is coming, but probably not for 10+ years.

  9. Re:Nice by Bootarn · · Score: 2, Insightful

    Damn, you beat me to it!

    The problem now is the lack of applications that enable end users to make benefit from having a powerful GPU. This will be the case until there's a standard API which works across multiple GPU architectures. Having both CUDA and OpenCL is one too many

  10. Re:Nice by Anonymous Coward · · Score: 1, Insightful

    Wai any netbook that has a DVI, VGA or HDMI port that is connected to a widescreen monitor, silly!

  11. Re:Intel counters with CPU+GPU on a chip by avandesande · · Score: 3, Insightful

    Microsoft wouldn't allow licensing dual cores on netbooks.

    --
    love is just extroverted narcissism
  12. Re:Isn't there a fundamental problem... by Chris+Burke · · Score: 3, Insightful

    I admit I am not their target audeince, and I can see how OpenAL is sufficient for videogame developers, but it really is nothing more than sufficient, and unlike OpenGL, which universal enough that it can be used in system and productivity software, on computers, phones, and in renderfarms on everything from calendar software to animated movies, OpenAL is strictly for videogames only.

    Um, yeah. I have only used it sparingly, but it has always been my understanding that OpenAL was a library for doing spatial audio, in particular for 3D games. I never got the impression that it was supposed to just be an arbitrary audio api. I never got the impression that it was supposed to be for anyone who wasn't specifically interested in spatial audio.

    I mean there are plenty of other cross-platform sound libraries.

    Is OpenAL seriously advertising itself as a general-purpose sound library akin to OpenGL these days? Is it suffering from feature/scope creep? Or is this just a case of picking the wrong tool for the job based on an understandable confusion regarding the OpenFoo nomenclature?

    --

    The enemies of Democracy are
  13. Re:Nice by Anonymous Coward · · Score: 1, Insightful

    Or just use Windows where we've been enjoying working hardware acceleration and 1080p videos for a long time now.