Remove undesired conversions from size_t to int (#1180)

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

This change was missed in 5d7be40e (Remove undesired conversions from
size_t to int (#1153), 2021-02-11).

Signed-off-by: Marco Antognini <marco.antognini@arm.com>
This commit is contained in:
Marco Antognini
2021-03-09 09:09:10 +00:00
committed by GitHub
parent afe745f47e
commit 17632c9736

View File

@@ -31,7 +31,7 @@ static int BuildKernel(const char *name, int vectorSize, cl_kernel *k,
sizeNames[vectorSize],
"* in)\n"
"{\n"
" int i = get_global_id(0);\n"
" size_t i = get_global_id(0);\n"
" out[i] = ",
name,
"( in[i] );\n"