[Piglit] PIGLIT_CL_ENUM_NUM(cl_device_type, env->version) return zero
Jose Luis Cercós
jlcercos at gmail.com
Wed May 25 19:24:58 UTC 2016
gcc version 5.3.1 20160413 (Ubuntu 5.3.1-14ubuntu2)
2016-05-25 19:08 GMT+02:00 Jan Vesely <jan.vesely at rutgers.edu>:
> does the attached patch fix your problem?
> what compiler are you using?
> On Wed, 2016-05-25 at 17:59 +0200, Jose Luis Cercós wrote:
> > Hi community!
> > I have a some kind of strange error. When I execute the test
> > tests/cl/api/get-device-ids.c, num_device_types is always zero
> > (please, not
> > that such variable should not depend on the hardware/drivers).
> > To check what is going on, I'm printing some variables:
> > env->version = 12
> > piglit_cl_device_type_num_1_0 = 0
> > piglit_cl_device_type_num_1_1 = 0
> > piglit_cl_device_type_num_1_2 = 0
> > num_device_types = 0
> > So it seems that piglit_cl_device_type_num_1_x variables have not be
> > set at
> > all. However, I checked that the test is linked against
> > lib/libpiglitutil.so.0.
> > I'm using the last git version from here (Ubuntu 15.10):
> > git://anongit.freedesktop.org/git/piglit
> > I did not check other expansions of PIGLIT_CL_ENUM_NUM.
> > Any hint on what is going wrong will be welcomed.
> > Thanks!
> > Pepe
> > _______________________________________________
> > Piglit mailing list
> > Piglit at lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/piglit
> Jan Vesely <jan.vesely at rutgers.edu>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Piglit