New: CL_INVALID_BUILD_OPTIONS results in CL_INVALID_DEVICE when asking for build log
https://bugs.freedesktop.org/show_bug.cgi?id=70891
Priority: medium
Bug ID: 70891
Assignee: [email protected]
Summary: CL_INVALID_BUILD_OPTIONS results in CL_INVALID_DEVICE
when asking for build log
Severity: normal
Classification: Unclassified
OS: Linux (All)
Reporter: [email protected]
Hardware: x86-64 (AMD64)
Status: NEW
Version: git
Component: Drivers/Gallium/r600
Product: Mesa
When you use an invalid option to build a program, you get the CL_INVALID_BUILD_OPTIONS error, but somehow it also makes the device used for the build invalid. So if you after that asks for the build log with clGetProgramBuildInfo you get also a CL_INVALID_DEVICE.
Way to reproduce this bug:
1- Clone tstellard's repo of opencl-examples:
http://cgit.freedesktop.org/~tstellar/opencl-example/
2- Modify hello-world.c at line 112 to some invalid options.
3- Compile and run it, it fails at the clGetPrograBuildInfo some lines below.
Expected output:
Maybe an empty log and a CL_INVALID_BUILD_OPTIONS error.
This bug may make difficult to track problems because one may think that the device is wrong, when all that has happened is that he have used wrong build options.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 70891] CL_INVALID_BUILD_OPTIONS results in CL_INVALID_DEVICE when asking for build log
https://bugs.freedesktop.org/show_bug.cgi?id=70891
--- Comment #1 from Francisco Jerez <[email protected]> --- Created attachment 88156
--> https://bugs.freedesktop.org/attachment.cgi?id=88156&action=edit
clover_get_program_build_info_error_check.patch
The attached patch should help.
Thanks.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 70891] CL_INVALID_BUILD_OPTIONS results in CL_INVALID_DEVICE when asking for build log
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=70891
Francisco Jerez <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|[email protected] |[email protected] |.org |
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel