chore: Add todo for checking whether CUDA exists or not

This commit is contained in:
Service Account 2023-10-21 18:04:29 -07:00
parent b9e181c01d
commit 47e5327228
No known key found for this signature in database

View File

@ -33,12 +33,14 @@ const initModel = (fileName) => {
let binaryName; let binaryName;
if (process.platform === "win32") { 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"; binaryName = "nitro_windows_amd64_cuda.exe";
} else if (process.platform === "darwin") { } else if (process.platform === "darwin") {
// Mac OS platform // Mac OS platform
binaryName = process.arch === "arm64" ? "nitro_mac_arm64" : "nitro_mac_intel"; binaryName = process.arch === "arm64" ? "nitro_mac_arm64" : "nitro_mac_intel";
} else { } else {
// Linux // Linux
// Todo: Need to check for CUDA support to switch between CUDA and non-CUDA binaries
binaryName = "nitro_linux_amd64_cuda"; // For other platforms binaryName = "nitro_linux_amd64_cuda"; // For other platforms
} }