(outputFilename: string, maxOutput: number)
| 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) { |
no test coverage detected