mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +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" };
|
||||
|
||||
const char *options_test_kernel[] = {
|
||||
"__kernel void sample_test(__global float *src, __global int *dst)\n"
|
||||
"{\n"
|
||||
" size_t tid = get_global_id(0);\n"
|
||||
" dst[tid] = src[tid];\n"
|
||||
"}\n" };
|
||||
"__kernel void sample_test(__global float *src, __global int *dst)\n"
|
||||
"{\n"
|
||||
" size_t tid = get_global_id(0);\n"
|
||||
" dst[tid] = (int)src[tid];\n"
|
||||
"}\n"
|
||||
};
|
||||
|
||||
const char *optimization_options[] = {
|
||||
"-cl-single-precision-constant",
|
||||
|
||||
Reference in New Issue
Block a user