10 lines
471 B
TypeScript
10 lines
471 B
TypeScript
import process from "process";
|
|
import { BuildGpu } from "../types.js";
|
|
import { BinaryPlatform } from "./getPlatform.js";
|
|
export declare function getBestComputeLayersAvailable(): Promise<(false | "metal" | "cuda" | "vulkan")[]>;
|
|
export declare function detectBestComputeLayersAvailable({ platform, arch, hasCudaWithStaticBinaryBuild }?: {
|
|
platform?: BinaryPlatform;
|
|
arch?: typeof process.arch;
|
|
hasCudaWithStaticBinaryBuild?: boolean;
|
|
}): Promise<BuildGpu[]>;
|