mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Dynamically select -cl-std Build Option for get_(global|local)_linear_id (#876)
* Dynamically select the build option `-cl-std` for the `get_(global|local)_linear_id()` builtin based on the device version of the driver.
This commit is contained in:
@@ -59,7 +59,8 @@ test_get_linear_ids(cl_device_id device, cl_context context, cl_command_queue qu
|
||||
|
||||
|
||||
// Create the kernel
|
||||
error = create_single_kernel_helper_with_build_options(context, &program, &kernel, 1, linear_ids_source, "test_linear_ids", "-cl-std=CL2.0");
|
||||
error = create_single_kernel_helper(context, &program, &kernel, 1,
|
||||
linear_ids_source, "test_linear_ids");
|
||||
if (error)
|
||||
return error;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user