Use highest OpenCL C version (#1081)

* Set the highest supported OpenCL C version.

* Remove gDeviceLt20 variable - not used anymore.

* Fix formatting issues
This commit is contained in:
Grzegorz Wawiorko
2021-01-11 14:54:19 +01:00
committed by GitHub
parent f02cbad2e3
commit 2597027737
53 changed files with 247 additions and 165 deletions

View File

@@ -1,6 +1,6 @@
//
// Copyright (c) 2017 The Khronos Group Inc.
//
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
@@ -174,7 +174,9 @@ test_work_group_broadcast_1D(cl_device_id device, cl_context context, cl_command
int i;
MTdata d;
err = create_single_kernel_helper_with_build_options( context, &program, &kernel, 1, &wg_broadcast_1D_kernel_code, "test_wg_broadcast_1D", "-cl-std=CL2.0" );
err = create_single_kernel_helper(context, &program, &kernel, 1,
&wg_broadcast_1D_kernel_code,
"test_wg_broadcast_1D");
if (err)
return -1;
@@ -281,7 +283,9 @@ test_work_group_broadcast_2D(cl_device_id device, cl_context context, cl_command
int i;
MTdata d;
err = create_single_kernel_helper_with_build_options( context, &program, &kernel, 1, &wg_broadcast_2D_kernel_code, "test_wg_broadcast_2D", "-cl-std=CL2.0" );
err = create_single_kernel_helper(context, &program, &kernel, 1,
&wg_broadcast_2D_kernel_code,
"test_wg_broadcast_2D");
if (err)
return -1;
@@ -406,7 +410,9 @@ test_work_group_broadcast_3D(cl_device_id device, cl_context context, cl_command
int i;
MTdata d;
err = create_single_kernel_helper_with_build_options( context, &program, &kernel, 1, &wg_broadcast_3D_kernel_code, "test_wg_broadcast_3D", "-cl-std=CL2.0" );
err = create_single_kernel_helper(context, &program, &kernel, 1,
&wg_broadcast_3D_kernel_code,
"test_wg_broadcast_3D");
if (err)
return -1;