Closed kiritigowda closed 5 years ago
@LakshmiKumar23 & @hansely can you look at these warnings on 18.04?
ROCm will end support for Ubuntu 16.04, our primary linux distribution will be 18.04 in the up comming releases.
[ 15%] Building CXX object amd_openvx/openvx/CMakeFiles/openvx.dir/ago/ago_kernel_api.cpp.o
/home/kiriti/MIVisionX/MIVisionX/amd_openvx/openvx/ago/ago_kernel_api.cpp: In function ‘int agoKernel_AbsDiff_S16_S16S16_Sat(_vx_node*, AgoKernelCommand)’:
/home/kiriti/MIVisionX/MIVisionX/amd_openvx/openvx/ago/ago_kernel_api.cpp:8040:5: warning: ‘%s’ directive writing up to 255 bytes into a region of size 120 [-Wformat-overflow=]
int agoKernel_AbsDiff_S16_S16S16_Sat(AgoNode * node, AgoKernelCommand cmd)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/kiriti/MIVisionX/MIVisionX/amd_openvx/openvx/ago/ago_kernel_api.cpp:8040:5: note: using the range [-2147483648, 2147483647] for directive argument
In file included from /usr/include/stdio.h:862:0,
from /home/kiriti/MIVisionX/MIVisionX/amd_openvx/openvx/ago/ago_platform.h:37,
from /home/kiriti/MIVisionX/MIVisionX/amd_openvx/openvx/ago/ago_internal.h:27,
from /home/kiriti/MIVisionX/MIVisionX/amd_openvx/openvx/ago/ago_kernel_api.cpp:24:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:34:43: note: ‘__builtin___sprintf_chk’ output between 58 and 323 bytes into a destination of size 128
__bos (__s), __fmt, __va_arg_pack ());
^
/home/kiriti/MIVisionX/MIVisionX/amd_openvx/openvx/ago/ago_kernel_api.cpp:8040:5: warning: ‘%s’ directive writing up to 255 bytes into a region of size 120 [-Wformat-overflow=]
int agoKernel_AbsDiff_S16_S16S16_Sat(AgoNode * node, AgoKernelCommand cmd)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/kiriti/MIVisionX/MIVisionX/amd_openvx/openvx/ago/ago_kernel_api.cpp:8040:5: note: using the range [-2147483648, 2147483647] for directive argument
In file included from /usr/include/stdio.h:862:0,
from /home/kiriti/MIVisionX/MIVisionX/amd_openvx/openvx/ago/ago_platform.h:37,
from /home/kiriti/MIVisionX/MIVisionX/amd_openvx/openvx/ago/ago_internal.h:27,
from /home/kiriti/MIVisionX/MIVisionX/amd_openvx/openvx/ago/ago_kernel_api.cpp:24:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:34:43: note: ‘__builtin___sprintf_chk’ output between 58 and 323 bytes into a destination of size 128
__bos (__s), __fmt, __va_arg_pack ());
^
/home/kiriti/MIVisionX/MIVisionX/amd_openvx/openvx/ago/ago_kernel_api.cpp:8040:5: warning: ‘%s’ directive writing up to 255 bytes into a region of size 120 [-Wformat-overflow=]
int agoKernel_AbsDiff_S16_S16S16_Sat(AgoNode * node, AgoKernelCommand cmd)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/stdio.h:862:0,
from /home/kiriti/MIVisionX/MIVisionX/amd_openvx/openvx/ago/ago_platform.h:37,
from /home/kiriti/MIVisionX/MIVisionX/amd_openvx/openvx/ago/ago_internal.h:27,
from /home/kiriti/MIVisionX/MIVisionX/amd_openvx/openvx/ago/ago_kernel_api.cpp:24:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:34:43: note: ‘__builtin___sprintf_chk’ output between 53 and 308 bytes into a destination of size 128
__bos (__s), __fmt, __va_arg_pack ());
^
/home/kiriti/MIVisionX/MIVisionX/amd_openvx/openvx/ago/ago_kernel_api.cpp: In function ‘int agoKernel_Magnitude_S16_S16S16(_vx_node*, AgoKernelCommand)’:
/home/kiriti/MIVisionX/MIVisionX/amd_openvx/openvx/ago/ago_kernel_api.cpp:8605:5: warning: ‘ (S16x8 * p0, S16x8 p1, S16x8 p2)
{
S16x8 r;
float2 f;
f.s0 = (float)((((int)(p1.s0)) << 16) >> 16); f.s1 = (float)((((int)(p2.s0)) << 16) >> 16); f.s0 *= f.s0; f.s0 = mad(f.s1, f.s1, f.s0); f.s0 = native_sqrt(f.s0); f.s0 = min(f.s0 + 0.5f, 32767.0f); r.s0 = (uint)(f.s0);
f.s0 = (float)(( (int)(p1.s0)) >> 16); f.s1 = (float)(( (int)(p2.s0)) >> 16); f.s0 *= f.s0; f.s0 = mad(f.s1, f.s1, f.s0); f.s0 = native_sqrt(f.s0); f.s0 = min(f.s0 + 0.5f, 32767.0f); r.s0 |= (uint)(f.s0) << 16;
f.s0 = (float)((((int)(p1.s1)) << 16) >> 16); f.s1 = (float)((((int)(p2.s1)) << 16) >> 16); f.s0 *= f.s0; f.s0 = mad(f.s1, f.s1, f.s0); f.s0 = native_sqrt(f.s0); f.s0 = min(f.s0 + 0.5f, 32767.0f); r.s1 = (uint)(f.s0);
f.s0 = (float)(( (int)(p1.s1)) >> 16); f.s1 = (float)(( (int)(p2.s1)) >> 16); f.s0 *= f.s0; f.s0 = mad(f.s1, f.s1, f.s0); f.s0 = native_sqrt(f.s0); f.s0 = min(f.s0 + 0.5f, 32767.0f); r.s1 |= (uint)(f.s0) << 16;
f.s0 = (float)((((int)(p1.s2)) << 16) >> 16); f.s1 = (float)((((int)(p2.s2)) << 16) >> 16); f.s0 *= f.s0; f.s0 = mad(f.s1, f.s1, f.s0); f.s0 = native_sqrt(f.s0); f.s0 = min(f.s0 + 0.5f, 32767.0f); r.s2 = (uint)(f.s0);
f.s0 = (float)(( (int)(p1.s2)) >> 16); f.s1 = (float)(( (int)(p2.s2)) >> 16); f.s0 *= f.s0; f.s0 = mad(f.s1, f.s1, f.s0); f.s0 = native_sqrt(f.s0); f.s0 = min(f.s0 + 0.5f, 32767.0f); r.s2 |= (uint)(f.s0) << 16;
f.s0 = (float)((((int)(p1.s3)) << 16) >> 16); f.s1 = (float)((((int)(p2.s3)) << 16) >> 16); f.s0 *= f.s0; f.s0 = mad(f.s1, f.s1, f.s0); f.s0 = native_sqrt(f.s0); f.s0 = min(f.s0 + 0.5f, 32767.0f); r.s3 = (uint)(f.s0);
f.s0 = (float)(( (int)(p1.s3)) >> 16); f.s1 = (float)(( (int)(p2.s3)) >> 16); f.s0 *= f.s0; f.s0 = mad(f.s1, f.s1, f.s0); f.s0 = native_sqrt(f.s0); f.s0 = min(f.s0 + 0.5f, 32767.0f); r.s3 |= (uint)(f.s0) << 16;
*p0 = r;
}
’ directive writing 1864 bytes into a region of size between 1788 and 2043 [-Wformat-overflow=]
int agoKernel_Magnitude_S16_S16S16(AgoNode * node, AgoKernelCommand cmd)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/stdio.h:862:0,
from /home/kiriti/MIVisionX/MIVisionX/amd_openvx/openvx/ago/ago_platform.h:37,
from /home/kiriti/MIVisionX/MIVisionX/amd_openvx/openvx/ago/ago_internal.h:27,
from /home/kiriti/MIVisionX/MIVisionX/amd_openvx/openvx/ago/ago_kernel_api.cpp:24:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:34:43: note: ‘__builtin___sprintf_chk’ output between 1870 and 2125 bytes into a destination of size 2048
__bos (__s), __fmt, __va_arg_pack ());
* amd_openvx/openvx/ago/ago_util_opencl.cpp
[ 17%] Building CXX object amd_openvx/openvx/CMakeFiles/openvx.dir/ago/ago_util_opencl.cpp.o
/home/kiriti/MIVisionX/MIVisionX/amd_openvx/openvx/ago/ago_util_opencl.cpp: In function ‘int agoGpuOclSuperNodeFinalize(_vx_graph, AgoSuperNode)’:
/home/kiriti/MIVisionX/MIVisionX/amd_openvx/openvx/ago/ago_util_opencl.cpp:1566:5: warning: ‘%s’ directive writing up to 255 bytes into a region of size 251 [-Wformat-overflow=]
int agoGpuOclSuperNodeFinalize(AgoGraph graph, AgoSuperNode supernode)
^~~~~~
In file included from /usr/include/stdio.h:862:0,
from /home/kiriti/MIVisionX/MIVisionX/amd_openvx/openvx/ago/ago_platform.h:37,
from /home/kiriti/MIVisionX/MIVisionX/amd_openvx/openvx/ago/ago_internal.h:27,
from /home/kiriti/MIVisionX/MIVisionX/amd_openvx/openvx/ago/ago_util_opencl.cpp:24:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:34:43: note: ‘builtin___sprintf_chk’ output between 7 and 262 bytes into a destination of size 256
bos (s), fmt, va_arg_pack ());
^
/home/kiriti/MIVisionX/MIVisionX/amd_openvx/openvx/ago/ago_util_opencl.cpp:1566:5: warning: ‘%s’ directive writing up to 255 bytes into a region of size 254 [-Wformat-overflow=]
int agoGpuOclSuperNodeFinalize(AgoGraph graph, AgoSuperNode supernode)
^~~~~~
In file included from /usr/include/stdio.h:862:0,
from /home/kiriti/MIVisionX/MIVisionX/amd_openvx/openvx/ago/ago_platform.h:37,
from /home/kiriti/MIVisionX/MIVisionX/amd_openvx/openvx/ago/ago_internal.h:27,
from /home/kiriti/MIVisionX/MIVisionX/amd_openvx/openvx/ago/ago_util_opencl.cpp:24:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:34:43: note: ‘_builtinsprintf_chk’ output between 4 and 259 bytes into a destination of size 256
bos (s), fmt, va_arg_pack ());
^
* apps/cloud_inference/server_app/compiler.cpp
[ 83%] Building CXX object apps/cloud_inference/server_app/CMakeFiles/inference_server_app.dir/compiler.cpp.o
/home/kiriti/MIVisionX/MIVisionX/apps/cloud_inference/server_app/compiler.cpp: In function ‘int runCompiler(int, Arguments, std::__cxx11::string&, InfComCommand)’:
/home/kiriti/MIVisionX/MIVisionX/apps/cloud_inference/server_app/compiler.cpp:6:5: warning: ‘python nnir-update.py fuse-ops 1 <--convert-fp16 1> nnir-output nnir-output_1 completed (’ directive writing 89 bytes into a region of size 64 [-Wformat-overflow=]
int runCompiler(int sock, Arguments args, std::string& clientName, InfComCommand cmdMode)
^~~
In file included from /usr/include/stdio.h:862:0,
from /usr/include/c++/7/cstdio:42,
from /usr/include/c++/7/ext/string_conversions.h:43,
from /usr/include/c++/7/bits/basic_string.h:6361,
from /usr/include/c++/7/string:52,
from /home/kiriti/MIVisionX/MIVisionX/apps/cloud_inference/server_app/arguments.h:6,
from /home/kiriti/MIVisionX/MIVisionX/apps/cloud_inference/server_app/compiler.h:4,
from /home/kiriti/MIVisionX/MIVisionX/apps/cloud_inference/server_app/compiler.cpp:1:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:34:43: note: ‘builtin___sprintf_chk’ output between 92 and 102 bytes into a destination of size 64
bos (s), fmt, __va_arg_pack ());
^
PR #104
[ 0%] Running C++ protocol buffer compiler on proto/caffe.proto Scanning dependencies of target runcl Scanning dependencies of target openvx Scanning dependencies of target nnef2openvx [ 1%] Building CXX object amd_openvx_extensions/amd_nn/bin/CMakeFiles/nnef2openvx.dir/src/nnef2openvx.cpp.o Scanning dependencies of target caffe2openvx [ 2%] Building CXX object utilities/runcl/CMakeFiles/runcl.dir/runcl.cpp.o [ 2%] Building CXX object amd_openvx_extensions/amd_nn/bin/CMakeFiles/caffe2openvx.dir/caffe.pb.cc.o [ 3%] Building CXX object amd_openvx_extensions/amd_nn/bin/CMakeFiles/caffe2openvx.dir/src/caffe2openvx.cpp.o [ 4%] Building CXX object amd_openvx/openvx/CMakeFiles/openvx.dir/ago/ago_drama_analyze.cpp.o [ 4%] Building CXX object amd_openvx/openvx/CMakeFiles/openvx.dir/ago/ago_drama_alloc.cpp.o [ 4%] Building CXX object amd_openvx/openvx/CMakeFiles/openvx.dir/ago/ago_drama.cpp.o [ 5%] Building CXX object amd_openvx/openvx/CMakeFiles/openvx.dir/ago/ago_drama_divide.cpp.o [ 5%] Linking CXX executable ../../bin/runcl [ 5%] Built target runcl [ 5%] Building CXX object amd_openvx/openvx/CMakeFiles/openvx.dir/ago/ago_drama_merge.cpp.o [ 6%] Building CXX object amd_openvx/openvx/CMakeFiles/openvx.dir/ago/ago_drama_remove.cpp.o [ 6%] Building CXX object amd_openvx/openvx/CMakeFiles/openvx.dir/ago/ago_haf_cpu.cpp.o [ 7%] Building CXX object amd_openvx/openvx/CMakeFiles/openvx.dir/ago/ago_haf_cpu_arithmetic.cpp.o [ 7%] Building CXX object amd_openvx/openvx/CMakeFiles/openvx.dir/ago/ago_haf_cpu_canny.cpp.o [ 8%] Building CXX object amd_openvx/openvx/CMakeFiles/openvx.dir/ago/ago_haf_cpu_ch_extract_combine.cpp.o [ 9%] Building CXX object amd_openvx/openvx/CMakeFiles/openvx.dir/ago/ago_haf_cpu_color_convert.cpp.o [ 9%] Building CXX object amd_openvx/openvx/CMakeFiles/openvx.dir/ago/ago_haf_cpu_fast_corners.cpp.o [ 10%] Building CXX object amd_openvx/openvx/CMakeFiles/openvx.dir/ago/ago_haf_cpu_filter.cpp.o [ 10%] Building CXX object amd_openvx/openvx/CMakeFiles/openvx.dir/ago/ago_haf_cpu_geometric.cpp.o [ 11%] Building CXX object amd_openvx/openvx/CMakeFiles/openvx.dir/ago/ago_haf_cpu_harris.cpp.o [ 11%] Building CXX object amd_openvx/openvx/CMakeFiles/openvx.dir/ago/ago_haf_cpu_histogram.cpp.o [ 12%] Building CXX object amd_openvx/openvx/CMakeFiles/openvx.dir/ago/ago_haf_cpu_logical.cpp.o [ 12%] Building CXX object amd_openvx/openvx/CMakeFiles/openvx.dir/ago/ago_haf_cpu_opticalflow.cpp.o [ 13%] Linking CXX executable ../../../bin/nnef2openvx [ 14%] Building CXX object amd_openvx/openvx/CMakeFiles/openvx.dir/ago/ago_haf_cpu_pyramid.cpp.o [ 14%] Building CXX object amd_openvx/openvx/CMakeFiles/openvx.dir/ago/ago_haf_gpu_common.cpp.o [ 14%] Built target nnef2openvx [ 15%] Building CXX object amd_openvx/openvx/CMakeFiles/openvx.dir/ago/ago_haf_gpu_corners.cpp.o [ 16%] Building CXX object amd_openvx/openvx/CMakeFiles/openvx.dir/ago/ago_haf_gpu_conversion.cpp.o [ 16%] Building CXX object amd_openvx/openvx/CMakeFiles/openvx.dir/ago/ago_haf_gpu_linear_filter.cpp.o [ 17%] Building CXX object amd_openvx/openvx/CMakeFiles/openvx.dir/ago/ago_haf_gpu_special_filters.cpp.o [ 17%] Building CXX object amd_openvx/openvx/CMakeFiles/openvx.dir/ago/ago_interface.cpp.o [ 18%] Building CXX object amd_openvx/openvx/CMakeFiles/openvx.dir/ago/ago_kernel_api.cpp.o [ 18%] Building CXX object amd_openvx/openvx/CMakeFiles/openvx.dir/ago/ago_kernel_list.cpp.o [ 19%] Building CXX object amd_openvx/openvx/CMakeFiles/openvx.dir/ago/ago_platform.cpp.o [ 19%] Building CXX object amd_openvx/openvx/CMakeFiles/openvx.dir/ago/ago_util.cpp.o [ 20%] Building CXX object amd_openvx/openvx/CMakeFiles/openvx.dir/ago/ago_util_opencl.cpp.o [ 20%] Building CXX object amd_openvx/openvx/CMakeFiles/openvx.dir/api/vxu.cpp.o [ 21%] Building CXX object amd_openvx/openvx/CMakeFiles/openvx.dir/api/vx_api.cpp.o [ 22%] Linking CXX executable ../../../bin/caffe2openvx /root/MIVisionX/amd_openvx/openvx/ago/ago_kernel_api.cpp: In function 'int agoKernel_AbsDiff_S16_S16S16_Sat(_vx_node, AgoKernelCommand)': /root/MIVisionX/amd_openvx/openvx/ago/ago_kernel_api.cpp:8040:5: warning: '%s' directive writing up to 255 bytes into a region of size 120 [-Wformat-overflow=] int agoKernel_AbsDiff_S16_S16S16_Sat(AgoNode node, AgoKernelCommand cmd) ^
~~~~~~~ /root/MIVisionX/amd_openvx/openvx/ago/ago_kernel_api.cpp:8040:5: note: using the range [-2147483648, 2147483647] for directive argument /root/MIVisionX/amd_openvx/openvx/ago/ago_kernel_api.cpp:8069:11: note: 'sprintf' output between 58 and 323 bytes into a destination of size 128 sprintf(item, "#define %s(p0,p1) AbsDiff_S16_S16S16_Sat(p0,p1,(S16x8)(%d))\n", node->opencl_name, (int)iImg1->u.img.uniform[0]);[ 23%] Building CXX object amd_openvx/openvx/CMakeFiles/openvx.dir/api/vx_nodes.cpp.o [ 23%] Built target caffe2openvx /root/MIVisionX/amd_openvx/openvx/ago/ago_util_opencl.cpp: In function 'int agoGpuOclSuperNodeFinalize(_vx_graph, AgoSuperNode)': /root/MIVisionX/amd_openvx/openvx/ago/ago_util_opencl.cpp:1566:5: warning: '%s' directive writing up to 255 bytes into a region of size 251 [-Wformat-overflow=] int agoGpuOclSuperNodeFinalize(AgoGraph graph, AgoSuperNode supernode) ^
~~~~~/root/MIVisionX/amd_openvx/openvx/ago/ago_util_opencl.cpp:1753:11: note: 'sprintf' output between 7 and 262 bytes into a destination of size 256 sprintf(item, "void %s(", node->opencl_name); code2 = item;