Announcement

Collapse
No announcement yet.

Open source HSA support?

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

  • Open source HSA support?

    It seems that HSA is getting usable by the first wave of developers, as Kaveri APUs were released, and there exists OKRA library for running HSAIL kernels on Kaveri's GPUs. While it's based on an open source kernel driver - radeon-kfd - the library is unfortunately closed source. Are there plans for making it open source, and - if so - when? Or maybe some other open HSAIL Finalizer for Kaveris is planned?

  • #2
    Originally posted by LEW21 View Post
    It seems that HSA is getting usable by the first wave of developers, as Kaveri APUs were released, and there exists OKRA library for running HSAIL kernels on Kaveri's GPUs. While it's based on an open source kernel driver - radeon-kfd - the library is unfortunately closed source. Are there plans for making it open source, and - if so - when? Or maybe some other open HSAIL Finalizer for Kaveris is planned?
    Our plan is for the HSA thunk (userspace lib for HSA kernel driver), runtime (exposes the API for using HSA/HSAIL) and finalizer (HSAIL to HW ISA) all to be open source. Thunk will be opened up first (working on it now), then runtime, then finalizer.

    OKRA is more of a transitional API wrapping the current HSA RT and finalizer, intended to provide a stable platform while the HSA RT API details are being "finalized" by the HSA Foundation. I believe the plan is to have higher level tools move to the final HSA RT API rather than to open up OKRA.
    Test signature

    Comment


    • #3
      Any updates on the user-space part? The kernel driver is now part of a released kernel (3.19) but the HSA Runtime appears to still consist only of header files and binary blobs.

      Comment


      • #4
        thunk : http://cgit.freedesktop.org/~gabbayo/libhsakmt/

        runtime : https://github.com/HSAFoundation/HSA...ference-Source

        The only part missing now is the HSAIL Finalizer -- that's going to take some more work since it uses a lot of code from our proprietary shader compiler.

        In the meantime if you want to exercise the rest of the HSA stack with a fully open toolchain you can write kernel programs in OpenCL C and compile them with the Clang/LLVM/r600 backend, generate a binary and import that into the HSA runtime.

        Last edited by bridgman; 09 February 2015, 09:05 PM.
        Test signature

        Comment

        Working...
        X