Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
277 changes: 180 additions & 97 deletions .github/workflows/conda-build.yml

Large diffs are not rendered by default.

39 changes: 30 additions & 9 deletions .scripts/build_steps.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 18 additions & 7 deletions .scripts/run_docker_build.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion build-locally.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions conda-forge.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
azure:
free_disk_space: true
settings_linux:
swapfile_size: 10GiB
conda_build:
pkg_format: '2'
conda_build_tool: rattler-build
Expand All @@ -10,4 +6,4 @@ github:
branch_name: main
tooling_branch_name: main
provider:
linux_aarch64: github_actions
linux_aarch64: default
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 9e1d8f203bd169ff9d533939a7349c985685b84a Mon Sep 17 00:00:00 2001
From ebf7330c3bed27a50e1c18e23fb2d46dc384a79c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
Date: Wed, 20 Nov 2024 17:17:18 +0100
Subject: [PATCH 1/4] Remove -Werror that cause false-positive build failures
Subject: [PATCH 1/5] Remove -Werror that cause false-positive build failures

---
CMakeLists.txt | 2 +-
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 65d93691bfca8a4ae6e16fcb87092ac66daab352 Mon Sep 17 00:00:00 2001
From 407f23a9e09d33269728cb99362b29ae17124353 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
Date: Thu, 21 Nov 2024 15:02:04 +0100
Subject: [PATCH 2/4] Do not link directly to LLVM static libraries
Subject: [PATCH 2/5] Do not link directly to LLVM static libraries

Remove direct linking to LLVM static libraries, use the shared library
enforced by MLIR instead. It is incorrect to simultaneously link to
Expand All @@ -17,12 +17,12 @@ LLVM library, remove direct linking to static libraries.
2 files changed, 33 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9704b9e77..b054c1c84 100644
index 9206d23e1d..a520bceb95 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -234,37 +234,10 @@ if(TRITON_BUILD_PYTHON_MODULE)
MLIRGPUToROCDLTransforms
@@ -255,37 +255,10 @@ if(TRITON_BUILD_PYTHON_MODULE)
MLIRUBToLLVM
MLIRPluginsLib

- # LLVM
- LLVMPasses
Expand Down Expand Up @@ -59,11 +59,11 @@ index 9704b9e77..b054c1c84 100644
# Define triton library
string(JOIN "," TRITON_BACKENDS_TUPLE ${TRITON_CODEGEN_BACKENDS})
diff --git a/bin/CMakeLists.txt b/bin/CMakeLists.txt
index cc0b4fa15..ea48f4ae8 100644
index 885cffb78e..c5cd50e4a7 100644
--- a/bin/CMakeLists.txt
+++ b/bin/CMakeLists.txt
@@ -73,12 +73,6 @@ add_llvm_executable(triton-llvm-opt
)
@@ -67,12 +67,6 @@ add_dependencies(triton-llvm-opt intrinsics_gen)
target_compile_options(triton-llvm-opt PRIVATE ${TRITON_DISABLE_EH_RTTI_FLAGS})
target_link_libraries(triton-llvm-opt PRIVATE
TritonLLVMIR
-
Expand All @@ -75,6 +75,3 @@ index cc0b4fa15..ea48f4ae8 100644
)
export_executable_symbols_for_plugins(triton-llvm-opt)

--
2.53.0

Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
From 4ee1c4a041c6b956ae56532b85b8405603ba940a Mon Sep 17 00:00:00 2001
From 81dd85c98215adcf50150371a1a9b2d08bda9aa4 Mon Sep 17 00:00:00 2001
From: Santi Villalba <sdvillal@gmail.com>
Date: Fri, 15 May 2026 16:13:41 +0200
Subject: [PATCH] Use system PATH to find tools (in CONDA_PREFIX)
Subject: [PATCH 3/5] Use system PATH to find tools (in CONDA_PREFIX)

---
python/triton/knobs.py | 19 +++++++++++++++----
1 file changed, 15 insertions(+), 4 deletions(-)

