diff options
author | Paul Taylor <paul.e.taylor@me.com> | 2022-10-24 18:28:01 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-24 20:28:01 -0500 |
commit | 1476937e8270c0eb1fe64cace953d94406c80e89 (patch) | |
tree | a0c3b3f72402312486f36815b369955cdfa43ecc /lib/compilers/zig.ts | |
parent | d0f349cfc4e5a6c3199b8902046f8d42775c9b8b (diff) | |
download | compiler-explorer-1476937e8270c0eb1fe64cace953d94406c80e89.tar.gz compiler-explorer-1476937e8270c0eb1fe64cace953d94406c80e89.zip |
Add split host/device views for CUDA C++ (#4177)gh-4627
* make nvcc show the device asm view button, stop after compiling host assembly
* keep and extract ptx device code
* paper over some typescript compile errors (maybe mitigating orchidjs/tom-select#500, orchidjs/tom-select#501)
* await on promise-returning methods
* use gcc objdump for nvcc host code, add nvdisasm to disassemble SASS .cubin
* append device ASM lines to result ASM so they're also colourized
* append device ASM to all ASM
* automatically open the device pane if the compiler supports emitting device ASM
* save device view open boolean in compiler state
* make the nvcc compiler return all PTX and SASS results as separate devices
* ensure line hover highlights propagate from editor to compiler panes, and are re-applied when the user changes the selected device
* update cuda properties
Diffstat (limited to 'lib/compilers/zig.ts')
-rw-r--r-- | lib/compilers/zig.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compilers/zig.ts b/lib/compilers/zig.ts index 31dec86da..ef6298189 100644 --- a/lib/compilers/zig.ts +++ b/lib/compilers/zig.ts @@ -46,7 +46,7 @@ export class ZigCompiler extends BaseCompiler { this.self_hosted_cli = this.compiler.semver === 'trunk' || - (this.compiler.semver && Semver.gt(asSafeVer(this.compiler.semver), '0.6.0', true)); + !!(this.compiler.semver && Semver.gt(asSafeVer(this.compiler.semver), '0.6.0', true)); if (this.self_hosted_cli) { this.compiler.irArg = ['-femit-llvm-ir']; |