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
_______________________________________________
Beignet mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/beignet