Select Correct -cl-std for ctz Tests Based on Driver (#917)

This commit is contained in:
Jack Frankland
2020-09-01 00:13:02 +02:00
committed by GitHub
parent 1e411b888f
commit 3cc9c2c579

View File

@@ -84,11 +84,10 @@ int test_single_param_integer_kernel(cl_command_queue queue, cl_context context,
useOpKernel ? fnName : "", useOpKernel ? "" : fnName, sizeName,
sizeName );
bool isOpenCL20Function = (strcmp(fnName,"ctz") == 0)? true: false;
/* Create kernels */
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);
return -1;