clover: Check for executables before enqueueing a kernel
authorPierre Moreau <pierre.morrow@free.fr>
Thu, 29 Dec 2016 23:29:20 +0000 (00:29 +0100)
committerFrancisco Jerez <currojerez@riseup.net>
Thu, 12 Jan 2017 00:50:56 +0000 (16:50 -0800)
commit4e0d171d7eb6accbf8f381530eedbc9ff86b54fb
tree1fe1b0f84252a025284c886d3626fb4f7e2a9135
parentc17b2f572449e66a035ffb7be9dc833f6d80aac5
clover: Check for executables before enqueueing a kernel

Without this check, the kernel::bind() method would fail with a
std::out_of_range exception, letting an exception escape from the
library into the client, rather than returning the corresponding error
code CL_INVALID_PROGRAM_EXECUTABLE.

Signed-off-by: Pierre Moreau <pierre.morrow@free.fr>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/gallium/state_trackers/clover/api/kernel.cpp