Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JAVA_API] updated tbb lib suffix #916

Merged
merged 1 commit into from
May 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading