@shiwano/ggen 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/binary.js +2 -3
- package/package.json +2 -2
package/dist/binary.js
CHANGED
|
@@ -7,7 +7,7 @@ import { join } from "node:path";
|
|
|
7
7
|
import { Readable } from "node:stream";
|
|
8
8
|
import { GGenError } from "./errors.js";
|
|
9
9
|
import { extractZip } from "./zip.js";
|
|
10
|
-
const AUTO_ORDER = ["cuda", "vulkan", "cpu"];
|
|
10
|
+
const AUTO_ORDER = ["cuda", "rocm", "vulkan", "cpu"];
|
|
11
11
|
const BACKENDS = ["cpu", "cuda", "rocm", "vulkan", "metal"];
|
|
12
12
|
let server;
|
|
13
13
|
/** The server version this package runs. */
|
|
@@ -262,8 +262,7 @@ async function detect(known, merged, given, version, binaryDir, download, ensure
|
|
|
262
262
|
const candidates = AUTO_ORDER.filter((b) => installed.includes(b) || `${key}-${b}` in archives);
|
|
263
263
|
if (candidates.length === 0) {
|
|
264
264
|
const where = download ? `${binaryDir} or the manifest of ${version}` : binaryDir;
|
|
265
|
-
|
|
266
|
-
throw new GGenError("BINARY_UNAVAILABLE", `no ggen binary for ${key} in ${where}${rocm}${unreachable}`);
|
|
265
|
+
throw new GGenError("BINARY_UNAVAILABLE", `no ggen binary for ${key} in ${where}${unreachable}`);
|
|
267
266
|
}
|
|
268
267
|
if ((consulted || !download) && candidates.length === 1 && candidates[0] === "cpu") {
|
|
269
268
|
return { order: ["cpu"], consulted };
|