triton-windows 3.2.0.post18__cp313-cp313-win_amd64.whl → 3.2.0.post19__cp313-cp313-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
@@ -181,6 +181,7 @@ def make_launcher(constants, signature, ids):
181
181
  else:
182
182
  params_decl = "void **params = NULL;"
183
183
  src = f"""
184
+ #define _CRT_SECURE_NO_WARNINGS
184
185
  #include \"cuda.h\"
185
186
  #include <stdbool.h>
186
187
  #define PY_SSIZE_T_CLEAN
triton/runtime/build.py CHANGED
@@ -49,6 +49,11 @@ def is_msvc(cc):
49
49
  return cc == "cl" or cc == "cl.exe"
50
50
 
51
51
 
52
+ def is_clang(cc):
53
+ cc = os.path.basename(cc).lower()
54
+ return cc == "clang" or cc == "clang.exe"
55
+
56
+
52
57
  def _cc_cmd(cc, src, out, include_dirs, library_dirs, libraries):
53
58
  if is_msvc(cc):
54
59
  out_base = os.path.splitext(out)[0]
@@ -63,7 +68,10 @@ def _cc_cmd(cc, src, out, include_dirs, library_dirs, libraries):
63
68
  cc_cmd += [f"/PDB:{out_base + '.pdb'}"]
64
69
  else:
65
70
  # for -Wno-psabi, see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111047
66
- cc_cmd = [cc, src, "-O3", "-shared", "-fPIC", "-Wno-psabi", "-o", out]
71
+ cc_cmd = [cc, src, "-O3", "-shared", "-Wno-psabi", "-o", out]
72
+ if not (os.name == "nt" and is_clang(cc)):
73
+ # Clang does not support -fPIC on Windows
74
+ cc_cmd += ["-fPIC"]
67
75
  cc_cmd += [f'-l{lib}' for lib in libraries]
68
76
  cc_cmd += [f"-L{dir}" for dir in library_dirs]
69
77
  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.2.0.post18
3
+ Version: 3.2.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
@@ -3,7 +3,7 @@ triton/_internal_testing.py,sha256=4pzyc_36u05khUveZ1TWL3MQ-7EVMJ1C2c1dRd8BMsw,4
3
3
  triton/errors.py,sha256=8WfnuRKLG578mgY6cBA3ECruVMf9ULEKFNgRcJ6IhWM,89
4
4
  triton/testing.py,sha256=fX3pn9bjC3Z-z5qzSKW56C_2WF8h3mHLy5RJqpZ-HsA,19382
5
5
  triton/windows_utils.py,sha256=YUl-1QbLINQRaAAMNYPjLiTFZlVsCNi9mTFck5aemwk,12778
6
- triton/_C/libtriton.pyd,sha256=pglt4ytgL758cmCFPeTIf7wi1pZFkAkdMxJcXs2mnlw,87262208
6
+ triton/_C/libtriton.pyd,sha256=7__d7KLqUTs1KQuYtqWh6Lg5lZEK224hlUiW5xpMtuI,87262208
7
7
  triton/backends/__init__.py,sha256=opAo_vgEMt3tLO_bYFrYGksnIu0qohbmyuu_s3-rNAs,1595
8
8
  triton/backends/compiler.py,sha256=JZiiEbB9Wws3tjU6KXrydKtlOQI7Suk-mTYPlafa0Qk,11388
9
9
  triton/backends/driver.py,sha256=QX_6P1Go9ajdlHZi4Hv3nCtdHyDA6o8_lM3NMnlH1mk,1386
@@ -106,8 +106,8 @@ triton/backends/amd/lib/ockl.bc,sha256=wQKCzkKukIHbu0lyjKUYlhndc7S27xto6L54J0Bn-
106
106
  triton/backends/amd/lib/ocml.bc,sha256=UPNTXW0gCXUNB-c6orSYwb-mz9_mjUc7zny_vfFza44,205964
107
107
  triton/backends/nvidia/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
108
108
  triton/backends/nvidia/compiler.py,sha256=cKKtU92WsvwgU30m902d8OI7MnVGI_2RriZdi1ujNDQ,16649
109
- triton/backends/nvidia/driver.c,sha256=8m1JB-t52GN1LoAFNlpLmM9DHuBxNIHL2VHFLTyJp8g,18906
110
- triton/backends/nvidia/driver.py,sha256=B_d89ULS6F63CgtUA04TRUdpws3e6ZVFI3YbG5-j7S0,17696
109
+ triton/backends/nvidia/driver.c,sha256=PXpmEf9cc0DapfcdwEWQFOdA0yi-f3t1_4OrWLofiXY,18938
110
+ triton/backends/nvidia/driver.py,sha256=XCebfFRB5gTI5lNJD3sUcGtbFOyy5Zky64RgjgajMQU,17728
111
111
  triton/backends/nvidia/bin/ptxas.exe,sha256=2m-Z7N6rSw_zUngI0Zza4eMzhqglEEQQ6sMkev8cAr8,19580416
112
112
  triton/backends/nvidia/include/cuda.h,sha256=6SN2FpBhqz9-wdKnWN4_R3q18-auO67gdcBp-cEiSpE,1072817
113
113
  triton/backends/nvidia/lib/libdevice.10.bc,sha256=XC-uN8huaMOjhgWpX1EtfRLV89uYYxC-R_VzBKpype4,473728
@@ -134,7 +134,7 @@ triton/language/extra/hip/__init__.py,sha256=ieSER4LeX9_0horChGUUVwpuKAprkuka8uG
134
134
  triton/language/extra/hip/libdevice.py,sha256=EVraUfeXzQmN3F5Lleg2mohVcbFWOWlLaAH1nkbqtV4,16841
135
135
  triton/runtime/__init__.py,sha256=mKL5cqIBDUw2WO80NRCh4s1G8KYaqgM59TTAbTkPPjQ,621
136
136
  triton/runtime/autotuner.py,sha256=BJe69v9MSMSzdkvYSUDrvXrAFeLZ1x6A-7aUmpz2Le0,17271
137
- triton/runtime/build.py,sha256=rZdId897p7aZmu8Jg_LhORkFgiD6wiE0JYiG6C7TdpU,4771
137
+ triton/runtime/build.py,sha256=Yn8kIt-FlhqsBK9OuLog0-mfhheFTMdzudKv4eDAZFo,5003
138
138
  triton/runtime/cache.py,sha256=xMLfnhhgGoG2H5u7zQTydao4H0nenvAy0Or7btKWLiM,10591
139
139
  triton/runtime/driver.py,sha256=VZ-883Xri71R72lHB6usIpLo3gGLbZJkAlLP3ewWSpc,1509
140
140
  triton/runtime/errors.py,sha256=oj73dn34qJbLhOjakakAuZPSv-laZyIYylJiJwREA8Y,787
@@ -238,7 +238,7 @@ triton/tools/compile.py,sha256=b3yNnVgoBk8WzOs87JrZPDIyasdSgAslOWmxse1J6yM,6761
238
238
  triton/tools/disasm.py,sha256=BBO4bALdLcWgWDLhQdYHLlTx3oo8g_d8maeE_Uu-FmU,5088
239
239
  triton/tools/experimental_descriptor.py,sha256=0Wqy96Cc6YLh9o0eTknW-Lfvha6lfRSfe8bswkcPHMs,1260
240
240
  triton/tools/link.py,sha256=u7qtfZRLriZkAMEGNvj8YF-k1cthmLL7BwHYqBgT63E,11871
241
- triton_windows-3.2.0.post18.dist-info/METADATA,sha256=lPIYRbAkCh0zKhcxyfDBKA654-t_DfpozxMbXpdH9ho,1514
242
- triton_windows-3.2.0.post18.dist-info/WHEEL,sha256=6WoW_bHwIgUwfRGomr3tsp2x5B1WboZF1vodYe1_93Y,101
243
- triton_windows-3.2.0.post18.dist-info/top_level.txt,sha256=iIyUoyO6Ld8jQHWY9plUyco-emBXKTqVmuAXJAGvmEk,211
244
- triton_windows-3.2.0.post18.dist-info/RECORD,,
241
+ triton_windows-3.2.0.post19.dist-info/METADATA,sha256=YWjosxZvrnhgUoqznV_IqRSxWCqXPV6xatTjP7Bb370,1514
242
+ triton_windows-3.2.0.post19.dist-info/WHEEL,sha256=JI6TipV6L5PIs92M_MEmWFBmpkHoCQOVHMpLZsFLd2o,101
243
+ triton_windows-3.2.0.post19.dist-info/top_level.txt,sha256=iIyUoyO6Ld8jQHWY9plUyco-emBXKTqVmuAXJAGvmEk,211
244
+ triton_windows-3.2.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: cp313-cp313-win_amd64
5
5