-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
It is possible to use GPU acceleration via OpenCL within flatpak: - https://gitlab.com/freedesktop-sdk/freedesktop-sdk/-/issues/1535 - flathub/com.openwall.John#13 (comment) However, it's not clear what is actually needed for this to work (poor documentation? or I'm failing to find it?). - what is the minimum required to run `cl-info` inside a flatpak? HPC (high performance computing) using GPU is very important to us. NVIDIA is the target at the moment. Our community does not have suitable hardware with CUDA installed to use/test this PR. => Note: Review/Revert/Improve: . Should I also add org.freedesktop.Platform.HIP.Nvidia? . Is the `add-extensions:` necessary or useful? I want to enable NVIDIA support but allow poor people (like me) to continue using flatpak, e.g., for CPU formats. . Test when possible: ``` + "--socket=x11", + "--device=all" ``` Signed-off-by: Claudio André <dev@claudioandre.slmail.me>
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,9 +6,66 @@ | |
"sdk": "org.freedesktop.Sdk", | ||
"command": "john", | ||
"tags": ["1.9J1+2404"], | ||
"finish-args": ["--filesystem=home"], | ||
"finish-args": ["--filesystem=home", "--share=ipc", "--device=dri"], | ||
Check failure Code scanning / check-spelling Unrecognized Spelling Error
ipc is not a recognized word. (unrecognized-spelling)
Check failure Code scanning / check-spelling Unrecognized Spelling Error
dri is not a recognized word. (unrecognized-spelling)
|
||
"add-extensions": { | ||
"org.freedesktop.Platform.GL": { | ||
"version": "1.4", | ||
"versions": "%{branch};%{branch-extra};1.4", | ||
"directory": "%{lib}/GL", | ||
"add-ld-path": "lib", | ||
"merge-dirs": "%{gl_merge_dirs}", | ||
"subdirectories": true, | ||
"no-autodownload": true, | ||
Check failure Code scanning / check-spelling Unrecognized Spelling Error
autodownload is not a recognized word. (unrecognized-spelling)
|
||
"autodelete": true, | ||
Check failure Code scanning / check-spelling Unrecognized Spelling Error
autodelete is not a recognized word. (unrecognized-spelling)
|
||
"download-if": "active-gl-driver", | ||
"enable-if": "active-gl-driver", | ||
"autoprune-unless": "active-gl-driver" | ||
Check failure Code scanning / check-spelling Unrecognized Spelling Error
autoprune is not a recognized word. (unrecognized-spelling)
|
||
} | ||
}, | ||
"cleanup": ["/include", "*.la", "*.a"], | ||
"modules": [ | ||
{ | ||
"name": "clinfo", | ||
"no-autogen": true, | ||
Check failure Code scanning / check-spelling Unrecognized Spelling Error
autogen is not a recognized word. (unrecognized-spelling)
|
||
"no-make-install": true, | ||
"build-commands": ["install -Dm755 -t /app/bin/ clinfo"], | ||
"sources": [ | ||
{ | ||
"type": "archive", | ||
"url": "https://github.com/Oblomov/clinfo/archive/refs/tags/3.0.23.01.25.tar.gz", | ||
"sha256": "6dcdada6c115873db78c7ffc62b9fc1ee7a2d08854a3bccea396df312e7331e3" | ||
} | ||
], | ||
"modules": [ | ||
{ | ||
"name": "ocl-icd", | ||
"sources": [ | ||
{ | ||
"type": "archive", | ||
"url": "https://github.com/OCL-dev/ocl-icd/archive/refs/tags/v2.3.2.tar.gz", | ||
"sha256": "ec47d7dcd961ea06695b067e8b7edb82e420ddce03e0081a908c62fd0b8535c5" | ||
}, | ||
{ | ||
"type": "script", | ||
"dest-filename": "autogen.sh", | ||
Check failure Code scanning / check-spelling Unrecognized Spelling Error
autogen is not a recognized word. (unrecognized-spelling)
|
||
"commands": ["autoreconf -fiv"] | ||
Check failure Code scanning / check-spelling Unrecognized Spelling Error
autoreconf is not a recognized word. (unrecognized-spelling)
|
||
} | ||
] | ||
}, | ||
{ | ||
"name": "opencl-headers", | ||
"buildsystem": "simple", | ||
"build-commands": ["cp -av opencl22/CL /app/include"], | ||
"sources": [ | ||
{ | ||
"type": "git", | ||
"url": "https://github.com/KhronosGroup/OpenCL-Headers.git", | ||
"commit": "e986688daf750633898dfd3994e14a9e618f2aa5" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "libpcap", | ||
"sources": [ | ||
|