Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: rocAL - Package core runtime dependencies #222

Open
kiritigowda opened this issue Oct 15, 2024 · 7 comments
Open

[Feature]: rocAL - Package core runtime dependencies #222

kiritigowda opened this issue Oct 15, 2024 · 7 comments
Assignees
Labels
enhancement New feature or request

Comments

@kiritigowda
Copy link
Collaborator

Problem Description

rocAL core dependencies are listed below for runtime. I do not see rapidJSON. @SundarRajan28 can you check this?

readelf -d /opt/rocm/lib/librocal.so | grep NEEDED
 0x0000000000000001 (NEEDED)             Shared library: [libopenvx.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libvx_rpp.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libturbojpeg.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libprotobuf.so.23]
 0x0000000000000001 (NEEDED)             Shared library: [liblmdb.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libavcodec.so.58]
 0x0000000000000001 (NEEDED)             Shared library: [libavformat.so.58]
 0x0000000000000001 (NEEDED)             Shared library: [libavutil.so.56]
 0x0000000000000001 (NEEDED)             Shared library: [libswscale.so.5]
 0x0000000000000001 (NEEDED)             Shared library: [libgomp.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libopencv_imgcodecs.so.4.5d]
 0x0000000000000001 (NEEDED)             Shared library: [libopencv_imgproc.so.4.5d]
 0x0000000000000001 (NEEDED)             Shared library: [libopencv_core.so.4.5d]
 0x0000000000000001 (NEEDED)             Shared library: [libstdc++.so.6]
 0x0000000000000001 (NEEDED)             Shared library: [libm.so.6]
 0x0000000000000001 (NEEDED)             Shared library: [libgcc_s.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]
 0x0000000000000001 (NEEDED)             Shared library: [ld-linux-x86-64.so.2]

Operating System

Ubuntu

CPU

ALL

GPU

ALL

ROCm Version

ROCm 6.2.3

ROCm Component

No response

Steps to Reproduce

No response

