triton-windows 3.3.1.post21__cp310-cp310-win_amd64.whl → 3.4.0.post21__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.

Files changed (68) hide show
  1. triton/_C/libtriton.pyd +0 -0
  2. triton/__init__.py +4 -1
  3. triton/_filecheck.py +87 -0
  4. triton/_internal_testing.py +26 -15
  5. triton/_utils.py +110 -21
  6. triton/backends/__init__.py +20 -23
  7. triton/backends/amd/__init__.py +0 -0
  8. triton/backends/amd/compiler.py +112 -78
  9. triton/backends/amd/driver.c +5 -2
  10. triton/backends/amd/driver.py +143 -46
  11. triton/backends/compiler.py +7 -21
  12. triton/backends/nvidia/bin/ptxas.exe +0 -0
  13. triton/backends/nvidia/compiler.py +94 -94
  14. triton/backends/nvidia/driver.c +90 -98
  15. triton/backends/nvidia/driver.py +296 -125
  16. triton/compiler/code_generator.py +212 -111
  17. triton/compiler/compiler.py +110 -25
  18. triton/experimental/__init__.py +0 -0
  19. triton/experimental/gluon/__init__.py +4 -0
  20. triton/experimental/gluon/_compiler.py +0 -0
  21. triton/experimental/gluon/_runtime.py +99 -0
  22. triton/experimental/gluon/language/__init__.py +18 -0
  23. triton/experimental/gluon/language/_core.py +312 -0
  24. triton/experimental/gluon/language/_layouts.py +230 -0
  25. triton/experimental/gluon/language/_math.py +12 -0
  26. triton/experimental/gluon/language/_semantic.py +287 -0
  27. triton/experimental/gluon/language/_standard.py +47 -0
  28. triton/experimental/gluon/language/nvidia/__init__.py +4 -0
  29. triton/experimental/gluon/language/nvidia/blackwell/__init__.py +202 -0
  30. triton/experimental/gluon/language/nvidia/blackwell/tma.py +32 -0
  31. triton/experimental/gluon/language/nvidia/hopper/__init__.py +11 -0
  32. triton/experimental/gluon/language/nvidia/hopper/mbarrier.py +51 -0
  33. triton/experimental/gluon/language/nvidia/hopper/tma.py +96 -0
  34. triton/experimental/gluon/nvidia/__init__.py +4 -0
  35. triton/experimental/gluon/nvidia/blackwell.py +3 -0
  36. triton/experimental/gluon/nvidia/hopper.py +40 -0
  37. triton/knobs.py +481 -0
  38. triton/language/__init__.py +39 -14
  39. triton/language/core.py +794 -537
  40. triton/language/extra/cuda/__init__.py +10 -7
  41. triton/language/extra/cuda/gdc.py +42 -0
  42. triton/language/extra/cuda/libdevice.py +394 -394
  43. triton/language/extra/cuda/utils.py +21 -21
  44. triton/language/extra/hip/libdevice.py +113 -104
  45. triton/language/math.py +65 -66
  46. triton/language/random.py +12 -2
  47. triton/language/semantic.py +1706 -1770
  48. triton/language/standard.py +116 -51
  49. triton/runtime/autotuner.py +117 -59
  50. triton/runtime/build.py +73 -9
  51. triton/runtime/cache.py +18 -47
  52. triton/runtime/driver.py +32 -29
  53. triton/runtime/interpreter.py +72 -35
  54. triton/runtime/jit.py +146 -110
  55. triton/testing.py +16 -12
  56. triton/tools/disasm.py +3 -4
  57. triton/tools/tensor_descriptor.py +36 -0
  58. triton/windows_utils.py +47 -83
  59. {triton_windows-3.3.1.post21.dist-info → triton_windows-3.4.0.post21.dist-info}/METADATA +7 -2
  60. {triton_windows-3.3.1.post21.dist-info → triton_windows-3.4.0.post21.dist-info}/RECORD +64 -41
  61. triton_windows-3.4.0.post21.dist-info/entry_points.txt +3 -0
  62. triton_windows-3.4.0.post21.dist-info/licenses/LICENSE +23 -0
  63. triton_windows-3.4.0.post21.dist-info/top_level.txt +1 -0
  64. triton/language/_utils.py +0 -21
  65. triton/language/extra/cuda/_experimental_tma.py +0 -106
  66. triton/tools/experimental_descriptor.py +0 -32
  67. triton_windows-3.3.1.post21.dist-info/top_level.txt +0 -14
  68. {triton_windows-3.3.1.post21.dist-info → triton_windows-3.4.0.post21.dist-info}/WHEEL +0 -0
