ROCm / MIVisionX

MIVisionX toolkit is a set of comprehensive computer vision and machine intelligence libraries, utilities, and applications bundled into a single toolkit. AMD MIVisionX also delivers a highly optimized open-source implementation of the Khronos OpenVX™ and OpenVX™ Extensions.
https://rocm.docs.amd.com/projects/MIVisionX/en/latest/
MIT License
186 stars 74 forks source link

OpenVX - HIP Backend: centos8 && gfx1030 Build Failure #907

Closed kiritigowda closed 2 years ago

kiritigowda commented 2 years ago

Build Failure -- review log - http://math-ci.rocm.amd.com/blue/organizations/jenkins/compute-rocm-dkms-no-npi-hipclang%2FShort-GPUOpen%2FMIVisionX/detail/master/371/pipeline/2082

-- The C compiler identification is GNU 8.5.0
-- The CXX compiler identification is Clang 14.0.0
make[2]: *** No rule to make target 'amd_openvx/openvx/hipvx/CMakeFiles/openvx_hip.dir/color_kernels.cpp.o', needed by 'lib/libopenvx.so'.  Stop.
make[2]: *** Waiting for unfinished jobs....
[ 32%] Building CXX object amd_openvx/openvx/CMakeFiles/openvx.dir/api/vx_nodes.cpp.o
[ 32%] Built target openvx_hip
/var/jenkins_home/workspace/g_Short-GPUOpen_MIVisionX_master/qWbLATVJo/HIP/mivisionx/amd_openvx/openvx/ago/ago_drama_alloc.cpp:764:141: warning: result of comparison of constant 2 with expression of type 'vx_direction_e' is always false [-Wtautological-constant-out-of-range-compare]
                    if (it == superNodeInfo->inputList.end() && (node->parameters[i].direction == VX_INPUT || node->parameters[i].direction == VX_BIDIRECTIONAL))
                                                                                                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~
/var/jenkins_home/workspace/g_Short-GPUOpen_MIVisionX_master/qWbLATVJo/HIP/mivisionx/amd_openvx/openvx/ago/ago_drama_alloc.cpp:767:143: warning: result of comparison of constant 2 with expression of type 'vx_direction_e' is always false [-Wtautological-constant-out-of-range-compare]
                    if (it == superNodeInfo->outputList.end() && (node->parameters[i].direction == VX_OUTPUT || node->parameters[i].direction == VX_BIDIRECTIONAL))
                                                                                                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~
2 warnings generated when compiling for gfx1030.
/var/jenkins_home/workspace/g_Short-GPUOpen_MIVisionX_master/qWbLATVJo/HIP/mivisionx/amd_openvx/openvx/ago/ago_drama_alloc.cpp:764:141: warning: result of comparison of constant 2 with expression of type 'vx_direction_e' is always false [-Wtautological-constant-out-of-range-compare]
                    if (it == superNodeInfo->inputList.end() && (node->parameters[i].direction == VX_INPUT || node->parameters[i].direction == VX_BIDIRECTIONAL))
                                                                                                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~
/var/jenkins_home/workspace/g_Short-GPUOpen_MIVisionX_master/qWbLATVJo/HIP/mivisionx/amd_openvx/openvx/ago/ago_drama_alloc.cpp:767:143: warning: result of comparison of constant 2 with expression of type 'vx_direction_e' is always false [-Wtautological-constant-out-of-range-compare]
                    if (it == superNodeInfo->outputList.end() && (node->parameters[i].direction == VX_OUTPUT || node->parameters[i].direction == VX_BIDIRECTIONAL))
                                                                                                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~
