triton-windows 3.2.0.post13__cp311-cp311-win_amd64.whl → 3.2.0.post16__cp311-cp311-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 +0 -0
- triton/backends/nvidia/compiler.py +9 -11
- triton/backends/nvidia/driver.c +1 -0
- triton/backends/nvidia/driver.py +2 -0
- {triton_windows-3.2.0.post13.dist-info → triton_windows-3.2.0.post16.dist-info}/METADATA +2 -2
- {triton_windows-3.2.0.post13.dist-info → triton_windows-3.2.0.post16.dist-info}/RECORD +8 -8
- {triton_windows-3.2.0.post13.dist-info → triton_windows-3.2.0.post16.dist-info}/WHEEL +1 -1
- {triton_windows-3.2.0.post13.dist-info → triton_windows-3.2.0.post16.dist-info}/top_level.txt +0 -0
triton/_C/libtriton.pyd
CHANGED
|
Binary file
|
|
@@ -358,11 +358,10 @@ class CUDABackend(BaseBackend):
|
|
|
358
358
|
@staticmethod
|
|
359
359
|
def make_cubin(src, metadata, opt, capability):
|
|
360
360
|
ptxas, _ = _path_to_binary("ptxas")
|
|
361
|
-
# On Windows, we need to set delete=False, close the temp file before reading it, and manually remove it
|
|
362
361
|
with tempfile.NamedTemporaryFile(delete=False, mode='w', suffix='.ptx') as fsrc, \
|
|
363
362
|
tempfile.NamedTemporaryFile(delete=False, mode='r', suffix='.log') as flog:
|
|
364
363
|
fsrc.write(src)
|
|
365
|
-
fsrc.
|
|
364
|
+
fsrc.flush()
|
|
366
365
|
fbin = fsrc.name + '.o'
|
|
367
366
|
|
|
368
367
|
line_info = [] if os.environ.get('TRITON_DISABLE_LINE_INFO') else ['-lineinfo']
|
|
@@ -373,15 +372,10 @@ class CUDABackend(BaseBackend):
|
|
|
373
372
|
ptxas, *line_info, *fmad, '-v', *opt_level, f'--gpu-name=sm_{capability}{suffix}', fsrc.name, '-o', fbin
|
|
374
373
|
]
|
|
375
374
|
try:
|
|
376
|
-
subprocess.run(ptxas_cmd, check=True, close_fds=
|
|
377
|
-
try_remove(fsrc.name)
|
|
378
|
-
flog.close()
|
|
379
|
-
try_remove(flog.name)
|
|
375
|
+
subprocess.run(ptxas_cmd, check=True, close_fds=True, stdout=flog, stderr=flog)
|
|
380
376
|
except subprocess.CalledProcessError as e:
|
|
381
|
-
flog.close()
|
|
382
377
|
with open(flog.name) as log_file:
|
|
383
378
|
log = log_file.read()
|
|
384
|
-
try_remove(flog.name)
|
|
385
379
|
|
|
386
380
|
if e.returncode == 255:
|
|
387
381
|
error = 'Internal Triton PTX codegen error'
|
|
@@ -394,9 +388,13 @@ class CUDABackend(BaseBackend):
|
|
|
394
388
|
f'`ptxas` stderr:\n{log}\n'
|
|
395
389
|
f'Repro command: {" ".join(ptxas_cmd)}\n')
|
|
396
390
|
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
391
|
+
with open(fbin, 'rb') as f:
|
|
392
|
+
cubin = f.read()
|
|
393
|
+
try_remove(fbin)
|
|
394
|
+
|
|
395
|
+
# It's better to remove the temp files outside the context managers
|
|
396
|
+
try_remove(fsrc.name)
|
|
397
|
+
try_remove(flog.name)
|
|
400
398
|
return cubin
|
|
401
399
|
|
|
402
400
|
def add_stages(self, stages, options):
|
triton/backends/nvidia/driver.c
CHANGED
triton/backends/nvidia/driver.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: triton-windows
|
|
3
|
-
Version: 3.2.0.
|
|
3
|
+
Version: 3.2.0.post16
|
|
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=aQMItmuZNXaki8zSB7HMvhy1RsXlmz1GcO-lORm1IIk,10852
|
|
6
|
-
triton/_C/libtriton.pyd,sha256=
|
|
6
|
+
triton/_C/libtriton.pyd,sha256=RtgL6yjGrRjSbfEtGtq3tV6yB9_72p5jnGLUxonJX3U,87245312
|
|
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
|
|
@@ -105,9 +105,9 @@ triton/backends/amd/include/roctracer/ext/prof_protocol.h,sha256=6FAcvVD-dNM7uul
|
|
|
105
105
|
triton/backends/amd/lib/ockl.bc,sha256=wQKCzkKukIHbu0lyjKUYlhndc7S27xto6L54J0Bn-C0,246124
|
|
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
|
-
triton/backends/nvidia/compiler.py,sha256=
|
|
109
|
-
triton/backends/nvidia/driver.c,sha256=
|
|
110
|
-
triton/backends/nvidia/driver.py,sha256=
|
|
108
|
+
triton/backends/nvidia/compiler.py,sha256=7-WtsBYdNn_RIHj6-IhkkDwh9fJvqkfjarj3Q757Z3s,16420
|
|
109
|
+
triton/backends/nvidia/driver.c,sha256=8m1JB-t52GN1LoAFNlpLmM9DHuBxNIHL2VHFLTyJp8g,18906
|
|
110
|
+
triton/backends/nvidia/driver.py,sha256=daDEQB2ExjTZ2F0-k-iv5DZBRSvKlVnt-IuvsDZtZHs,17593
|
|
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
|
|
@@ -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.
|
|
242
|
-
triton_windows-3.2.0.
|
|
243
|
-
triton_windows-3.2.0.
|
|
244
|
-
triton_windows-3.2.0.
|
|
241
|
+
triton_windows-3.2.0.post16.dist-info/METADATA,sha256=zxegA-uRJZoybHNk_X6ScqsXXzaeU5-4iv9mRfshjS0,1514
|
|
242
|
+
triton_windows-3.2.0.post16.dist-info/WHEEL,sha256=kynURWPI8D6MJZUv3wOGtm1TQb0_WLqkF127RFCfG9M,101
|
|
243
|
+
triton_windows-3.2.0.post16.dist-info/top_level.txt,sha256=iIyUoyO6Ld8jQHWY9plUyco-emBXKTqVmuAXJAGvmEk,211
|
|
244
|
+
triton_windows-3.2.0.post16.dist-info/RECORD,,
|
{triton_windows-3.2.0.post13.dist-info → triton_windows-3.2.0.post16.dist-info}/top_level.txt
RENAMED
|
File without changes
|