mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-25 16:29:03 +00:00
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:
@@ -31,7 +31,7 @@ static int BuildKernel(const char *name, int vectorSize, cl_kernel *k,
|
|||||||
sizeNames[vectorSize],
|
sizeNames[vectorSize],
|
||||||
"* in)\n"
|
"* in)\n"
|
||||||
"{\n"
|
"{\n"
|
||||||
" int i = get_global_id(0);\n"
|
" size_t i = get_global_id(0);\n"
|
||||||
" out[i] = ",
|
" out[i] = ",
|
||||||
name,
|
name,
|
||||||
"( in[i] );\n"
|
"( in[i] );\n"
|
||||||
|
|||||||
Reference in New Issue
Block a user