Commit Graph
3141 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
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
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
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
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
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
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
Joshua Batty 58f8d74a51 add sway compiler 0.68.9 (#7898)
Adds the sway compiler version `0.68.9`. 

Corresponding PR in the infra repo:
https://github.com/compiler-explorer/infra/pull/1701
2025-07-21 11:34:04 -05:00
Srinivas Yadav bb80b24813 Add C++ library HPX v1.11.0 (#7899) 2025-07-21 17:29:38 +02:00
Cliff Burdick cb0834a679 Add CCCL 3.0.0 (#7911)
Add support for CCCL 3.0.0 CUDA library
2025-07-21 17:17:47 +02:00
Mingxin Wang ccc978b5f8 Add C++ library proxy 3.3.0 and 3.4.0 (#7905) 2025-07-21 17:16:32 +02:00
Aly Cerruti 29230c5a8f Update Scala compilers (#7918) 2025-07-21 17:14:19 +02:00
Quinton Miller de435a93ac Add Crystal 1.17.0 (#7917) 2025-07-21 17:13:41 +02:00
Patrick Quist 2f014cae9f Add top 100 Rust crates to Compiler Explorer (#7890)
This PR adds the **top 100 Rust crates** to Compiler Explorer.

This bulk addition includes the most popular crates from crates.io to
provide better library support for Rust users.

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

---
_PR created with
[ce-lib-wizard](https://github.com/compiler-explorer/ce-library-wizard)_
2025-07-21 16:41:12 +02:00
Patrick Quist 0c9d21fb1e Add C++ library glaze v5.5.2 (#7893)
This PR adds the C++ library **glaze** version 5.5.2 to Compiler
Explorer.

- GitHub URL: https://github.com/stephenberry/glaze
- Library Type: header-only

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

---
_PR created with
[ce-lib-wizard](https://github.com/compiler-explorer/ce-library-wizard)_
2025-07-21 16:40:19 +02:00
Patrick Quist 06ecab7355 Add Fortran library roots_fortran v1.5.0 (#7891)
This PR adds the Fortran library **roots_fortran** version 1.5.0 to
Compiler Explorer.

- GitHub URL: https://github.com/jacobwilliams/roots-fortran
- Package Manager: FPM (Fortran Package Manager)

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

---
_PR created with
[ce-lib-wizard](https://github.com/compiler-explorer/ce-library-wizard)_
2025-07-21 16:40:10 +02:00