HIP icon indicating copy to clipboard operation
HIP copied to clipboard

HIP - OpenGL/Vulkan Interoperability Status and Plans

Open FilipVaverka opened this issue 4 years ago • 6 comments

What is the current status and future plans for interoperability between HIP (and OpenCL) and graphics APIs like OpenGL or Vulkan running on top of Mesa?

So far HIP doesn't seem to expose this functionality at all, while OpenCL (ROCm 4.0.0 distribution) does expose it, but doesn't work for me (OpenCL <-> OpenGL buffer sharing leads to GPU page faults).

Are there any plans to introduce this functionality and other APIs such as External Resource Interoperability to allow external data sharing and synchronization?

FilipVaverka avatar Feb 17 '21 19:02 FilipVaverka

Also curious about this, I was under the impression that OpenCL was to converge with Vulkan Interop?

Nulled-Out avatar Nov 24 '21 00:11 Nulled-Out

There is already an example of vk interop: https://github.com/ROCm-Developer-Tools/HIP/pull/2375

masahi avatar Jan 21 '22 21:01 masahi

So I've tried to build the example on Linux against ROCm 4.5.0 and I'm getting "Segmentation fault" in "hipImportExternalMemory" in libamdhip64.so. Which Vulkan runtimes are supported? (here I used opensource RADV) The example needed little bit of tweaking to compile on Linux as it seems to be aimed at Windows (is there even Windows support in ROCm?).

FilipVaverka avatar Jan 22 '22 10:01 FilipVaverka

Yeah, rocm on windows is becoming a thing now https://code.blender.org/2021/11/next-level-support-for-amd-gpus/

masahi avatar Jan 22 '22 10:01 masahi

Yes, I was bit surprised seeing that as I haven't seen any information on how to setup ROCm dev. tools on Windows yet.

FilipVaverka avatar Jan 22 '22 10:01 FilipVaverka