diff --git a/python/triton/knobs.py b/python/triton/knobs.py
index b55bd3de32..d49d523e20 100644
index c8bf2d421a..aedaf9597b 100644
--- a/python/triton/knobs.py
+++ b/python/triton/knobs.py
@@ -4,6 +4,7 @@
@@ -4,6 +4,7 @@ import functools
import importlib
import os
import re
+import shutil
import subprocess
import sysconfig
import pathlib
@@ -205,12 +206,22 @@ def get(self) -> NvidiaTool:
@@ -205,12 +206,22 @@ class env_nvidia_tool(env_base[str, NvidiaTool]):
def transform(self, path: str) -> NvidiaTool:
# We still add default as fallback in case the pointed binary isn't
# accessible.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
From 835043cb0eb030c3460f3e89f7d3b82b12204ade Mon Sep 17 00:00:00 2001
From e0ba74bd6afcaa137ece08b72471fe26282fdba6 Mon Sep 17 00:00:00 2001
From: Mark Harfouche <mark.harfouche@gmail.com>
Date: Sat, 11 Jan 2025 22:33:48 -0500
Subject: [PATCH 4/4] Add conda-forge include dirs to list of include dirs
Subject: [PATCH 4/5] Add conda-forge include dirs to list of include dirs
during compilation

---
python/triton/runtime/build.py | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)

diff --git a/python/triton/runtime/build.py b/python/triton/runtime/build.py
index 786f51e54..e79244581 100644
index 786f51e54d..e792445811 100644
--- a/python/triton/runtime/build.py
+++ b/python/triton/runtime/build.py
@@ -5,8 +5,10 @@ import hashlib
Expand Down Expand Up @@ -50,6 +50,3 @@ index 786f51e54..e79244581 100644
# for -Wno-psabi, see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111047
cc_cmd = [cc, src, "-O3", "-shared", "-fPIC", "-Wno-psabi", "-o", so]
cc_cmd += [_library_flag(lib) for lib in libraries]
--
2.53.0

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
From 21583528d84ceab1e94491af7b825f6be0011c17 Mon Sep 17 00:00:00 2001
From 32bf78bf84a2b090c96590f6f149d03c356f3703 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@quansight.com>
Date: Fri, 22 May 2026 14:24:18 +0200
Subject: [PATCH 5/5] Make `test_aot` importable without a GPU backend
Expand Down
11 changes: 6 additions & 5 deletions recipe/recipe.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
context:
version: "3.7.0"
version: "3.7.1"
# cmake/llvm-hash.txt
llvm_commit: ac5dc54d509169d387fcfd495d71853d81c46484
llvm_commit: 1f126a6dea50d185c0781743a667390037ae88bd
build_number: 0

package:
name: triton
version: ${{ version }}

source:
- url: https://github.com/triton-lang/triton/releases/download/v${{ version }}/triton-${{ version }}.tar.gz
sha256: 980397efada8ed2de303a95ad918e7454df13d7df5941840646e8004d4bd0462
# - url: https://github.com/triton-lang/triton/releases/download/v${{ version }}/triton-${{ version }}.tar.gz
- url: https://github.com/triton-lang/triton/archive/f797708c0626e5f9840ca5b0a98790e2c7cb09ad.tar.gz
sha256: 35acf558b194204a8a0d7104f989b37879627ea7a0017f1df36d309a39a17e4f
patches:
- patches/0001-Remove-Werror-that-cause-false-positive-build-failur.patch
# uncomment if we decide to link dynamically again
Expand All @@ -20,7 +21,7 @@ source:
- patches/0004-Add-conda-forge-include-dirs-to-list-of-include-dirs.patch
- patches/0005-Make-test_aot-importable-without-a-GPU-backend.patch
- url: https://github.com/llvm/llvm-project/archive/${{ llvm_commit }}.tar.gz
sha256: 76fbbc3c1193db34ff975472c9cfcaee2264e0c6081b71729e229cd8572ab5b8
sha256: b6aa9fbc954895bbd69374529593bbcdc4342b0812d8884698bbfd3d92d3426d
target_directory: llvm-project

build:
Expand Down
Loading