Skip to content

Commit bd35f62

Browse files
authored
Merge branch 'main' into amyachev/device
2 parents e488dea + daa8c28 commit bd35f62

File tree

128 files changed

+2899
-2232
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

128 files changed

+2899
-2232
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: 🚀 Feature request
2+
description: Submit a request for a new Intel XPU Backend for Triton feature
3+
4+
body:
5+
- type: textarea
6+
attributes:
7+
label: 🚀 Feature description
8+
description: >
9+
A clear and concise description of the feature request.
10+
validations:
11+
required: true
12+
- type: markdown
13+
attributes:
14+
value: >
15+
Thanks for contributing 🎉

.github/workflows/build-test-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
run: |
4747
cd ${{ env.NEW_WORKSPACE }}
4848
cd python
49-
pip install -U wheel pybind11 certifi cython cmake
49+
pip install -U wheel pybind11 certifi cython cmake setuptools>=65.6.1
5050
python -m certifi
5151
pip install -v --no-build-isolation '.[build]'
5252

.github/workflows/llvm-build.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,9 @@ jobs:
3030
- {runner: 'Ubuntu 20.04 ARM64', runs_on: 'ubuntu-20.04', target-os: 'ubuntu', arch: 'arm64'}
3131
- {runner: 'CentOS 7', runs_on: ['self-hosted', 'CPU'], target-os: 'centos', arch: 'x64'}
3232
- {runner: 'AlmaLinux 8', runs_on: ['self-hosted', 'CPU'], target-os: 'almalinux', arch: 'x64'}
33-
- {runner: 'MacOS X64', runs_on: 'macos-12', target-os: 'macos', arch: 'x64'}
34-
- {runner: 'MacOS ARM64', runs_on: 'macos-12', target-os: 'macos', arch: 'arm64'}
35-
# TODO(#2805): add back once the workflow works and runs in comparable time to the other ones
36-
# - {runner: 'Windows Latest', runs_on: 'windows-latest', target-os: 'windows', arch: 'x64'}
33+
- {runner: 'MacOS X64', runs_on: 'macos-13', target-os: 'macos', arch: 'x64'}
34+
- {runner: 'MacOS ARM64', runs_on: 'macos-13', target-os: 'macos', arch: 'arm64'}
35+
- {runner: 'Windows Latest', runs_on: 'windows-latest', target-os: 'windows', arch: 'x64'}
3736

3837
steps:
3938

@@ -127,7 +126,8 @@ jobs:
127126
-DLLVM_BUILD_TOOLS=ON
128127
-DLLVM_ENABLE_ASSERTIONS=ON
129128
-DMLIR_ENABLE_BINDINGS_PYTHON=ON
130-
-DLLVM_ENABLE_PROJECTS="clang;mlir"
129+
-DLLVM_ENABLE_PROJECTS="mlir;llvm"
130+
-DLLVM_ENABLE_DIA_SDK=OFF
131131
-DLLVM_INSTALL_UTILS=ON
132132
-DLLVM_TARGETS_TO_BUILD="host;NVPTX;AMDGPU"
133133
-DLLVM_ENABLE_TERMINFO=OFF
@@ -300,6 +300,7 @@ jobs:
300300

301301
- name: Upload LLVM Artifacts to Azure
302302
if: ${{ (github.repository == 'triton-lang/triton') }}
303+
shell: bash -el {0}
303304
run: |
304305
az storage blob upload --account-name oaitriton --auth-mode login --container-name public --file "${{ env.llvm_install_dir }}.tar.gz" --name "llvm-builds/${{ env.llvm_install_dir }}.tar.gz" --overwrite
305306

.github/workflows/triton-benchmarks.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,6 @@ jobs:
250250
run: |
251251
cd benchmarks/triton_kernels_benchmark
252252
TRITON_INTEL_ADVANCED_PATH=1 \
253-
TRITON_INTEL_ENABLE_ADDRESS_PAYLOAD_OPT=1 \
254253
IGC_VISAOptions=" -enableBCR" \
255254
python flash_attention_fwd_benchmark.py --reports $REPORTS
256255

.pre-commit-config.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,6 @@ repos:
6161
files: ^.github/workflows/integration-tests.yml.*
6262
pass_filenames: false
6363

