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
185 stars 72 forks source link

CMakeLists warning #253

Closed kiritigowda closed 4 years ago

kiritigowda commented 4 years ago
CMake Deprecation Warning at utilities/runvx/CMakeLists.txt:74 (cmake_policy): The OLD behavior for policy CMP0054 will be removed from a future version of CMake.
kiritigowda commented 4 years ago

@rrawther I will look into this issue and will let you know when to review.

kiritigowda commented 4 years ago

@rrawther MIVisionX CMake Log

cmake ../MIVisionX
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- MIVisionX Version -- 1.7.0
-- MIVisionX install path set to -- /opt/rocm/mivisionx
-- Found OPENCL: /opt/rocm/opencl/lib/x86_64/libOpenCL.so
-- AMD OpenVX -- OpenVX built with OpenCL Support
-- Could NOT find FFMPEG (missing: FFMPEG_LIBRARY FFMPEG_INCLUDE_DIR)
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Checking for module 'libavcodec'
--   Found libavcodec, version 57.107.100
-- Checking for module 'libavformat'
--   Found libavformat, version 57.83.100
-- Checking for module 'libavutil'
--   Found libavutil, version 55.78.100
-- AVCODEC  required min version - 58.18.100
-- AVFORMAT required min version - 58.12.100
-- AVUTIL   required min version - 56.14.100
-- FFMPEG   required min version - 4.0.4
-- FFMPEG Marked Not Found - MIVisionX Modules requiring FFMPEG turned off
BUILDING WITH OPENCL BACKEND
-- AMD OpenVX Loom Stich Library Extension -- amd_loomsl module added
-- WARNING:FFMPEG Not Found -- amd_media module excluded
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found Protobuf: /usr/local/lib/libprotobuf.so;-lpthread;-lpthread (found version "3.5.1")
-- Inference Generator -- utilities/inference_generator module added
-- AMD OpenVX Neural Network Extension -- amd_nn module added
-- Found OpenCV: /usr/local (found version "3.4.0")
-- AMD OpenVX OpenCV Extension -- amd_opencv module added
-- Cloud Inference -- cloud_inference application added
-- Could NOT find FFMPEG (missing: FFMPEG_LIBRARY FFMPEG_INCLUDE_DIR)
-- AVCODEC  required min version - 58.18.100
-- AVFORMAT required min version - 58.12.100
-- AVUTIL   required min version - 56.14.100
-- FFMPEG   required min version - 4.0.4
-- FFMPEG Marked Not Found - MIVisionX Modules requiring FFMPEG turned off
-- MIVisionX Utilities -- runvx, runcl, & loom_shell modules added
-- WARNING:FFMPEG Not Found -- mv_deploy module excluded
-- Could NOT find FFMPEG (missing: FFMPEG_LIBRARY FFMPEG_INCLUDE_DIR)
-- AVCODEC  required min version - 58.18.100
-- AVFORMAT required min version - 58.12.100
-- AVUTIL   required min version - 56.14.100
-- FFMPEG   required min version - 4.0.4
-- FFMPEG Marked Not Found - MIVisionX Modules requiring FFMPEG turned off
-- Radeon Augmentation Library -- rali module added
-- rali built with ENABLE_SIMD
-- rali library is going to be built without video decode functionality
-- Ubuntu detected -- .deb package will be created
-- Configuring done
-- Generating done
-- Build files have been written to: /home/kiriti/develop/github/build
kiritigowda commented 4 years ago

Update on CMakeList, the warnings are not displayed @rrawther

cmake --version
cmake version 3.10.2

CMake suite maintained and supported by Kitware (kitware.com/cmake).
~/MIVisionX/build$ cmake ../MIVisionX/
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- MIVisionX Version -- 1.7.0
-- MIVisionX install path set to -- /opt/rocm/mivisionx
-- Found OPENCL: /opt/rocm/opencl/lib/x86_64/libOpenCL.so
-- AMD OpenVX -- OpenVX built with OpenCL Support
-- Could NOT find FFMPEG (missing: FFMPEG_LIBRARY FFMPEG_INCLUDE_DIR)
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Checking for module 'libavcodec'
--   Found libavcodec, version 57.107.100
-- Checking for module 'libavformat'
--   Found libavformat, version 57.83.100
-- Checking for module 'libavutil'
--   Found libavutil, version 55.78.100
-- AVCODEC  required min version - 58.18.100
-- AVFORMAT required min version - 58.12.100
-- AVUTIL   required min version - 56.14.100
-- FFMPEG   required min version - 4.0.4
-- FFMPEG Marked Not Found - MIVisionX Modules requiring FFMPEG turned off
-- Radeon Performance Primitives -- BUILDING WITH OPENCL BACKEND
-- AMD OpenVX Loom Stich Library Extension -- amd_loomsl module added
-- WARNING:FFMPEG Not Found -- amd_media module excluded
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found Protobuf: /usr/local/lib/libprotobuf.so;-lpthread;-lpthread (found version "3.5.1")
-- Inference Generator -- utilities/inference_generator module added
-- AMD OpenVX Neural Network Extension -- amd_nn module added
-- Found OpenCV: /usr/local (found version "3.4.0")
-- AMD OpenVX OpenCV Extension -- amd_opencv module added
-- Cloud Inference -- cloud_inference application added
-- Could NOT find FFMPEG (missing: FFMPEG_LIBRARY FFMPEG_INCLUDE_DIR)
-- AVCODEC  required min version - 58.18.100
-- AVFORMAT required min version - 58.12.100
-- AVUTIL   required min version - 56.14.100
-- FFMPEG   required min version - 4.0.4
-- FFMPEG Marked Not Found - MIVisionX Modules requiring FFMPEG turned off
-- MIVisionX Utilities -- runvx, runcl, & loom_shell modules added
-- WARNING:FFMPEG Not Found -- mv_deploy module excluded
-- Could NOT find FFMPEG (missing: FFMPEG_LIBRARY FFMPEG_INCLUDE_DIR)
-- AVCODEC  required min version - 58.18.100
-- AVFORMAT required min version - 58.12.100
-- AVUTIL   required min version - 56.14.100
-- FFMPEG   required min version - 4.0.4
-- FFMPEG Marked Not Found - MIVisionX Modules requiring FFMPEG turned off
-- Radeon Augmentation Library -- rali module added
-- rali built with ENABLE_SIMD
-- rali library is going to be built without video decode functionality
-- Ubuntu detected -- .deb package will be created
-- Configuring done
-- Generating done
-- Build files have been written to: /home/kiriti/MIVisionX/build
rrawther commented 4 years ago

This looks good. Can you merge your changes

kiritigowda commented 4 years ago

TOT MIVisionX has the changes required