mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
math_brute_force: don't get build log after clCreateKernel (#1722)
The OpenCL specification states that the build log is only for clBuildProgram, clCompileProgram or clLinkProgram. Calling it after clCreateKernel should not give any additional information, so this is effectively dead code. In case building failed, any logs would already have been printed by create_single_kernel_helper. Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
This commit is contained in:
committed by
GitHub
parent
d223e46f20
commit
b23268acf5
@@ -591,14 +591,6 @@ cl_int BuildKernels(BuildKernelInfo &info, cl_uint job_id,
|
||||
if (!kernel || error != CL_SUCCESS)
|
||||
{
|
||||
vlog_error("\t\tFAILED -- clCreateKernel() failed: (%d)\n", error);
|
||||
size_t log_size;
|
||||
clGetProgramBuildInfo(program, gDevice, CL_PROGRAM_BUILD_LOG, 0,
|
||||
nullptr, &log_size);
|
||||
std::string buffer;
|
||||
buffer.resize(log_size + 1);
|
||||
clGetProgramBuildInfo(program, gDevice, CL_PROGRAM_BUILD_LOG,
|
||||
log_size, &buffer[0], NULL);
|
||||
vlog_error("Log: %s\n", buffer.c_str());
|
||||
return error;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user