Skip to content

Commit

Permalink
Fix wrong linux nitro path (janhq#1266)
Browse files Browse the repository at this point in the history
Co-authored-by: Hien To <[email protected]>
  • Loading branch information
hiento09 and hiento09 authored Dec 31, 2023
1 parent 7eeb1c4 commit 5300172
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 86 deletions.
39 changes: 0 additions & 39 deletions extensions/inference-nitro-extension/bin/linux-start.sh

This file was deleted.

45 changes: 0 additions & 45 deletions extensions/inference-nitro-extension/bin/win-start.bat

This file was deleted.

4 changes: 2 additions & 2 deletions extensions/inference-nitro-extension/src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -394,9 +394,9 @@ function spawnNitroProcess(nitroResourceProbe: any): Promise<any> {
} else {
let nvida_info = JSON.parse(readFileSync(NVIDIA_INFO_FILE, "utf8"));
if (nvida_info["run_mode"] === "cpu") {
binaryFolder = path.join(binaryFolder, "win-cpu");
binaryFolder = path.join(binaryFolder, "linux-cpu");
} else {
binaryFolder = path.join(binaryFolder, "win-cuda");
binaryFolder = path.join(binaryFolder, "linux-cuda");
cudaVisibleDevices = nvida_info["gpu_highest_vram"];
}
binaryName = "nitro";
Expand Down

0 comments on commit 5300172

Please sign in to comment.