diff --git a/modules/custom_operations/README.md b/modules/custom_operations/README.md index 13861ff47b..4dec37e3f8 100644 --- a/modules/custom_operations/README.md +++ b/modules/custom_operations/README.md @@ -34,14 +34,14 @@ The C++ code implementing the custom operation is in the `user_ie_extensions` di 2. Build the library: ```bash -cd user_ie_extensions +cd openvino_contrib/modules/custom_operations mkdir build && cd build -cmake .. -DCMAKE_BUILD_TYPE=Release && cmake --build . --parallel 4 +cmake ../user_ie_extensions -DCMAKE_BUILD_TYPE=Release && cmake --build . --parallel 4 ``` If you need to build only some operations specify them with the `-DCUSTOM_OPERATIONS` option: ```bash -cmake .. -DCMAKE_BUILD_TYPE=Release -DCUSTOM_OPERATIONS="complex_mul;fft" +cmake ../user_ie_extensions -DCMAKE_BUILD_TYPE=Release -DCUSTOM_OPERATIONS="complex_mul;fft" ``` - Please note that [OpenCV](https://opencv.org/) installation is required to build an extension for the [fft](examples/fft) operation. Other extentions still can be built without OpenCV. diff --git a/modules/custom_operations/tests/requirements.txt b/modules/custom_operations/tests/requirements.txt index d7282db88d..f115e7945d 100644 --- a/modules/custom_operations/tests/requirements.txt +++ b/modules/custom_operations/tests/requirements.txt @@ -1,4 +1,5 @@ -torch==1.13.1 -# open3d==0.16.0 - need to update with new release +torch +onnx tensorboard pytest +# open3d==0.16.0 - need to update with new release diff --git a/modules/custom_operations/user_ie_extensions/CMakeLists.txt b/modules/custom_operations/user_ie_extensions/CMakeLists.txt index 65a13360e0..506443152d 100644 --- a/modules/custom_operations/user_ie_extensions/CMakeLists.txt +++ b/modules/custom_operations/user_ie_extensions/CMakeLists.txt @@ -2,6 +2,14 @@ # SPDX-License-Identifier: Apache-2.0 # +if(POLICY CMP0079) + cmake_policy(SET CMP0079 NEW) +endif() + +if(POLICY CMP0057) + cmake_policy(SET CMP0057 NEW) +endif() + set(TARGET_NAME "user_ov_extensions") set(CMAKE_CXX_STANDARD 11) diff --git a/modules/java_api/build.gradle b/modules/java_api/build.gradle index 2496b37338..709f428379 100644 --- a/modules/java_api/build.gradle +++ b/modules/java_api/build.gradle @@ -36,13 +36,13 @@ if (arch == "x86_64" || arch == "amd64" || arch == "x64" || arch == "x86-64") { if (OperatingSystem.current().isMacOsX()) { nativesCPP = 'macosx-' - native_resources.add(System.getenv('INTEL_OPENVINO_DIR') + "/runtime/lib/" + ov_arch + "/Release"); + native_resources.add(System.getenv('INTEL_OPENVINO_DIR') + "/lib"); } else if (OperatingSystem.current().isLinux()) { nativesCPP = 'linux-' - native_resources.add(System.getenv('INTEL_OPENVINO_DIR') + "/runtime/lib/" + ov_arch); + native_resources.add(System.getenv('INTEL_OPENVINO_DIR') + "/lib"); } else if (OperatingSystem.current().isWindows()) { nativesCPP = 'windows-' - native_resources.add(System.getenv('INTEL_OPENVINO_DIR') + "/runtime/bin/" + ov_arch + "/Release"); + native_resources.add(System.getenv('INTEL_OPENVINO_DIR') + "/bin"); } else { logger.warn('Unknown operating system!') }