<div dir="auto">clover is not supported by AMD officially, because AMD has its own OpenCL driver called ROCm.<div dir="auto"><br></div><div dir="auto">Marek</div><div dir="auto"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jun 1, 2019, 10:56 PM Jan Vesely <<a href="mailto:jan.vesely@rutgers.edu">jan.vesely@rutgers.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
On Sat, 2019-06-01 at 18:21 -0400, James Harvey wrote:<br>
> On Sat, Jun 1, 2019 at 6:19 PM James Harvey <<a href="mailto:jamespharvey20@gmail.com" target="_blank" rel="noreferrer">jamespharvey20@gmail.com</a>> wrote:<br>
> > On Tue, Feb 19, 2019 at 7:52 PM james harvey <<a href="mailto:jamespharvey20@gmail.com" target="_blank" rel="noreferrer">jamespharvey20@gmail.com</a>> wrote:<br>
> > > Commit 9baacf3f is: "radeonsi: Refuse to accept code with unhandled<br>
> > > relocations".<br>
> > > <br>
> > > This has broken ImageMagick for many people using AMD graphics cards.<br>
> > > See <a href="https://github.com/ImageMagick/ImageMagick/issues/1366" rel="noreferrer noreferrer" target="_blank">https://github.com/ImageMagick/ImageMagick/issues/1366</a><br>
> > > <br>
> > > ImageMagick responded: "It looks like this error message is created by<br>
> > > the mesa driver. I have no idea what causes this message and if there<br>
> > > is anything what we could do to prevent this from happening."<br>
> > > <br>
> > > And, hasn't responded back for requests for what additional<br>
> > > information I could tell mesa.<br>
> > > <br>
> > > I see the mesa commit is to prevent GPU hangs, so I'm all for the commit.<br>
> > > <br>
> > > I'm just asking what would need to be done by who to get ImageMagick<br>
> > > working again, using opencl-mesa. Using opencl-amd has been a<br>
> > > workaround for some people. Not sure if this is something mesa just<br>
> > > hasn't implemented that opencl-amd has, or if it's something<br>
> > > ImageMagick needs to do differently.<br>
> > <br>
> > Ping? Mesa + ImageMagick convert is broken, affecting lots of people,<br>
> > but neither project is saying anything.<br>
> <br>
> Sorry all, please reply to this post rather than the last. Copy-paste<br>
> failure of email addresses of people listed in mesa patch, fixed.<br>
<br>
sorry I missed the previous email. The issues has been discussed at<br>
[0].<br>
<br>
tldr; the referenced mesa commit prevents GPU hangs/crashes caused by<br>
changes in LLVM.<br>
<br>
longer story:<br>
AMDGPU llvm backend used to inline all function calls until llvm-6.<br>
llvm-6+ uses functions calls and issues relocations for each function<br>
invocation. unhandled relocations lead to GPU hangs/crashes.<br>
either clover/mesa needs to handle relocations, or LLVM needs to stop<br>
using relocations for internal symbols (they are not needed).<br>
<br>
I've neither time, nor energy, nor access to hw, to fix things up<br>
every time AMD changes break something in clover, and nobody else has<br>
stepped up.<br>
moreover, mesa made it clear that volunteer contributions and needs<br>
are inferior to corporate stakeholders (not even worth CI cycles).<br>
thus, clover on amd gpus is in damage mitigation mode; errors are<br>
better than crashes, crashes are better than hangs.<br>
<br>
Chances are that clover over NIR will work before the current issues<br>
are fixed.<br>
<br>
regards,<br>
Jan<br>
<br>
[0] <a href="https://bugs.freedesktop.org/show_bug.cgi?id=105113" rel="noreferrer noreferrer" target="_blank">https://bugs.freedesktop.org/show_bug.cgi?id=105113</a><br>
<br>
> _______________________________________________<br>
> mesa-dev mailing list<br>
> <a href="mailto:mesa-dev@lists.freedesktop.org" target="_blank" rel="noreferrer">mesa-dev@lists.freedesktop.org</a><br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
<br>
-- <br>
Jan Vesely <<a href="mailto:jan.vesely@rutgers.edu" target="_blank" rel="noreferrer">jan.vesely@rutgers.edu</a>><br>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org" target="_blank" rel="noreferrer">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/mesa-dev</a></blockquote></div>