[Mesa-dev] Error: unsupported relocations

Jan Vesely jan.vesely at rutgers.edu
Mon Jun 3 00:42:20 UTC 2019


On Mon, 2019-06-03 at 09:14 +1000, Dave Airlie wrote:
> On Mon, 3 Jun 2019 at 09:13, Dave Airlie <airlied at gmail.com> wrote:
> > On Sun, 2 Jun 2019 at 23:13, Jan Vesely <jan.vesely at rutgers.edu> wrote:
> > > On Sun, 2019-06-02 at 07:17 -0400, James Harvey wrote:
> > > > On Sun, Jun 2, 2019 at 7:01 AM Bas Nieuwenhuizen
> > > > <bas at basnieuwenhuizen.nl> wrote:
> > > > > On Sun, Jun 2, 2019 at 12:41 PM James Harvey <jamespharvey20 at gmail.com> wrote:
> > > > > > So, for people running amdgpu and wanting to run ImageMagick convert
> > > > > > who get this error... Does this mean there is something ImageMagick
> > > > > > could change to prevent the error?  Or, in the meantime, is the only
> > > > > > option to install the amdgpu-pro opencl userspace driver with
> > > > > > ImageMagick?  (The pro opencl driver can be extracted from amdgpu-pro
> > > > > > as a whole, and ran on top of the free amdgpu driver., without the
> > > > > > rest of amdgpu-pro installed - see Arch Linux AUR package opencl-amd.)
> > > > > 
> > > > > So, does imagemagick actually need OpenCL? If not, you can probably
> > > > > also uninstall you mesa opencl distro package?
> > > > 
> > > > The mesa opencl package works fine on other programs for me and
> > > > others, so uninstalling isn't an option.  Not sure actually without
> > > > any OpenCL if it does it a different way or not.  ImageMagick must be
> > > > all that's trying to call something problematic.
> > > 
> > > It's basically any function call that was not inlined. It might even
> > > be in a different kernel in the same module.
> > > 
> > > Recent mesa requires some kind of ICD loader to provide opencl. if
> > > your distro uses ocl-icd package to provide ICD loader, you can use
> > > OCL_ICD_VENDORS env var to select ICD drivers.
> > > 
> > > something like 'OCD_ICD_VENDORS=/var/empty' (any directory other than
> > > /etc/OpenCL/vendors will do) effectively disables OpenCL by reporting
> > > 0 available platforms.
> > 
> > It looks like an llvm8 not inlining everything properly bug.
> > 
> > with llvm9 I just get a gpu hang when it does inline everything, but
> > with 8 it fails to inline applyResizeFilter.
> > 
> > llvm8 or some command line option passed to it might need a fix.
> 
> Uggh changing the original CL C code in ImageMagic to static inline "fixes" it.

sounds a bit like https://reviews.llvm.org/D62707. static inline
function might be internalized/marked alwaysinline. CLOVER_DEBUG=llvm
would tell more.
I'm not sure why it'd produce GPU hangs. It might be a llvm-git bug,
my daily testing only covers CL piglits.

Jan
> 
> Dave.
> 
> > Dave.
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev

-- 
Jan Vesely <jan.vesely at rutgers.edu>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20190602/e247197f/attachment.sig>


More information about the mesa-dev mailing list