<div dir="ltr">Sry, It's Ubuntu package bug, I reported it : <a href="https://bugs.launchpad.net/ubuntu/+source/beignet/+bug/1255323">https://bugs.launchpad.net/ubuntu/+source/beignet/+bug/1255323</a><div><br></div><div>
I tried master branch but I gave this knew error : <br><br><a href="http://lists.freedesktop.org/archives/beignet/2013-August/001302.html">http://lists.freedesktop.org/archives/beignet/2013-August/001302.html</a><br><br>and I switch to opencl 1.2 branch and I gave this :<br>
<br><div>/home/evil85/Development/beignet_opencl_1_2/src/intel/intel_dri_resource_sharing.c: In function ‘intel_get_gl_obj_from_texture’:</div><div>/home/evil85/Development/beignet_opencl_1_2/src/intel/intel_dri_resource_sharing.c:103:38: error: dereferencing pointer to incomplete type</div>
<div> obj = __mesa_lookup_texture(&intel->ctx, texture);</div><div> ^</div><div>/home/evil85/Development/beignet_opencl_1_2/src/intel/intel_dri_resource_sharing.c:109:42: error: dereferencing pointer to incomplete type</div>
<div> __mesa_test_texobj_completeness(&intel->ctx, obj);</div><div> ^</div><div>/home/evil85/Development/beignet_opencl_1_2/src/intel/intel_dri_resource_sharing.c: In function ‘intelAcquireTexture’:</div>
<div>/home/evil85/Development/beignet_opencl_1_2/src/intel/intel_dri_resource_sharing.c:145:4: warning: passing argument 2 of ‘intel_get_gl_obj_from_texture’ from incompatible pointer type [enabled by default]</div><div> obj = intel_get_gl_obj_from_texture(driver, intel, target, level, texture, face);</div>
<div> ^</div><div>/home/evil85/Development/beignet_opencl_1_2/src/intel/intel_dri_resource_sharing.c:96:1: note: expected ‘struct intel_context *’ but argument is of type ‘struct intel_context *’</div><div> intel_get_gl_obj_from_texture(void *driver,</div>
<div> ^</div><div>/home/evil85/Development/beignet_opencl_1_2/src/intel/intel_dri_resource_sharing.c:150:4: warning: passing argument 2 of ‘intel_setup_cl_region_from_mipmap_tree’ from incompatible pointer type [enabled by default]</div>
<div> return intel_setup_cl_region_from_mipmap_tree(driver, intel, iobj->mt, level, 0, region);</div><div> ^</div><div>/home/evil85/Development/beignet_opencl_1_2/src/intel/intel_dri_resource_sharing.c:52:1: note: expected ‘struct intel_context *’ but argument is of type ‘struct intel_context *’</div>
<div> intel_setup_cl_region_from_mipmap_tree(void *driver,</div><div> ^</div><div>/home/evil85/Development/beignet_opencl_1_2/src/intel/intel_dri_resource_sharing.c: In function ‘intelReleaseTexture’:</div><div>/home/evil85/Development/beignet_opencl_1_2/src/intel/intel_dri_resource_sharing.c:163:4: warning: passing argument 2 of ‘intel_get_gl_obj_from_texture’ from incompatible pointer type [enabled by default]</div>
<div> obj = intel_get_gl_obj_from_texture(driver, intel, target, level, texture, face);</div><div> ^</div><div>/home/evil85/Development/beignet_opencl_1_2/src/intel/intel_dri_resource_sharing.c:96:1: note: expected ‘struct intel_context *’ but argument is of type ‘struct intel_context *’</div>
<div> intel_get_gl_obj_from_texture(void *driver,</div><div> ^</div><div>make[2]: *** [src/CMakeFiles/cl.dir/intel/intel_dri_resource_sharing.c.o] Error 1</div><div>make[1]: *** [src/CMakeFiles/cl.dir/all] Error 2</div><div>
make: *** [all] Error 2</div></div><div><br></div><div><br></div><div>what is missing ?</div><div><br></div><div>I used this dependencies packages :<br><br>libdrm-dev 2.4.46+git20130910.58d00888-0ubuntu0sarvatt<br>
libdrm-intel1:amd64 2.4.46+git20130910.58d00888-0ubuntu0sarvatt<br></div><div><br></div><div>llvm 3.2 and clang 3.2</div><div><br></div><div>and mesa 9.2.1 </div><div><br></div><div>Thanks.</div></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">2013/11/26 Robert Jobbagy <span dir="ltr"><<a href="mailto:jobbagy.robert@gmail.com" target="_blank">jobbagy.robert@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi guys,<div><br></div><div>I use Ubuntu 13.10 with beignet 0.3 on IVB ( Intel HD 4000 ) and I used this opencl sample program : <span style="font-size:16px;white-space:pre-wrap;background-color:rgb(243,245,247);font-family:courier,monospace"><a href="https://codeload.github.com/hpc12/tools/tar.gz/master" target="_blank">https://codeload.github.com/hpc12/tools/tar.gz/master</a> </span></div>
<div><font color="#000000" face="courier, monospace" size="3"><span style="white-space:pre-wrap">from </span></font><a href="http://wiki.tiker.net/OpenCLHowTo" target="_blank">http://wiki.tiker.net/OpenCLHowTo</a><br><font color="#000000" face="courier, monospace" size="3">
<span style="white-space:pre-wrap">and gave this error :</span>
<span style="white-space:pre-wrap">fatal error: malformed or corrupted PCH file: 'could not find file '/build/buildd/beignet-0.3/obj-x86_64-linux-gnu/backend/src/ocl_stdlib.h' referenced by AST file'
1 error generated.
*** build of 'sum' on 'Intel HD Graphics Family' said:
*** (end of message)
*** 'clBuildProgram' in 'cl-helper.c' on line 470 failed with error 'invalid program'.
Aborted (core dumped)
</span></font><div><br><br>What can I do ? <br><br>Thanks your time.</div><span class="HOEnZb"><font color="#888888">-- <br>Best Regards,<br><br>Robert
</font></span></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Best Regards,<br><br>Robert
</div>