@@ -1,13 +1,16 @@
1
1
  from . import libdevice
2
2
 
3
3
  from .utils import (globaltimer, num_threads, num_warps, smid, convert_custom_float8_sm70, convert_custom_float8_sm80)
4
-
5
- from ._experimental_tma import * # noqa: F403
6
- from ._experimental_tma import __all__ as _tma_all
4
+ from .gdc import (gdc_launch_dependents, gdc_wait)
7
5
 
8
6
  __all__ = [
9
- "libdevice", "globaltimer", "num_threads", "num_warps", "smid", "convert_custom_float8_sm70",
10
- "convert_custom_float8_sm80", *_tma_all
7
+ "libdevice",
8
+ "globaltimer",
9
+ "num_threads",
10
+ "num_warps",
11
+ "smid",
12
+ "convert_custom_float8_sm70",
13
+ "convert_custom_float8_sm80",
14
+ "gdc_launch_dependents",
15
+ "gdc_wait",
11
16
  ]
12
-
13
- del _tma_all
@@ -0,0 +1,42 @@
1
+ """
2
+ Grid Dependency Control (GDC) is a mechanism used when enabling programmatic dependent launch to launch and
3
+ synchronize grids. These APIs expose GDC to the programmer.
4
+
5
+ Programmatic dependent launch is supported on SM90 (Hopper) and beyond.
6
+ For PTX reference on grid dependency control see https://docs.nvidia.com/cuda/parallel-thread-execution/index.html#parallel-synchronization-and-communication-instructions-griddepcontrol.
7
+ """
8
+
9
+ from triton.language import core
10
+
11
+
12
+ @core.extern
13
+ def gdc_wait(_builder=None):
14
+ """
15
+ GDC wait is a blocking instruction that waits for all instructions in a prior kernel to complete before continuing.
16
+ This ensures all memory operations happening before the wait is visible to instructions after it,
17
+ e.g. if the prior kernel writes to address "x" the new values will be visible in this kernel after the wait.
18
+
19
+ This instruction is also safe to execute when programatic dependent launch is disabled.
20
+
21
+ See https://docs.nvidia.com/cuda/parallel-thread-execution/index.html#parallel-synchronization-and-communication-instructions-griddepcontrol for more details.
22
+ """
23
+ core.inline_asm_elementwise("griddepcontrol.wait; // dummy $0", "=r", [], dtype=core.int32, is_pure=False, pack=1,
24
+ _builder=_builder)
25
+
26
+
27
+ @core.extern
28
+ def gdc_launch_dependents(_builder=None):
29
+ """
30
+ This operation when launched with programmatic dependent launch signals that
31
+ the next program may launch once all programs in the current kernel
32
+ call this function or complete.
33
+
34
+ Repeated calls to this function have no effect past the first call, and the first call should be
35
+ treated by the programmer as a hint to the runtime system to launch the next kernel.
36
+
37
+ This instruction is also safe to execute when programatic dependent launch is disabled.
38
+
39
+ See https://docs.nvidia.com/cuda/parallel-thread-execution/index.html#parallel-synchronization-and-communication-instructions-griddepcontrol for more details.
40
+ """
41
+ core.inline_asm_elementwise("griddepcontrol.launch_dependents; // dummy $0", "=r", [], dtype=core.int32,
42
+ is_pure=False, pack=1, _builder=_builder)