2 warnings generated when compiling for host.
/var/jenkins_home/workspace/g_Short-GPUOpen_MIVisionX_master/qWbLATVJo/HIP/mivisionx/amd_openvx/openvx/ago/ago_util_hip.cpp:393:30: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
    else if ((data->ref.type == VX_TYPE_SCALAR)) {
              ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/var/jenkins_home/workspace/g_Short-GPUOpen_MIVisionX_master/qWbLATVJo/HIP/mivisionx/amd_openvx/openvx/ago/ago_util_hip.cpp:393:30: note: remove extraneous parentheses around the comparison to silence this warning
    else if ((data->ref.type == VX_TYPE_SCALAR)) {
             ~               ^                ~
/var/jenkins_home/workspace/g_Short-GPUOpen_MIVisionX_master/qWbLATVJo/HIP/mivisionx/amd_openvx/openvx/ago/ago_util_hip.cpp:393:30: note: use '=' to turn this equality comparison into an assignment
    else if ((data->ref.type == VX_TYPE_SCALAR)) {
                             ^~
                             =
1 warning generated when compiling for gfx1030.
/var/jenkins_home/workspace/g_Short-GPUOpen_MIVisionX_master/qWbLATVJo/HIP/mivisionx/amd_openvx/openvx/ago/ago_util_hip.cpp:393:30: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
    else if ((data->ref.type == VX_TYPE_SCALAR)) {
              ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/var/jenkins_home/workspace/g_Short-GPUOpen_MIVisionX_master/qWbLATVJo/HIP/mivisionx/amd_openvx/openvx/ago/ago_util_hip.cpp:393:30: note: remove extraneous parentheses around the comparison to silence this warning
    else if ((data->ref.type == VX_TYPE_SCALAR)) {
             ~               ^                ~
/var/jenkins_home/workspace/g_Short-GPUOpen_MIVisionX_master/qWbLATVJo/HIP/mivisionx/amd_openvx/openvx/ago/ago_util_hip.cpp:393:30: note: use '=' to turn this equality comparison into an assignment
    else if ((data->ref.type == VX_TYPE_SCALAR)) {
                             ^~
                             =
1 warning generated when compiling for host.
/var/jenkins_home/workspace/g_Short-GPUOpen_MIVisionX_master/qWbLATVJo/HIP/mivisionx/amd_openvx/openvx/ago/ago_interface.cpp:2299:101: warning: result of comparison of constant 2 with expression of type 'vx_direction_e' is always false [-Wtautological-constant-out-of-range-compare]
                        (node->parameters[i].direction == VX_INPUT || node->parameters[i].direction == VX_BIDIRECTIONAL))
                                                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~
/var/jenkins_home/workspace/g_Short-GPUOpen_MIVisionX_master/qWbLATVJo/HIP/mivisionx/amd_openvx/openvx/ago/ago_interface.cpp:2378:105: warning: result of comparison of constant 2 with expression of type 'vx_direction_e' is always false [-Wtautological-constant-out-of-range-compare]
                            (node->parameters[i].direction == VX_INPUT || node->parameters[i].direction == VX_BIDIRECTIONAL))
                                                                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~
/var/jenkins_home/workspace/g_Short-GPUOpen_MIVisionX_master/qWbLATVJo/HIP/mivisionx/amd_openvx/openvx/ago/ago_interface.cpp:2407:113: warning: result of comparison of constant 2 with expression of type 'vx_direction_e' is always false [-Wtautological-constant-out-of-range-compare]
                        if (data && (node->parameters[i].direction == VX_INPUT || node->parameters[i].direction == VX_BIDIRECTIONAL)) {
                                                                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~
/var/jenkins_home/workspace/g_Short-GPUOpen_MIVisionX_master/qWbLATVJo/HIP/mivisionx/amd_openvx/openvx/ago/ago_interface.cpp:2463:106: warning: result of comparison of constant 2 with expression of type 'vx_direction_e' is always false [-Wtautological-constant-out-of-range-compare]
                            (node->parameters[i].direction == VX_OUTPUT || node->parameters[i].direction == VX_BIDIRECTIONAL))
                                                                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~
4 warnings generated when compiling for gfx1030.
/var/jenkins_home/workspace/g_Short-GPUOpen_MIVisionX_master/qWbLATVJo/HIP/mivisionx/amd_openvx/openvx/ago/ago_interface.cpp:2299:101: warning: result of comparison of constant 2 with expression of type 'vx_direction_e' is always false [-Wtautological-constant-out-of-range-compare]
                        (node->parameters[i].direction == VX_INPUT || node->parameters[i].direction == VX_BIDIRECTIONAL))
                                                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~
/var/jenkins_home/workspace/g_Short-GPUOpen_MIVisionX_master/qWbLATVJo/HIP/mivisionx/amd_openvx/openvx/ago/ago_interface.cpp:2378:105: warning: result of comparison of constant 2 with expression of type 'vx_direction_e' is always false [-Wtautological-constant-out-of-range-compare]
                            (node->parameters[i].direction == VX_INPUT || node->parameters[i].direction == VX_BIDIRECTIONAL))
                                                                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~
/var/jenkins_home/workspace/g_Short-GPUOpen_MIVisionX_master/qWbLATVJo/HIP/mivisionx/amd_openvx/openvx/ago/ago_interface.cpp:2407:113: warning: result of comparison of constant 2 with expression of type 'vx_direction_e' is always false [-Wtautological-constant-out-of-range-compare]
                        if (data && (node->parameters[i].direction == VX_INPUT || node->parameters[i].direction == VX_BIDIRECTIONAL)) {
                                                                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~
/var/jenkins_home/workspace/g_Short-GPUOpen_MIVisionX_master/qWbLATVJo/HIP/mivisionx/amd_openvx/openvx/ago/ago_interface.cpp:2463:106: warning: result of comparison of constant 2 with expression of type 'vx_direction_e' is always false [-Wtautological-constant-out-of-range-compare]
                            (node->parameters[i].direction == VX_OUTPUT || node->parameters[i].direction == VX_BIDIRECTIONAL))
                                                                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~
4 warnings generated when compiling for host.
make[1]: *** [CMakeFiles/Makefile2:267: amd_openvx/openvx/CMakeFiles/openvx.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
script returned exit code 2
kiritigowda commented 2 years ago

PR #905 fixes this issue on cmake 3.21 or less