Announcement

Collapse
No announcement yet.

A Developer Hacked AMD's GCN GPUs To Run Custom Code Via OpenGL

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • AnonymousCoward
    replied
    Originally posted by OneTimeShot View Post
    Presumably the byte stream verifier in the Kernel should prevent anything malicious being loaded from userspace (?) A moderately amusing hack while waiting for Vulcan that will basically support this type of thing officially, I suppose...
    AFAIK Vulkan will accept only SPIR code which is not directly binary for concrete GPU but very close. But this is also interesting https://twitter.com/grahamsellers/st...13605362954243

    Leave a comment:


  • leonmaxx
    replied
    Thanks Michael, very interesting article.

    Leave a comment:


  • orome
    replied
    Originally posted by zanny View Post

    The GPU is turing complete. The only real barriers to it acting as a CPU are its lack of bus control (they only speak PCIE and video outs) and the need for firmware to boot "to" it. But its actually completely doable - we have the ISA, we know how ata / pci / usb work, we can write drivers for those, but you need a better compiler infrastructure than OpenCL for that - you would want to have a systems programming language for the GPU where control flow is designed around parallelism and transparent pipelining.

    The hard part is building a firmware board for it. You need to fab your own PCH for the thing and it would probably require custom silicon for the GPU and ram to interface properly as a system hub. But radeonSI is really just another CPU architecture, one with its own ISA and hardware characteristics you can write an OS for. The software parts are already there, and tech wise our GPUs are sophisticated enough to perform the role.
    you can run completely custom code on GPU using HSA runtime. So you can theoretically run an OS. You can even write drivers for other devices (if they use MMIO).
    Practically it's a bad idea, because you don't have privilege levels that would protect your OS structures from application code.

    Leave a comment:


  • Ericg
    replied
    Originally posted by marek View Post
    It's like writing a driver on top of a driver...
    Yo dawg, I heard you like drivers?
    Last edited by Ericg; 01 December 2015, 12:40 AM.

    Leave a comment:


  • marek
    replied
    It's like writing a driver on top of a driver...

    Leave a comment:


  • zanny
    replied
    Originally posted by Kemosabe View Post
    What exactly is a GPU based OS supposed to be?
    The GPU is turing complete. The only real barriers to it acting as a CPU are its lack of bus control (they only speak PCIE and video outs) and the need for firmware to boot "to" it. But its actually completely doable - we have the ISA, we know how ata / pci / usb work, we can write drivers for those, but you need a better compiler infrastructure than OpenCL for that - you would want to have a systems programming language for the GPU where control flow is designed around parallelism and transparent pipelining.

    The hard part is building a firmware board for it. You need to fab your own PCH for the thing and it would probably require custom silicon for the GPU and ram to interface properly as a system hub. But radeonSI is really just another CPU architecture, one with its own ISA and hardware characteristics you can write an OS for. The software parts are already there, and tech wise our GPUs are sophisticated enough to perform the role.
    Last edited by zanny; 30 November 2015, 08:39 PM.

    Leave a comment:


  • johnc
    replied
    If only Frostbite could give us an OpenGL engine.

    Leave a comment:


  • eydee
    replied
    Originally posted by Kemosabe View Post
    What exactly is a GPU based OS supposed to be?
    Maybe an OS on top of another. I'm sure you can't do this right at bootup, you need some OS and driver running to access the card in the first place.

    Leave a comment:


  • Sethox
    replied
    Originally posted by SXX⁣ View Post
    I think main issue it's that there's no open source driver for Windows. :-)
    Yeah, the not-so-professional-powerpoint kinda showed that he did use Visual studio in windows. Yeah, I'll buy it, impressive discovery nonetheless.

    Leave a comment:


  • SXX⁣
    replied
    Originally posted by agd5f View Post
    Or he could have just hacked the open source driver directly and saved some time?
    I think main issue it's that there's no open source driver for Windows. :-)

    Leave a comment:

Working...
X