(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support

No response

Additional Information

No response

@kiritigowda kiritigowda added the bug Something isn't working label Oct 15, 2024
@kiritigowda kiritigowda changed the title [Issue]: rocAL - Package core deps [Issue]: rocAL - Package core runtime dependencies Oct 15, 2024
@kiritigowda
Copy link
Collaborator Author

@LakshmiKumar23 - rapidJSON not a runtime requirement for rocal - please remove readme for package install deps

@LakshmiKumar23
Copy link
Contributor

@kiritigowda cannot use package for rapidJSON. There are build errors

In file included from /root/dockerx/work/rocAL/rocAL/source/meta_data/coco_meta_data_reader.cpp:30:
/root/dockerx/work/rocAL/rocAL/include/meta_data/lookahead_parser.h: In constructor 'LookaheadParserHandler::LookaheadParserHandler(char*)':
/root/dockerx/work/rocAL/rocAL/include/meta_data/lookahead_parser.h:162:8: error: 'rapidjson::Reader' {aka 'class rapidjson::GenericReader<rapidjson::UTF8<>, rapidjson::UTF8<> >'} has no member named 'IterativeParseInit'; did you mean 'IterativeParse'?
  162 |     r_.IterativeParseInit();
      |        ^~~~~~~~~~~~~~~~~~
      |        IterativeParse
/root/dockerx/work/rocAL/rocAL/include/meta_data/lookahead_parser.h: In member function 'void LookaheadParserHandler::ParseNext()':
/root/dockerx/work/rocAL/rocAL/include/meta_data/lookahead_parser.h:172:8: error: 'rapidjson::Reader' {aka 'class rapidjson::GenericReader<rapidjson::UTF8<>, rapidjson::UTF8<> >'} has no member named 'IterativeParseNext'; did you mean 'IterativeParse'?
  172 |     r_.IterativeParseNext<parseFlags>(ss_, *this);
      |        ^~~~~~~~~~~~~~~~~~
      |        IterativeParse
/root/dockerx/work/rocAL/rocAL/include/meta_data/lookahead_parser.h:172:39: warning: left operand of comma operator has no effect [-Wunused-value]
  172 |     r_.IterativeParseNext<parseFlags>(ss_, *this);
      |                                       ^~~
In file included from /root/dockerx/work/rocAL/rocAL/source/readers/image/coco_meta_data_reader_key_points.cpp:30:
/root/dockerx/work/rocAL/rocAL/include/meta_data/lookahead_parser.h: In constructor 'LookaheadParserHandler::LookaheadParserHandler(char*)':
/root/dockerx/work/rocAL/rocAL/include/meta_data/lookahead_parser.h:162:8: error: 'rapidjson::Reader' {aka 'class rapidjson::GenericReader<rapidjson::UTF8<>, rapidjson::UTF8<> >'} has no member named 'IterativeParseInit'; did you mean 'IterativeParse'?
  162 |     r_.IterativeParseInit();
      |        ^~~~~~~~~~~~~~~~~~
      |        IterativeParse
/root/dockerx/work/rocAL/rocAL/include/meta_data/lookahead_parser.h: In member function 'void LookaheadParserHandler::ParseNext()':
/root/dockerx/work/rocAL/rocAL/include/meta_data/lookahead_parser.h:172:8: error: 'rapidjson::Reader' {aka 'class rapidjson::GenericReader<rapidjson::UTF8<>, rapidjson::UTF8<> >'} has no member named 'IterativeParseNext'; did you mean 'IterativeParse'?
  172 |     r_.IterativeParseNext<parseFlags>(ss_, *this);
      |        ^~~~~~~~~~~~~~~~~~
      |        IterativeParse
/root/dockerx/work/rocAL/rocAL/include/meta_data/lookahead_parser.h:172:39: warning: left operand of comma operator has no effect [-Wunused-value]
  172 |     r_.IterativeParseNext<parseFlags>(ss_, *this);
      |                                       ^~~
make[2]: *** [rocAL/CMakeFiles/rocal.dir/build.make:1798: rocAL/CMakeFiles/rocal.dir/source/readers/image/coco_meta_data_reader_key_points.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [rocAL/CMakeFiles/rocal.dir/build.make:1317: rocAL/CMakeFiles/rocal.dir/source/meta_data/coco_meta_data_reader.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:942: rocAL/CMakeFiles/rocal.dir/all] Error 2
make: *** [Makefile:163: all] Error 2

@kiritigowda
Copy link
Collaborator Author

Runtime Dependency map

  • MIVisionX - package mivisionx-dev/mivisionx-devel
 0x0000000000000001 (NEEDED)             Shared library: [libopenvx.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libvx_rpp.so.1]
  • Turbo JPEG - manual
 0x0000000000000001 (NEEDED)             Shared library: [libturbojpeg.so.0]
  • Google Protobuf - package libprotobuf-dev/protobuf-devel
 0x0000000000000001 (NEEDED)             Shared library: [libprotobuf.so.23]
  • LMBD - package liblmdb-dev/lmdb-devel
 0x0000000000000001 (NEEDED)             Shared library: [liblmdb.so.0]
  • OpenCV - package libopencv-dev / RPM -- manual
 0x0000000000000001 (NEEDED)             Shared library: [libopencv_imgcodecs.so.4.5d]
 0x0000000000000001 (NEEDED)             Shared library: [libopencv_imgproc.so.4.5d]
 0x0000000000000001 (NEEDED)             Shared library: [libopencv_core.so.4.5d]
  • FFMPEG - package / manual
  • libavcodec-dev / manual
 0x0000000000000001 (NEEDED)             Shared library: [libavcodec.so.58]
  • libavformat-dev / manual
 0x0000000000000001 (NEEDED)             Shared library: [libavformat.so.58]
  • libavutil-dev / manual
 0x0000000000000001 (NEEDED)             Shared library: [libavutil.so.56]
  • libswscale-dev / manual
 0x0000000000000001 (NEEDED)             Shared library: [libswscale.so.5]
  • OpenMP - package libgomp1 /
 0x0000000000000001 (NEEDED)             Shared library: [libgomp.so.1]
  • Compiler Deps
 0x0000000000000001 (NEEDED)             Shared library: [libstdc++.so.6]
 0x0000000000000001 (NEEDED)             Shared library: [libm.so.6]
 0x0000000000000001 (NEEDED)             Shared library: [libgcc_s.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]
  • Program interpreter for dynamically-linked ELF programs
 0x0000000000000001 (NEEDED)             Shared library: [ld-linux-x86-64.so.2]

@kiritigowda
Copy link
Collaborator Author

OpenCV - min option - libopencv-core-dev libopencv-imgcodecs-dev libopencv-imgproc-dev

@kiritigowda
Copy link
Collaborator Author

Part fix with #227

@kiritigowda
Copy link
Collaborator Author

@kiritigowda cannot use package for rapidJSON. There are build errors

In file included from /root/dockerx/work/rocAL/rocAL/source/meta_data/coco_meta_data_reader.cpp:30:
/root/dockerx/work/rocAL/rocAL/include/meta_data/lookahead_parser.h: In constructor 'LookaheadParserHandler::LookaheadParserHandler(char*)':
/root/dockerx/work/rocAL/rocAL/include/meta_data/lookahead_parser.h:162:8: error: 'rapidjson::Reader' {aka 'class rapidjson::GenericReader<rapidjson::UTF8<>, rapidjson::UTF8<> >'} has no member named 'IterativeParseInit'; did you mean 'IterativeParse'?
  162 |     r_.IterativeParseInit();
      |        ^~~~~~~~~~~~~~~~~~
      |        IterativeParse
/root/dockerx/work/rocAL/rocAL/include/meta_data/lookahead_parser.h: In member function 'void LookaheadParserHandler::ParseNext()':
/root/dockerx/work/rocAL/rocAL/include/meta_data/lookahead_parser.h:172:8: error: 'rapidjson::Reader' {aka 'class rapidjson::GenericReader<rapidjson::UTF8<>, rapidjson::UTF8<> >'} has no member named 'IterativeParseNext'; did you mean 'IterativeParse'?
  172 |     r_.IterativeParseNext<parseFlags>(ss_, *this);
      |        ^~~~~~~~~~~~~~~~~~
      |        IterativeParse
/root/dockerx/work/rocAL/rocAL/include/meta_data/lookahead_parser.h:172:39: warning: left operand of comma operator has no effect [-Wunused-value]
  172 |     r_.IterativeParseNext<parseFlags>(ss_, *this);
      |                                       ^~~
In file included from /root/dockerx/work/rocAL/rocAL/source/readers/image/coco_meta_data_reader_key_points.cpp:30:
/root/dockerx/work/rocAL/rocAL/include/meta_data/lookahead_parser.h: In constructor 'LookaheadParserHandler::LookaheadParserHandler(char*)':
/root/dockerx/work/rocAL/rocAL/include/meta_data/lookahead_parser.h:162:8: error: 'rapidjson::Reader' {aka 'class rapidjson::GenericReader<rapidjson::UTF8<>, rapidjson::UTF8<> >'} has no member named 'IterativeParseInit'; did you mean 'IterativeParse'?
  162 |     r_.IterativeParseInit();
      |        ^~~~~~~~~~~~~~~~~~
      |        IterativeParse
/root/dockerx/work/rocAL/rocAL/include/meta_data/lookahead_parser.h: In member function 'void LookaheadParserHandler::ParseNext()':
/root/dockerx/work/rocAL/rocAL/include/meta_data/lookahead_parser.h:172:8: error: 'rapidjson::Reader' {aka 'class rapidjson::GenericReader<rapidjson::UTF8<>, rapidjson::UTF8<> >'} has no member named 'IterativeParseNext'; did you mean 'IterativeParse'?
  172 |     r_.IterativeParseNext<parseFlags>(ss_, *this);
      |        ^~~~~~~~~~~~~~~~~~
      |        IterativeParse
/root/dockerx/work/rocAL/rocAL/include/meta_data/lookahead_parser.h:172:39: warning: left operand of comma operator has no effect [-Wunused-value]
  172 |     r_.IterativeParseNext<parseFlags>(ss_, *this);
      |                                       ^~~
make[2]: *** [rocAL/CMakeFiles/rocal.dir/build.make:1798: rocAL/CMakeFiles/rocal.dir/source/readers/image/coco_meta_data_reader_key_points.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [rocAL/CMakeFiles/rocal.dir/build.make:1317: rocAL/CMakeFiles/rocal.dir/source/meta_data/coco_meta_data_reader.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:942: rocAL/CMakeFiles/rocal.dir/all] Error 2
make: *** [Makefile:163: all] Error 2

@LakshmiKumar23 can you check if we can make it work with the package?

@kiritigowda
Copy link
Collaborator Author

PR #232 fixes build prerequisites readme

@kiritigowda kiritigowda added enhancement New feature or request and removed bug Something isn't working labels Jan 28, 2025
@kiritigowda kiritigowda changed the title [Issue]: rocAL - Package core runtime dependencies [Feature]: rocAL - Package core runtime dependencies Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants