triton-windows 3.2.0.post15__cp310-cp310-win_amd64.whl → 3.2.0.post17__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 +0 -0
- triton/backends/nvidia/compiler.py +9 -11
- triton/runtime/cache.py +9 -1
- {triton_windows-3.2.0.post15.dist-info → triton_windows-3.2.0.post17.dist-info}/METADATA +2 -2
- {triton_windows-3.2.0.post15.dist-info → triton_windows-3.2.0.post17.dist-info}/RECORD +7 -7
- {triton_windows-3.2.0.post15.dist-info → triton_windows-3.2.0.post17.dist-info}/WHEEL +1 -1
- {triton_windows-3.2.0.post15.dist-info → triton_windows-3.2.0.post17.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/runtime/cache.py
CHANGED
|
@@ -131,7 +131,15 @@ class FileCacheManager(CacheManager):
|
|
|
131
131
|
f.write(data)
|
|
132
132
|
# Replace is guaranteed to be atomic on POSIX systems if it succeeds
|
|
133
133
|
# so filepath cannot see a partial write
|
|
134
|
-
|
|
134
|
+
try:
|
|
135
|
+
os.replace(temp_path, filepath)
|
|
136
|
+
except PermissionError:
|
|
137
|
+
# Ignore PermissionError on Windows because it happens when another process already
|
|
138
|
+
# put a file into the cache and locked it by opening it.
|
|
139
|
+
if os.name == "nt":
|
|
140
|
+
os.remove(temp_path)
|
|
141
|
+
else:
|
|
142
|
+
raise
|
|
135
143
|
os.removedirs(temp_dir)
|
|
136
144
|
return filepath
|
|
137
145
|
|
|
@@ -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.post17
|
|
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=NrHpYf6gvRoMfbY4UuyH62aVvSWrMj6KuJX14OilfGs,87242752
|
|
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,7 +105,7 @@ 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=
|
|
108
|
+
triton/backends/nvidia/compiler.py,sha256=7-WtsBYdNn_RIHj6-IhkkDwh9fJvqkfjarj3Q757Z3s,16420
|
|
109
109
|
triton/backends/nvidia/driver.c,sha256=8m1JB-t52GN1LoAFNlpLmM9DHuBxNIHL2VHFLTyJp8g,18906
|
|
110
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
|
|
@@ -135,7 +135,7 @@ triton/language/extra/hip/libdevice.py,sha256=EVraUfeXzQmN3F5Lleg2mohVcbFWOWlLaA
|
|
|
135
135
|
triton/runtime/__init__.py,sha256=mKL5cqIBDUw2WO80NRCh4s1G8KYaqgM59TTAbTkPPjQ,621
|
|
136
136
|
triton/runtime/autotuner.py,sha256=BJe69v9MSMSzdkvYSUDrvXrAFeLZ1x6A-7aUmpz2Le0,17271
|
|
137
137
|
triton/runtime/build.py,sha256=elg0nv2lfaNzj-kfDv73-hAGir477OVQa8-0z-oQMjk,4428
|
|
138
|
-
triton/runtime/cache.py,sha256=
|
|
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
|
|
141
141
|
triton/runtime/interpreter.py,sha256=0SPiXDlM7X7DbCdu2JXoLmxJ8ugCwH_3NPoxuU0tJyg,53201
|
|
@@ -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.post17.dist-info/METADATA,sha256=eBQszKwOYSWNxTzpro6SuqUlVl2LOHDz6Qxd2P4EsxM,1514
|
|
242
|
+
triton_windows-3.2.0.post17.dist-info/WHEEL,sha256=EatMCzwQKKp3D-qbeSPlt9gzKLdqmgZ-ED05AHY6qz8,101
|
|
243
|
+
triton_windows-3.2.0.post17.dist-info/top_level.txt,sha256=iIyUoyO6Ld8jQHWY9plUyco-emBXKTqVmuAXJAGvmEk,211
|
|
244
|
+
triton_windows-3.2.0.post17.dist-info/RECORD,,
|
{triton_windows-3.2.0.post15.dist-info → triton_windows-3.2.0.post17.dist-info}/top_level.txt
RENAMED
|
File without changes
|