Skip to content

Commit aa1acb8

Browse files
authored
[JAVA_API] updated tbb lib suffix (#916)
1 parent edc23c6 commit aa1acb8

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

modules/java_api/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ println 'CPU architecture: ' + arch
1111

1212

1313
def nativesCPP;
14-
def openvinoVersion = "2023.2"
14+
def openvinoVersion = "2024.2"
1515

1616
def native_resources = []
1717
def tbb_dir = System.getenv('TBB_DIR')

modules/java_api/src/main/java/org/intel/openvino/NativeLibrary.java

+7-2
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,13 @@ public static void loadNativeLibs() {
8686

8787
// Load native libraries.
8888
for (String lib : nativeLibs) {
89-
// On Linux, TBB and GNA libraries has .so.2 soname
90-
String version = lib.startsWith("tbb") || lib.equals("gna") ? "2" : null;
89+
// On Linux, tbb library has .so.12 and tbbmalloc library has .so.2 soname
90+
String version = null;
91+
if (lib.equals("tbb")) {
92+
version = "12";
93+
} else if (lib.equals("tbbmalloc")) {
94+
version = "2";
95+
}
9196
lib = getLibraryName(lib, version);
9297
File nativeLibTmpFile = new File(tmpDir, lib);
9398
try {

0 commit comments

Comments
 (0)