triton-windows 3.3.0a0.post18__cp310-cp310-win_amd64.whl → 3.3.0.post19__cp310-cp310-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of triton-windows might be problematic. Click here for more details.

triton/_C/libtriton.pyd CHANGED
Binary file
@@ -1,3 +1,4 @@
1
+ #define _CRT_SECURE_NO_WARNINGS
1
2
  #include "cuda.h"
2
3
 
3
4
  #ifndef _WIN32
@@ -208,6 +208,7 @@ def make_launcher(constants, signature):
208
208
  params = [f"&arg{i}" for i, ty in signature.items() if ty != "constexpr"]
209
209
  params.append("&global_scratch")
210
210
  src = f"""
211
+ #define _CRT_SECURE_NO_WARNINGS
211
212
  #include \"cuda.h\"
212
213
  #include <stdbool.h>
213
214
  #define PY_SSIZE_T_CLEAN
triton/runtime/build.py CHANGED
@@ -35,6 +35,11 @@ def is_msvc(cc):
35
35
  return cc == "cl" or cc == "cl.exe"
36
36
 
37
37
 
38
+ def is_clang(cc):
39
+ cc = os.path.basename(cc).lower()
40
+ return cc == "clang" or cc == "clang.exe"
41
+
42
+
38
43
  def _cc_cmd(cc, src, out, include_dirs, library_dirs, libraries):
39
44
  if is_msvc(cc):
40
45
  out_base = os.path.splitext(out)[0]
@@ -49,7 +54,10 @@ def _cc_cmd(cc, src, out, include_dirs, library_dirs, libraries):
49
54
  cc_cmd += [f"/PDB:{out_base + '.pdb'}"]
50
55
  else:
51
56
  # for -Wno-psabi, see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111047
52
- cc_cmd = [cc, src, "-O3", "-shared", "-fPIC", "-Wno-psabi", "-o", out]
57
+ cc_cmd = [cc, src, "-O3", "-shared", "-Wno-psabi", "-o", out]
58
+ if not (os.name == "nt" and is_clang(cc)):
59
+ # Clang does not support -fPIC on Windows
60
+ cc_cmd += ["-fPIC"]
53
61
  cc_cmd += [f'-l{lib}' for lib in libraries]
54
62
  cc_cmd += [f"-L{dir}" for dir in library_dirs]
55
63
  cc_cmd += [f"-I{dir}" for dir in include_dirs if dir is not None]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: triton-windows
3
- Version: 3.3.0a0.post18
3
+ Version: 3.3.0.post19
4
4
  Summary: A language and compiler for custom Deep Learning operations
5
5
  Home-page: https://github.com/woct0rdho/triton-windows
6
6
  Author: Philippe Tillet, Dian Wu
@@ -4,7 +4,7 @@ triton/_utils.py,sha256=5RiCLwW14w0Q3mdZ-9yz-VO5KiSexNj9xeDt4gaNsvE,1014
4
4
  triton/errors.py,sha256=8WfnuRKLG578mgY6cBA3ECruVMf9ULEKFNgRcJ6IhWM,89
5
5
  triton/testing.py,sha256=ivFf1Fq9frmfVahaVUp0bgJxmvVZNACZfj3Sai6zfAs,20048
6
6
  triton/windows_utils.py,sha256=YUl-1QbLINQRaAAMNYPjLiTFZlVsCNi9mTFck5aemwk,12778
7
- triton/_C/libtriton.pyd,sha256=JmqPzfkEglESdthCvyBaihKSPmXcS4UHh0kPuuPcQAI,87272960
7
+ triton/_C/libtriton.pyd,sha256=Cb3yDVnYOY2lCtZIIcJzHwNUQCkt7WHuq0nognPj2FU,87272960
8
8
  triton/backends/__init__.py,sha256=opAo_vgEMt3tLO_bYFrYGksnIu0qohbmyuu_s3-rNAs,1595
9
9
  triton/backends/compiler.py,sha256=ymaG0kpveAuESbQ9QZ0RyXjr0Aq4el_G5XGYogJ2gNA,3588
10
10
  triton/backends/driver.py,sha256=AN60upJlPgia0JwvZ8vIVgLITNPuI0fdz8zMIIHPpF4,1450
@@ -113,8 +113,8 @@ triton/backends/amd/lib/ockl.bc,sha256=wQKCzkKukIHbu0lyjKUYlhndc7S27xto6L54J0Bn-
113
113
  triton/backends/amd/lib/ocml.bc,sha256=UPNTXW0gCXUNB-c6orSYwb-mz9_mjUc7zny_vfFza44,205964
114
114
  triton/backends/nvidia/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
115
115
  triton/backends/nvidia/compiler.py,sha256=4BnLUapsoh8lsQPYlm-_ZCyKvU3DgJY3NgDMo8leV9c,19996
116
- triton/backends/nvidia/driver.c,sha256=RWzdn9_RWaaVxXKtdrvxoRg4yR7WSH7ELRyjGDYKwBM,18880
117
- triton/backends/nvidia/driver.py,sha256=cbNUIsppHawGsqf3ctuqc0nRM_kbsMCsH1osWv0fKro,21005
116
+ triton/backends/nvidia/driver.c,sha256=HqtiJDPRxVav9pHl_swBja28RasjHZ7oFOpWKMT627c,18912
117
+ triton/backends/nvidia/driver.py,sha256=kMMVl4SMbJc6obI2Brxoj7RNJt6YBGKYSB56dPeUY6w,21037
118
118
  triton/backends/nvidia/bin/ptxas.exe,sha256=iCva9hIYg-Q2NybchwaQJFkwDzNiliFOTDdZrHPLb6A,24732160
119
119
  triton/backends/nvidia/include/cuda.h,sha256=Fn44OjeRImxegJ39apYUspseEfTWNGwpqSGUOnHj5WY,1183268
120
120
  triton/backends/nvidia/lib/libdevice.10.bc,sha256=XC-uN8huaMOjhgWpX1EtfRLV89uYYxC-R_VzBKpype4,473728
@@ -142,7 +142,7 @@ triton/language/extra/hip/libdevice.py,sha256=EVraUfeXzQmN3F5Lleg2mohVcbFWOWlLaA
142
142
  triton/runtime/__init__.py,sha256=mKL5cqIBDUw2WO80NRCh4s1G8KYaqgM59TTAbTkPPjQ,621
143
143
  triton/runtime/_allocation.py,sha256=zaW4B7I7c-2rkVuN7IZaUB6IQSI1t4FvnTPZH-r7DTk,798
144
144
  triton/runtime/autotuner.py,sha256=0ku0wjPo8xOvom6P4uEVZHsgPkxAFOqP1LjUVue0HLM,17854
145
- triton/runtime/build.py,sha256=1kRGMsDDg7NHdxKEPmNJ3SQaa_UnBckJF5KfFOwoBbI,3593
145
+ triton/runtime/build.py,sha256=6akPf7jgSRDWqcDGvJXxxiO0MzH6503YrM7xmr24l-Y,3825
146
146
  triton/runtime/cache.py,sha256=uoU1UH3HPxkxT0r-69HIZgLBls3T-TDxJedRULX9lbM,10583
147
147
  triton/runtime/driver.py,sha256=VZ-883Xri71R72lHB6usIpLo3gGLbZJkAlLP3ewWSpc,1509
148
148
  triton/runtime/errors.py,sha256=CwfJXciwel_-K3BfQfKUpLPDWrSyTnGsfJkqJojrdfQ,1052
@@ -247,7 +247,7 @@ triton/tools/link.py,sha256=u7qtfZRLriZkAMEGNvj8YF-k1cthmLL7BwHYqBgT63E,11871
247
247
  triton/tools/mxfp.py,sha256=YQdpBrGkOVNOtnLeRjMCeVFHWkSwUubGeWsItIjO8TU,11737
248
248
  triton/tools/extra/cuda/compile.c,sha256=TdIENsqk6wrvv1C4Mk-sq9keXe3SJuMQcf0UpxmjNZk,2153
249
249
  triton/tools/extra/cuda/compile.h,sha256=n9QKIFZTL4RSsiXtAxBP9XGSnxjyaevQQ9bBpwDsvAg,332
250
- triton_windows-3.3.0a0.post18.dist-info/METADATA,sha256=2h8i8geeJlfffh1CwstG76Xf4jcC2yuGasvloSjd43I,1629
251
- triton_windows-3.3.0a0.post18.dist-info/WHEEL,sha256=xtqxYTqke_XhXNhgwydvlroVayIzBVjJDMBpIgge99s,101
252
- triton_windows-3.3.0a0.post18.dist-info/top_level.txt,sha256=KhMzHYsArnZ3IkjAQ-xLnx1n_FjvEpJNelg2xPiDl-U,254
253
- triton_windows-3.3.0a0.post18.dist-info/RECORD,,
250
+ triton_windows-3.3.0.post19.dist-info/METADATA,sha256=n16mof1EMhLJdnP2tX85LoRgmCIpznA9Bx1IJBS-O2w,1627
251
+ triton_windows-3.3.0.post19.dist-info/WHEEL,sha256=2SI2v6oeF8cXA_fO3HjdyTywO2Wxj6SOtX9BZdWd5hs,101
252
+ triton_windows-3.3.0.post19.dist-info/top_level.txt,sha256=KhMzHYsArnZ3IkjAQ-xLnx1n_FjvEpJNelg2xPiDl-U,254
253
+ triton_windows-3.3.0.post19.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (78.1.0)
2
+ Generator: setuptools (79.0.0)
3
3
  Root-Is-Purelib: false
4
4
  Tag: cp310-cp310-win_amd64
5
5