ROCm / rocAL

The AMD rocAL is designed to efficiently decode and process images and videos from a variety of storage formats and modify them through a processing graph programmable by the user.
https://rocm.docs.amd.com/projects/rocAL/en/develop/
MIT License
11 stars 14 forks source link

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

Open kiritigowda opened 6 days ago

kiritigowda commented 6 days ago

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 commented 6 days ago

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

LakshmiKumar23 commented 3 days ago

@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