mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-25 00:09:02 +00:00
Fix implicit int->float warning inside kernel (#1093)
* Fix implicit int->float warning inside kernel This kernel is used to test various compiler options including -Werror. Some compilers produce a warning about the implicit conversion which results in this test failing when -Werror is used. * Fix formatting
This commit is contained in:
@@ -43,11 +43,12 @@ const char *include_test_kernel[] = {
|
|||||||
"}\n" };
|
"}\n" };
|
||||||
|
|
||||||
const char *options_test_kernel[] = {
|
const char *options_test_kernel[] = {
|
||||||
"__kernel void sample_test(__global float *src, __global int *dst)\n"
|
"__kernel void sample_test(__global float *src, __global int *dst)\n"
|
||||||
"{\n"
|
"{\n"
|
||||||
" size_t tid = get_global_id(0);\n"
|
" size_t tid = get_global_id(0);\n"
|
||||||
" dst[tid] = src[tid];\n"
|
" dst[tid] = (int)src[tid];\n"
|
||||||
"}\n" };
|
"}\n"
|
||||||
|
};
|
||||||
|
|
||||||
const char *optimization_options[] = {
|
const char *optimization_options[] = {
|
||||||
"-cl-single-precision-constant",
|
"-cl-single-precision-constant",
|
||||||
|
|||||||
Reference in New Issue
Block a user