<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:SimSun;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:SimSun;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=ZH-CN link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;color:#1F497D'>Beignet currently only support ivb GT1 and GT2.  The support for baytrail is not complete yet.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;color:#1F497D'>You can try the first patch at beignet mail list:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;color:#1F497D'><a href="http://lists.freedesktop.org/archives/beignet/2014-April/002729.html">http://lists.freedesktop.org/archives/beignet/2014-April/002729.html</a><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;color:#1F497D'><o:p> </o:p></span></p><pre><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D'>If your baytrail board has the same device id as the above patch’s (</span><span lang=EN-US style='color:black'>0x0F31</span><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D'>), then it could fix the error you met.</span><span lang=EN-US style='color:black'><o:p></o:p></span></pre><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;color:#1F497D'>But it could not pass all the unit tests, we are investigating now.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;color:#1F497D'><o:p> </o:p></span></p><div style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt'><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US>From:</span></b><span lang=EN-US> linux-gfx-bounces@linux.intel.com [mailto:linux-gfx-bounces@linux.intel.com] <b>On Behalf Of </b>Tan, Wei Chong<br><b>Sent:</b> Thursday, April 10, 2014 5:30 PM<br><b>To:</b> linux-gfx@linux.intel.com<br><b>Subject:</b> [Linux-gfx] OpenCL clGetDeviceIDs error<o:p></o:p></span></p></div></div><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Hi,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>I just built a Beignet OpenCL, on a Baytrail platform following the steps in the foil here:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><a href="http://software.intel.com/sites/default/files/Create,%20Build%20Open%20CL-beignet.pdf">http://software.intel.com/sites/default/files/Create,%20Build%20Open%20CL-beignet.pdf</a><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>The build was smooth.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>I am also able to compile and link my test app against it, using the option below:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>clang++ -std=c++11 -g -o WrapperForOpenCL_Client-OpenCL.elf WrapperForOpenCL_Client.cpp WrapperForOpenCL.cpp -lOpenCL -lXext -lXfixes -lX11 –lpthread<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>or<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>clang++ -std=c++11 -g -o WrapperForOpenCL_Client-cl.elf WrapperForOpenCL_Client.cpp WrapperForOpenCL.cpp -L/usr/local/lib/beignet -lcl -lXext -lXfixes -lX11 –lpthread<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>However, when I try to run it, I get the below error:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>terminate called after throwing an instance of ‘cl::Error’<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>   what(): clGetDeviceIDS<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Aborted (core dumped)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Any guidance would be appreciated, thanks.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Regards,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Wei Chong.</span><span lang=EN-US><o:p></o:p></span></p></div></div></body></html>