* 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
* Use non-private ways of context menu
and fix up some things where previously we had odd null checks
that somehow became .get() (which means it worked exactly once)
* Some tweaks
* Fix Editor not being able to load full links
* Better type for this.filename in compiler.ts
* Updates editor.ts and improves compilation types
* Fix some of the type issues, lots still remain
* fixes to language selection & refactoring of hub and some inits
* fix flow of events
* Fix llvm opt handling (cc @jeremy-rifkin)
Co-authored-by: partouf <partouf@gmail.com>
Co-authored-by: Matt Godbolt <matt@godbolt.org>
SH GCC 9.5 and 12.2 were linux-* and not supporting sh2.
We decided to change these compilers to elf-* with sh2 support.
This also causes the removal of fortran as it's not available for elf targets.
refs #94
Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
The "auto NSDMI" branch has not actually fully supported
non static members in a while, as the patch was initially written
for clang 9, and I have not gotten around to fix it.
The branch now contains a number of experimentals proposals
including
* parameter pack indexing (https://isocpp.org/files/papers/D2632R0.pdf)
* magic char8_t cast function
* _ for variable names
* non trailing parameter packs
* constexpr structured bindings
* constexpr cast from void*
* And more to come
P2632 is the paper presenting the majority of these features,
and the current plan is to implement as much of it in clang as possible.
The wg21.link link will become active at publication of the paper next week.
* Add ROCm Clang and HIP to CUDA
* Always include hip/hip_runtime.h
The need to include <hip/hip_runtime.h> and/or <hip/hip_runtime_api.h>
in HIP code before using HIP features is one big difference between
HIP and CUDA. Manually adding it to the command-line here is not ideal,
but the alternative is that the CUDA sample code will be broken by
default when a HIP compiler is selected.
This is perhaps an argument for making HIP a separate language in
compiler explorer, but there's pros and cons to both approaches. I'm
not sure which approach is best, but the existing HIP support that I
built upon was based on using CUDA as the language.
* Add hip-amd to CUDA libs
* Fix id collsion and drop --offload-arch
* Drop trunk compilers
The nightly builds of ROCm Clang and vanilla Clang lack both device
libraries and the HIP library. Their ability to compile HIP code is
very limited without those, to the extent that they will not be able
to build the example code without changes.
I suspect that it's possible to fix those issues, but it may be less
confusing to drop them from the compiler list until they are fully
functional.
* Add self to CONTRIBUTORS.md
* Restore hiptrunk compiler
Put the hiptrunk compiler back how it was, so that the addition of the
HIP libraries is a purely additive change in functionality. However,
mark hiptrunk as hidden so that it is not visible by default.
Co-authored-by: Patrick Quist <partouf@gmail.com>