request advice on resolving to AMD HIP/ROCm MR

Context

To solve issue GPU support for more devices I made MR Support more GPGPU - AMD HIP/ROCm

I successfully built HIP, but I don't know how to add the Flatpak runtime.

Description

I made flatpak-images/platform-hip-amd.bst.

I built the freedesktop-sdk using make export

Then, I added local repo folder with

flatpak remote-add --if-not-exists --user --no-gpg-verify local repo

and install

flatpak install -y --user local org.freedesktop.{Platform,Sdk}

However, my Flatpak runtime cannot find the local remotes.

$ flatpak list
Name                             Application ID                                   Version                              Branch                     Installation
Freedesktop Platform             org.freedesktop.Platform                         freedesktop-sdk-24.08rc.1            24.08beta                  user
Mesa                             org.freedesktop.Platform.GL.default              24.2.0                               24.08beta                  user
Mesa (Extra)                     org.freedesktop.Platform.GL.default              24.2.0                               24.08beta-extra            user
Intel                            org.freedesktop.Platform.VAAPI.Intel                                                  24.08beta                  user
Freedesktop SDK                  org.freedesktop.Sdk                              freedesktop-sdk-24.08rc.1            24.08beta                  user

So I need to install like this

$ flatpak install -y --user local org.freedesktop.Platform.HIP.AMD

after that

$ flatpak-builder --force-clean --user --install app tests/test.hip.amd.json

and then run

$ flatpak run test.hip.amd
/app/bin/hip-test: line 2: hipconfig: command not found

I find it difficult to identify the issues with my MR

platform-hip/hip.bst : It seems has been built correctly

I tested it when building it, make error occurred in the strip-commands section, and enter the shell and try hipconfig command. It executed normally in the shell.

It seems that the Flatpak manifest file may be incorrect, or I might be adding the runtime incorrectly.

I suspect there might be a path issue.

However, I'm not sure how to fix it.

Please let me know if you need any additional information.

Acceptance Criteria

Running a runtime that includes HIP (!20632 ).

Edited by Leo Park