Code Monkey home page Code Monkey logo

rocm / rpp Goto Github PK

View Code? Open in Web Editor NEW
47.0 16.0 34.0 84.63 MB

AMD ROCm Performance Primitives (RPP) library is a comprehensive high-performance computer vision library for AMD processors with HIP/OpenCL/CPU back-ends.

Home Page: https://rocm.docs.amd.com/projects/rpp/en/latest/

License: MIT License

CMake 0.22% C 2.51% C++ 96.67% Shell 0.24% Python 0.33% Groovy 0.02% Dockerfile 0.01%
hpc mivisionx openvx computer-vision rpp radeon-performance-primitives rocm bitwise amd warp-affine

rpp's Introduction

MIT licensed doc

AMD ROCm Performance Primitives (RPP) library is a comprehensive, high-performance computer vision library for AMD processors that have HIP, OpenCL, or CPU backends.

Latest release

GitHub tag (latest SemVer)

Supported functionalities and variants

Supported 3D Functionalities Samples

Input
(nifti1 .nii medical image)
fused_multiply_add_scalar
(brightened 3D image)

Prerequisites

  • Linux

    • Ubuntu - 20.04 / 22.04
    • CentOS - 7
    • RedHat - 8 / 9
    • SLES - 15-SP4
  • ROCm supported hardware

  • Install ROCm with amdgpu-install with --usecase=graphics,rocm --no-32

  • Clang Version 5.0.1 and above

    • Ubuntu 20/22
    sudo apt-get install clang
    • CentOS 7
    sudo yum install llvm-toolset-7-clang llvm-toolset-7-clang-analyzer llvm-toolset-7-clang-tools-extra
    scl enable llvm-toolset-7 bash
    • RHEL 8/9
    sudo yum install clang
    • SLES 15-SP4 (use ROCm LLVM Clang)
    zypper -n --no-gpg-checks install clang
    update-alternatives --install /usr/bin/clang clang /opt/rocm-*/llvm/bin/clang 100
    update-alternatives --install /usr/bin/clang++ clang++ /opt/rocm-*/llvm/bin/clang++ 100
  • CMake Version 3.5 and above

  • IEEE 754-based half-precision floating-point library (half.hpp)

    • half package install
    sudo apt-get install half

Note

You must use the appropriate package manager for your operating system.

  • Compiler with support for C++ Version 17 and above

  • OpenMP

  • Threads

Build and install instructions

Package install

Install RPP runtime, development, and test packages.

  • Runtime package - rpp only provides the rpp library librpp.so
  • Development package - rpp-dev/rpp-devel provides the library, header files, and samples
  • Test package - rpp-test provides CTest to verify installation

Note

Package install will auto install all dependencies.

Ubuntu

sudo apt install rpp rpp-dev rpp-test

RHEL

sudo yum install rpp rpp-devel rpp-test

SLES

sudo zypper install rpp rpp-devel rpp-test

Source build and install

  • Clone RPP git repository

    git clone https://github.com/ROCm/rpp.git

Note

RPP has support for two GPU backends: OPENCL and HIP:

  • Instructions for building RPP with the HIP GPU backend (default GPU backend):

    mkdir build-hip
    cd build-hip
    cmake ../rpp
    make -j8
    sudo make install
    make test

Note

make test requires test suite prerequisites installed

  • Instructions for building RPP with OPENCL GPU backend

    mkdir build-ocl
    cd build-ocl
    cmake -DBACKEND=OCL ../rpp
    make -j8
    sudo make install

Verify installation

The installer will copy

  • Libraries into /opt/rocm/lib
  • Header files into /opt/rocm/include/rpp
  • Samples folder into /opt/rocm/share/rpp
  • Documents folder into /opt/rocm/share/doc/rpp

Note

Test suite prerequisites install is required to run tests

Verify with rpp-test package

Test package will install CTest module to test rpp. Follow below steps to test package install

mkdir rpp-test && cd rpp-test
cmake /opt/rocm/share/rpp/test/
ctest -VV

Test Functionalities

To test the functionalities of RPP, run the code shown for your backend:

  • HIP

      cd rpp/utilities/rpp-unittests/HIP_NEW
      ./testAllScript.sh
  • OpenCL

      cd rpp/utilities/rpp-unittests/OCL_NEW
      ./testAllScript.sh
    • CPU
      cd rpp/utilities/rpp-unittests/HOST_NEW
      ./testAllScript.sh

MIVisionX support - OpenVX extension

MIVisionX RPP extension vx_rpp supports RPP functionality through the OpenVX Framework.

Technical support

For RPP questions and feedback, you can contact us at [email protected].

To submit feature requests and bug reports, use our GitHub issues page.

Documentation

You can build our documentation locally using the following code:

  • Sphinx

    cd docs
    pip3 install -r .sphinx/requirements.txt
    python3 -m sphinx -T -E -b html -d _build/doctrees -D language=en . _build/html
  • Doxygen

    doxygen .Doxyfile

Release notes

All notable changes for each release are added to our changelog.

Tested configurations

  • Linux distribution
    • Ubuntu - 20.04 / 22.04
    • CentOS - 7
    • RedHat - 8 / 9
    • SLES - 15-SP4
  • ROCm: rocm-core - 5.7.0.50700-63
  • OpenCV - 4.6.0

rpp's People

Contributors

abhimeda avatar arvindcheru avatar aryansalmanpour avatar dependabot[bot] avatar hansely avatar josephgeobenjamin avatar kiritigowda avatar lakshmikumar23 avatar lisadelaney avatar lokeshbonta avatar muthukumaravel7 avatar mythreyi22 avatar r-abishek avatar randyh62 avatar raramakr avatar rrawther avatar saadrahim avatar samjwu avatar sampath1117 avatar shobana-mcw avatar swetha097 avatar ulagammai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rpp's Issues

[Issue]: GFX942+ Compile Failure

Problem Description

Building with -D BUILD_WITH_AMD_ADVANCE=ON

[ 70%] Building CXX object src/modules/CMakeFiles/modules.dir/hip/kernel/hue.cpp.o
lld: error: undefined hidden symbol: llvm.amdgcn.atomic.inc.i32.p0i32
>>> referenced by /tmp/histogram-gfx941-aebaf1.o:(partial_histogram_pln)
>>> referenced by /tmp/histogram-gfx941-aebaf1.o:(partial_histogram_pln)
>>> referenced by /tmp/histogram-gfx941-aebaf1.o:(partial_histogram_pkd)
>>> referenced 5 more times
clang++: error: amdgcn-link command failed with exit code 1 (use -v to see invocation)
make[2]: *** [src/modules/CMakeFiles/modules.dir/build.make:1302: src/modules/CMakeFiles/modules.dir/hip/kernel/histogram.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:918: src/modules/CMakeFiles/modules.dir/all] Error 2
make: *** [Makefile:166: all] Error 2
[ 72%] Building CXX object src/modules/CMakeFiles/modules.dir/hip/kernel/integral.cpp.o
lld: error: undefined hidden symbol: llvm.amdgcn.atomic.inc.i32.p0i32
>>> referenced by /tmp/histogram-gfx941-d9e6b1.o:(partial_histogram_pln)
>>> referenced by /tmp/histogram-gfx941-d9e6b1.o:(partial_histogram_pln)
>>> referenced by /tmp/histogram-gfx941-d9e6b1.o:(partial_histogram_pkd)
>>> referenced 5 more times
clang++: error: amdgcn-link command failed with exit code 1 (use -v to see invocation)
make[2]: *** [src/modules/CMakeFiles/modules.dir/build.make:1302: src/modules/CMakeFiles/modules.dir/hip/kernel/histogram.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:918: src/modules/CMakeFiles/modules.dir/all] Error 2
make: *** [Makefile:166: all] Error 2

Operating System

ALL

CPU

ALL

GPU

Other

Other

ALL

ROCm Version

ROCm 6.0.0

ROCm Component

rpp

Steps to Reproduce

cmake -D BUILD_WITH_AMD_ADVANCE=ON ../rpp

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

No response

Additional Information

No response

RPP - Ubuntu-16.04 Support

