[Beignet] [PATCH] Enable multiarch (32/64-bit co-installation)

Zhigang Gong zhigang.gong at linux.intel.com
Fri Feb 27 00:06:51 PST 2015


On Fri, Feb 27, 2015 at 08:22:17AM +0000, Rebecca N. Palmer wrote:
> >As to the multi-arch support for beignet, I assume the requirement is from
> >running 32-bit binary on a 64-bit system. Right?
> Yes.
> 
> >Then the 32bit application will call to ocl-icd to search available icd files.
> >I never test it and don't know whether the ocl-icd library will choose the
> >32bit beignet icd file rather than the 64 bit beignet icd file.
> >
> >On the other hand, if we are runing a 64 bit application, is there already a
> >mechanism to make sure it will get the 64-bit beignet icd file rather than
> >the 32-bit?
> dlopen() fails (with "wrong ELFCLASS") on trying to load a 32-bit
> library into a 64-bit application or vice versa, and ocl-icd skips
> over any ICDs returning such an error:
> http://sources.debian.net/src/ocl-icd/2.2.3-1/ocl_icd_loader.c/#L186
Ok, that make sense. I will push this patch latter.

Thanks.

> 
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/beignet


More information about the Beignet mailing list