-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows build fix #2738
Windows build fix #2738
Conversation
I think |
85916b4
to
edbfb14
Compare
I don't think it's gotten too complicated, but I've tried to clean up |
rebased, partially squashed |
becd537
to
6b3c9c6
Compare
now runtime tests are passed with minor fixes
(venv) D:\src\triton\python\test\unit>python -m pytest runtime
======================================================= test session starts =======================================================
platform win32 -- Python 3.10.11, pytest-7.4.2, pluggy-1.3.0
rootdir: D:\src\triton\python
plugins: anyio-3.7.1, hydra-core-1.3.2, xdist-3.5.0
collected 21 items
runtime\test_autotuner.py .... [ 19%]
runtime\test_cache.py ............. [ 80%]
runtime\test_driver.py . [ 85%]
runtime\test_launch.py . [ 90%]
runtime\test_subproc.py .. [100%]
======================================================= 21 passed in 25.69s ======================================================= If you prefer to clean up commits to reduce the number, I'll do a partial squash, so let me know. |
5290766
to
7147517
Compare
thank you so much |
a direct pip link is not available yet but downloadable artifacts are available (working on next workflows PR) |
rebased |
thank you so much. i am waiting direct pip link hopefully |
rebased, conflict resolved. |
amazing still waiting direct pip install |
awesome more fix. any pip install link so far? |
just rebased, resolve conflicts |
If anyone interested in this PR If you have a little more time on your hands, you might want to try running a |
Is there a Windows Python 311 to test? |
it is only python 3.9 i think is that accurate? |
awesome ty |
rebased, conflict resolved. https://github.com/wkpark/triton/actions/runs/7855606361 how to test?
see also #2738 (comment) |
* based on triton-lang#2465 * manually applied, rebased, fix lint errors * use set_target_properties(), cleanup for windows * remove '/A' platform option to use windows ninja * remove unknown option '/m' * use sysconfig.get_config_var() to get the path of python*.lib * clang fix for windows * remove '-fPIC' for windows clang * fix download_and_copy() to support windows * add "exe" extension for windows * use "pyd" extension for windows to make importlib work * rework for latest triton (2024/01/14) Original-author-by: Andrei Gheorghe <[email protected]> Signed-off-by: Won-Kyu Park <[email protected]>
* based on Windows support PR triton-lang#2456 by @andreigh * WIN32 fix using LoadLibrary
clang error "(aka 'long long') must match previous return type 'long' when lambda expression has unspecified explicit return typ"
* win32 fix _path_to_binary() * add library_dir, include_dir for win32
@wkpark any new link of downloading newest push pre compiled wheel? |
Sorry, but I will unfortunately close this. I don't think we have the bandwidth to commit to supporting windows upstream. Maybe this can be done in a fork for now? |
Yeah no one uses Windows. |
Windows is most commonly used OS what are you dreaming? |
Haha, I think it was meant to be sarcastic :) What is mind-boggling to me is that openai does not support the OS platform of their largest investor that has given them $13 billion so far. I really wonder ... |
100% I complained about this too |
no problem, I can understand. that ways opensource goes. but I'm not consider any fork. instead I will try to extract some part of mergeable hunks, for example, clang for windows work perfectly. we don't have to support MSVC, instead we can make clang compatible code for both windows and linux in mind. etc. |
@wkpark how to use your "llvm-4017f04e-windows-x64" release? compile it? |
please return back publishing @wkpark we need you : THUDM/CogVLM2#169 |
Just an update that I've built wheels for Triton v3.0.0 on Windows, and they work well for downstream applications like ComfyUI. Feel free to discuss there: |
Amazing work by @woct0rdho thank you so much |
thanks for sharing your information! |
based on #2465
set_target_properties()
, cleanup for windows'/A'
platform option to use windows ninja, remove unknown option'/m'
sysconfig.get_config_var()
to get the path ofpython*.lib
os.name
to check dll extension'-fPIC'
for windows clangsupport both clang and msvc
See also (with workflows fixes)
clang build cp311: https://github.com/wkpark/triton/actions/runs/7065823185msvc build cp311: https://github.com/wkpark/triton/actions/runs/7070390905ubuntu clang, windows msvc builds - cp310, cp311:
https://github.com/wkpark/triton/actions/runs/7077852509https://github.com/wkpark/triton/actions/runs/7081762873https://github.com/wkpark/triton/actions/runs/7245060800 (2023/12/18)https://github.com/wkpark/triton/actions/runs/7246431088 windows clang builds (2023/12/18)https://github.com/wkpark/triton/actions/runs/7623880319 (2024/01/23)
(login github, scroll down the page, then you can download compiled windows artifacts)