From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 70891] New: CL_INVALID_BUILD_OPTIONS results in CL_INVALID_DEVICE when asking for build log Date: Sat, 26 Oct 2013 12:18:29 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0248548640==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 6A610E600A for ; Sat, 26 Oct 2013 05:18:29 -0700 (PDT) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0248548640== Content-Type: multipart/alternative; boundary="1382789909.Cfc20.4297"; charset="us-ascii" --1382789909.Cfc20.4297 Date: Sat, 26 Oct 2013 12:18:29 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=70891 Priority: medium Bug ID: 70891 Assignee: dri-devel@lists.freedesktop.org Summary: CL_INVALID_BUILD_OPTIONS results in CL_INVALID_DEVICE when asking for build log Severity: normal Classification: Unclassified OS: Linux (All) Reporter: brunojimen@gmail.com 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. -- You are receiving this mail because: You are the assignee for the bug. --1382789909.Cfc20.4297 Date: Sat, 26 Oct 2013 12:18:29 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"
Priority medium
Bug ID 70891
Assignee dri-devel@lists.freedesktop.org
Summary CL_INVALID_BUILD_OPTIONS results in CL_INVALID_DEVICE when asking for build log
Severity normal
Classification Unclassified
OS Linux (All)
Reporter brunojimen@gmail.com
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.


You are receiving this mail because:
  • You are the assignee for the bug.
--1382789909.Cfc20.4297-- --===============0248548640== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel --===============0248548640==--