/** * ruRE Phase 5 — PTX text (ADR-0006): NVIDIA's virtual ISA. Only a bounded scan for the header directives and the kernel and function * names; the text is never interpreted further and never run. The scan reads at most 4 MiB, and every pattern is linear. */ export declare const MAX_PTX_SCAN: number; export declare const MAX_PTX_TEXT: number; export interface PtxInfo { version: string | null; target: string | null; addressSize: number | null; /** `.entry` kernels with the number of `.param` declarations in their signature. */ entries: { name: string; params: number; }[]; /** `.func` device functions. */ functions: string[]; /** The text itself, only when asked for, cut at MAX_PTX_TEXT. */ text?: string; textTruncated?: boolean; scanTruncated: boolean; } /** * True when the bytes look like PTX source: the first directive is `.version` after comments and blank space. A hand-written scan, not a * regex: a lazy comment pattern inside a repeated group backtracks exponentially on `/*` followed by many `*` + `/` pairs (CodeQL js/redos * caught the first version of this). Every step here moves forward, so the cost is linear in the 8 KiB it looks at. */ export declare function looksLikePtx(b: Buffer): boolean; export declare function scanPtx(text: string, includeText: boolean): PtxInfo; //# sourceMappingURL=cuda-ptx.d.ts.map