Remove undesired conversions from size_t to int (#1153)

Improve math_brute_force kernels by consistently using size_t to store
the result of get_global_id().

Signed-off-by: Marco Antognini <marco.antognini@arm.com>
This commit is contained in:
Marco Antognini
2021-02-11 11:37:38 +00:00
committed by GitHub
parent 87a1525d53
commit 5d7be40e68
12 changed files with 23 additions and 23 deletions

View File

@@ -38,7 +38,7 @@ static int BuildKernel(const char *name, int vectorSize, cl_uint kernel_count,
sizeNames[vectorSize],
"* in2 )\n"
"{\n"
" int i = get_global_id(0);\n"
" size_t i = get_global_id(0);\n"
" out[i] = ",
name,
"( in1[i], in2[i] );\n"
@@ -125,7 +125,7 @@ static int BuildKernelDouble(const char *name, int vectorSize,
sizeNames[vectorSize],
"* in2 )\n"
"{\n"
" int i = get_global_id(0);\n"
" size_t i = get_global_id(0);\n"
" out[i] = ",
name,
"( in1[i], in2[i] );\n"