Build fails on Ubuntu-16.04:
`
[ 2%] Building CXX object addkernels/CMakeFiles/addkernels.dir/include_inliner.cpp.o
[ 4%] Building CXX object addkernels/CMakeFiles/addkernels.dir/addkernels.cpp.o
In file included from /root/mivisionx-deps/rpp/addkernels/addkernels.cpp:26:
In file included from /root/mivisionx-deps/rpp/addkernels/include_inliner.hpp:29:
/root/mivisionx-deps/rpp/addkernels/source_file_desc.hpp:37:10: error: no type named 'shared_ptr' in namespace 'std'
std::shared_ptr included_from;
~~~~~^
/root/mivisionx-deps/rpp/addkernels/source_file_desc.hpp:37:20: error: expected member name or ';' after declaration specifiers
std::shared_ptr included_from;
~~~~~~~~~~~~~~~^
/root/mivisionx-deps/rpp/addkernels/source_file_desc.hpp:39:51: error: no type named 'shared_ptr' in namespace 'std'
SourceFileDesc(const std::string& path_, std::shared_ptr from, int line)
~~~~~^
/root/mivisionx-deps/rpp/addkernels/source_file_desc.hpp:39:61: error: expected ')'
SourceFileDesc(const std::string& path_, std::shared_ptr from, int line)
^
/root/mivisionx-deps/rpp/addkernels/source_file_desc.hpp:39:19: note: to match this '('
SourceFileDesc(const std::string& path_, std::shared_ptr from, int line)
^
/root/mivisionx-deps/rpp/addkernels/source_file_desc.hpp:40:38: error: use of undeclared identifier 'line'
: path(path_), included_line(line), included_from(from)
^
/root/mivisionx-deps/rpp/addkernels/source_file_desc.hpp:40:59: error: use of undeclared identifier 'from'
: path(path_), included_line(line), included_from(from)
^
In file included from /root/mivisionx-deps/rpp/addkernels/addkernels.cpp:26:
/root/mivisionx-deps/rpp/addkernels/include_inliner.hpp:34:7: error: exception specification of overriding function is more lax than base version
class InlineException : public std::exception
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/exception:64:13: note: overridden virtual function is here
virtual ~exception() GLIBCXX_USE_NOEXCEPT;
^
In file included from /root/mivisionx-deps/rpp/addkernels/addkernels.cpp:26:
/root/mivisionx-deps/rpp/addkernels/include_inliner.hpp:51:30: warning: 'override' keyword is a C++11 extension [-Wc++11-extensions]
std::string What() const override
^
/root/mivisionx-deps/rpp/addkernels/include_inliner.hpp:62:30: warning: 'override' keyword is a C++11 extension [-Wc++11-extensions]
std::string What() const override { return "Include directive expected"; }
^
/root/mivisionx-deps/rpp/addkernels/include_inliner.hpp:70:30: warning: 'override' keyword is a C++11 extension [-Wc++11-extensions]
std::string What() const override { return "Include directive has wrong format"; }
^
/root/mivisionx-deps/rpp/addkernels/include_inliner.hpp:81:30: warning: 'override' keyword is a C++11 extension [-Wc++11-extensions]
std::string What() const override;
^
/root/mivisionx-deps/rpp/addkernels/include_inliner.hpp:96:36: warning: 'override' keyword is a C++11 extension [-Wc++11-extensions]
std::string GetMessage() const override
^
/root/mivisionx-deps/rpp/addkernels/include_inliner.hpp:111:36: warning: 'override' keyword is a C++11 extension [-Wc++11-extensions]
std::string GetMessage() const override { return "Can not open include file"; }
^
/root/mivisionx-deps/rpp/addkernels/include_inliner.hpp:117:29: warning: in-class initialization of non-static data member is a C++11 extension
[-Wc++11-extensions]
int include_depth_limit = 256;
^
/root/mivisionx-deps/rpp/addkernels/include_inliner.hpp:129:58: warning: in-class initialization of non-static data member is a C++11 extension
[-Wc++11-extensions]
int include_depth = 0;
^
/root/mivisionx-deps/rpp/addkernels/include_inliner.hpp:130:10: error: no type named 'shared_ptr' in namespace 'std'
std::shared_ptr included_stack_head = nullptr;
~~~~~^
/root/mivisionx-deps/rpp/addkernels/include_inliner.hpp:130:20: error: expected member name or ';' after declaration specifiers
std::shared_ptr included_stack_head = nullptr;
~~~~~~~~~~~~~~~^
In file included from /root/mivisionx-deps/rpp/addkernels/include_inliner.cpp:39:
In file included from /root/mivisionx-deps/rpp/addkernels/include_inliner.hpp:29:
/root/mivisionx-deps/rpp/addkernels/source_file_desc.hpp:37:10: error: no type named 'shared_ptr' in namespace 'std'
std::shared_ptr included_from;
~~~~~^
/root/mivisionx-deps/rpp/addkernels/source_file_desc.hpp:37:20: error: expected member name or ';' after declaration specifiers
std::shared_ptr included_from;
~~~~~~~~~~~~~~~^
/root/mivisionx-deps/rpp/addkernels/source_file_desc.hpp:39:51: error: no type named 'shared_ptr' in namespace 'std'
SourceFileDesc(const std::string& path
, std::shared_ptr from, int line)
~~~~~^
/root/mivisionx-deps/rpp/addkernels/source_file_desc.hpp:39:61: error: expected ')'
SourceFileDesc(const std::string& path
, std::shared_ptr from, int line)
^
/root/mivisionx-deps/rpp/addkernels/source_file_desc.hpp:39:19: note: to match this '('
SourceFileDesc(const std::string& path
, std::shared_ptr from, int line)
^
/root/mivisionx-deps/rpp/addkernels/source_file_desc.hpp:40:38: error: use of undeclared identifier 'line'
: path(path), included_line(line), included_from(from)
^
/root/mivisionx-deps/rpp/addkernels/source_file_desc.hpp:40:59: error: use of undeclared identifier 'from'
: path(path_), included_line(line), included_from(from)
^
In file included from /root/mivisionx-deps/rpp/addkernels/include_inliner.cpp:39:
/root/mivisionx-deps/rpp/addkernels/include_inliner.hpp:34:7: error: exception specification of overriding function is more lax than base version
class InlineException : public std::exception
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/exception:64:13: note: overridden virtual function is here
virtual ~exception() _GLIBCXX_USE_NOEXCEPT;
^
In file included from /root/mivisionx-deps/rpp/addkernels/include_inliner.cpp:39:
/root/mivisionx-deps/rpp/addkernels/include_inliner.hpp:51:30: warning: 'override' keyword is a C++11 extension [-Wc++11-extensions]
std::string What() const override
^
/root/mivisionx-deps/rpp/addkernels/include_inliner.hpp:62:30: warning: 'override' keyword is a C++11 extension [-Wc++11-extensions]
std::string What() const override { return "Include directive expected"; }
^
/root/mivisionx-deps/rpp/addkernels/include_inliner.hpp:70:30: warning: 'override' keyword is a C++11 extension [-Wc++11-extensions]
std::string What() const override { return "Include directive has wrong format"; }
^
/root/mivisionx-deps/rpp/addkernels/include_inliner.hpp:81:30: warning: 'override' keyword is a C++11 extension [-Wc++11-extensions]
std::string What() const override;
^
/root/mivisionx-deps/rpp/addkernels/include_inliner.hpp:96:36: warning: 'override' keyword is a C++11 extension [-Wc++11-extensions]
std::string GetMessage() const override
^
/root/mivisionx-deps/rpp/addkernels/include_inliner.hpp:111:36: warning: 'override' keyword is a C++11 extension [-Wc++11-extensions]
std::string GetMessage() const override { return "Can not open include file"; }
^
/root/mivisionx-deps/rpp/addkernels/include_inliner.hpp:117:29: warning: in-class initialization of non-static data member is a C++11 extension
[-Wc++11-extensions]
int include_depth_limit = 256;
^
/root/mivisionx-deps/rpp/addkernels/include_inliner.hpp:129:58: warning: in-class initialization of non-static data member is a C++11 extension
[-Wc++11-extensions]
int _include_depth = 0;
^
/root/mivisionx-deps/rpp/addkernels/include_inliner.hpp:130:10: error: no type named 'shared_ptr' in namespace 'std'
std::shared_ptr _included_stack_head = nullptr;
~~~~~^
/root/mivisionx-deps/rpp/addkernels/include_inliner.hpp:130:20: error: expected member name or ';' after declaration specifiers
std::shared_ptr _included_stack_head = nullptr;
~~~~~~~~~~~~~~~^
/root/mivisionx-deps/rpp/addkernels/include_inliner.cpp:60:11: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
const auto retval = realpath(path.c_str(), &result[0]);
^
/root/mivisionx-deps/rpp/addkernels/addkernels.cpp:43:10: error: no member named 'unique_ptr' in namespace 'std'
std::unique_ptr<unsigned char[]> buffer(new unsigned char[bufferSize]);
~~~~~^
/root/mivisionx-deps/rpp/addkernels/addkernels.cpp:43:30: error: expected '(' for function-style cast or type construction
std::unique_ptr<unsigned char[]> buffer(new unsigned char[bufferSize]);
~~~~~~~~ ^
/root/mivisionx-deps/rpp/addkernels/include_inliner.cpp:62:18: error: use of undeclared identifier 'nullptr'
if(retval == nullptr)
^
/root/mivisionx-deps/rpp/addkernels/addkernels.cpp:59:45: error: use of undeclared identifier 'buffer'
source.read(reinterpret_cast<char*>(buffer.get()), bufferSize);
^
/root/mivisionx-deps/rpp/addkernels/addkernels.cpp:71:73: error: use of undeclared identifier 'buffer'
target << "0x" << std::setw(2) << static_cast(buffer[j]) << ",";
^
/root/mivisionx-deps/rpp/addkernels/include_inliner.cpp:101:5: error: use of undeclared identifier '_included_stack_head'
_included_stack_head =
^
/root/mivisionx-deps/rpp/addkernels/addkernels.cpp:106:2: error: expected expression
[[gnu::noreturn]] void WrongUsage(const std::string& error)
^
/root/mivisionx-deps/rpp/addkernels/addkernels.cpp:106:19: error: expected unqualified-id
[[gnu::noreturn]] void WrongUsage(const std::string& error)
^
/root/mivisionx-deps/rpp/addkernels/addkernels.cpp:114:2: error: expected expression
[[gnu::noreturn]] void UnknownArgument(const std::string& arg)
^
/root/mivisionx-deps/rpp/addkernels/addkernels.cpp:114:19: error: expected unqualified-id
[[gnu::noreturn]] void UnknownArgument(const std::string& arg)
^
/root/mivisionx-deps/rpp/addkernels/include_inliner.cpp:102:14: error: no member named 'make_shared' in namespace 'std'
std::make_shared(file_name, _included_stack_head, line_number);
~~~~~^
/root/mivisionx-deps/rpp/addkernels/include_inliner.cpp:102:26: error: 'SourceFileDesc' does not refer to /root/mivisionx-deps/rpp/addkernels/addkernels.cppa :value130:
5: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
auto extPos = fileName.rfind('.');
^
std::make_shared(file_name, _included_stack_head, line_number);
^
/root/mivisionx-deps/rpp/addkernels/source_file_desc.hpp:32:7: note: declared here
class SourceFileDesc
^
/root/mivisionx-deps/rpp/addkernels/addkernels.cpp:131:5: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
auto slashPos = fileName.rfind('/');
^
/root/mivisionx-deps/rpp/addkernels/addkernels.cpp:146:19: error: no matching constructor for initialization of 'std::ifstream' (aka 'basic_ifstream')
std::ifstream sourceFile(sourcePath, std::ios::in | std::ios::binary);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/fstream:495:7: note: candidate constructor not viable: no known conversion from
'const std::string' (aka 'const basic_string') to 'const char ' for 1st argument
basic_ifstream(const char
__s, ios_base::openmode __mode = ios_base::in)
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/bits/fstream.tcc:1054:25: note: candidate constructor (the implicit copy constructor)
not viable: requires 1 argument, but 2 were provided
extern template class basic_ifstream;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/fstream:481:7: note: candidate constructor not viable: requires 0 arguments, but 2 were
provided
basic_ifstream() : __istream_type(), _M_filebuf()
^
/root/mivisionx-deps/rpp/addkernels/addkernels.cpp:155:11: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
const auto is_asm = extension == "s";
^
/root/mivisionx-deps/rpp/addkernels/addkernels.cpp:156:11: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
const auto is_cl = extension == "cl";
^
/root/mivisionx-deps/rpp/addkernels/addkernels.cpp:157:11: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
const auto is_hip = extension == "cpp";
^
/root/mivisionx-deps/rpp/addkernels/addkernels.cpp:158:11: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
const auto is_header = extension == "hpp";
^
/root/mivisionx-deps/rpp/addkernels/include_inliner.cpp:102:53: error: use of undeclared identifier '_included_stack_head'
std::make_shared(file_name, _included_stack_head, line_number);
^
/root/mivisionx-deps/rpp/addkernels/include_inliner.cpp:103:5: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
auto current_line = 0;
^
/root/mivisionx-deps/rpp/addkernels/include_inliner.cpp:104:5: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
auto next_include_optional = false;
^
/root/mivisionx-deps/rpp/addkernels/include_inliner.cpp:116:15: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
const auto include_optional = next_include_optional;
^
/root/mivisionx-deps/rpp/addkernels/include_inliner.cpp:129:13: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
auto first_quote_pos = line.find('"', static_cast(line_parser.tellg()) + 1);
^
/root/mivisionx-deps/rpp/addkernels/addkernels.cpp:239:29: error/root/mivisionx-deps/rpp/addkernels/include_inliner.cpp: :164:27no: member namederror : 'stol' inno namespacematching 'std';constructor didfor youinitialization meanof 'atol'?'std::ifstream'

  (aka 'basic_ifstream<char>')
        lineSize = std::stol(args[++i]);            std::ifstream include_file(abs_include_file_path, std::ios::in);

                   ~~~~~^~~~                          ^            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

                        atol

/usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/cstdlib:131:11: /usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/fstream:495:note7: : 'atol' declarednote : herecandidate
constructor using ::atol;not
viable: ^
no known conversion from
'const std::string' (aka 'const basic_string') to 'const char ' for 1st argument
basic_ifstream(const char
__s, ios_base::openmode __mode = ios_base::in)
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/bits/fstream.tcc:1054:25: note: candidate constructor (the implicit copy constructor)
not viable: requires 1 argument, but 2 were provided
extern template class basic_ifstream;
^
/usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/fstream:481:7: note: candidate constructor not viable: requires 0 arguments, but 2 were
provided
basic_ifstream() : __istream_type(), _M_filebuf()
^
/root/mivisionx-deps/rpp/addkernels/include_inliner.cpp:191:5: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
auto prev_file = _included_stack_head->included_from;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
14 warnings and 20 errors generated.
/root/mivisionx-deps/rpp/addkernels/include_inliner.cpp:191:28: error: use of undeclared identifier '_included_stack_head'
auto prev_file = _included_stack_head->included_from;
^
addkernels/CMakeFiles/addkernels.dir/build.make:86: recipe for target 'addkernels/CMakeFiles/addkernels.dir/addkernels.cpp.o' failed
make[2]: *** [addkernels/CMakeFiles/addkernels.dir/addkernels.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/root/mivisionx-deps/rpp/addkernels/include_inliner.cpp:192:5: error: use of undeclared identifier '_included_stack_head'
_included_stack_head = prev_file;
^
/root/mivisionx-deps/rpp/addkernels/include_inliner.cpp:200:8: error: use of undeclared identifier '_included_stack_head'
if(_included_stack_head == nullptr)
^
/root/mivisionx-deps/rpp/addkernels/include_inliner.cpp:200:32: error: use of undeclared identifier 'nullptr'
if(_included_stack_head == nullptr)
^
/root/mivisionx-deps/rpp/addkernels/include_inliner.cpp:203:5: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
auto item = _included_stack_head;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
15 warnings and 20 errors generated.
addkernels/CMakeFiles/addkernels.dir/build.make:62: recipe for target 'addkernels/CMakeFiles/addkernels.dir/include_inliner.cpp.o' failed
make[2]: *** [addkernels/CMakeFiles/addkernels.dir/include_inliner.cpp.o] Error 1
CMakeFiles/Makefile2:403: recipe for target 'addkernels/CMakeFiles/addkernels.dir/all' failed
make[1]: *** [addkernels/CMakeFiles/addkernels.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
`

CPU Backend - Clang Warnings

@r-abishek can you take a look at these?

cmake -D BACKEND=CPU ../rpp/
-- The CXX compiler identification is Clang 5.0.1
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /opt/rh/llvm-toolset-7/root/usr/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- AMD Radeon Performance Primitives (RPP) Version -- 0.96
-- AMD RPP install path set to -- /opt/rocm
-- AMD RPP Backend set to -- CPU
-- AMD RPP Build Type -- Release
-- Found Boost: /usr/include (found version "1.53.0") found components: filesystem system 
-- Found OpenMP_CXX: -fopenmp=libomp (found version "3.1") 
-- Found OpenMP: TRUE (found version "3.1")  
-- Looking for C++ include pthread.h
-- Looking for C++ include pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- The C compiler identification is Clang 5.0.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /opt/rh/llvm-toolset-7/root/usr/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Added custom command for rpp_kernels
-- AMD RPP modules -- Include Directories:/var/tmp/rpp/src/include/common/
-- amd_rpp set to build with ENABLE_SIMD_INTRINSICS
-- amd_rpp -- Using Compiler - Path:/opt/rh/llvm-toolset-7/root/usr/bin/clang++	Version:5.0.1	Compiler:Clang
-- amd_rpp -- CMAKE_CXX_FLAGS: -O3 -Ofast -DNDEBUG -fopenmp=libomp -fPIC -mavx2 -mfma -std=gnu++14
-- amd_rpp -- Link Libraries: /usr/lib64/libboost_filesystem-mt.so;/usr/lib64/libboost_system-mt.so;OpenMP::OpenMP_CXX;Threads::Threads;stdc++
-- Configuring done
-- Generating done
-- Build files have been written to: /var/tmp/build-cpu
[root@simon build-cpu]# make -j8
[  3%] Building CXX object addkernels/CMakeFiles/addkernels.dir/include_inliner.cpp.o
[  6%] Building CXX object addkernels/CMakeFiles/addkernels.dir/addkernels.cpp.o
[ 10%] Linking CXX executable ../bin/addkernels
[ 10%] Built target addkernels
[ 13%] Inlining Rpp kernels
[ 20%] Building CXX object src/modules/CMakeFiles/modules.dir/binary_cache.cpp.o
[ 20%] Building CXX object src/modules/CMakeFiles/modules.dir/kernel_cache.cpp.o
[ 26%] Building CXX object src/modules/CMakeFiles/modules.dir/handle_api.cpp.o
[ 26%] Building CXX object src/modules/CMakeFiles/modules.dir/handlehost.cpp.o
[ 30%] Building CXX object src/modules/CMakeFiles/modules.dir/logger.cpp.o
[ 33%] Building CXX object src/modules/CMakeFiles/modules.dir/md5.cpp.o
[ 36%] Building CXX object src/modules/CMakeFiles/modules.dir/rppi_advanced_augmentations.cpp.o
[ 40%] Building CXX object src/modules/CMakeFiles/modules.dir/rppi_arithmetic_operations.cpp.o
[ 43%] Building CXX object src/modules/CMakeFiles/modules.dir/rppi_color_model_conversions.cpp.o
[ 46%] Building CXX object src/modules/CMakeFiles/modules.dir/rppi_computer_vision.cpp.o
[ 50%] Building CXX object src/modules/CMakeFiles/modules.dir/rppi_filter_operations.cpp.o
[ 53%] Building CXX object src/modules/CMakeFiles/modules.dir/rppi_fused_functions.cpp.o
[ 56%] Building CXX object src/modules/CMakeFiles/modules.dir/rppi_geometry_transforms.cpp.o
[ 60%] Building CXX object src/modules/CMakeFiles/modules.dir/rppi_image_augmentations.cpp.o
In file included from /var/tmp/rpp/src/modules/rppi_advanced_augmentations.cpp:26:
In file included from /var/tmp/rpp/src/modules/cpu/host_advanced_augmentations.hpp:5:
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:922:28: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
            ~~~~~~~~~~~~~~ ^ ~
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:922:49: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
                                  ~~~~~~~~~~~~~ ^ ~
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:1017:28: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
            ~~~~~~~~~~~~~~ ^ ~
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:1017:49: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
                                  ~~~~~~~~~~~~~ ^ ~
