[Piglit] PIGLIT_CL_ENUM_NUM(cl_device_type, env->version) return zero
Jan Vesely
jan.vesely at rutgers.edu
Wed May 25 17:08:57 UTC 2016
Hi,
does the attached patch fix your problem?
what compiler are you using?
regards,
Jan
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 --------------
A non-text attachment was scrubbed...
Name: 0001-cl-declare-enum-counts-as-extern.patch
Type: text/x-patch
Size: 1262 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/piglit/attachments/20160525/4c469236/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/piglit/attachments/20160525/4c469236/attachment.sig>
More information about the Piglit
mailing list