mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-25 16:29:03 +00:00
Select Correct -cl-std for ctz Tests Based on Driver (#917)
This commit is contained in:
@@ -84,11 +84,10 @@ int test_single_param_integer_kernel(cl_command_queue queue, cl_context context,
|
|||||||
useOpKernel ? fnName : "", useOpKernel ? "" : fnName, sizeName,
|
useOpKernel ? fnName : "", useOpKernel ? "" : fnName, sizeName,
|
||||||
sizeName );
|
sizeName );
|
||||||
|
|
||||||
bool isOpenCL20Function = (strcmp(fnName,"ctz") == 0)? true: false;
|
|
||||||
|
|
||||||
/* Create kernels */
|
/* Create kernels */
|
||||||
programPtr = kernelSource;
|
programPtr = kernelSource;
|
||||||
if( create_single_kernel_helper_with_build_options( context, &program, &kernel, 1, (const char **)&programPtr, "sample_test", isOpenCL20Function ? "-cl-std=CL2.0": "" ) )
|
if (create_single_kernel_helper(context, &program, &kernel, 1,
|
||||||
|
(const char **)&programPtr, "sample_test"))
|
||||||
{
|
{
|
||||||
log_error("The program we attempted to compile was: \n%s\n", kernelSource);
|
log_error("The program we attempted to compile was: \n%s\n", kernelSource);
|
||||||
return -1;
|
return -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user