64-
- repo: https://github.com/PyCQA/bandit
65-
rev: '1.7.9'
66-
hooks:
67-
- id: bandit
68-
files: '^(benchmarks|scripts|third_party/intel)/.*\.py$'
69-
args: ["-c", "bandit.yaml", "-s", "B404,B603,B607"]
70-
stages: [pre-commit, pre-push, manual]
71-
7264
- repo: https://github.com/pycqa/pylint
7365
rev: v3.2.6
7466
hooks:

CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ else()
7070
set(CMAKE_EXE_LINKER_FLAGS_TRITONRELBUILDWITHASSERTS "/debug:fastlink /INCREMENTAL")
7171
set(CMAKE_MODULE_LINKER_FLAGS_TRITONRELBUILDWITHASSERTS "/debug:fastlink /INCREMENTAL")
7272
set(CMAKE_SHARED_LINKER_FLAGS_TRITONRELBUILDWITHASSERTS "/debug:fastlink /INCREMENTAL")
73-
set(CMAKE_STATIC_LINKER_FLAGS_TRITONRELBUILDWITHASSERTS "/debug:fastlink /INCREMENTAL")
7473
endif()
7574

7675
# Default build type
@@ -153,7 +152,7 @@ endfunction()
153152
if(NOT MSVC)
154153
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -Wno-covered-switch-default -fvisibility=hidden")
155154
else()
156-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /WX- /wd4244 /wd4624 /wd4715 /wd4530")
155+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4244 /wd4624 /wd4715 /wd4530")
157156
endif()
158157

159158
include_directories(".")

benchmarks/triton_kernels_benchmark/benchmark_driver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def format_of(ty):
133133
"int8_t": "b",
134134
"int16_t": "h",
135135
"int32_t": "i",
136-
"int64_t": "l",
136+
"int64_t": "L",
137137
"uint8_t": "B",
138138
"uint16_t": "H",
139139
"uint32_t": "I",

bin/CMakeLists.txt

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
22
get_property(conversion_libs GLOBAL PROPERTY MLIR_CONVERSION_LIBS)
3-
get_property(translation_libs GLOBAL PROPERTY MLIR_TRANSLATION_LIBS)
43
get_property(triton_libs GLOBAL PROPERTY TRITON_LIBS)
54

65
add_llvm_executable(triton-opt triton-opt.cpp PARTIAL_SOURCES_INTENDED)
@@ -104,25 +103,3 @@ target_link_libraries(triton-tensor-layout PRIVATE
104103
${dialect_libs}
105104
TritonTestAnalysis
106105
)
107-
108-
add_llvm_executable(triton-translate
109-
triton-translate.cpp
110-
111-
PARTIAL_SOURCES_INTENDED
112-
DEPENDS
113-
intrinsics_gen
114-
SUPPORT_PLUGINS
115-
)
116-
llvm_update_compile_flags(triton-translate)
117-
target_link_libraries(triton-translate
118-
PRIVATE
119-
${dialect_libs}
120-
${translation_libs}
121-
MLIRIR
122-
MLIRParser
123-
MLIRPass
124-
MLIRTranslateLib
125-
MLIRSupport
126-
TritonGENToLLVMIRTranslation
127-
)
128-
mlir_check_link_libraries(triton-translate)

bin/triton-llvm-opt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/// Trimmed down clone of llvm opt to be able to test triton custom llvm ir
22
/// passes.
33
#include "lib/Target/LLVMIR/LLVMPasses.h"
4-
#include "third_party/intel/lib/LLVMIR/LLVMPasses.h"
4+
#include "third_party/intel/lib/Target/LLVMIR/LLVMPasses.h"
55
#include "llvm/CodeGen/CommandFlags.h"
66
#include "llvm/IR/Constants.h"
77
#include "llvm/IR/DataLayout.h"

cmake/AddTritonUnitTest.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ function(add_triton_ut)
2828
gmock
2929
${__LIBS})
3030

31-
target_compile_options(${__NAME} PRIVATE -fno-rtti)
31+
if(NOT MSVC)
32+
target_compile_options(${__NAME} PRIVATE -fno-rtti)
33+
endif()
3234

3335
target_compile_definitions(${__NAME} PRIVATE ${__DEFS})
3436

0 commit comments

Comments
 (0)