In file included from /var/tmp/rpp/src/modules/rppi_advanced_augmentations.cpp:26:
/var/tmp/rpp/src/modules/cpu/host_advanced_augmentations.hpp:2482:42: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare]
                            ((currentRow >= 0) && (currentRow < batch_srcSize[batchCount].height)) &&
                              ~~~~~~~~~~ ^  ~
/var/tmp/rpp/src/modules/cpu/host_advanced_augmentations.hpp:2483:42: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare]
                            ((currentCol >= 0) && (currentCol < batch_srcSize[batchCount].width))
                              ~~~~~~~~~~ ^  ~
/var/tmp/rpp/src/modules/cpu/host_advanced_augmentations.hpp:2584:42: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare]
                            ((currentRow >= 0) && (currentRow < batch_srcSize[batchCount].height)) &&
                              ~~~~~~~~~~ ^  ~
/var/tmp/rpp/src/modules/cpu/host_advanced_augmentations.hpp:2585:42: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare]
                            ((currentCol >= 0) && (currentCol < batch_srcSize[batchCount].width))
                              ~~~~~~~~~~ ^  ~
In file included from /var/tmp/rpp/src/modules/rppi_arithmetic_operations.cpp:26:
In file included from /var/tmp/rpp/src/modules/cpu/host_arithmetic_operations.hpp:4:
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:922:28: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
            ~~~~~~~~~~~~~~ ^ ~
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:922:49: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
                                  ~~~~~~~~~~~~~ ^ ~
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:1017:28: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
            ~~~~~~~~~~~~~~ ^ ~
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:1017:49: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
                                  ~~~~~~~~~~~~~ ^ ~
In file included from /var/tmp/rpp/src/modules/rppi_color_model_conversions.cpp:26:
In file included from /var/tmp/rpp/src/modules/cpu/host_color_model_conversions.hpp:4:
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:922:28: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
            ~~~~~~~~~~~~~~ ^ ~
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:922:49: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
                                  ~~~~~~~~~~~~~ ^ ~
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:1017:28: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
            ~~~~~~~~~~~~~~ ^ ~
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:1017:49: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
                                  ~~~~~~~~~~~~~ ^ ~
In file included from /var/tmp/rpp/src/modules/rppi_computer_vision.cpp:26:
In file included from /var/tmp/rpp/src/modules/cpu/host_computer_vision.hpp:4:
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:922:28: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
            ~~~~~~~~~~~~~~ ^ ~
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:922:49: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
                                  ~~~~~~~~~~~~~ ^ ~
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:1017:28: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
            ~~~~~~~~~~~~~~ ^ ~
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:1017:49: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
                                  ~~~~~~~~~~~~~ ^ ~
In file included from /var/tmp/rpp/src/modules/rppi_filter_operations.cpp:26:
In file included from /var/tmp/rpp/src/modules/cpu/host_filter_operations.hpp:4:
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:922:28: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
            ~~~~~~~~~~~~~~ ^ ~
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:922:49: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
                                  ~~~~~~~~~~~~~ ^ ~
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:1017:28: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
            ~~~~~~~~~~~~~~ ^ ~
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:1017:49: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
                                  ~~~~~~~~~~~~~ ^ ~
4 warnings generated.
[ 63%] Building CXX object src/modules/CMakeFiles/modules.dir/rppi_logical_operations.cpp.o
In file included from /var/tmp/rpp/src/modules/rppi_fused_functions.cpp:26:
In file included from /var/tmp/rpp/src/modules/cpu/host_fused_functions.hpp:5:
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:922:28: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
            ~~~~~~~~~~~~~~ ^ ~
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:922:49: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
                                  ~~~~~~~~~~~~~ ^ ~
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:1017:28: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
            ~~~~~~~~~~~~~~ ^ ~
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:1017:49: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
                                  ~~~~~~~~~~~~~ ^ ~
In file included from /var/tmp/rpp/src/modules/rppi_geometry_transforms.cpp:26:
In file included from /var/tmp/rpp/src/modules/cpu/host_geometry_transforms.hpp:4:
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:922:28: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
            ~~~~~~~~~~~~~~ ^ ~
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:922:49: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
                                  ~~~~~~~~~~~~~ ^ ~
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:1017:28: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
            ~~~~~~~~~~~~~~ ^ ~
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:1017:49: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
                                  ~~~~~~~~~~~~~ ^ ~
In file included from /var/tmp/rpp/src/modules/rppi_geometry_transforms.cpp:26:
/var/tmp/rpp/src/modules/cpu/host_geometry_transforms.hpp:2458:24: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
    if (dstSize.height < 0 || dstSize.width < 0)
        ~~~~~~~~~~~~~~ ^ ~
/var/tmp/rpp/src/modules/cpu/host_geometry_transforms.hpp:2458:45: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
    if (dstSize.height < 0 || dstSize.width < 0)
                              ~~~~~~~~~~~~~ ^ ~
In file included from /var/tmp/rpp/src/modules/rppi_image_augmentations.cpp:26:
In file included from /var/tmp/rpp/src/modules/cpu/host_image_augmentations.hpp:8:
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:922:28: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
            ~~~~~~~~~~~~~~ ^ ~
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:922:49: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
                                  ~~~~~~~~~~~~~ ^ ~
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:1017:28: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
            ~~~~~~~~~~~~~~ ^ ~
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:1017:49: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
                                  ~~~~~~~~~~~~~ ^ ~
4 warnings generated.
[ 66%] Building CXX object src/modules/CMakeFiles/modules.dir/rppi_morphological_operations.cpp.o
In file included from /var/tmp/rpp/src/modules/rppi_logical_operations.cpp:26:
In file included from /var/tmp/rpp/src/modules/cpu/host_logical_operations.hpp:4:
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:922:28: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
            ~~~~~~~~~~~~~~ ^ ~
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:922:49: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
                                  ~~~~~~~~~~~~~ ^ ~
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:1017:28: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
            ~~~~~~~~~~~~~~ ^ ~
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:1017:49: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
                                  ~~~~~~~~~~~~~ ^ ~
4 warnings generated.
[ 70%] Building CXX object src/modules/CMakeFiles/modules.dir/rppi_statistical_operations.cpp.o
4 warnings generated.
[ 73%] Building CXX object src/modules/CMakeFiles/modules.dir/rppt_tensor_color_augmentations.cpp.o
In file included from /var/tmp/rpp/src/modules/rppi_morphological_operations.cpp:26:
In file included from /var/tmp/rpp/src/modules/cpu/host_morphological_transforms.hpp:4:
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:922:28: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
            ~~~~~~~~~~~~~~ ^ ~
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:922:49: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
                                  ~~~~~~~~~~~~~ ^ ~
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:1017:28: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
            ~~~~~~~~~~~~~~ ^ ~
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:1017:49: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
                                  ~~~~~~~~~~~~~ ^ ~
4 warnings generated.
[ 76%] Building CXX object src/modules/CMakeFiles/modules.dir/rppt_tensor_data_exchange_operations.cpp.o
4 warnings generated.
[ 80%] Building CXX object src/modules/CMakeFiles/modules.dir/rppt_tensor_effects_augmentations.cpp.o
In file included from /var/tmp/rpp/src/modules/rppi_statistical_operations.cpp:26:
In file included from /var/tmp/rpp/src/modules/cpu/host_statistical_operations.hpp:5:
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:922:28: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
            ~~~~~~~~~~~~~~ ^ ~
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:922:49: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
                                  ~~~~~~~~~~~~~ ^ ~
4 warnings generated.
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:1017:28: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
            ~~~~~~~~~~~~~~ ^ ~
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:1017:49: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
                                  ~~~~~~~~~~~~~ ^ ~
[ 83%] Building CXX object src/modules/CMakeFiles/modules.dir/rppt_tensor_filter_augmentations.cpp.o
8 warnings generated.
[ 86%] Building CXX object src/modules/CMakeFiles/modules.dir/rppt_tensor_geometric_augmentations.cpp.o
In file included from /var/tmp/rpp/src/modules/rppt_tensor_color_augmentations.cpp:26:
In file included from /var/tmp/rpp/src/modules/cpu/host_tensor_color_augmentations.hpp:26:
In file included from /var/tmp/rpp/src/modules/cpu/kernel/brightness.hpp:3:
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:922:28: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
            ~~~~~~~~~~~~~~ ^ ~
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:922:49: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
                                  ~~~~~~~~~~~~~ ^ ~
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:1017:28: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
            ~~~~~~~~~~~~~~ ^ ~
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:1017:49: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
                                  ~~~~~~~~~~~~~ ^ ~
4 warnings generated.
[ 90%] Building CXX object src/modules/CMakeFiles/modules.dir/rppt_tensor_morphological_operations.cpp.o
In file included from /var/tmp/rpp/src/modules/rppt_tensor_data_exchange_operations.cpp:26:
In file included from /var/tmp/rpp/src/modules/cpu/host_tensor_data_exchange_operations.hpp:26:
In file included from /var/tmp/rpp/src/modules/cpu/kernel/copy.hpp:3:
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:922:28: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
            ~~~~~~~~~~~~~~ ^ ~
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:922:49: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
                                  ~~~~~~~~~~~~~ ^ ~
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:1017:28: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
            ~~~~~~~~~~~~~~ ^ ~
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:1017:49: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
                                  ~~~~~~~~~~~~~ ^ ~
[ 93%] Building CXX object src/modules/CMakeFiles/modules.dir/kernel.cpp.o
In file included from /var/tmp/rpp/src/modules/rppt_tensor_effects_augmentations.cpp:27:
In file included from /var/tmp/rpp/src/modules/cpu/host_tensor_effects_augmentations.hpp:26:
In file included from /var/tmp/rpp/src/modules/cpu/kernel/gridmask.hpp:3:
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:922:28: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
            ~~~~~~~~~~~~~~ ^ ~
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:922:49: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
                                  ~~~~~~~~~~~~~ ^ ~
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:1017:28: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
            ~~~~~~~~~~~~~~ ^ ~
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:1017:49: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
                                  ~~~~~~~~~~~~~ ^ ~
[ 96%] Building CXX object src/modules/CMakeFiles/modules.dir/kernel_includes.cpp.o
In file included from /var/tmp/rpp/src/modules/rppt_tensor_geometric_augmentations.cpp:26:
In file included from /var/tmp/rpp/src/modules/cpu/host_tensor_geometric_augmentations.hpp:26:
In file included from /var/tmp/rpp/src/modules/cpu/kernel/crop.hpp:3:
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:922:28: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
            ~~~~~~~~~~~~~~ ^ ~
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:922:49: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
                                  ~~~~~~~~~~~~~ ^ ~
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:1017:28: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
            ~~~~~~~~~~~~~~ ^ ~
/var/tmp/rpp/src/include/cpu/rpp_cpu_common.hpp:1017:49: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
        if (dstSize.height < 0 || dstSize.width < 0)
                                  ~~~~~~~~~~~~~ ^ ~
6 warnings generated.
4 warnings generated.
4 warnings generated.
4 warnings generated.
4 warnings generated.
4 warnings generated.
[ 96%] Built target modules
[100%] Linking CXX shared library lib/libamd_rpp.so
[100%] Built target amd_rpp

CMakeList - Warning

Fix required

-- Found OPENCL: /usr/lib/x86_64-linux-gnu/libOpenCL.so  
CMake Warning (dev) at /opt/conda/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:426 (message):
  The package name passed to `find_package_handle_standard_args` (OPENCL)
  does not match the name of the calling package (OpenCL).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake/FindOpenCL.cmake:52 (find_package_handle_standard_args)
  CMakeLists.txt:189 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- ROCm OpenCL Found - Set CL_TARGET_OPENCL_VERSION=220
Add Custome Command
OPenCL incude directories are /opt/rocm/opencl/include;/root/rpp/src/include/cl/

RPP Support for CentOS

  • RPP does not build on CentOS
  • CentOS is a supported ROCm distribution
  • Need to Investigate what are the missing dependencies

AMD GPU Arch - Deprecated

gcnArch was deprecated in ROCm 3.7. Instead, gcnArchName was introduced. gcnArch was never removed but announced that it will be done in ROCm 5.5 via https://rocm.docs.amd.com/en/docs-5.5.1/CHANGELOG.html#future-changes. So now it is intended to be done in ROCm 6.0.

gcnArch present in RPP source code at below places:

Can you please review the below lines of code and stop using gcnArch if still used:

src/modules/hip/handlehip.cpp: std::string n("gfx" + std::to_string(props.gcnArch));
src/modules/hip/hipoc_program.cpp: std::string gfxName = "gfx" + std::to_string(props.gcnArch);

[Issue]: RPP Test - Skip messages for not implemented

Problem Description

Messages on not implemented tests take up test time. Turn of messages for not implemented / skip to speed up CTest.

Operating System

ALL

CPU

ALL

GPU

Other

Other

All Supported GPU

ROCm Version

ROCm 6.0.0

ROCm Component

rpp

Steps to Reproduce

No response

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

No response

Additional Information

No response

Missing Prerequisites

RPP needs following pre-reqs to build on Ubuntu-18.04 which are not mentioned

  • clang
  • half.hpp
  • Boost

RPP Warnings

-- The C compiler identification is GNU 7.4.0
-- The CXX compiler identification is GNU 7.4.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
-- Found OPENCL: /opt/rocm/opencl/lib/x86_64/libOpenCL.so  
-- Configuring done
-- Generating done
-- Build files have been written to: /home/kiriti/mivisionx-deps/rpp/build
Scanning dependencies of target imgaug-opencl
[ 10%] Building CXX object src/imgaug/cl/CMakeFiles/imgaug-opencl.dir/cl_image_augmentations.cpp.o
[ 20%] Building CXX object src/imgaug/cl/CMakeFiles/imgaug-opencl.dir/cl_geometry_transforms.cpp.o
[ 40%] Building CXX object src/imgaug/cl/CMakeFiles/imgaug-opencl.dir/cl_color_model_conversions.cpp.o
[ 40%] Building CXX object src/imgaug/cl/CMakeFiles/imgaug-opencl.dir/cl_utilities.cpp.o
clang-9: clang-9: clang-9: warning: warningwarning-lm: 'linker' input unused [-Wunused-command-line-argument]: : 
-lm: 'linker' input unused [-Wunused-command-line-argument]-lm: 'linker' input unused [-Wunused-command-line-argument]

