-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenCL initialization crashes darktable when using AMD ROCm OpenCL runtime #14932
Comments
I just tried with the I also tried deleting my |
I managed to get it to work using the I think it'd be a good idea to figure out what is worng with the rocm ICD that breaks Darktable. If there's something else I can do to help debug this issue, please let me know. |
I've reported the issue on the upstream repo for the ROCm OpenCL runtime, to make sure it has visibility there. Also of note, I tried to run darktable using the rusticl runtime and I get funny behaviour (processing in the darkroom seems to happen, but it finishes with a completely black image), so at least as of today that's not a viable option. |
Same issue with an AMD RX 6700S and 7900 XTX (which I believe is not supported by the legacy driver). I would like to try using rusticl but darktable crashes right away if I have both versions installed. Changing the config file devices to !0,* does not help. |
Please note this is a darktable issue tracker, nothing about how to install buggy CL drivers and/installations. |
Beside installation or driver issues, if you want to dig into debugging this issue and suspect a problem in dt colorbalancergb and the used driver you might go the hard way, use cl compiler output ... If darktable runs otherwise fine, there might be some specific cl functions in the specific cl kernel. You might compile dt yourself including modified (by you) kernels. Look into if you do so, some ideas
Unfortunately - at least for you - non of the dt devs runs AMD hardware so a number of AMD bugs have been fixed just by suspecting something as 1-3 while reading code. Also i am not aware of anyone in dt github or the pixls forums who is running rustcl in a stable way. (And we had "issues" like yours - issue in brackets "as not-dt-business") Anyway - i would appreciate if you dig into this - we would love to hear about any fixable bugs in that code, a short reading by me did not find anything suspicious except the native functions. Good luck :-) |
I am the person who filed issue #14900. I have resolved the problem with help from the archlinux forum. I am not sure if this solution applies to all situations, but it was a suitable solution for my case. I hope this can be a reference for anyone who encounters the same problem. https://bbs.archlinux.org/viewtopic.php?pid=2113677#p2113677 Expressing gratitude to Lone_Wolf. |
That doesn't fix the issue with ROCm OpenCL, it just disables it and uses RustiCL instead, but RustiCL isn't compatible with darktable either ( #14937 , https://gitlab.freedesktop.org/mesa/mesa/-/issues/7746 ) |
OK, closing this as not a dt issue as long there is no better evidence. |
It's still a pending issue whether it stems from darktable or not. Closing it makes it harder to find the relevant information. edit: it works with the aur |
@trougnouf i understand your frustration but maybe you can understand the closing too. This is a dt issue tracker and not an OpenCL installation forum :-) You can be pretty sure i look at all OpenCL related reports and if a dt problem is suspicious i will most likely track that down and probably fix it - have done so many times the last years. OpenCL is a bad boy sometimes. OpenCL problems with arch or windows in combination with amd drivers are notorious but not dt specific. Don't know if the installation process for both systems is so tricky or because the amd maintainers have problems keeping the stuff in shape. Also i don't know why people install several drivers for the same hardware and use workarounds that are just not right. We just have to keep our working-on-dt time under control and concentrate on non-upstream issues. So - if you have a proposal to solve this in a more generic and helpful way due to your experience, i would love to include that somewhere in the docs or we might add some hints in the issue template. |
Just commenting to note that earlier today I ran DT with Also relevant for anyone facing this issue and reading this discussion, accoring to this the 5.7 release of |
The 5.7 release doesn't appear to fix the issue for me. Edit: Similarly, the opencl-amd package does resolve it |
I got the exact same issue with Manjaro+KDE Plasma.
EDIT: I wasn't actually running version 5.7 of |
@prurigro , @mzannoni , please follow this up in the ROCm-Developer-Tools/clr repo In my previous issue there you can see what commands you need to run to provide the devs with useful debug information. |
Describe the bug
I get a message saying "PHI node has multiple entries for the same basic block with different incoming values" (see console output below)
Running datkable with
--disable-opencl
works, so this is OpenCL and not someting else.When this started happening I switched from the amdgpu-pro OCL driver to the
rocm-opencl-runtime
package as described in the arch wiki, but the error persists. This suggest the issue is not related to a particular OpenCL implementation.Issue #14900 looks similar, the same user seems to have posted in the Arch forum and it was suggested there that the issue is related to multiple OpenCL implementations show in the output of
clinfo --list
, but I have only one so it's not that.The other suggested root cause is some incompatibility of LLVM versions (I suppose between what Darktable expects and what the system has). My system has LLVM 15, but a LLVM 14 package is available; installing the LLVM 14 package does not resolve the issue.
Steps to reproduce
Open darktable (in a terminal so the error can be read)
Expected behavior
Darktable should open without issue
Logfile | Screenshot | Screencast
Commit
No response
Where did you install darktable from?
distro packaging
darktable version
4.4.2
(package version:2:4.4.2-1
)What OS are you using?
Linux
What is the version of your OS?
Arch Linux (EndeavourOS)
Describe your system?
Operating System: EndeavourOS
KDE Plasma Version: 5.27.6
KDE Frameworks Version: 5.108.0
Qt Version: 5.15.10
Kernel Version: 6.1.39-1-lts (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 1700 Eight-Core Processor
Memory: 31,2 GiB of RAM
Graphics Processor: AMD Radeon RX 6600 XT
Manufacturer: Gigabyte Technology Co., Ltd.
Product Name: AX370-Gaming K7
Are you using OpenCL GPU in darktable?
Yes
If yes, what is the GPU card and driver?
AMD RX 6600 XT with amdgpu (xf86-video-amdgpu package)
Please provide additional context if applicable. You can attach files too, but might need to rename to .txt or .zip
No response
The text was updated successfully, but these errors were encountered: