Skip to content

Commit

Permalink
chore: Add todo for checking whether CUDA exists or not
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-service-account committed Oct 22, 2023
1 parent b9e181c commit 47e5327
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/inference-plugin/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,14 @@ const initModel = (fileName) => {
let binaryName;

if (process.platform === "win32") {
// Todo: Need to check for CUDA support to switch between CUDA and non-CUDA binaries
binaryName = "nitro_windows_amd64_cuda.exe";
} else if (process.platform === "darwin") {
// Mac OS platform
binaryName = process.arch === "arm64" ? "nitro_mac_arm64" : "nitro_mac_intel";
} else {
// Linux
// Todo: Need to check for CUDA support to switch between CUDA and non-CUDA binaries
binaryName = "nitro_linux_amd64_cuda"; // For other platforms
}

Expand Down

0 comments on commit 47e5327

Please sign in to comment.