Skip to content

Commit

Permalink
[BUILD] enable win32 llvm build (triton-lang#4941)
Browse files Browse the repository at this point in the history
from triton-lang#2757

 * fix deprecation warning
 * use bash shell to fix `az storage ...` console  error.
* `-DLLVM_ENABLE_DIA_SDK=OFF` added to fix `DIA_SDK` dependency -
`"ninja: error: 'C:/Program Files/Microsoft Visual
Studio/2022/Enterprise/DIA SDK/lib/amd64/diaguids.lib', needed by
'D:/src/triton/python/build/lib.win-amd64-cpython-310/triton/_C/libtriton.pyd',
missing and no known rule to make it"`.

the latest windows llvm build is available at
https://github.com/wkpark/triton/releases/tag/llvm-82f5acfb-windows

It would be nice to have default llvm;mlir compiler on the official
trion build system for someone who trying to develop solve some windows
related issue even if windows is not officially supported.

p.s.: and I'd like to thank all triton developers for their hard work!
  • Loading branch information
wkpark authored and vwbaker committed Nov 11, 2024
1 parent a69ebfa commit c0bf270
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/llvm-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ jobs:
- {runner: 'AlmaLinux 8', runs_on: ['self-hosted', 'CPU'], target-os: 'almalinux', arch: 'x64'}
- {runner: 'MacOS X64', runs_on: 'macos-12', target-os: 'macos', arch: 'x64'}
- {runner: 'MacOS ARM64', runs_on: 'macos-12', target-os: 'macos', arch: 'arm64'}
# TODO(#2805): add back once the workflow works and runs in comparable time to the other ones
# - {runner: 'Windows Latest', runs_on: 'windows-latest', target-os: 'windows', arch: 'x64'}
- {runner: 'Windows Latest', runs_on: 'windows-latest', target-os: 'windows', arch: 'x64'}

steps:

Expand Down Expand Up @@ -126,7 +125,8 @@ jobs:
-DLLVM_BUILD_TOOLS=ON
-DLLVM_ENABLE_ASSERTIONS=ON
-DMLIR_ENABLE_BINDINGS_PYTHON=ON
-DLLVM_ENABLE_PROJECTS="clang;mlir"
-DLLVM_ENABLE_PROJECTS="mlir;llvm"
-DLLVM_ENABLE_DIA_SDK=OFF
-DLLVM_INSTALL_UTILS=ON
-DLLVM_TARGETS_TO_BUILD="host;NVPTX;AMDGPU"
-DLLVM_ENABLE_TERMINFO=OFF
Expand Down Expand Up @@ -273,6 +273,7 @@ jobs:

- name: Upload LLVM Artifacts to Azure
if: ${{ (github.repository == 'triton-lang/triton') }}
shell: bash -el {0}
run: |
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
Expand Down

0 comments on commit c0bf270

Please sign in to comment.