Skip to content

Commit

Permalink
[JAVA_API] updated tbb lib suffix (#916)
Browse files Browse the repository at this point in the history
  • Loading branch information
likholat authored May 22, 2024
1 parent edc23c6 commit aa1acb8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/java_api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ println 'CPU architecture: ' + arch


def nativesCPP;
def openvinoVersion = "2023.2"
def openvinoVersion = "2024.2"

def native_resources = []
def tbb_dir = System.getenv('TBB_DIR')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,13 @@ public static void loadNativeLibs() {

// Load native libraries.
for (String lib : nativeLibs) {
// On Linux, TBB and GNA libraries has .so.2 soname
String version = lib.startsWith("tbb") || lib.equals("gna") ? "2" : null;
// On Linux, tbb library has .so.12 and tbbmalloc library has .so.2 soname
String version = null;
if (lib.equals("tbb")) {
version = "12";
} else if (lib.equals("tbbmalloc")) {
version = "2";
}
lib = getLibraryName(lib, version);
File nativeLibTmpFile = new File(tmpDir, lib);
try {
Expand Down

0 comments on commit aa1acb8

Please sign in to comment.