dev-libs/beignet installs two .icd files, making one gpu appear as two separate devices. equery f beignet | grep .icd /etc/OpenCL/vendors/beignet-amd64.icd /etc/OpenCL/vendors/intel-beignet.icd beignet-amd64.icd is installed by ebuild, intel-beignet.icd is part of the package. Please remove one of those from installation
Created attachment 453722 [details, diff] Proposed patch Adding the attached patch to $PATCHES fixes the issue. Not sure if it is the cleanest solution.
Thanks for the report! I've just committed (3677ef1db84606d689bea66d9212ed2cd3346d62) a fix. Please note that setting USE=ocl-icd is now required to enable Beignet compatibility with dev-libs/ocl-icd - formerly it was automagically enabled if the latter was found and disabled otherwise.