Commit Graph
3411 Commits
Author SHA1 Message Date
Partouf b6234dcfb6 Merge remote-tracking branch 'origin/main' into feat/compilation-workers 2025-08-16 16:51:20 +02:00
aneshlya c90c0a8a74 Add ISPC v1.28.0 (#8032)
ISPC v1.28.0 has been released. Related infra change:
https://github.com/compiler-explorer/infra/pull/1762
2025-08-15 14:58:14 -05:00
Matt Godbolt 1c918c3366 Mg/cefs mount prop (#8033)
makes the root bindmount a "slave" which means it gets all host mount
point change notifications, needed for cefs automounting. Security
tradeoffs mentioned in compiler-explorer/nsjail#2
2025-08-14 17:09:07 -05:00
Matt Godbolt 56753543d7 Mount cefs into the jails (#8030)
This _maybe_ shows an issue - users could find _anything_ in cefs so we
need to make sure we don't ever put privileged stuff in cefs.
2025-08-14 10:11:33 -05:00
kevinjeon-g ffaf897823 Update dex2oat versions (35.13, 35.14, android 16) (#8027) 2025-08-14 10:11:11 -05:00
e575fd6c0d Add C++ library fusedkernellibrary vBeta-0.1.9 (#8026)
This PR adds the C++ library **fusedkernellibrary** version Beta-0.1.9
to Compiler Explorer.

- GitHub URL:
https://github.com/Libraries-Openly-Fused/FusedKernelLibrary


Related PR: https://github.com/compiler-explorer/infra/pull/1755

---
_PR created with
[ce-lib-wizard](https://github.com/compiler-explorer/ce-library-wizard)_

---------

Co-authored-by: Albert Andaluz <albertandaluz@hotmail.com>
Co-authored-by: Patrick Quist <partouf@gmail.com>
2025-08-14 10:10:02 -05:00
partouf e6c1d346f2 merge 2025-08-12 16:35:54 +02:00
Matt Godbolt e9390bce6c Fix gcc 15.2 semver 2025-08-12 09:00:34 -05:00
partouf 197af59d02 enable compilequeue in staging 2025-08-12 15:07:02 +02:00
partouf 519f764a8a Merge remote-tracking branch 'origin/main' into feat/compilation-workers 2025-08-12 14:55:08 +02:00
Jiawei 0bc558f7e8 Bump Binutils version into 2.45 when using GCC 15.1. (#8003)
Bump Binutils version into 2.45 when using GCC 15.1.

The change form 2.44 into 2.45 includes some new assembler features, the
details please check


https://sourceware.org/git/?p=binutils-gdb.git;a=blob;f=gas/NEWS;h=2e9538bd2736b4108cc5a383802c75f5feacfbc4;hb=2bc7af1ff7732451b6a7b09462a815c3284f9613

Signed-off-by: Jiawei <jiawei@iscas.ac.cn>
2025-08-11 14:22:30 -05:00
Matt GodboltandPartouf 2ae38a0c3f Make argument parsers instances instead of static classes (#8017)
- Made parsers stateful instances instead of shared static state (for
mllvm options). Fixes #8011 as this is caused by multiple clang-based
compilers being run concurrently and stomping over each others' state.
- passes `Compiler` to the constructor, which removes some param passing
- Added some missing awaits
- Tried to get things less dependent on `examples`, only `go` needs it
- Spotted that `zig` c++ might have issues in discovery
- Fly-by fixed a broken go path in ppc64le_gl122
- removed a redundant override in coccinelle
- made the mojo parser actually use the parser it defined
- canonified tablegen's special method
- 

I changed the zig parser too but as best I can tell it was broken before
(the `1` return value from the command it runs:)

```
ubuntu@ip-172-30-0-164:/infra/.deploy$ /opt/compiler-explorer/zig-0.14.1/zig c++ -mllvm --help-list-hidden /infra/.deploy/examples/c++/default.cpp -S -o /tmp/output.s
...
  --x86-use-vzeroupper                                                       - Minimize AVX to SSE transition penalty
  --xcore-max-threads=<number>                                               - Maximum number of threads (for emulation thread-local storage)
/infra/.deploy/examples/c++/default.cpp:1:1: error: FileNotFound
```
return code 1 (means it's not cached)

---------

Co-authored-by: Partouf <partouf@gmail.com>
2025-08-11 12:14:13 -05:00
A. R. Shajii bea6e67715 Add Codon Python compiler (#8008) 2025-08-11 11:14:26 -05:00
Marc Poulhiès 1a4861fd1a Add 24 cross GCC 15.2
refs https://github.com/compiler-explorer/compiler-explorer/issues/7948

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2025-08-10 09:15:56 +02:00
Marc Poulhiès 2cc2c9cd9a Add GCC 15.2 native intel
refs https://github.com/compiler-explorer/compiler-explorer/issues/7948

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2025-08-10 09:15:56 +02:00
Julien Marrec 96f00588ca #2812 - Add RE2 (#7594) 2025-08-09 20:31:38 +02:00
Partouf fc78ce3f14 Merge remote-tracking branch 'origin/main' into feat/compilation-workers 2025-08-08 01:17:30 +02:00
Matt Godbolt 4ff8e7917d Migrate 'wine' msvc to windows (#8005)
- Converts all "wine" compilers to be "ex wine" in Windows. uses
different IDs to avoid clashes BUT aliases in the old IDs.
- removes wine and firejail config
2025-08-07 15:47:23 -05:00
Miguel Ojeda e0ffdb95be Rust 1.89.0 (#8004) 2025-08-07 17:45:22 +00:00
Patrick Quist 29c2ef6aa8 Fix armv7 clang 20.1.0 2025-08-07 17:22:57 +02:00
Partouf 11d54104ae move configs around 2025-08-07 16:53:40 +02:00
Partouf 130af6de12 Merge remote-tracking branch 'origin/main' into feat/compilation-workers 2025-08-07 15:46:20 +02:00
Vipul Cariappa 0f80a35cf5 update clad v2.0 (#7998)
cc @vgvassilev
Infra PR at https://github.com/compiler-explorer/infra/pull/1732
2025-08-06 09:43:01 -05:00
Matt GodboltandClaude e9011ec592 Phase 3: Automate Golden Layout CSS Import Processing (#7977)
## Problem

The SCSS migration encountered issues with Golden Layout CSS imports:

1. Sass `@import` statements are deprecated and will be removed in Dart
Sass 3.0.0
2. `@use` cannot be used inside conditional blocks like
`html[data-theme='default']`
3. The `~` webpack resolver doesn't work with `@use`, only `@import`

Current problematic code:
```scss
html[data-theme='default'] {
    @import '~golden-layout/src/css/goldenlayout-light-theme';
}
```

## Solution

Added a custom webpack loader that automatically inlines Golden Layout
CSS content at build time.

**Custom Loader** (`etc/webpack/replace-golden-layout-imports.js`):
- Detects `@import` statements for `~golden-layout/src/css/*` files
- Reads CSS content from `node_modules/golden-layout/src/css/`
- Replaces import statements with actual CSS content
- Uses generalized regex to handle any golden-layout CSS file

**Integration & Cleanup**:
- Positioned before sass-loader in webpack processing chain
- Automatically syncs with Golden Layout package updates
- Consolidated all webpack loaders in `etc/webpack/` directory
- Moved pug loader from `etc/scripts/parsed-pug/` to `etc/webpack/`
- Converted both loaders to ES modules for consistency
- Removed unnecessary `package.json` override

## Result

Eliminates Sass deprecation warnings while preserving existing theme
architecture. Build-time processing with no runtime overhead. Cleaner
webpack loader organization.

## Files Changed

- `webpack.config.esm.ts` - Updated loader paths and added Golden Layout
processor
- `etc/webpack/replace-golden-layout-imports.js` - Custom loader
implementation
- `etc/webpack/parsed-pug-loader.js` - Moved from
`etc/scripts/parsed-pug/` and converted to ES modules
- Removed `etc/webpack/package.json` - No longer needed with ES modules
- Removed `etc/scripts/parsed-pug/` directory - Consolidated into
webpack directory

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-08-05 15:00:42 -05:00
Christoffer Lerno 30dd9e8144 Add C3 0.7.3-0.7.4 (#7994)
This adds C3 0.7.3 and 0.7.4, but should not be added until they are
available through infra.
2025-08-05 09:35:06 -05:00
Matt GodboltandClaude c29ad46f3a [Not Live; disabled by default] Add Claude Explain feature for AI-powered assembly explanations (#7749)
Add Claude Explain feature for AI-powered code explanations

This PR introduces Claude Explain, a new feature that provides AI-powered explanations of compiler output directly within Compiler Explorer.

Key features:

Claude Explain functionality:
  - New explain view pane
  - Explains compiler output with full context of source code and compilation output
  - Configurable audience level and explanation type
  - Response caching to improve performance and reduce API calls
  - Usage statistics display showing requests used and token counts

User experience:
  - Consent flow on first use explaining data handling and privacy
  - AI disclaimer banner warning about potential LLM inaccuracies
  - Respects "no-ai" directive in source code for users who don't want AI processing

Privacy and security:
  - Data sent to Anthropic's Claude API as documented in privacy policy
  - No data used for model training
  - Clear consent required before first use
  - Support for opting out via "no-ai" directive

The feature is marked as beta and can be enabled via configuration.

Co-authored-by: Claude <noreply@anthropic.com>
2025-08-05 09:31:48 -05:00
Marc Auberer 92ea25efb5 [Spice] Add version 0.22.3 (#7988)
Infra PR: https://github.com/compiler-explorer/infra/pull/1729
2025-08-04 08:35:35 -05:00
Shawn Zhong 9c72429e08 Remove duplicates in SASS docs (#7991)
In PR https://github.com/compiler-explorer/compiler-explorer/pull/7976,
I forgot to handle the case where same instructions have different
descriptions. This PR fixes the script and removes the duplicates from
the generated file.

The SASS docs are extracted from multiple tables from
https://docs.nvidia.com/cuda/cuda-binary-utilities/index.html#instruction-set-reference.
For example,
- Table 4. Maxwell and Pascal Instruction Set
- ...
- Table 8. Hopper Instruction Set
- Table 8. Blackwell Instruction Set (wait...what? both tables are table
8? whatever...)

Previously, only the duplications for the (opcode, descriptions) pair
were removed. In this PR, we only check the duplications based on the
opcode and only keep the last one (based on the assumption that the
newer ones are better).

I manually went through the removed duplicates, and found that
- No instruction actually changed the meaning across generations (I
would be very surprised if they did so).
- Most of the changes are minor fixes like changing capitalization
(e.g., `generic Memory` -> `Generic Memory`) or fixing typo (e.g.,
`Local within Shared Memory Window` -> `Load within Shared Memory
Window`)
- A couple of the descriptions are for whatever reason simplified (e.g.,
`LOP3`: `3-input Logic Operation` -> `Logic Operation`), which is a bit
unfortunate.
2025-08-04 08:20:28 -05:00
Matt Godbolt ef264acace Update to Privacy Policy (#7983)
A whole bunch of changes I've been meaning to make:
- Clarify things and put the TLDR at the top
- Remove my own darn address etc (after checking this is OK)
- Clarifying the goo.gl situation
- Paving the way for the explain feature
2025-08-02 16:20:20 -05:00
Matt Godbolt 9b290d6236 Apply triton to the amazon settings. we should probably do something smarter here 2025-07-31 09:14:39 -05:00
Shawn Zhong bdd776634f [Triton] Add Triton 3.4.0 and tests (#7974)
- Add Triton 3.4.0 released July 30th (c.f.
https://github.com/compiler-explorer/infra/pull/1727). It came sooner
than I expected.
- Add `test_triton_wrapper.py` for testing the correctness of wrapper.
2025-07-31 08:36:48 -05:00
Shawn Zhong 21f6cdcf20 [Triton] Fix AMD lld issue (#7975)
Fix issue with AMD by removing the dependency on lld (tested locally by
moving `/usr/bin/ld.lld` and `/opt/rocm/llvm/bin/ld.lld`)

```
  File "/opt/compiler-explorer/triton/v3.3.1/lib/python3.12/site-packages/triton/runtime/jit.py", line 347, in <lambda>
    return lambda *args, **kwargs: self.run(grid=grid, warmup=False, *args, **kwargs)
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/compiler-explorer/triton/v3.3.1/lib/python3.12/site-packages/triton/runtime/jit.py", line 569, in run
    kernel = self.compile(src, target=target, options=options.__dict__)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/compiler-explorer/triton/v3.3.1/lib/python3.12/site-packages/triton/compiler/compiler.py", line 230, in compile
    key = f"{triton_key()}-{src.hash()}-{backend.hash()}-{options.hash()}-{str(sorted(env_vars.items()))}"
                                         ^^^^^^^^^^^^^^
  File "/opt/compiler-explorer/triton/v3.3.1/lib/python3.12/site-packages/triton/backends/amd/compiler.py", line 418, in hash
    version = subprocess.check_output([HIPBackend.path_to_rocm_lld(), "--version"], encoding='utf-8')
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/compiler-explorer/triton/v3.3.1/lib/python3.12/site-packages/triton/backends/amd/compiler.py", line 197, in path_to_rocm_lld
    raise Exception("ROCm linker /opt/rocm/llvm/bin/ld.lld not found. Set 'TRITON_HIP_LLD_PATH' to its path.")
Exception: ROCm linker /opt/rocm/llvm/bin/ld.lld not found. Set 'TRITON_HIP_LLD_PATH' to its path.
```
2025-07-31 08:22:10 -05:00
Shawn Zhong 97c6ce61ec Update SASS docs and fix link (#7976)
- Change SASS instruction link from
`https://docs.nvidia.com/cuda/cuda-binary-utilities/index.html#id14` to
`https://docs.nvidia.com/cuda/cuda-binary-utilities/index.html#instruction-set-reference`.
In the former URL, the tag (`#id14`) no longer exists on the webpage.
- Run `etc/scripts/docenizers/docenizer-ptx-sass.py` and add some new
instructions from the website.
2025-07-31 08:21:27 -05:00
Matt Godbolt 4ea9a92250 Put the ldPath in the right place for nvcrt 2025-07-30 12:13:23 -05:00
Bernhard Manfred GruberandMatt Godbolt e924f98dd4 Add NVRTC 12.2-12.9 (#7943)
- [x] Depends on https://github.com/compiler-explorer/infra/pull/1719

---------

Co-authored-by: Matt Godbolt <matt@godbolt.org>
2025-07-30 10:16:33 -05:00
Shawn ZhongandMatt Godbolt 8befc91a79 Add Triton language and compiler (#7919)
Close #5530. Infra:
https://github.com/compiler-explorer/infra/pull/1711. Previous work by
@siboehm at #5531


## Summary

This pull request introduces support for the
[Triton](https://github.com/triton-lang/triton) language, a Python-based
DSL for writing highly efficient GPU kernels.


- [x] **New Language Support**: I've added comprehensive support for the
Triton programming language, allowing users to compile and inspect
Triton kernels within Compiler Explorer. (c.f.,
`lib/compilers/triton.ts`)
- [x] **Python Wrapper for Compilation**: A new Python wrapper script
(`triton_wrapper.py`) has been introduced to manage Triton compilation,
patching its behavior to dump compiled kernels and intermediate
representations without requiring actual execution, and consolidating
the output for Compiler Explorer.
- [x] **Device Assembly View**: Enables viewing of generated device
assembly code (e.g., PTX, AMDGCN) and various intermediate
representations (MLIR, LLVM IR) produced by the Triton compiler.
- [x] **MLIR Parsing**: New parsers (`asm-parser-mlir.ts` and
`mlir-pass-dump-parser.ts`) have been added to correctly interpret and
display MLIR assembly and optimization pass dumps, including source
location information.
- [x] **Multi-Version & Multi-Backend Support**: Painstakingly includes
all 8 versions (from 2.2.0 to 3.3.1) of Triton that supports Python
3.12. Supports both CUDA and HIP backend for Triton 3.

## Screenshots

Source and assembly:
<img width="1354" height="789" alt="image"
src="https://github.com/user-attachments/assets/c29650ff-2073-40e0-a9e6-ff8377094b5e"
/>



Device view for MLIR and LLVM IR: 
<img width="1402" height="670" alt="image"
src="https://github.com/user-attachments/assets/43dd5c68-ca78-41b1-9865-e97ffe3ef73c"
/>

Opt pipeline viewer:
<img width="1408" height="668" alt="image"
src="https://github.com/user-attachments/assets/429eef8c-aaac-4781-aafa-39ef0ffc7241"
/>

Diff of TTIR in Triton 3.3.1 vs 2.3.0:
<img width="1580" height="726" alt="image"
src="https://github.com/user-attachments/assets/a928c893-dd9a-4c3a-a048-14046e56a14c"
/>

CUDA & HIP:
<img width="1596" height="800" alt="image"
src="https://github.com/user-attachments/assets/c18800c3-cfad-4e5e-96de-ba92c9f236ea"
/>

## Implementation Details (and Notes for Reviewers)

- For Device Assembly View, I Implemented `MlirAsmParser` for parsing
MLIR assembly. Technically MLIR is not an assembly language, but there
is no better choice to make the source line map work w/ device view.
- I Implemented `MlirPassDumpParser` for processing MLIR optimization
pass dumps. I tried to subclass `LlvmPassDumpParser`, but they turn out
to be too different to worth doing it.
- `LlvmPassDumpParser` made some assumptions that do not hold true for
MLIR passed. Some effort is put to make sure that the passes are
properly diff-ed, since some passes can run multiple times and also
sometimes pass can be nested (i.e., some number of `before`s followed by
some number of `after`s)
- A lot of effort is put into `patch_triton` to make sure that the we
only compile the kernel without actually running it, and that needs to
work across all the versions we support.

## Steps to Run Locally

1. Clone https://github.com/ShawnZhong/compiler-explorer-infra.git
2. Install Triton to `/opt/compiler-explorer/triton`:
```sh
$ cd compiler-explorer-infra
$ ./bin/ce_install install triton
$ ls /opt/compiler-explorer/triton
# v2.2.0  v2.3.0  v2.3.1  v3.0.0  v3.1.0  v3.2.0  v3.3.0  v3.3.1
```
3. Clone https://github.com/ShawnZhong/compiler-explorer.git and
checkout branch `triton`
4. Run Compiler Explorer
```sh
make EXTRA_ARGS='--language triton' dev
```
5. Enjoy

---------

Co-authored-by: Matt Godbolt <matt@godbolt.org>
2025-07-30 10:15:28 -05:00
Cliff Burdick 7e0cc676f0 Add MatX 0.9.1 and 0.9.2 (#7967) 2025-07-30 09:56:30 -05:00
Matt GodboltandClaude 46ec315725 Configure Nix compiler for production environment (#7962)
- Add nix.amazon.properties with proper executable paths
- Define 4 Nix versions: 2.26.3, 2.27.1, 2.28.3, 2.29.0
- Set 2.29.0 as default version

Fixes #7811

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: Claude <noreply@anthropic.com>
2025-07-29 12:01:53 -05:00
Thomas Padioleau fc8825ce86 Add Kokkos 4.6.02 (#7946)
Related to https://github.com/compiler-explorer/infra/pull/1721.
2025-07-28 13:00:23 -05:00
Partouf 94568300cf fix hlsl 2025-07-27 20:18:33 +02:00
Partouf 2d437029a0 update windows libs props 2025-07-27 18:03:55 +02:00
partouf 87158b2be3 fix 2025-07-27 14:49:45 +02:00
Apurva Modak 20ef5784cf Add RGA compiler support for HLSL (#7941) 2025-07-27 14:40:41 +02:00
jmuddnv 47a833e65b Changes for NVIDIA HPC SDK 25.7 (#7942) 2025-07-27 13:54:22 +02:00
Jacob Panov 534e1428fa Update AVR instruction documentation for 2024 manual (#7947) 2025-07-27 13:53:03 +02:00
Bernhard Manfred Gruber 02e2984b6c Add nvcc 12.9.1 and fix nvcc 12.9.0 (#7944) 2025-07-27 13:47:33 +02:00
Patrick Quist 0261d0a579 Update c++.amazon.properties 2025-07-24 21:52:05 +02:00
Patrick Quist 615b4a003a Feature/shortlink migration script (#7912) 2025-07-23 01:44:36 +02:00
Spencer Fricke 2644193ed6 Update SPIR-V and Slang verisons (#7938) 2025-07-23 01:43:49 +02:00
partouf 2bb4c42148 . 2025-07-21 23:40:30 +02:00