<div dir="ltr">It worked!<br><br>gcc version 5.3.1 20160413 (Ubuntu 5.3.1-14ubuntu2)<br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-05-25 19:08 GMT+02:00 Jan Vesely <span dir="ltr"><<a href="mailto:jan.vesely@rutgers.edu" target="_blank">jan.vesely@rutgers.edu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
does the attached patch fix your problem?<br>
what compiler are you using?<br>
<br>
regards,<br>
Jan<br>
<div><div class="h5"><br>
On Wed, 2016-05-25 at 17:59 +0200, Jose Luis Cercós wrote:<br>
> Hi community!<br>
><br>
> I have a some kind of strange error. When I execute the test<br>
> tests/cl/api/get-device-ids.c, num_device_types is always zero<br>
> (please, not<br>
> that such variable should not depend on the hardware/drivers).<br>
><br>
> To check what is going on, I'm printing some variables:<br>
><br>
> env->version = 12<br>
> piglit_cl_device_type_num_1_0 = 0<br>
> piglit_cl_device_type_num_1_1 = 0<br>
> piglit_cl_device_type_num_1_2 = 0<br>
> num_device_types = 0<br>
><br>
> So it seems that piglit_cl_device_type_num_1_x variables have not be<br>
> set at<br>
> all. However, I checked that the test is linked against<br>
> lib/libpiglitutil.so.0.<br>
><br>
> I'm using the last git version from here (Ubuntu 15.10):<br>
> git://<a href="http://anongit.freedesktop.org/git/piglit" rel="noreferrer" target="_blank">anongit.freedesktop.org/git/piglit</a><br>
><br>
> I did not check other expansions of PIGLIT_CL_ENUM_NUM.<br>
><br>
> Any hint on what is going wrong will be welcomed.<br>
><br>
> Thanks!<br>
> Pepe<br>
</div></div>> _______________________________________________<br>
> Piglit mailing list<br>
> <a href="mailto:Piglit@lists.freedesktop.org">Piglit@lists.freedesktop.org</a><br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/piglit" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/piglit</a><br>
<span class="HOEnZb"><font color="#888888">--<br>
Jan Vesely <<a href="mailto:jan.vesely@rutgers.edu">jan.vesely@rutgers.edu</a>><br>
</font></span></blockquote></div><br></div>