<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>I found this problem when I try to build beignet in static way. I changed CMakeList.txt and libcl.a, libgbeinterp.a and libgbe.a generated succcessfully, but these static libraries will not work if you try to link them to your program.</div><div><br></div><div>The reason I found is in src/cl_driver.cpp in which an unused static variable was declared, but it will be optimized, so intel driver function pointer will not be inittialized.</div><div><br></div><div>Also, the problem exists for compiler callback init.</div><div><br></div><div>I try to offer patches, but I found no place to call these callback functions. </div><div><br></div><div><br></div></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"><span title="neteasefooter"><span id="netease_mail_footer"><a href="#" target="_blank"></a></span></span>
</span></span>