Skip to content

Commit

Permalink
check for macos _or_ arm
Browse files Browse the repository at this point in the history
Signed-off-by: HenryL27 <[email protected]>
  • Loading branch information
HenryL27 committed Mar 12, 2024
1 parent 1a0af3b commit 22fde50
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ml-algorithms/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ dependencies {
implementation("ai.djl.onnxruntime:onnxruntime-engine:0.21.0") {
exclude group: "com.microsoft.onnxruntime", module: "onnxruntime"
}
//arm doesn't support GPU
if (System.getProperty("os.arch") == "aarch64") {
def os = DefaultNativePlatform.currentOperatingSystem
//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

0 comments on commit 22fde50

Please sign in to comment.