mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user