clang-9: warning: -lm: 'linker' input unused [-Wunused-command-line-argument]
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_color_model_conversions.cpp:1:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:4659:21In file included from : /home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_utilities.cpp:1warning:
: In file included from In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp/home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_image_augmentations.cpp:'clCreateSampler' is deprecated [-Wdeprecated-declarations]:10In file included from 1:
/home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_geometry_transforms.cpp
:
:In file included from /opt/rocm/opencl/include/CL/cl.hpp1/home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp::
:4659In file included from 10:/home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:
21::10 :
/opt/rocm/opencl/include/CL/cl.hppwarning/opt/rocm/opencl/include/CL/cl.hpp:: :46594659:21:'clCreateSampler' is deprecated [-Wdeprecated-declarations]:21 :
 warning: warning: 'clCreateSampler' is deprecated [-Wdeprecated-declarations]'clCreateSampler' is deprecated [-Wdeprecated-declarations]

        object_ = ::clCreateSampler(        object_ = ::clCreateSampler(

                    ^                    ^

        object_ = ::clCreateSampler(        object_ = ::clCreateSampler(

                    ^
                    ^
/opt/rocm/opencl/include/CL/cl.h:1375:56: note: 'clCreateSampler' has been explicitly marked deprecated here
                cl_int *            /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                                       ^
/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
/opt/rocm/opencl/include/CL/cl.h:1375:56: note:             #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
/opt/rocm/opencl/include/CL/cl.h'clCreateSampler' has been explicitly marked deprecated here:1375
:56: /opt/rocm/opencl/include/CL/cl.hnote::                 cl_int *            /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;1375
:'clCreateSampler' has been explicitly marked deprecated here56                                                       ^:

 note: 'clCreateSampler' has been explicitly marked deprecated here/opt/rocm/opencl/include/CL/cl_platform.h:
115:74: note:                 cl_int *            /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'

                                                       ^                cl_int *            /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;

                                                       ^
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))/opt/rocm/opencl/include/CL/cl_platform.h
:115                                                                         ^/opt/rocm/opencl/include/CL/cl_platform.h::
11574::74 : note: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_utilities.cpp:1:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:5519:25: warning: 'clCreateCommandQueue' is deprecated [-Wdeprecated-declarations]
            object_ = ::clCreateCommandQueue(
                        ^
/opt/rocm/opencl/include/CL/cl.h:1367:72: note: 'clCreateCommandQueue' has been explicitly marked deprecated here
                     cl_int *                       /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                                                       ^
/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_color_model_conversions.cpp:1:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:5519:25: warning: 'clCreateCommandQueue' is deprecated [-Wdeprecated-declarations]
            object_ = ::clCreateCommandQueue(
                        ^
/opt/rocm/opencl/include/CL/cl.h:1367:72: note: 'clCreateCommandQueue' has been explicitly marked deprecated here
                     cl_int *                       /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                                                       ^
/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_utilities.cpp:1:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:5550:21: warning: 'clCreateCommandQueue' is deprecated [-Wdeprecated-declarations]
        object_ = ::clCreateCommandQueue(context(), devices[0](), properties, &error);
                    ^
/opt/rocm/opencl/include/CL/cl.h:1367:72: note: 'clCreateCommandQueue' has been explicitly marked deprecated here
                     cl_int *                       /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                                                       ^
/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_color_model_conversions.cpp:1:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:5550:21: warning: 'clCreateCommandQueue' is deprecated [-Wdeprecated-declarations]In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_utilities.cpp
:1:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:5567:21: warning:         object_ = ::clCreateCommandQueue(context(), devices[0](), properties, &error);'clCreateCommandQueue' is deprecated [-Wdeprecated-declarations]

                    ^
/opt/rocm/opencl/include/CL/cl.h:        object_ = ::clCreateCommandQueue(1367
:72                    ^:
 note: 'clCreateCommandQueue' has been explicitly marked deprecated here/opt/rocm/opencl/include/CL/cl.h
:1367:72: note: 'clCreateCommandQueue' has been explicitly marked deprecated here
                     cl_int *                       /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                                                       ^
/opt/rocm/opencl/include/CL/cl_platform.h:115                     cl_int *                       /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;:
74:                                                                       ^ 
note: /opt/rocm/opencl/include/CL/cl_platform.hexpanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED':115
:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_color_model_conversions.cpp:1:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:5567:21: warning: 'clCreateCommandQueue' is deprecated [-Wdeprecated-declarations]
        object_ = ::clCreateCommandQueue(
                    ^
/opt/rocm/opencl/include/CL/cl.h:1367:72: note: 'clCreateCommandQueue' has been explicitly marked deprecated here
                     cl_int *                       /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                                                       ^
/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_geometry_transforms.cpp:1:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:5519:25: warning: 'clCreateCommandQueue' is deprecated [-Wdeprecated-declarations]
            object_ = ::clCreateCommandQueue(
                        ^
/opt/rocm/opencl/include/CL/cl.h:1367:72: note: 'clCreateCommandQueue' has been explicitly marked deprecated here
                     cl_int *                       /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                                                       ^
/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_geometry_transforms.cpp:1:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:5550:21: warning: 'clCreateCommandQueue' is deprecated [-Wdeprecated-declarations]
        object_ = ::clCreateCommandQueue(context(), devices[0](), properties, &error);
                    ^
/opt/rocm/opencl/include/CL/cl.h:1367:72: note: 'clCreateCommandQueue' has been explicitly marked deprecated here
                     cl_int *                       /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                                                       ^
/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_geometry_transforms.cpp:1:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:5567:21: warning: 'clCreateCommandQueue' is deprecated [-Wdeprecated-declarations]
        object_ = ::clCreateCommandQueue(
                    ^
/opt/rocm/opencl/include/CL/cl.h:1367:72: note: 'clCreateCommandQueue' has been explicitly marked deprecated here
                     cl_int *                       /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                                                       ^
/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_image_augmentations.cpp:1:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:5519:25: warning: 'clCreateCommandQueue' is deprecated [-Wdeprecated-declarations]
            object_ = ::clCreateCommandQueue(
                        ^
/opt/rocm/opencl/include/CL/cl.h:1367:72: note: 'clCreateCommandQueue' has been explicitly marked deprecated here
                     cl_int *                       /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                                                       ^
/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_image_augmentations.cpp:1:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:5550:21: warning: 'clCreateCommandQueue' is deprecated [-Wdeprecated-declarations]
        object_ = ::clCreateCommandQueue(context(), devices[0](), properties, &error);
                    ^
/opt/rocm/opencl/include/CL/cl.h:1367:72: note: 'clCreateCommandQueue' has been explicitly marked deprecated here
                     cl_int *                       /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                                                       ^
/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_image_augmentations.cpp:1:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:5567:21: warning: 'clCreateCommandQueue' is deprecated [-Wdeprecated-declarations]
        object_ = ::clCreateCommandQueue(
                    ^
/opt/rocm/opencl/include/CL/cl.h:1367:72: note: 'clCreateCommandQueue' has been explicitly marked deprecated here
                     cl_int *                       /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                                                       ^
/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_utilities.cpp:1:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:6371:15: warning: 'clEnqueueTask' is deprecated [-Wdeprecated-declarations]
            ::clEnqueueTask(
              ^
/opt/rocm/opencl/include/CL/cl.h:1382:46: note: 'clEnqueueTask' has been explicitly marked deprecated here
              cl_event *        /* event */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                             ^
/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_color_model_conversions.cpp:1:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:6371:15: warning: 'clEnqueueTask' is deprecated [-Wdeprecated-declarations]
            ::clEnqueueTask(
              ^
/opt/rocm/opencl/include/CL/cl.h:1382:46: note: 'clEnqueueTask' has been explicitly marked deprecated here
              cl_event *        /* event */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                             ^
/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_geometry_transforms.cpp:1:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:6371:15: warning: 'clEnqueueTask' is deprecated [-Wdeprecated-declarations]
            ::clEnqueueTask(
              ^
/opt/rocm/opencl/include/CL/cl.h:1382:46: note: 'clEnqueueTask' has been explicitly marked deprecated here
              cl_event *        /* event */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                             ^
/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_image_augmentations.cpp:1:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:6371:15: warning: 'clEnqueueTask' is deprecated [-Wdeprecated-declarations]
            ::clEnqueueTask(
              ^
/opt/rocm/opencl/include/CL/cl.h:1382:46: note: 'clEnqueueTask' has been explicitly marked deprecated here
              cl_event *        /* event */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                             ^
/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
/home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_geometry_transforms.cpp:81:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
/home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_geometry_transforms.cpp:127:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
/home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_geometry_transforms.cpp:201:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
/home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_geometry_transforms.cpp:250:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
/home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_geometry_transforms.cpp:292:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
/home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_geometry_transforms.cpp:416:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
/home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_image_augmentations.cpp:483:9: warning: array index 2 is past the end of the array (which contains 2 elements) [-Warray-bounds]
        gDim3[2] = 1;
        ^     ~
/home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_image_augmentations.cpp:480:9: note: array 'gDim3' declared here
        size_t gDim3[2];
        ^
/home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_utilities.cpp:45:5: warning: control may reach end of non-void function [-Wreturn-type]
    }
    ^
/home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_utilities.cpp:256:20: warning: implicit conversion of NULL constant to 'cl_int' (aka 'int') [-Wnull-conversion]
            return NULL;
            ~~~~~~ ^~~~
                   0
/home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_utilities.cpp:262:20: warning: implicit conversion of NULL constant to 'cl_int' (aka 'int') [-Wnull-conversion]
            return NULL;
            ~~~~~~ ^~~~
                   0
/home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_utilities.cpp:276:20: warning: implicit conversion of NULL constant to 'cl_int' (aka 'int') [-Wnull-conversion]
            return NULL;
            ~~~~~~ ^~~~
                   0
5 warnings generated.
11 warnings generated.
9 warnings generated.
6 warnings generated.
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_color_model_conversions.cpp:1:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:4659:21: warning: In file included from 'clCreateSampler' is deprecated [-Wdeprecated-declarations]/home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_image_augmentations.cpp:
1:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:4659:21: warning: 'clCreateSampler' is deprecated [-Wdeprecated-declarations]
        object_ = ::clCreateSampler(
                    ^
        object_ = ::clCreateSampler(
                    ^
/opt/rocm/opencl/include/CL/cl.h:1375:56: note: 'clCreateSampler' has been explicitly marked deprecated here
/opt/rocm/opencl/include/CL/cl.h:1375:56: note: 'clCreateSampler' has been explicitly marked deprecated here                cl_int *            /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;

                                                       ^
/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note                cl_int *            /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;: 
expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'                                                       ^

/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note:             #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'                                                                         ^

            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_geometry_transforms.cpp:1:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:4659:21: warning: 'clCreateSampler' is deprecated [-Wdeprecated-declarations]
        object_ = ::clCreateSampler(
                    ^
/opt/rocm/opencl/include/CL/cl.h:1375:56: note: 'clCreateSampler' has been explicitly marked deprecated here
                cl_int *            /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                                       ^
/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_utilities.cpp:1:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:4659:21: warning: 'clCreateSampler' is deprecated [-Wdeprecated-declarations]
        object_ = ::clCreateSampler(
                    ^
/opt/rocm/opencl/include/CL/cl.h:1375:56: note: 'clCreateSampler' has been explicitly marked deprecated here
                cl_int *            /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                                       ^
/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
In file included from In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_color_model_conversions.cpp/home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_image_augmentations.cpp::11:
:
In file included from In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp/home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp::1010:
:
/opt/rocm/opencl/include/CL/cl.hpp/opt/rocm/opencl/include/CL/cl.hpp::55195519::2525::  warningwarning: : 'clCreateCommandQueue' is deprecated [-Wdeprecated-declarations]'clCreateCommandQueue' is deprecated [-Wdeprecated-declarations]

            object_ = ::clCreateCommandQueue(            object_ = ::clCreateCommandQueue(

                        ^                        ^

/opt/rocm/opencl/include/CL/cl.h/opt/rocm/opencl/include/CL/cl.h::13671367::7272::  notenote: : 'clCreateCommandQueue' has been explicitly marked deprecated here'clCreateCommandQueue' has been explicitly marked deprecated here

                     cl_int *                       /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;                     cl_int *                       /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;

                                                                       ^                                                                       ^

/opt/rocm/opencl/include/CL/cl_platform.h/opt/rocm/opencl/include/CL/cl_platform.h::115115::7474::  notenote: : expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'

            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))

                                                                         ^                                                                         ^

In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_color_model_conversions.cppIn file included from :/home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_image_augmentations.cpp1::
1In file included from :
/home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hppIn file included from :/home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp10::
10:
/opt/rocm/opencl/include/CL/cl.hpp:/opt/rocm/opencl/include/CL/cl.hpp5550::555021::21 : warning: warning: 'clCreateCommandQueue' is deprecated [-Wdeprecated-declarations]'clCreateCommandQueue' is deprecated [-Wdeprecated-declarations]

        object_ = ::clCreateCommandQueue(context(), devices[0](), properties, &error);
        object_ = ::clCreateCommandQueue(context(), devices[0](), properties, &error);                    ^

                    ^
/opt/rocm/opencl/include/CL/cl.h:1367:/opt/rocm/opencl/include/CL/cl.h72::1367 :72:note : 'clCreateCommandQueue' has been explicitly marked deprecated herenote: 
'clCreateCommandQueue' has been explicitly marked deprecated here
                     cl_int *                       /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                                                       ^
                     cl_int *                       /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
/opt/rocm/opencl/include/CL/cl_platform.h                                                                       ^:
115:74:/opt/rocm/opencl/include/CL/cl_platform.h :115:note74: : expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_image_augmentations.cpp:1:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hppIn file included from :/home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_color_model_conversions.cpp10::
1:
/opt/rocm/opencl/include/CL/cl.hppIn file included from :/home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp5567::1021:
: /opt/rocm/opencl/include/CL/cl.hpp:5567warning:: 21: 'clCreateCommandQueue' is deprecated [-Wdeprecated-declarations]
warning: 'clCreateCommandQueue' is deprecated [-Wdeprecated-declarations]        object_ = ::clCreateCommandQueue(

                    ^
        object_ = ::clCreateCommandQueue(
/opt/rocm/opencl/include/CL/cl.h:                    ^1367
:72: /opt/rocm/opencl/include/CL/cl.h:note1367: :72'clCreateCommandQueue' has been explicitly marked deprecated here: 
note: 'clCreateCommandQueue' has been explicitly marked deprecated here
                     cl_int *                       /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                                                       ^
                     cl_int *                       /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
/opt/rocm/opencl/include/CL/cl_platform.h:                                                                       ^115
:74: /opt/rocm/opencl/include/CL/cl_platform.hnote:: 115:expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'74:
 note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_geometry_transforms.cpp:1:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:5519:25: warning: 'clCreateCommandQueue' is deprecated [-Wdeprecated-declarations]
            object_ = ::clCreateCommandQueue(
                        ^
/opt/rocm/opencl/include/CL/cl.h:1367:72: note: 'clCreateCommandQueue' has been explicitly marked deprecated here
                     cl_int *                       /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                                                       ^
/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_geometry_transforms.cpp:1:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:5550:21: warning: 'clCreateCommandQueue' is deprecated [-Wdeprecated-declarations]
        object_ = ::clCreateCommandQueue(context(), devices[0](), properties, &error);
                    ^
/opt/rocm/opencl/include/CL/cl.h:1367:72: note: 'clCreateCommandQueue' has been explicitly marked deprecated here
                     cl_int *                       /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                                                       ^
/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_geometry_transforms.cpp:1:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:5567:21: warning: 'clCreateCommandQueue' is deprecated [-Wdeprecated-declarations]
        object_ = ::clCreateCommandQueue(
                    ^
/opt/rocm/opencl/include/CL/cl.h:1367:72: note: 'clCreateCommandQueue' has been explicitly marked deprecated here
                     cl_int *                       /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                                                       ^
/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_image_augmentations.cpp:1:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:6371:15: warning: 'clEnqueueTask' is deprecated [-Wdeprecated-declarations]
            ::clEnqueueTask(
              ^
/opt/rocm/opencl/include/CL/cl.h:1382:46: note: 'clEnqueueTask' has been explicitly marked deprecated here
              cl_event *        /* event */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                             ^In file included from 
/home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_color_model_conversions.cpp:1:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:/opt/rocm/opencl/include/CL/cl_platform.h10::
115:74/opt/rocm/opencl/include/CL/cl.hpp:: 6371:15note::  expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'warning
: 'clEnqueueTask' is deprecated [-Wdeprecated-declarations]
            ::clEnqueueTask(            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))

              ^                                                                         ^

/opt/rocm/opencl/include/CL/cl.h:1382:46: note: 'clEnqueueTask' has been explicitly marked deprecated here
              cl_event *        /* event */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                             ^
/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_geometry_transforms.cpp:1:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:6371:15: warning: 'clEnqueueTask' is deprecated [-Wdeprecated-declarations]
            ::clEnqueueTask(
              ^
/opt/rocm/opencl/include/CL/cl.h:1382:46: note: 'clEnqueueTask' has been explicitly marked deprecated here
              cl_event *        /* event */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                             ^
/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_utilities.cpp:1:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:5519:25: warning: 'clCreateCommandQueue' is deprecated [-Wdeprecated-declarations]
            object_ = ::clCreateCommandQueue(
                        ^
/opt/rocm/opencl/include/CL/cl.h:1367:72: note: 'clCreateCommandQueue' has been explicitly marked deprecated here
                     cl_int *                       /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                                                       ^
/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_utilities.cpp:1:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:5550:21: warning: 'clCreateCommandQueue' is deprecated [-Wdeprecated-declarations]
        object_ = ::clCreateCommandQueue(context(), devices[0](), properties, &error);
                    ^
/opt/rocm/opencl/include/CL/cl.h:1367:72: note: 'clCreateCommandQueue' has been explicitly marked deprecated here
                     cl_int *                       /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                                                       ^
/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_utilities.cpp:1:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:5567:21: warning: 'clCreateCommandQueue' is deprecated [-Wdeprecated-declarations]
        object_ = ::clCreateCommandQueue(
                    ^
/opt/rocm/opencl/include/CL/cl.h:1367:72: note: 'clCreateCommandQueue' has been explicitly marked deprecated here
                     cl_int *                       /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                                                       ^
/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_utilities.cpp:1:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:6371:15: warning: 'clEnqueueTask' is deprecated [-Wdeprecated-declarations]
            ::clEnqueueTask(
              ^
/opt/rocm/opencl/include/CL/cl.h:1382:46: note: 'clEnqueueTask' has been explicitly marked deprecated here
              cl_event *        /* event */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                             ^
/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
/home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_geometry_transforms.cpp:81:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
/home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_geometry_transforms.cpp:127:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
/home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_geometry_transforms.cpp:201:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
/home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_geometry_transforms.cpp:250:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
/home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_image_augmentations.cpp:483:9: warning: array index 2 is past the end of the array (which contains 2 elements) [-Warray-bounds]
        gDim3[2] = 1;
        ^     ~
/home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_image_augmentations.cpp:480:9: note: array 'gDim3' declared here
        size_t gDim3[2];
        ^
/home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_geometry_transforms.cpp:292:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
/home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_geometry_transforms.cpp:416:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
/home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_utilities.cpp:45:5: warning: control may reach end of non-void function [-Wreturn-type]
    }
    ^
/home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_utilities.cpp:256:20: warning: implicit conversion of NULL constant to 'cl_int' (aka 'int') [-Wnull-conversion]
            return NULL;
            ~~~~~~ ^~~~
                   0
/home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_utilities.cpp:262:20: warning: implicit conversion of NULL constant to 'cl_int' (aka 'int') [-Wnull-conversion]
            return NULL;
            ~~~~~~ ^~~~
                   0
/home/kiriti/mivisionx-deps/rpp/src/imgaug/cl/cl_utilities.cpp:276:20: warning: implicit conversion of NULL constant to 'cl_int' (aka 'int') [-Wnull-conversion]
            return NULL;
            ~~~~~~ ^~~~
                   0
5 warnings generated.
11 warnings generated.
9 warnings generated.
6 warnings generated.
[ 50%] Linking CXX static library libimgaug-opencl.a
[ 50%] Built target imgaug-opencl
Scanning dependencies of target imgaug
[ 60%] Building CXX object src/imgaug/CMakeFiles/imgaug.dir/rppi_geometry_transforms.cpp.o
[ 70%] Building CXX object src/imgaug/CMakeFiles/imgaug.dir/rppi_image_augmentations.cpp.o
[ 80%] Building CXX object src/imgaug/CMakeFiles/imgaug.dir/rppi_color_model_conversions.cpp.o
clang-9: warning: -lm: 'linker' input unused [-Wunused-command-line-argument]
clang-9: warning: -lm: 'linker' input unused [-Wunused-command-line-argument]
clang-9: warning: -lm: 'linker' input unused [-Wunused-command-line-argument]
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/rppi_geometry_transforms.cpp:9:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:4659:21: warning: 'clCreateSampler' is deprecated [-Wdeprecated-declarations]
        object_ = ::clCreateSampler(
                    ^
/opt/rocm/opencl/include/CL/cl.h:1375:56: note: 'clCreateSampler' has been explicitly marked deprecated here
                cl_int *            /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                                       ^
/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/rppi_color_model_conversions.cpp:9:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:4659:21: warning: 'clCreateSampler' is deprecated [-Wdeprecated-declarations]
        object_ = ::clCreateSampler(
                    ^
/opt/rocm/opencl/include/CL/cl.h:1375:56: note: 'clCreateSampler' has been explicitly marked deprecated here
                cl_int *            /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                                       ^
/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/rppi_image_augmentations.cpp:9:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:4659:21: In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/rppi_geometry_transforms.cppwarning:: 9:
In file included from 'clCreateSampler' is deprecated [-Wdeprecated-declarations]/home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:
10:
/opt/rocm/opencl/include/CL/cl.hpp:5519:25: warning:         object_ = ::clCreateSampler(
'clCreateCommandQueue' is deprecated [-Wdeprecated-declarations]                    ^

            object_ = ::clCreateCommandQueue(
                        ^
/opt/rocm/opencl/include/CL/cl.h:1367:72: note: 'clCreateCommandQueue' has been explicitly marked deprecated here
                     cl_int *                       /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                                                       ^
/opt/rocm/opencl/include/CL/cl_platform.h:115:74: /opt/rocm/opencl/include/CL/cl.h:note1375: :56expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED': 
note: 'clCreateSampler' has been explicitly marked deprecated here
                cl_int *            /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))

                                                       ^                                                                         ^

/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/rppi_geometry_transforms.cpp:9:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:5550:21: warning: 'clCreateCommandQueue' is deprecated [-Wdeprecated-declarations]
        object_ = ::clCreateCommandQueue(context(), devices[0](), properties, &error);
                    ^
/opt/rocm/opencl/include/CL/cl.h:1367:72: note: 'clCreateCommandQueue' has been explicitly marked deprecated here
                     cl_int *                       /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                                                       ^
/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/rppi_geometry_transforms.cpp:9:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:5567:21: warning: 'clCreateCommandQueue' is deprecated [-Wdeprecated-declarations]
        object_ = ::clCreateCommandQueue(
                    ^
/opt/rocm/opencl/include/CL/cl.h:1367:72: note: 'clCreateCommandQueue' has been explicitly marked deprecated here
                     cl_int *                       /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                                                       ^
/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/rppi_color_model_conversions.cpp:9:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:5519:25: warning: 'clCreateCommandQueue' is deprecated [-Wdeprecated-declarations]
            object_ = ::clCreateCommandQueue(
                        ^
/opt/rocm/opencl/include/CL/cl.h:1367:72: note: 'clCreateCommandQueue' has been explicitly marked deprecated here
                     cl_int *                       /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                                                       ^
/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/rppi_color_model_conversions.cpp:9:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:5550:21: warning: 'clCreateCommandQueue' is deprecated [-Wdeprecated-declarations]
        object_ = ::clCreateCommandQueue(context(), devices[0](), properties, &error);
                    ^
/opt/rocm/opencl/include/CL/cl.h:1367:72: note: 'clCreateCommandQueue' has been explicitly marked deprecated here
                     cl_int *                       /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                                                       ^
/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/rppi_color_model_conversions.cpp:9:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:5567:21: warning: 'clCreateCommandQueue' is deprecated [-Wdeprecated-declarations]
        object_ = ::clCreateCommandQueue(
                    ^
/opt/rocm/opencl/include/CL/cl.h:1367:72: note: 'clCreateCommandQueue' has been explicitly marked deprecated here
                     cl_int *                       /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                                                       ^
/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/rppi_geometry_transforms.cpp:9:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:6371:15: warning: 'clEnqueueTask' is deprecated [-Wdeprecated-declarations]
            ::clEnqueueTask(
              ^
/opt/rocm/opencl/include/CL/cl.h:1382:46: note: 'clEnqueueTask' has been explicitly marked deprecated here
              cl_event *        /* event */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                             ^
/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/rppi_color_model_conversions.cpp:9:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:6371:15: warning: 'clEnqueueTask' is deprecated [-Wdeprecated-declarations]
            ::clEnqueueTask(
              ^
/opt/rocm/opencl/include/CL/cl.h:1382:46: note: 'clEnqueueTask' has been explicitly marked deprecated here
              cl_event *        /* event */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                             ^
/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/rppi_image_augmentations.cpp:9:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:5519:25: warning: 'clCreateCommandQueue' is deprecated [-Wdeprecated-declarations]
            object_ = ::clCreateCommandQueue(
                        ^
/opt/rocm/opencl/include/CL/cl.h:1367:72: note: 'clCreateCommandQueue' has been explicitly marked deprecated here
                     cl_int *                       /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                                                       ^
/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/rppi_image_augmentations.cpp:9:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:5550:21: warning: 'clCreateCommandQueue' is deprecated [-Wdeprecated-declarations]
        object_ = ::clCreateCommandQueue(context(), devices[0](), properties, &error);
                    ^
/opt/rocm/opencl/include/CL/cl.h:1367:72: note: 'clCreateCommandQueue' has been explicitly marked deprecated here
                     cl_int *                       /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                                                       ^
/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/rppi_image_augmentations.cpp:9:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:5567:21: warning: 'clCreateCommandQueue' is deprecated [-Wdeprecated-declarations]
        object_ = ::clCreateCommandQueue(
                    ^
/opt/rocm/opencl/include/CL/cl.h:1367:72: note: 'clCreateCommandQueue' has been explicitly marked deprecated here
                     cl_int *                       /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                                                       ^
/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/rppi_image_augmentations.cpp:9:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:6371:15: warning: 'clEnqueueTask' is deprecated [-Wdeprecated-declarations]
            ::clEnqueueTask(
              ^
/opt/rocm/opencl/include/CL/cl.h:1382:46: note: 'clEnqueueTask' has been explicitly marked deprecated here
              cl_event *        /* event */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                             ^
/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
5 warnings generated.
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/rppi_image_augmentations.cpp:18:
/home/kiriti/mivisionx-deps/rpp/src/imgaug/cpu/host_image_augmentations.hpp:654:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
/home/kiriti/mivisionx-deps/rpp/src/imgaug/rppi_image_augmentations.cpp:390:3: note: in instantiation of function template specialization 'rain_host<unsigned char>' requested here
         rain_host<Rpp8u>(static_cast<Rpp8u*>(srcPtr),
         ^
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/rppi_image_augmentations.cpp:18:
/home/kiriti/mivisionx-deps/rpp/src/imgaug/cpu/host_image_augmentations.hpp:414:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
/home/kiriti/mivisionx-deps/rpp/src/imgaug/rppi_image_augmentations.cpp:443:3: note: in instantiation of function template specialization 'snow_host<unsigned char, unsigned char>' requested here
         snow_host<Rpp8u>(static_cast<Rpp8u*>(srcPtr),
         ^
5 warnings generated.
7 warnings generated.
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/rppi_color_model_conversions.cpp:9:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:4659:21: warning: 'clCreateSampler' is deprecated [-Wdeprecated-declarations]
        object_ = ::clCreateSampler(
                    ^
/opt/rocm/opencl/include/CL/cl.h:1375:56: note: 'clCreateSampler' has been explicitly marked deprecated here
                cl_int *            /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                                       ^
/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/rppi_color_model_conversions.cpp:9:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:5519:25: warning: 'clCreateCommandQueue' is deprecated [-Wdeprecated-declarations]
            object_ = ::clCreateCommandQueue(
                        ^
/opt/rocm/opencl/include/CL/cl.h:1367:72: note: 'clCreateCommandQueue' has been explicitly marked deprecated here
                     cl_int *                       /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                                                       ^
/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/rppi_color_model_conversions.cpp:9:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:5550:21: warning: 'clCreateCommandQueue' is deprecated [-Wdeprecated-declarations]
        object_ = ::clCreateCommandQueue(context(), devices[0](), properties, &error);
                    ^
/opt/rocm/opencl/include/CL/cl.h:1367:72: note: 'clCreateCommandQueue' has been explicitly marked deprecated here
                     cl_int *                       /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                                                       ^
/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/rppi_color_model_conversions.cpp:9:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:5567:21: warning: 'clCreateCommandQueue' is deprecated [-Wdeprecated-declarations]
        object_ = ::clCreateCommandQueue(
                    ^
/opt/rocm/opencl/include/CL/cl.h:1367:72: note: 'clCreateCommandQueue' has been explicitly marked deprecated here
                     cl_int *                       /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                                                       ^
/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/rppi_color_model_conversions.cpp:9:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:6371:15: warning: 'clEnqueueTask' is deprecated [-Wdeprecated-declarations]
            ::clEnqueueTask(
              ^
/opt/rocm/opencl/include/CL/cl.h:1382:46: note: 'clEnqueueTask' has been explicitly marked deprecated here
              cl_event *        /* event */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                             ^
/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/rppi_image_augmentations.cpp:9:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:4659:21: warning: 'clCreateSampler' is deprecated [-Wdeprecated-declarations]
        object_ = ::clCreateSampler(
                    ^
/opt/rocm/opencl/include/CL/cl.h:1375:56: note: 'clCreateSampler' has been explicitly marked deprecated here
                cl_int *            /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                                       ^
/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/rppi_geometry_transforms.cpp:9:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:4659:21: warning: 'clCreateSampler' is deprecated [-Wdeprecated-declarations]
        object_ = ::clCreateSampler(
                    ^
/opt/rocm/opencl/include/CL/cl.h:1375:56: note: 'clCreateSampler' has been explicitly marked deprecated here
                cl_int *            /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                                       ^
/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/rppi_geometry_transforms.cpp:9:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:5519:25: warning: 'clCreateCommandQueue' is deprecated [-Wdeprecated-declarations]
            object_ = ::clCreateCommandQueue(
                        ^
/opt/rocm/opencl/include/CL/cl.h:1367:72: note: 'clCreateCommandQueue' has been explicitly marked deprecated here
                     cl_int *                       /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                                                       ^
/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/rppi_geometry_transforms.cpp:9:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:5550:21: warning: 'clCreateCommandQueue' is deprecated [-Wdeprecated-declarations]
        object_ = ::clCreateCommandQueue(context(), devices[0](), properties, &error);
                    ^
/opt/rocm/opencl/include/CL/cl.h:1367:72: note: 'clCreateCommandQueue' has been explicitly marked deprecated here
                     cl_int *                       /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                                                       ^
/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/rppi_geometry_transforms.cpp:9:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:5567:21: warning: 'clCreateCommandQueue' is deprecated [-Wdeprecated-declarations]
        object_ = ::clCreateCommandQueue(
                    ^
/opt/rocm/opencl/include/CL/cl.h:1367:72: note: 'clCreateCommandQueue' has been explicitly marked deprecated here
                     cl_int *                       /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                                                       ^
/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/rppi_image_augmentations.cpp:9:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:5519:25: warning: 'clCreateCommandQueue' is deprecated [-Wdeprecated-declarations]
            object_ = ::clCreateCommandQueue(
                        ^
/opt/rocm/opencl/include/CL/cl.h:1367:72: note: 'clCreateCommandQueue' has been explicitly marked deprecated here
                     cl_int *                       /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                                                       ^
/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/rppi_image_augmentations.cpp:9:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:5550:21: warning: 'clCreateCommandQueue' is deprecated [-Wdeprecated-declarations]
        object_ = ::clCreateCommandQueue(context(), devices[0](), properties, &error);
                    ^
/opt/rocm/opencl/include/CL/cl.h:1367:72: note: 'clCreateCommandQueue' has been explicitly marked deprecated here
                     cl_int *                       /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                                                       ^
/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/rppi_image_augmentations.cpp:9:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:5567:21: warning: 'clCreateCommandQueue' is deprecated [-Wdeprecated-declarations]
        object_ = ::clCreateCommandQueue(
                    ^
/opt/rocm/opencl/include/CL/cl.h:1367:72: note: 'clCreateCommandQueue' has been explicitly marked deprecated here
                     cl_int *                       /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                                                       ^
/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/rppi_geometry_transforms.cpp:9:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:6371:15: warning: 'clEnqueueTask' is deprecated [-Wdeprecated-declarations]
            ::clEnqueueTask(
              ^
/opt/rocm/opencl/include/CL/cl.h:1382:46: note: 'clEnqueueTask' has been explicitly marked deprecated here
              cl_event *        /* event */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                             ^
/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/rppi_image_augmentations.cpp:9:
In file included from /home/kiriti/mivisionx-deps/rpp/src/include/cl/rpp_cl_common.hpp:10:
/opt/rocm/opencl/include/CL/cl.hpp:6371:15: warning: 'clEnqueueTask' is deprecated [-Wdeprecated-declarations]
            ::clEnqueueTask(
              ^
/opt/rocm/opencl/include/CL/cl.h:1382:46: note: 'clEnqueueTask' has been explicitly marked deprecated here
              cl_event *        /* event */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;
                                             ^
/opt/rocm/opencl/include/CL/cl_platform.h:115:74: note: expanded from macro 'CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED'
            #define CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED __attribute__((deprecated))
                                                                         ^
5 warnings generated.
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/rppi_image_augmentations.cpp:18:
/home/kiriti/mivisionx-deps/rpp/src/imgaug/cpu/host_image_augmentations.hpp:654:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
/home/kiriti/mivisionx-deps/rpp/src/imgaug/rppi_image_augmentations.cpp:390:3: note: in instantiation of function template specialization 'rain_host<unsigned char>' requested here
         rain_host<Rpp8u>(static_cast<Rpp8u*>(srcPtr),
         ^
In file included from /home/kiriti/mivisionx-deps/rpp/src/imgaug/rppi_image_augmentations.cpp:18:
/home/kiriti/mivisionx-deps/rpp/src/imgaug/cpu/host_image_augmentations.hpp:414:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
/home/kiriti/mivisionx-deps/rpp/src/imgaug/rppi_image_augmentations.cpp:443:3: note: in instantiation of function template specialization 'snow_host<unsigned char, unsigned char>' requested here
         snow_host<Rpp8u>(static_cast<Rpp8u*>(srcPtr),
         ^
5 warnings generated.
7 warnings generated.
[ 90%] Linking CXX static library libimgaug.a
[ 90%] Built target imgaug
Scanning dependencies of target amd_rpp
[100%] Linking CXX shared library libamd_rpp.so
[100%] Built target amd_rpp
[ 50%] Built target imgaug-opencl
[ 90%] Built target imgaug
[100%] Built target amd_rpp

[Issue]: Location of half.hpp

Problem Description

Same issue as MIOpen

I am packaging rpp for Fedora, the addition of the half/ makes it impossible to set the location of half.hpp in configury.

Operating System

Fedora Rawhide

CPU

x86_64

GPU

AMD Instinct MI210

Other

No response

ROCm Version

ROCm 6.0.0

ROCm Component

rpp

Steps to Reproduce

No response

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

No response

Additional Information

No response

CPU Backend

Half.hpp

  • add include

Warnings

[ 58%] Building CXX object src/modules/CMakeFiles/modules.dir/rppi_image_augmentations.cpp.o
In file included from /home/kiriti/develop/rpp-kiriti/rpp/src/modules/rppi_image_augmentations.cpp:26:
In file included from /home/kiriti/develop/rpp-kiriti/rpp/src/modules/cpu/host_image_augmentations.hpp:30:
/home/kiriti/develop/rpp-kiriti/rpp/src/include/cpu/rpp_cpu_common.hpp:1165:18: warning: loop not vectorized: the optimizer was unable to perform the requested transformation; the transformation might be disabled or specified as part of an unsupported transformation ordering [-Wpass-failed=transform-warning]
inline RppStatus resize_kernel_host(T* srcPtr, RppiSize srcSize, U* dstPtr, RppiSize dstSize,

Unit Test Failure - Host

Host Test Failure with args below ->

./uniqueFunctionalities_host 0 9

Usage: ./uniqueFunctionalities_host <u8 = 0 / f16 = 1 / f32 = 2 / u8->f16 = 3 / u8->f32 = 4 / i8 = 5 / u8->i8 = 6> <case number = 0:12>

ip_bitDepth = 0
zsh: segmentation fault  ./uniqueFunctionalities_host 0 9

Need to rebuild rpp everytime a different gpu is used.

RPP needs a rebuild everytime a different gpu is used; this blocks me from pre-building RPP into a docker image and distributing it.
I'm using the commit 27284078458fbfa685f11083315394f3a4cd952f. is it a known issue and is fixed in recent versions?

OpenCL Backend - Failure

/home/kiriti/develop/rpp-kiriti/rpp/src/modules/cl/handleocl.cpp:445:9: error: out-of-line definition of 'Handle' does not match any declaration in 'rpp::Handle'
Handle::Handle(size_t batchSize) : impl(new HandleImpl())
        ^~~~~~
1 error generated.
make[2]: *** [src/modules/CMakeFiles/modules.dir/build.make:666: src/modules/CMakeFiles/modules.dir/cl/handleocl.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:144: src/modules/CMakeFiles/modules.dir/all] Error 2
make: *** [Makefile:152: all] Error 2

Readme - Updates

With the release of RPP package we need to revisit the README to fix & update current flow.

File Reorg - ROCm 5+ Updates

The installer should copy

  • Executables into /opt/rocm/bin
  • Libraries into /opt/rocm/lib
  • Header files into /opt/rocm/include/rpp
  • Apps, & Samples folder into /opt/rocm/share/rpp
  • Documents folder into /opt/rocm/share/doc/rpp
  • Scripts into /opt/rocm/libexec/rpp

Changes to MIVisionX to match the updated location

RPP Branch - Develop & Batch Enabled

The Old Branches are diverging from the master. Should be refactor the branches into a single branch or delete them if?

  • Develop
  • Batch Enabled

Test - Unit test

ROCm 6.0 - Updates

  1. Boost installation document update: Will get rid of boost and use C++17 feature, so boost related things are not required in documentationโ€จ
  2. if c++17 features is not a part of ROCm6.0 , then document need to be updated with the boost installation pathโ€จ - /usr/local/rpp-deps/lib
  3. HIP and Openmp dependency need to be added as package dependency and a prerequisite in documentation
  4. Minimum ROCm dependency of 5.4.3 should be removed/updated from prerequisite in documentation

Can't compile in Ubuntu 22.04

Somehow the CMakeLists.txt doesn't find OpenMP.

 /opencv/build$ cmake -DBACKEND=HIP ../rpp
-- INFO:ROCM_PATH Set -- /opt/rocm
TEST DEBUG: /opt/rocm/include

-- AMD ROCm Performance Primitives (RPP) Version -- 1.5.0
-- AMD RPP install path set to -- /opt/rocm
-- AMD RPP Backend set to -- HIP
-- AMD RPP Build Type -- Release
-- Using HALF -- 
	Includes:/opt/rocm/include
CMake Error at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find OpenMP_CXX (missing: OpenMP_CXX_FLAGS OpenMP_CXX_LIB_NAMES)
Call Stack (most recent call first):
  /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.22/Modules/FindOpenMP.cmake:544 (find_package_handle_standard_args)
  CMakeLists.txt:138 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/florin/cust-ffmpeg/opencv/build/CMakeFiles/CMakeOutput.log".
See also "/home/florin/cust-ffmpeg/opencv/build/CMakeFiles/CMakeError.log".

From what I see in the error log, it cannot find omp.h file because it doesn't include the /opt/rocm folders.

Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_bffe9/fast && /usr/bin/gmake  -f CMakeFiles/cmTC_bffe9.dir/build.make CMakeFiles/cmTC_bffe9.dir/build
gmake[1]: Entering directory '/home/florin/cust-ffmpeg/opencv/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_bffe9.dir/OpenMPTryFlag.cpp.o
/usr/bin/clang++   -O3 -Ofast -DNDEBUG -Xclang -fopenmp -v -MD -MT CMakeFiles/cmTC_bffe9.dir/OpenMPTryFlag.cpp.o -MF CMakeFiles/cmTC_bffe9.dir/OpenMPTryFlag.cpp.o.d -o CMakeFiles/cmTC_bffe9.dir/OpenMPTryFlag.cpp.o -c /home/florin/cust-ffmpeg/opencv/build/CMakeFiles/FindOpenMP/OpenMPTryFlag.cpp
Ubuntu clang version 14.0.0-1ubuntu1.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/10
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/11
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/12
Selected GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/12
Candidate multilib: .;@m64
Selected multilib: .;@m64
 (in-process)
 "/usr/lib/llvm-14/bin/clang" -cc1 -triple x86_64-pc-linux-gnu -emit-obj --mrelax-relocations -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name OpenMPTryFlag.cpp -mrelocation-model pic -pic-level 2 -pic-is-pie -mframe-pointer=none -menable-no-infs -menable-no-nans -fapprox-func -menable-unsafe-fp-math -fno-signed-zeros -mreassociate -freciprocal-math -fdenormal-fp-math=preserve-sign,preserve-sign -ffp-contract=fast -fno-rounding-math -ffast-math -ffinite-math-only -mconstructor-aliases -funwind-tables=2 -target-cpu x86-64 -tune-cpu generic -mllvm -treat-scalable-fixed-error-as-warning -debugger-tuning=gdb -v -fcoverage-compilation-dir=/home/florin/cust-ffmpeg/opencv/build/CMakeFiles/CMakeTmp -resource-dir /usr/lib/llvm-14/lib/clang/14.0.0 -dependency-file CMakeFiles/cmTC_bffe9.dir/OpenMPTryFlag.cpp.o.d -MT CMakeFiles/cmTC_bffe9.dir/OpenMPTryFlag.cpp.o -sys-header-deps -D NDEBUG -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12 -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/x86_64-linux-gnu/c++/12 -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/backward -internal-isystem /usr/lib/llvm-14/lib/clang/14.0.0/include -internal-isystem /usr/local/include -internal-isystem /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../x86_64-linux-gnu/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -Ofast -fdeprecated-macro -fdebug-compilation-dir=/home/florin/cust-ffmpeg/opencv/build/CMakeFiles/CMakeTmp -ferror-limit 19 -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -vectorize-loops -vectorize-slp -fopenmp -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o CMakeFiles/cmTC_bffe9.dir/OpenMPTryFlag.cpp.o -x c++ /home/florin/cust-ffmpeg/opencv/build/CMakeFiles/FindOpenMP/OpenMPTryFlag.cpp
clang -cc1 version 14.0.0 based upon LLVM 14.0.0 default target x86_64-pc-linux-gnu
ignoring nonexistent directory "/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../x86_64-linux-gnu/include"
ignoring nonexistent directory "/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12
 /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/x86_64-linux-gnu/c++/12
 /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/backward
 /usr/lib/llvm-14/lib/clang/14.0.0/include
 /usr/local/include
 /usr/include/x86_64-linux-gnu
 /usr/include
End of search list.
/home/florin/cust-ffmpeg/opencv/build/CMakeFiles/FindOpenMP/OpenMPTryFlag.cpp:2:10: fatal error: 'omp.h' file not found
#include <omp.h>
         ^~~~~~~
1 error generated.
gmake[1]: *** [CMakeFiles/cmTC_bffe9.dir/build.make:79: CMakeFiles/cmTC_bffe9.dir/OpenMPTryFlag.cpp.o] Error 1
gmake[1]: Leaving directory '/home/florin/cust-ffmpeg/opencv/build/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:127: cmTC_bffe9/fast] Error 2

I have the latest rocm-5.7.1 and I see there the omp.h header.

opencv/build$ locate omp.h | grep rocm
/opt/rocm-5.7.1/include/thrust/system/omp/detail/pragma_omp.h
/opt/rocm-5.7.1/llvm/include/omp.h
/opt/rocm-5.7.1/llvm/lib/clang/17.0.0/include/omp.h
/opt/rocm-5.7.1/llvm/lib-debug/src/openmp/runtime/src/kmp_omp.h
/opt/rocm-5.7.1/llvm/lib-debug/src/openmp/runtime/src/include/omp.h.var
/opt/rocm-5.7.1/rocthrust/include/thrust/system/omp/detail/pragma_omp.h

And this is the hipconfig output.

opencv/build$ /opt/rocm/bin/hipconfig --full
HIP version  : 5.7.31921-1949b1621

== hipconfig
HIP_PATH     : /opt/rocm-5.7.1
ROCM_PATH    : /opt/rocm-5.7.1
HIP_COMPILER : clang
HIP_PLATFORM : amd
HIP_RUNTIME  : rocclr
CPP_CONFIG   :  -D__HIP_PLATFORM_HCC__= -D__HIP_PLATFORM_AMD__= -I/opt/rocm-5.7.1/include -I/opt/rocm-5.7.1/llvm/lib/clang/17.0.0
 

== hip-clang
HIP_CLANG_PATH   : /opt/rocm-5.7.1/llvm/bin
AMD clang version 17.0.0 (https://github.com/RadeonOpenCompute/llvm-project roc-5.7.1 23382 f3e174a1d286158c06e4cc8276366b1d4bc0c914)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/rocm-5.7.1/llvm/bin
AMD LLVM version 17.0.0git
  Optimized build.
  Default target: x86_64-unknown-linux-gnu
  Host CPU: alderlake

  Registered Targets:
    amdgcn - AMD GCN GPUs
    r600   - AMD GPUs HD2XXX-HD6XXX
    x86    - 32-bit X86: Pentium-Pro and above
    x86-64 - 64-bit X86: EM64T and AMD64
hip-clang-cxxflags :  -isystem "/opt/rocm-5.7.1/include" -O3
hip-clang-ldflags  :  -O3 --hip-link --rtlib=compiler-rt -unwindlib=libgcc

=== Environment Variables
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/rocm-5.7.1/bin:/opt/rocm-5.7.1/opencl/bin

== Linux Kernel
Hostname     : florin-B660-DS3H-DDR4
Linux florin-B660-DS3H-DDR4 6.2.0-36-generic #37~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct  9 15:34:04 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.3 LTS
Release:	22.04
Codename:	jammy

Any idea what I am missing?

Thank you

Version Updates Required

RPP version updates are required to track the version of working RPP with MIVisionX

  • Need to update versions
  • Release the versions

HIP Backend - Build Failure on Ubuntu 20.04

cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04 LTS"

Build - HIP Backend

cmake -DBACKEND=HIP ../rpp
-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.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.93
-- RPP install path set to -- /opt/rocm/rpp
-- CMake minimum version required: 3.5
-- CMake version found: 3.16.3
-- Found HIP: /usr (found version "4.4.21432-f9dccde4") 
-- Added custom command for rpp_kernels
-- HIP kernels added!
-- HIP include directories -- /opt/rocm/hip/include
-- amd_rpp set to build with HIP backend
-- amd_rpp set to build with ENABLE_SIMD_INTRINSICS
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake (found version "1.71.0") found 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")  
-- Configuring done
-- Generating done
-- Build files have been written to: /root/rpp-hip
make -j8
Scanning dependencies of target addkernels
[  0%] Building CXX object addkernels/CMakeFiles/addkernels.dir/include_inliner.cpp.o
[  1%] Building CXX object addkernels/CMakeFiles/addkernels.dir/addkernels.cpp.o
[  2%] Linking CXX executable addkernels
[  2%] Built target addkernels
[  3%] Inlining Rpp kernels
Scanning dependencies of target modules
[  4%] Building CXX object src/modules/CMakeFiles/modules.dir/rppi_arithmetic_operations.cpp.o
[  4%] Building CXX object src/modules/CMakeFiles/modules.dir/kernel_cache.cpp.o
[  5%] Building CXX object src/modules/CMakeFiles/modules.dir/binary_cache.cpp.o
[  8%] Building CXX object src/modules/CMakeFiles/modules.dir/md5.cpp.o
[  8%] Building CXX object src/modules/CMakeFiles/modules.dir/rppi_advanced_augmentations.cpp.o
[  8%] Building CXX object src/modules/CMakeFiles/modules.dir/rppi_color_model_conversions.cpp.o
[  9%] Building CXX object src/modules/CMakeFiles/modules.dir/logger.cpp.o
[ 10%] Building CXX object src/modules/CMakeFiles/modules.dir/rppi_computer_vision.cpp.o
[ 10%] Building CXX object src/modules/CMakeFiles/modules.dir/rppi_filter_operations.cpp.o
[ 11%] Building CXX object src/modules/CMakeFiles/modules.dir/rppi_fused_functions.cpp.o
In file included from /root/rpp/src/modules/rppi_arithmetic_operations.cpp:20:
In file included from /root/rpp/src/modules/cpu/host_arithmetic_operations.hpp:3:
In file included from /root/rpp/src/include/cpu/rpp_cpu_common.hpp:13:
In file included from /root/rpp/src/include/cpu/rpp_cpu_simd.hpp:10:
In file included from /opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/x86intrin.h:15:
In file included from /opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/immintrin.h:488:
/opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/amxintrin.h:247:10: error: use of undeclared identifier '__builtin_ia32_tdpbsud_internal'; did you mean '__builtin_ia32_tdpbssd_internal'?
  return __builtin_ia32_tdpbsud_internal(m, n, k, dst, src1, src2);
         ^
/opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/amxintrin.h:241:10: note: '__builtin_ia32_tdpbssd_internal' declared here
  return __builtin_ia32_tdpbssd_internal(m, n, k, dst, src1, src2);
         ^
In file included from /root/rpp/src/modules/rppi_advanced_augmentations.cpp:20:
In file included from /root/rpp/src/modules/cpu/host_advanced_augmentations.hpp:4:
In file included from /root/rpp/src/include/cpu/rpp_cpu_simd.hpp:10:
In file included from /opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/x86intrin.h:15:
In file included from /opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/immintrin.h:488:
/opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/amxintrin.h:247:10: error: use of undeclared identifier '__builtin_ia32_tdpbsud_internal'; did you mean '__builtin_ia32_tdpbssd_internal'?
  return __builtin_ia32_tdpbsud_internal(m, n, k, dst, src1, src2);
         ^
/opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/amxintrin.h:241:10: note: '__builtin_ia32_tdpbssd_internal' declared here
  return __builtin_ia32_tdpbssd_internal(m, n, k, dst, src1, src2);
         ^
/opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/amxintrin.h:253:10: error: use of undeclared identifier '__builtin_ia32_tdpbusd_internal'; did you mean '__builtin_ia32_tdpbssd_internal'?
  return __builtin_ia32_tdpbusd_internal(m, n, k, dst, src1, src2);
         ^
/opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/amxintrin.h:241:10: note: '__builtin_ia32_tdpbssd_internal' declared here
  return __builtin_ia32_tdpbssd_internal(m, n, k, dst, src1, src2);
         ^
In file included from /root/rpp/src/modules/rppi_color_model_conversions.cpp:20:
In file included from /root/rpp/src/modules/cpu/host_color_model_conversions.hpp:3:
In file included from /root/rpp/src/include/cpu/rpp_cpu_common.hpp:13:
In file included from /root/rpp/src/include/cpu/rpp_cpu_simd.hpp:10:
In file included from /opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/x86intrin.h:15:
In file included from /opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/immintrin.h:488:
/opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/amxintrin.h:247:10: error: use of undeclared identifier '__builtin_ia32_tdpbsud_internal'; did you mean '__builtin_ia32_tdpbssd_internal'?
  return __builtin_ia32_tdpbsud_internal(m, n, k, dst, src1, src2);
         ^
/opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/amxintrin.h:241:10: note: '__builtin_ia32_tdpbssd_internal' declared here
  return __builtin_ia32_tdpbssd_internal(m, n, k, dst, src1, src2);
         ^
/opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/amxintrin.h:253:10: error: use of undeclared identifier '__builtin_ia32_tdpbusd_internal'; did you mean '__builtin_ia32_tdpbssd_internal'?
  return __builtin_ia32_tdpbusd_internal(m, n, k, dst, src1, src2);
         ^
/opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/amxintrin.h:241:10: note: '__builtin_ia32_tdpbssd_internal' declared here
  return __builtin_ia32_tdpbssd_internal(m, n, k, dst, src1, src2);
         ^
/opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/amxintrin.h:259:10: error: use of undeclared identifier '__builtin_ia32_tdpbuud_internal'; did you mean '__builtin_ia32_tdpbssd_internal'?
  return __builtin_ia32_tdpbuud_internal(m, n, k, dst, src1, src2);
         ^
/opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/amxintrin.h:241:10: note: '__builtin_ia32_tdpbssd_internal' declared here
  return __builtin_ia32_tdpbssd_internal(m, n, k, dst, src1, src2);
         ^
/opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/amxintrin.h:253:10: error: use of undeclared identifier '__builtin_ia32_tdpbusd_internal'; did you mean '__builtin_ia32_tdpbssd_internal'?
  return __builtin_ia32_tdpbusd_internal(m, n, k, dst, src1, src2);
         ^
/opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/amxintrin.h:241:10: note: '__builtin_ia32_tdpbssd_internal' declared here
In file included from /root/rpp/src/modules/rppi_computer_vision.cpp:  return __builtin_ia32_tdpbssd_internal(m, n, k, dst, src1, src2);20
:
In file included from          ^/root/rpp/src/modules/cpu/host_computer_vision.hpp
:3:
In file included from /root/rpp/src/include/cpu/rpp_cpu_common.hpp:13:
In file included from /root/rpp/src/include/cpu/rpp_cpu_simd.hpp:10:
In file included from /opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/x86intrin.h:15:
In file included from /opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/immintrin.h:488:
/opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/amxintrin.h:247:10: error: use of undeclared identifier '__builtin_ia32_tdpbsud_internal'; did you mean '__builtin_ia32_tdpbssd_internal'?
  return __builtin_ia32_tdpbsud_internal(m, n, k, dst, src1, src2);
         ^
/opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/amxintrin.h:241:10: note: '__builtin_ia32_tdpbssd_internal' declared here
  return __builtin_ia32_tdpbssd_internal(m, n, k, dst, src1, src2);
         ^
/opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/amxintrin.h:259:10: error: use of undeclared identifier '__builtin_ia32_tdpbuud_internal'; did you mean '__builtin_ia32_tdpbssd_internal'?
  return __builtin_ia32_tdpbuud_internal(m, n, k, dst, src1, src2);
         ^
/opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/amxintrin.h:241:10: note: '__builtin_ia32_tdpbssd_internal' declared here
  return __builtin_ia32_tdpbssd_internal(m, n, k, dst, src1, src2);
         ^
/opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/amxintrin.h:272:10: error: use of undeclared identifier '__builtin_ia32_tdpbf16ps_internal'; did you mean '__builtin_ia32_tdpbssd_internal'?
  return __builtin_ia32_tdpbf16ps_internal(m, n, k, dst, src1, src2);
         ^
/opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/amxintrin.h:241:10: note: '__builtin_ia32_tdpbssd_internal' declared here
  return __builtin_ia32_tdpbssd_internal(m, n, k, dst, src1, src2);
         ^
/opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/amxintrin.h:259:10: error: use of undeclared identifier '__builtin_ia32_tdpbuud_internal'; did you mean '__builtin_ia32_tdpbssd_internal'?
  return __builtin_ia32_tdpbuud_internal(m, n, k, dst, src1, src2);
         ^
/opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/amxintrin.h:241:10: note: '__builtin_ia32_tdpbssd_internal' declared here
  return __builtin_ia32_tdpbssd_internal(m, n, k, dst, src1, src2);
         ^
/opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/amxintrin.h:253:10: error: use of undeclared identifier '__builtin_ia32_tdpbusd_internal'; did you mean '__builtin_ia32_tdpbssd_internal'?
  return __builtin_ia32_tdpbusd_internal(m, n, k, dst, src1, src2);
         ^
/opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/amxintrin.h:241:10: note: '__builtin_ia32_tdpbssd_internal' declared here
  return __builtin_ia32_tdpbssd_internal(m, n, k, dst, src1, src2);
         ^
/opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/amxintrin.h:272:10: error: use of undeclared identifier '__builtin_ia32_tdpbf16ps_internal'; did you mean '__builtin_ia32_tdpbssd_internal'?
  return __builtin_ia32_tdpbf16ps_internal(m, n, k, dst, src1, src2);
         ^
/opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/amxintrin.h:241:10: note: '__builtin_ia32_tdpbssd_internal' declared here
  return __builtin_ia32_tdpbssd_internal(m, n, k, dst, src1, src2);
         ^
/opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/amxintrin.h:272:10: error: use of undeclared identifier '__builtin_ia32_tdpbf16ps_internal'; did you mean '__builtin_ia32_tdpbssd_internal'?
  return __builtin_ia32_tdpbf16ps_internal(m, n, k, dst, src1, src2);
         ^
/opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/amxintrin.h:241:10: note: '__builtin_ia32_tdpbssd_internal' declared here
  return __builtin_ia32_tdpbssd_internal(m, n, k, dst, src1, src2);
         ^
/opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/amxintrin.h:259:10: error: use of undeclared identifier '__builtin_ia32_tdpbuud_internal'; did you mean '__builtin_ia32_tdpbssd_internal'?
  return __builtin_ia32_tdpbuud_internal(m, n, k, dst, src1, src2);
         ^
/opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/amxintrin.h:241:10: note: '__builtin_ia32_tdpbssd_internal' declared here
  return __builtin_ia32_tdpbssd_internal(m, n, k, dst, src1, src2);
         ^
/opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/amxintrin.h:272:10: error: use of undeclared identifier '__builtin_ia32_tdpbf16ps_internal'; did you mean '__builtin_ia32_tdpbssd_internal'?
  return __builtin_ia32_tdpbf16ps_internal(m, n, k, dst, src1, src2);
         ^
/opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/amxintrin.h:241:10: note: '__builtin_ia32_tdpbssd_internal' declared here
  return __builtin_ia32_tdpbssd_internal(m, n, k, dst, src1, src2);
         ^
4 errors generated when compiling for gfx906.
make[2]: *** [src/modules/CMakeFiles/modules.dir/build.make:206: src/modules/CMakeFiles/modules.dir/rppi_arithmetic_operations.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
4 errors generated when compiling for gfx906.
make[2]: *** [src/modules/CMakeFiles/modules.dir/build.make:219: src/modules/CMakeFiles/modules.dir/rppi_color_model_conversions.cpp.o] Error 1
4 errors generated when compiling for gfx906.
make[2]: *** [src/modules/CMakeFiles/modules.dir/build.make:193: src/modules/CMakeFiles/modules.dir/rppi_advanced_augmentations.cpp.o] Error 1
4 errors generated when compiling for gfx906.
make[2]: *** [src/modules/CMakeFiles/modules.dir/build.make:232: src/modules/CMakeFiles/modules.dir/rppi_computer_vision.cpp.o] Error 1
In file included from /root/rpp/src/modules/rppi_filter_operations.cpp:20:
In file included from /root/rpp/src/modules/cpu/host_filter_operations.hpp:3:
In file included from /root/rpp/src/include/cpu/rpp_cpu_common.hpp:13:
In file included from /root/rpp/src/include/cpu/rpp_cpu_simd.hpp:10:
In file included from /opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/x86intrin.h:15:
In file included from /opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/immintrin.h:488:
/opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/amxintrin.h:247:10: error: use of undeclared identifier '__builtin_ia32_tdpbsud_internal'; did you mean '__builtin_ia32_tdpbssd_internal'?
  return __builtin_ia32_tdpbsud_internal(m, n, k, dst, src1, src2);
         ^
/opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/amxintrin.h:241:10: note: '__builtin_ia32_tdpbssd_internal' declared here
  return __builtin_ia32_tdpbssd_internal(m, n, k, dst, src1, src2);
         ^
In file included from /root/rpp/src/modules/rppi_fused_functions.cpp:20:
In file included from /root/rpp/src/modules/cpu/host_fused_functions.hpp:4:
In file included from /root/rpp/src/include/cpu/rpp_cpu_simd.hpp:10:
In file included from /opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/x86intrin.h:15:
In file included from /opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/immintrin.h:488:
/opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/amxintrin.h:247:10: error: use of undeclared identifier '__builtin_ia32_tdpbsud_internal'; did you mean '__builtin_ia32_tdpbssd_internal'?
  return __builtin_ia32_tdpbsud_internal(m, n, k, dst, src1, src2);
         ^
/opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/amxintrin.h:241:10: note: '__builtin_ia32_tdpbssd_internal' declared here
  return __builtin_ia32_tdpbssd_internal(m, n, k, dst, src1, src2);
         ^
/opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/amxintrin.h:253:10: error: use of undeclared identifier '__builtin_ia32_tdpbusd_internal'; did you mean '__builtin_ia32_tdpbssd_internal'?
  return __builtin_ia32_tdpbusd_internal(m, n, k, dst, src1, src2);
         ^
/opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/amxintrin.h:241:10: note: '__builtin_ia32_tdpbssd_internal' declared here
  return __builtin_ia32_tdpbssd_internal(m, n, k, dst, src1, src2);
         ^
/opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/amxintrin.h:253:10: error: use of undeclared identifier '__builtin_ia32_tdpbusd_internal'; did you mean '__builtin_ia32_tdpbssd_internal'?
  return __builtin_ia32_tdpbusd_internal(m, n, k, dst, src1, src2);
         ^
/opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/amxintrin.h:241:10: note: '__builtin_ia32_tdpbssd_internal' declared here
  return __builtin_ia32_tdpbssd_internal(m, n, k, dst, src1, src2);
         ^
/opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/amxintrin.h:259:10: error: use of undeclared identifier '__builtin_ia32_tdpbuud_internal'; did you mean '__builtin_ia32_tdpbssd_internal'?
  return __builtin_ia32_tdpbuud_internal(m, n, k, dst, src1, src2);
         ^
/opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/amxintrin.h:241:10: note: '__builtin_ia32_tdpbssd_internal' declared here
  return __builtin_ia32_tdpbssd_internal(m, n, k, dst, src1, src2);
         ^
/opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/amxintrin.h:259:10: error: use of undeclared identifier '__builtin_ia32_tdpbuud_internal'; did you mean '__builtin_ia32_tdpbssd_internal'?
  return __builtin_ia32_tdpbuud_internal(m, n, k, dst, src1, src2);
         ^
/opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/amxintrin.h:241:10: note: '__builtin_ia32_tdpbssd_internal' declared here
  return __builtin_ia32_tdpbssd_internal(m, n, k, dst, src1, src2);
         ^
/opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/amxintrin.h:272:10: error: use of undeclared identifier '__builtin_ia32_tdpbf16ps_internal'; did you mean '__builtin_ia32_tdpbssd_internal'?
  return __builtin_ia32_tdpbf16ps_internal(m, n, k, dst, src1, src2);
         ^
/opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/amxintrin.h:241:10: note: '__builtin_ia32_tdpbssd_internal' declared here
  return __builtin_ia32_tdpbssd_internal(m, n, k, dst, src1, src2);
         ^
/opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/amxintrin.h:272:10: error: use of undeclared identifier '__builtin_ia32_tdpbf16ps_internal'; did you mean '__builtin_ia32_tdpbssd_internal'?
  return __builtin_ia32_tdpbf16ps_internal(m, n, k, dst, src1, src2);
         ^
/opt/rocm-4.5.2/llvm/lib/clang/13.0.0/include/amxintrin.h:241:10: note: '__builtin_ia32_tdpbssd_internal' declared here
  return __builtin_ia32_tdpbssd_internal(m, n, k, dst, src1, src2);
         ^
4 errors generated when compiling for gfx906.
make[2]: *** [src/modules/CMakeFiles/modules.dir/build.make:245: src/modules/CMakeFiles/modules.dir/rppi_filter_operations.cpp.o] Error 1
4 errors generated when compiling for gfx906.
make[2]: *** [src/modules/CMakeFiles/modules.dir/build.make:258: src/modules/CMakeFiles/modules.dir/rppi_fused_functions.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:144: src/modules/CMakeFiles/modules.dir/all] Error 2
make: *** [Makefile:152: all] Error 2

[Issue]: unit tests are not validating results

Problem Description

Hi, I'm writing ebuild for rpp, which also includes running tests.

I run uniqueFunctionalities_hip at this moment (https://github.com/AngryLoki/gentoo/blob/rocm-6.0.2/sci-libs/rpp/rpp-6.0.2.ebuild#L85). However there is a major flaw, not in a library, but in a test.

Right now is what I see in the output (among other seemingly fine results):

Input:
255.00  254.00  253.00  252.00  251.00  250.00  249.00  248.00  247.00  246.00  245.00  244.00  130.00  129.00  128.00  127.00  126.00  125.00  124.00  123.00
122.00  121.00  120.00  119.00  5.00    4.00    3.00    2.00    1.00    0.00    27.00   26.00   25.00   24.00   23.00   22.00   21.00   20.00   19.00
18.00   17.00   16.00   55.00   54.00   53.00   52.00   51.00   50.00   49.00   48.00   47.00   46.00   45.00   44.00   115.00  114.00  113.00  112.00
111.00  110.00  240.00  239.00  238.00  237.00  236.00  235.00  234.00  233.00  232.00  231.00  230.00  229.00  200.00  199.00  198.00  197.00  196.00
195.00  194.00  193.00  192.00  191.00  190.00  189.00  140.00  139.00  138.00  137.00  136.00  135.00  70.00   69.00   68.00   67.00   66.00   65.00
64.00   63.00   62.00   61.00   60.00   59.00   170.00  169.00  168.00  167.00  166.00  165.00  164.00  163.00  162.00  161.00  160.00  159.00  15.00
14.00   13.00   12.00   11.00   10.00


Output of transpose_f16:
0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00
0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00
0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00
0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00
0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00
0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00
0.00    0.00    0.00    0.00    0.00
Input:
255.00  254.00  253.00  252.00  251.00  250.00  249.00  248.00  247.00  246.00  245.00  244.00  130.00  129.00  128.00  127.00  126.00  125.00  124.00  123.00
122.00  121.00  120.00  119.00  5.00    4.00    3.00    2.00    1.00    0.00    27.00   26.00   25.00   24.00   23.00   22.00   21.00   20.00   19.00
18.00   17.00   16.00   55.00   54.00   53.00   52.00   51.00   50.00   49.00   48.00   47.00   46.00   45.00   44.00   115.00  114.00  113.00  112.00
111.00  110.00  240.00  239.00  238.00  237.00  236.00  235.00  234.00  233.00  232.00  231.00  230.00  229.00  200.00  199.00  198.00  197.00  196.00
195.00  194.00  193.00  192.00  191.00  190.00  189.00  140.00  139.00  138.00  137.00  136.00  135.00  70.00   69.00   68.00   67.00   66.00   65.00
64.00   63.00   62.00   61.00   60.00   59.00   170.00  169.00  168.00  167.00  166.00  165.00  164.00  163.00  162.00  161.00  160.00  159.00  15.00
14.00   13.00   12.00   11.00   10.00


Output of transpose_f32:
255.00  252.00  249.00  246.00  0.00    127.00  124.00  121.00  5.00    0.00    27.00   24.00   21.00   18.00   8495497217120164957564929092616192.00   52.00   49.00   46.00115.00  0.00
240.00  237.00  234.00  231.00  9046043814911473556460266810507264.00   126.00  123.00  120.00  4.00    0.00    26.00   23.00   20.00   17.00   9045905165627073593869478108594176.00        51.00   48.00   45.00   114.00
0.00    239.00  236.00  233.00  230.00  8439621555506980033477082221641728.00   125.00  122.00  119.00  3.00    0.00    25.00   22.00   19.00   16.00   9045806130423930763447486178656256.00        50.00   47.00   44.00
113.00  0.00    238.00  235.00  232.00  229.00  9045895262106759310827278915600384.00   197.00  194.00  191.00  140.00  0.00    70.00   67.00   64.00   61.00   0.00    167.00       164.00
161.00  15.00   0.00    -0.37   -0.37   -0.37   -0.37   9046053718431787839502466003501056.00   196.00  193.00  190.00  139.00  0.00    69.00   66.00   63.00   60.00   9046132946594302103840059547451392.00        166.00
163.00  160.00  14.00   0.00    -0.37   -0.37   -0.37   -0.37   9046192367716187802093254705414144.00   195.00  192.00  189.00  138.00  0.00    68.00   65.00   62.00   59.00-0.00
165.00  162.00  159.00  13.00   0.00
test_case 8 supports only 0 ip_bitDepth
ip_bitDepth = 0
test_case = 8---PASS---
---PASS--

(test exits with code 0)

There are also other tests, which produce a directory with images with various filters applied, but again I don't see how I can use these tests to automatically validate, that library actually works. Also it outputs a wall of "not implemented", which was already mentioned in #282

May I ask to provide 2 things in rpp:

  1. There should be at least some test, that fully validates the result?
  2. The test application should return non-zero code, if any subtest fails (maybe use gtest).

Operating System

Gentoo

CPU

Ryzen 9 7950X3D

GPU

Other

Other

No response

ROCm Version

ROCm 6.0.0

ROCm Component

rpp

Steps to Reproduce

No response

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

No response

Additional Information

No response

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.