Skip to content

[BUILD] update for windows#2757

Closed
wkpark wants to merge 3 commits into
triton-lang:mainfrom
wkpark:fix-llvm-build
Closed

[BUILD] update for windows#2757
wkpark wants to merge 3 commits into
triton-lang:mainfrom
wkpark:fix-llvm-build

Conversation

@wkpark
Copy link
Copy Markdown
Contributor

@wkpark wkpark commented Dec 5, 2023


latest windows llvm build is available at https://github.com/wkpark/triton/actions/runs/7517218687

@wkpark wkpark requested a review from ptillet as a code owner December 5, 2023 08:41
@wkpark
Copy link
Copy Markdown
Contributor Author

wkpark commented Dec 9, 2023

  • only "mlir" build like other platforms
  • LLVM_ENABLE_DIA_SDK=OFF to fix msvc issue. "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". without this fix, it make some trouble with conda clang package or lower version msvc.
$  lsdiff llvm.diff
LLVM/include/llvm/Config/llvm-config.h
LLVM/lib/cmake/llvm/LLVMConfig.cmake
LLVM/lib/cmake/llvm/LLVMExports.cmake
--- LLVM.old/include/llvm/Config/llvm-config.h  2023-11-30 16:26:37.000000000 +0900
+++ LLVM/include/llvm/Config/llvm-config.h  2023-12-09 03:18:38.000000000 +0900
@@ -193,7 +193,7 @@
 #define LLVM_UNREACHABLE_OPTIMIZE 1

 /* Define to 1 if you have the DIA SDK installed, and to 0 if you don't. */
-#define LLVM_ENABLE_DIA_SDK 1
+#define LLVM_ENABLE_DIA_SDK 0

 /* Define if plugins enabled */
 /* #undef LLVM_ENABLE_PLUGINS */
--- LLVM.old/lib/cmake/llvm/LLVMConfig.cmake    2023-11-30 16:26:56.000000000 +0900
+++ LLVM/lib/cmake/llvm/LLVMConfig.cmake    2023-12-09 03:18:54.000000000 +0900
@@ -204,7 +204,7 @@

 set(LLVM_WITH_Z3 )

-set(LLVM_ENABLE_DIA_SDK ON)
+set(LLVM_ENABLE_DIA_SDK OFF)

 set(LLVM_NATIVE_ARCH X86)

--- LLVM.old/lib/cmake/llvm/LLVMExports.cmake   2023-11-30 16:27:15.000000000 +0900
+++ LLVM/lib/cmake/llvm/LLVMExports.cmake   2023-12-09 03:19:10.000000000 +0900
@@ -471,7 +471,7 @@
 add_library(LLVMDebugInfoPDB STATIC IMPORTED)

 set_target_properties(LLVMDebugInfoPDB PROPERTIES
-  INTERFACE_LINK_LIBRARIES "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/DIA SDK/lib/amd64/diaguids.lib;LLVMBinaryFormat;LLVMObject;LLVMSupport;LLVMDebugInfoCodeView;LLVMDebugInfoMSF"
+  INTERFACE_LINK_LIBRARIES "LLVMBinaryFormat;LLVMObject;LLVMSupport;LLVMDebugInfoCodeView;LLVMDebugInfoMSF"
 )

 # Create imported target LLVMSymbolize

 * fix deprecation warning
 * use bash shell to fix error
 * build "mlir" only
 * disable LLVM_ENABLE_DIA_SDK
@wkpark
Copy link
Copy Markdown
Contributor Author

wkpark commented Jan 14, 2024

rebased, enable windows llvm build again.

@wkpark
Copy link
Copy Markdown
Contributor Author

wkpark commented Feb 10, 2024

ping @gflegar
this PR is ready for review

biship referenced this pull request in oobabooga/textgen Feb 20, 2024
@ptillet ptillet closed this Mar 9, 2024
ThomasRaoux pushed a commit that referenced this pull request Oct 18, 2024
from #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!
chsigg pushed a commit to openxla/triton that referenced this pull request Nov 4, 2024
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!
chsigg pushed a commit that referenced this pull request Nov 5, 2024
from #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!
chsigg pushed a commit that referenced this pull request Nov 7, 2024
from #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!
vwbaker pushed a commit to openxla/triton that referenced this pull request Nov 11, 2024
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!
gflegar pushed a commit to openxla/triton that referenced this pull request Dec 4, 2024
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!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants