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 73 forks source link

Setup Failure - RALI #369

Closed kiritigowda closed 4 years ago

kiritigowda commented 4 years ago
CMake Error at /usr/local/lib/cmake/Boost-1.72.0/BoostConfig.cmake:120 (find_package):
  Found package configuration file:

    /usr/local/lib/cmake/boost_filesystem-1.72.0/boost_filesystem-config.cmake

  but it set boost_filesystem_FOUND to FALSE so package "boost_filesystem" is
  considered to be NOT FOUND.  Reason given by package:

  No suitable build variant has been found.

  The following variants have been tried and rejected:

  * libboost_filesystem.so.1.72.0 (shared, Boost_USE_STATIC_LIBS=ON)

Call Stack (most recent call first):
  /usr/local/lib/cmake/Boost-1.72.0/BoostConfig.cmake:185 (boost_find_component)
  /usr/share/cmake-3.10/Modules/FindBoost.cmake:242 (find_package)
  CMakeLists.txt:289 (find_package)

-- Configuring incomplete, errors occurred!
See also "/root/mivisionx-deps/rpp/build/CMakeFiles/CMakeOutput.log".
LakshmiKumar23 commented 4 years ago

@kiritigowda try with 'yes/no' instead of 'on/off' Tried this. I see the error now. I wasn't able to before. Let me look into it

LakshmiKumar23 commented 4 years ago

@kiritigowda Please add 'sudo ./b2 install threading=multi' after line 209 of the setup script

kiritigowda commented 4 years ago

sudo ./b2 install threading=multi

209 has below

'(cd '+deps_dir+'/boost_1_72_0/; sudo ./b2 install threading=multi link=shared --with-system --with-filesystem)')
LakshmiKumar23 commented 4 years ago

sudo ./b2 install threading=multi

209 has below

'(cd '+deps_dir+'/boost_1_72_0/; sudo ./b2 install threading=multi link=shared --with-system --with-filesystem)')

I meant after that. That line installs the shared linked libraries. The line I sent is to add static .a files

kiritigowda commented 4 years ago

with PR #370 this issue id fixed.

@LakshmiKumar23 why do we need static and shared? can we investigate?

-- 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
-- Radeon Performance Primitives (RPP) Version -- 0.5
-- RPP install path set to -- /opt/rocm/rpp
-- cmake minimum version required: 3.5
-- cmake version found: 3.10.2
-- Clang tidy not found
-- Clang tidy checks: *,-cert-env33-c,-android-cloexec-fopen,-cert-msc30-c,-cert-msc50-cpp,-clang-analyzer-alpha.core.CastToStruct,-clang-analyzer-optin.performance.Padding,-clang-diagnostic-deprecated-declarations,-clang-diagnostic-extern-c-compat,-clang-diagnostic-unused-command-line-argument,-cppcoreguidelines-pro-bounds-array-to-pointer-decay,-cppcoreguidelines-pro-bounds-constant-array-index,-cppcoreguidelines-pro-bounds-pointer-arithmetic,-cppcoreguidelines-pro-type-member-init,-cppcoreguidelines-pro-type-reinterpret-cast,-cppcoreguidelines-pro-type-union-access,-cppcoreguidelines-pro-type-vararg,-cppcoreguidelines-special-member-functions,-fuchsia-*,-google-explicit-constructor,-google-readability-braces-around-statements,-google-readability-todo,-google-runtime-int,-google-runtime-references,-hicpp-braces-around-statements,-hicpp-explicit-conversions,-hicpp-no-array-decay,-hicpp-signed-bitwise,-hicpp-special-member-functions,-hicpp-use-equals-default,-hicpp-use-override,-llvm-header-guard,-llvm-include-order,-misc-misplaced-const,-modernize-pass-by-value,-modernize-use-default-member-init,-modernize-use-equals-default,-modernize-use-transparent-functors,-performance-unnecessary-value-param,-readability-braces-around-statements,-readability-else-after-return,-readability-named-parameter,-hicpp-use-auto,-modernize-use-auto,-cppcoreguidelines-avoid-magic-numbers,-readability-magic-numbers,-cppcoreguidelines-macro-usage,-misc-non-private-member-variables-in-classes,-cppcoreguidelines-non-private-member-variables-in-classes,-readability-isolate-declaration,-cppcoreguidelines-avoid-c-arrays,-hicpp-avoid-c-arrays,-modernize-avoid-c-arrays,-readability-uppercase-literal-suffix,-hicpp-uppercase-literal-suffix,-cert-msc32-c,-cert-msc51-cpp,-bugprone-exception-escape
-- Found OPENCL: /opt/rocm/opencl/lib/libOpenCL.so  
-- extractkernel found: /opt/rocm/bin/extractkernel
Add Custome Command
OPenCL incude directories are /opt/rocm/opencl/include;/root/mivisionx-deps/rpp/src/include/cl/
-- amd_rpp built with ENABLE_SIMD_INTRINSICS
-- Boost  found.
-- Found Boost components:
   filesystem;system
-- Found OpenMP_C: -fopenmp (found version "4.5") 
-- Found OpenMP_CXX: -fopenmp (found version "4.5") 
-- Found OpenMP: TRUE (found version "4.5")  
-- CentOS detected   -- .rpm package will be created
-- Configuring done
-- Generating done
-- Build files have been written to: /root/mivisionx-deps/rpp/build
LakshmiKumar23 commented 4 years ago

@kiritigowda RPP uses the static librarires, where MIOpen the shared. We can discuss more offline