MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / nvdisasm

Method nvdisasm

lib/compilers/nvcpp.ts:60–76  ·  view source on GitHub ↗
(outputFilename: string, maxOutput: number)

Source from the content-addressed store, hash-verified

58 }
59
60 async nvdisasm(outputFilename: string, maxOutput: number) {
61 const disasmResult = await this.exec(unwrap(this.compiler.nvdisasm), ['-c', '-g', '-hex', outputFilename], {
62 maxOutput,
63 customCwd: path.dirname(outputFilename),
64 });
65
66 const newResult = {asm: ''};
67
68 if (disasmResult.code === 0) {
69 newResult.asm = disasmResult.stdout;
70 } else {
71 newResult.asm = `<No output: ${path.basename(unwrap(this.compiler.nvdisasm))} returned ${
72 disasmResult.code
73 }>`;
74 }
75 return newResult;
76 }
77
78 async extractDeviceBinariesFromExecutable(result, compilationInfo: CompilationInfo) {
79 if (this.cuobjdump) {

Callers 1

extractDeviceCodeMethod · 0.95

Calls 2

unwrapFunction · 0.50
execMethod · 0.45

Tested by

no test coverage detected