Skip to content

Commit

Permalink
Fix onnx dep (#2198) (#2201)
Browse files Browse the repository at this point in the history
* onnxruntime depends on architecture, not os

Signed-off-by: HenryL27 <[email protected]>

* check for macos _or_ arm

Signed-off-by: HenryL27 <[email protected]>

---------

Signed-off-by: HenryL27 <[email protected]>
(cherry picked from commit 4af7e78)

Co-authored-by: HenryL27 <[email protected]>
  • Loading branch information
opensearch-trigger-bot[bot] and HenryL27 authored Mar 13, 2024
1 parent aaa2911 commit 23b7bb9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ml-algorithms/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ dependencies {
exclude group: "com.microsoft.onnxruntime", module: "onnxruntime"
}
def os = DefaultNativePlatform.currentOperatingSystem
//mac doesn't support GPU
if (os.macOsX) {
//arm/macos doesn't support GPU
if (os.macOsX || System.getProperty("os.arch") == "aarch64") {
dependencies {
implementation "com.microsoft.onnxruntime:onnxruntime:1.14.0"
}
Expand Down Expand Up @@ -122,4 +122,4 @@ spotless {

eclipse().configFile rootProject.file('.eclipseformat.xml')
}
}
}

0 comments on commit 23b7bb9

Please sign in to comment.