triton-windows 3.3.1.post19__cp313-cp313-win_amd64.whl → 3.4.0.post20__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.

Files changed (166) 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 +149 -47
  11. triton/backends/compiler.py +7 -21
  12. triton/backends/nvidia/bin/ptxas.exe +0 -0
  13. triton/backends/nvidia/compiler.py +92 -93
  14. triton/backends/nvidia/driver.c +90 -98
  15. triton/backends/nvidia/driver.py +303 -128
  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 +76 -12
  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 +14 -6
  59. {triton_windows-3.3.1.post19.dist-info → triton_windows-3.4.0.post20.dist-info}/METADATA +7 -2
  60. triton_windows-3.4.0.post20.dist-info/RECORD +186 -0
  61. triton_windows-3.4.0.post20.dist-info/entry_points.txt +3 -0
  62. triton_windows-3.4.0.post20.dist-info/licenses/LICENSE +23 -0
  63. triton_windows-3.4.0.post20.dist-info/top_level.txt +1 -0
  64. triton/backends/amd/include/hip/amd_detail/amd_channel_descriptor.h +0 -358
  65. triton/backends/amd/include/hip/amd_detail/amd_device_functions.h +0 -1010
  66. triton/backends/amd/include/hip/amd_detail/amd_hip_atomic.h +0 -1638
  67. triton/backends/amd/include/hip/amd_detail/amd_hip_bf16.h +0 -1814
  68. triton/backends/amd/include/hip/amd_detail/amd_hip_bfloat16.h +0 -293
  69. triton/backends/amd/include/hip/amd_detail/amd_hip_common.h +0 -32
  70. triton/backends/amd/include/hip/amd_detail/amd_hip_complex.h +0 -174
  71. triton/backends/amd/include/hip/amd_detail/amd_hip_cooperative_groups.h +0 -835
  72. triton/backends/amd/include/hip/amd_detail/amd_hip_fp16.h +0 -1809
  73. triton/backends/amd/include/hip/amd_detail/amd_hip_fp8.h +0 -1391
  74. triton/backends/amd/include/hip/amd_detail/amd_hip_gl_interop.h +0 -108
  75. triton/backends/amd/include/hip/amd_detail/amd_hip_math_constants.h +0 -124
  76. triton/backends/amd/include/hip/amd_detail/amd_hip_runtime.h +0 -405
  77. triton/backends/amd/include/hip/amd_detail/amd_hip_runtime_pt_api.h +0 -196
  78. triton/backends/amd/include/hip/amd_detail/amd_hip_unsafe_atomics.h +0 -565
  79. triton/backends/amd/include/hip/amd_detail/amd_hip_vector_types.h +0 -2226
  80. triton/backends/amd/include/hip/amd_detail/amd_math_functions.h +0 -104
  81. triton/backends/amd/include/hip/amd_detail/amd_surface_functions.h +0 -244
  82. triton/backends/amd/include/hip/amd_detail/amd_warp_functions.h +0 -538
  83. triton/backends/amd/include/hip/amd_detail/amd_warp_sync_functions.h +0 -288
  84. triton/backends/amd/include/hip/amd_detail/concepts.hpp +0 -30
  85. triton/backends/amd/include/hip/amd_detail/device_library_decls.h +0 -133
  86. triton/backends/amd/include/hip/amd_detail/functional_grid_launch.hpp +0 -218
  87. triton/backends/amd/include/hip/amd_detail/grid_launch.h +0 -67
  88. triton/backends/amd/include/hip/amd_detail/grid_launch.hpp +0 -50
  89. triton/backends/amd/include/hip/amd_detail/grid_launch_GGL.hpp +0 -26
  90. triton/backends/amd/include/hip/amd_detail/helpers.hpp +0 -137
  91. triton/backends/amd/include/hip/amd_detail/hip_api_trace.hpp +0 -1446
  92. triton/backends/amd/include/hip/amd_detail/hip_assert.h +0 -101
  93. triton/backends/amd/include/hip/amd_detail/hip_cooperative_groups_helper.h +0 -242
  94. triton/backends/amd/include/hip/amd_detail/hip_fp16_gcc.h +0 -254
  95. triton/backends/amd/include/hip/amd_detail/hip_fp16_math_fwd.h +0 -96
  96. triton/backends/amd/include/hip/amd_detail/hip_ldg.h +0 -100
  97. triton/backends/amd/include/hip/amd_detail/hip_prof_str.h +0 -10570
  98. triton/backends/amd/include/hip/amd_detail/hip_runtime_prof.h +0 -78
  99. triton/backends/amd/include/hip/amd_detail/host_defines.h +0 -184
  100. triton/backends/amd/include/hip/amd_detail/hsa_helpers.hpp +0 -102
  101. triton/backends/amd/include/hip/amd_detail/macro_based_grid_launch.hpp +0 -798
  102. triton/backends/amd/include/hip/amd_detail/math_fwd.h +0 -698
  103. triton/backends/amd/include/hip/amd_detail/ockl_image.h +0 -177
  104. triton/backends/amd/include/hip/amd_detail/program_state.hpp +0 -107
  105. triton/backends/amd/include/hip/amd_detail/texture_fetch_functions.h +0 -491
  106. triton/backends/amd/include/hip/amd_detail/texture_indirect_functions.h +0 -478
  107. triton/backends/amd/include/hip/channel_descriptor.h +0 -39
  108. triton/backends/amd/include/hip/device_functions.h +0 -38
  109. triton/backends/amd/include/hip/driver_types.h +0 -468
  110. triton/backends/amd/include/hip/hip_bf16.h +0 -36
  111. triton/backends/amd/include/hip/hip_bfloat16.h +0 -44
  112. triton/backends/amd/include/hip/hip_common.h +0 -100
  113. triton/backends/amd/include/hip/hip_complex.h +0 -38
  114. triton/backends/amd/include/hip/hip_cooperative_groups.h +0 -46
  115. triton/backends/amd/include/hip/hip_deprecated.h +0 -95
  116. triton/backends/amd/include/hip/hip_ext.h +0 -161
  117. triton/backends/amd/include/hip/hip_fp16.h +0 -36
  118. triton/backends/amd/include/hip/hip_fp8.h +0 -33
  119. triton/backends/amd/include/hip/hip_gl_interop.h +0 -32
  120. triton/backends/amd/include/hip/hip_hcc.h +0 -24
  121. triton/backends/amd/include/hip/hip_math_constants.h +0 -36
  122. triton/backends/amd/include/hip/hip_profile.h +0 -27
  123. triton/backends/amd/include/hip/hip_runtime.h +0 -75
  124. triton/backends/amd/include/hip/hip_runtime_api.h +0 -9261
  125. triton/backends/amd/include/hip/hip_texture_types.h +0 -29
  126. triton/backends/amd/include/hip/hip_vector_types.h +0 -41
  127. triton/backends/amd/include/hip/hip_version.h +0 -17
  128. triton/backends/amd/include/hip/hiprtc.h +0 -421
  129. triton/backends/amd/include/hip/library_types.h +0 -78
  130. triton/backends/amd/include/hip/math_functions.h +0 -42
  131. triton/backends/amd/include/hip/surface_types.h +0 -63
  132. triton/backends/amd/include/hip/texture_types.h +0 -194
  133. triton/backends/amd/include/hsa/Brig.h +0 -1131
  134. triton/backends/amd/include/hsa/amd_hsa_common.h +0 -91
  135. triton/backends/amd/include/hsa/amd_hsa_elf.h +0 -462
  136. triton/backends/amd/include/hsa/amd_hsa_kernel_code.h +0 -269
  137. triton/backends/amd/include/hsa/amd_hsa_queue.h +0 -109
  138. triton/backends/amd/include/hsa/amd_hsa_signal.h +0 -80
  139. triton/backends/amd/include/hsa/hsa.h +0 -5738
  140. triton/backends/amd/include/hsa/hsa_amd_tool.h +0 -91
  141. triton/backends/amd/include/hsa/hsa_api_trace.h +0 -579
  142. triton/backends/amd/include/hsa/hsa_api_trace_version.h +0 -68
  143. triton/backends/amd/include/hsa/hsa_ext_amd.h +0 -3146
  144. triton/backends/amd/include/hsa/hsa_ext_finalize.h +0 -531
  145. triton/backends/amd/include/hsa/hsa_ext_image.h +0 -1454
  146. triton/backends/amd/include/hsa/hsa_ven_amd_aqlprofile.h +0 -488
  147. triton/backends/amd/include/hsa/hsa_ven_amd_loader.h +0 -667
  148. triton/backends/amd/include/hsa/hsa_ven_amd_pc_sampling.h +0 -416
  149. triton/backends/amd/include/roctracer/ext/prof_protocol.h +0 -107
  150. triton/backends/amd/include/roctracer/hip_ostream_ops.h +0 -4515
  151. triton/backends/amd/include/roctracer/hsa_ostream_ops.h +0 -1727
  152. triton/backends/amd/include/roctracer/hsa_prof_str.h +0 -3059
  153. triton/backends/amd/include/roctracer/roctracer.h +0 -779
  154. triton/backends/amd/include/roctracer/roctracer_ext.h +0 -81
  155. triton/backends/amd/include/roctracer/roctracer_hcc.h +0 -24
  156. triton/backends/amd/include/roctracer/roctracer_hip.h +0 -37
  157. triton/backends/amd/include/roctracer/roctracer_hsa.h +0 -112
  158. triton/backends/amd/include/roctracer/roctracer_plugin.h +0 -137
  159. triton/backends/amd/include/roctracer/roctracer_roctx.h +0 -67
  160. triton/backends/amd/include/roctracer/roctx.h +0 -229
  161. triton/language/_utils.py +0 -21
  162. triton/language/extra/cuda/_experimental_tma.py +0 -106
  163. triton/tools/experimental_descriptor.py +0 -32
  164. triton_windows-3.3.1.post19.dist-info/RECORD +0 -260
  165. triton_windows-3.3.1.post19.dist-info/top_level.txt +0 -14
  166. {triton_windows-3.3.1.post19.dist-info → triton_windows-3.4.0.post20.dist-info}/WHEEL +0 -0
@@ -0,0 +1,186 @@
1
+ triton/__init__.py,sha256=CEQdOZ6zLHuEVGoJ7kl2YwcfBBIPBkOQzzDjHr6ibOM,1464
2
+ triton/_filecheck.py,sha256=iWl8uL4LJeV4En4h4mzUbDnrmXB4jXeEgy4_uqRURH8,2845
3
+ triton/_internal_testing.py,sha256=MpXYuQlvJUYtFAmFcfzlU7dyIDEQB_XirJ96IRujMTA,6326
4
+ triton/_utils.py,sha256=XTYb3qDDaVmbhmXbm6ChMTYTW9jeE538jZwJE_eliQg,3539
5
+ triton/errors.py,sha256=8WfnuRKLG578mgY6cBA3ECruVMf9ULEKFNgRcJ6IhWM,89
6
+ triton/knobs.py,sha256=VOdRM_J0TejBYP2H7QZZzLwcRJq-Eppm9hBxDt1pCgA,14916
7
+ triton/testing.py,sha256=vbEQRNrOnnzRQvVVSaiZrUo8AC0XPV40GJxfvkKYLh0,20276
8
+ triton/windows_utils.py,sha256=7uwsR-yQZQzzvHajkukryRTJlOotyRA5mlNlJOFVGsE,13130
9
+ triton/_C/libtriton.pyd,sha256=feY3eFQa0O4dU5046FmNzjDDJeYUoZfWp82hHDU1PCo,89961984
10
+ triton/backends/__init__.py,sha256=X7290kf96Fk9QnfLScsX4UDG3zPyH_-31E4A7pVOijM,1612
11
+ triton/backends/compiler.py,sha256=MY2_cQG26p68z8VwRv2Nlj_h2DfEhwBbN-30caMgep0,2840
12
+ triton/backends/driver.py,sha256=AN60upJlPgia0JwvZ8vIVgLITNPuI0fdz8zMIIHPpF4,1450
13
+ triton/backends/amd/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
+ triton/backends/amd/compiler.py,sha256=yaF0MqfZ81-fL1Jb5aDxGGGXs2j-pVOVpneWQT6DOUs,19966
15
+ triton/backends/amd/driver.c,sha256=hu5_QLMJVmeyR5zYDWfDAklZckISaAFM7kKOg9MpuWE,8612
16
+ triton/backends/amd/driver.py,sha256=9UU3u5gdqjGl7NYdsOyFk63MjgWW0Vnx4-jJ35ROscs,23718
17
+ triton/backends/amd/lib/asanrtl.bc,sha256=1xv2RlU3WvbdsghHlmhwiHewGM2B5dKts5bERM6S89o,24508
18
+ triton/backends/amd/lib/ockl.bc,sha256=wQKCzkKukIHbu0lyjKUYlhndc7S27xto6L54J0Bn-C0,246124
19
+ triton/backends/amd/lib/ocml.bc,sha256=UPNTXW0gCXUNB-c6orSYwb-mz9_mjUc7zny_vfFza44,205964
20
+ triton/backends/nvidia/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
21
+ triton/backends/nvidia/compiler.py,sha256=9ebNiX61uhApSojj5zf51HCh750FjXk2nzYlVQDJudk,19495
22
+ triton/backends/nvidia/driver.c,sha256=rH8RDtMMv_UHr7qiLnrSdNg3xojOQe_fF1zW67LFjaE,17882
23
+ triton/backends/nvidia/driver.py,sha256=22YT4HhTPI1aJ-mjw31Lvw1mcffj17pGJry3m9W6jio,26391
24
+ triton/backends/nvidia/bin/ptxas.exe,sha256=f28E0l5aerLAfBXk7yagfOwIEE6_6_NkMx-vqPPEQ9Y,24753152
25
+ triton/backends/nvidia/include/cuda.h,sha256=Fn44OjeRImxegJ39apYUspseEfTWNGwpqSGUOnHj5WY,1183268
26
+ triton/backends/nvidia/lib/libdevice.10.bc,sha256=XC-uN8huaMOjhgWpX1EtfRLV89uYYxC-R_VzBKpype4,473728
27
+ triton/backends/nvidia/lib/x64/cuda.lib,sha256=I5DZfR8aQ9wodYo3trskSbJpJd9lHvZXsnEZ3NV30LQ,160840
28
+ triton/compiler/__init__.py,sha256=0NEunzjGCNEVOhYZLDI4pDi_zAaYAgTXNm8U5uxbdL0,242
29
+ triton/compiler/code_generator.py,sha256=Rj5tFwqfjMR1-cr2CxOr3nP3Ez2V4EE3ENKQAp66uXc,66887
30
+ triton/compiler/compiler.py,sha256=Qm-71vUVkafzjYpU3ttBCTzWheIs08Z7zfBusHODEJY,21556
31
+ triton/compiler/errors.py,sha256=I9Y15pDWcL9heY4SWWdLeMDtW6Iiq2pFXzKfJ6dY_C0,1732
32
+ triton/compiler/make_launcher.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
33
+ triton/experimental/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
34
+ triton/experimental/gluon/__init__.py,sha256=e2NX3d9SND2hKGmMDCix8_Sg12BMpK3zR3NWHy-fioQ,76
35
+ triton/experimental/gluon/_compiler.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
36
+ triton/experimental/gluon/_runtime.py,sha256=b9KD4D-CuuYxwCwj2YPPpT_JnB9e1G4_ztaESaQjgHw,3395
37
+ triton/experimental/gluon/language/__init__.py,sha256=EEDociOXDeGu9y2FwRKUoGNxJKu7eg2jIi94j7TQxx8,451
38
+ triton/experimental/gluon/language/_core.py,sha256=8QyCvlTYQnqIDDrVa1AG84u7K3zaBAS_81QaJg3RfqE,8911
39
+ triton/experimental/gluon/language/_layouts.py,sha256=H3Zkjmkl-IwJxCC4pnPxsBw-2mGNCNfn9MbY1c1l6s0,8975
40
+ triton/experimental/gluon/language/_math.py,sha256=R9fMFusmpDy3rdA-zwxIIB5nigEg08MeTnSdslA0DQA,329
41
+ triton/experimental/gluon/language/_semantic.py,sha256=SKRJPTtnhfWpuz-deaun845FpHvBvpeW2erGqO-UkdQ,13898
42
+ triton/experimental/gluon/language/_standard.py,sha256=gunBiUjdix_LDVONM-OZ5wuR0i8O5fZLXHmOBEyvbLk,1063
43
+ triton/experimental/gluon/language/nvidia/__init__.py,sha256=SFBuACK5P2XoYcutHEnKjqgRTboU4CPDmJz0hT6dFRQ,80
44
+ triton/experimental/gluon/language/nvidia/blackwell/__init__.py,sha256=KHmHVhgmvhLQXsPfwExi_O9AfjQzpKYmqb3zWSy6W4Q,7599
45
+ triton/experimental/gluon/language/nvidia/blackwell/tma.py,sha256=15xbiY2QmgjVPHvXPJ3MKrAkbqcaZjgx-V3B-kCgo9w,1086
46
+ triton/experimental/gluon/language/nvidia/hopper/__init__.py,sha256=NVReVRoDY3OuXQUrKokuxY86z0QehVSje63H52u-5hs,295
47
+ triton/experimental/gluon/language/nvidia/hopper/mbarrier.py,sha256=MezUtSQr-FzYM1kbuto1xNE4NimSBZIxP25xkn7nnp8,1603
48
+ triton/experimental/gluon/language/nvidia/hopper/tma.py,sha256=Jih4obM2oGcUU7DYg0T7nSindQQd40zgQh0e1MeLh6A,3508
49
+ triton/experimental/gluon/nvidia/__init__.py,sha256=ISXB4RV7RcCLsU-JhcRFeA29gCBDVk8cTwO2j99ivLc,80
50
+ triton/experimental/gluon/nvidia/blackwell.py,sha256=cllwlUCE5_YKWqySQZk7wt7Fierz345E5VwztxNRGMs,69
51
+ triton/experimental/gluon/nvidia/hopper.py,sha256=SKDi2fPCB87vMZAF6Em3gfZgif95U4Omeiexn7c969o,1518
52
+ triton/language/__init__.py,sha256=XJPQq1rq0SoPcfqkw9YVln7XqP0I25nIGzTa-QmMpiY,6418
53
+ triton/language/core.py,sha256=UsbrSmv92MdNW9JfKkyDhDOAZI8drrS1PK7Av2un7A4,116128
54
+ triton/language/math.py,sha256=CKvuIc5iMKhz7Qgx9w-VcLfOOZadv5svKK4aGZLuHMc,7399
55
+ triton/language/random.py,sha256=jkuFmfgZ8yvKuub9EY27zPvsC6nhkJIk05xf4y-7SR8,7102
56
+ triton/language/semantic.py,sha256=ERQftF6yeuTMmPO722GWpfwug7r9ZDWhxThL1kwLfmI,96950
57
+ triton/language/standard.py,sha256=EwpxORaDOiOdT4QgCnxiFXrsC652no7RptVoF9OszN0,16152
58
+ triton/language/extra/__init__.py,sha256=XRXFvr7416pRsh_Rh-X6qV66SiEyVDVbxp4GSAE1mfc,655
59
+ triton/language/extra/libdevice.py,sha256=Dki14elRNmQsz-Ytw9CnOaLCCnte4T6cI8bOzWjN63A,6318
60
+ triton/language/extra/cuda/__init__.py,sha256=MBBu2EUYxsp6ygjiwO4Yh1X1EswMstfaiRTMSMGtbcw,407
61
+ triton/language/extra/cuda/gdc.py,sha256=QAqc_E1INKjYlW6ERSnb9uWoEBDAQlnxkn2yiIWHJPQ,2185
62
+ triton/language/extra/cuda/libdevice.py,sha256=J7Kl0ejbAIus7-YBn2OSK71lkm3pC7G1J-5ZdHfS82U,56764
63
+ triton/language/extra/cuda/utils.py,sha256=phDcXCFViaq3p4ThwHrO8-FtU-8A8I3nk4mZZJVvTio,4426
64
+ triton/language/extra/hip/__init__.py,sha256=ieSER4LeX9_0horChGUUVwpuKAprkuka8uGAkEBDyDM,49
65
+ triton/language/extra/hip/libdevice.py,sha256=Rf-AmBzcO6ORVzSxSuLXOy0lpoZTsnRAuTvjSF83r-E,17313
66
+ triton/runtime/__init__.py,sha256=mKL5cqIBDUw2WO80NRCh4s1G8KYaqgM59TTAbTkPPjQ,621
67
+ triton/runtime/_allocation.py,sha256=zaW4B7I7c-2rkVuN7IZaUB6IQSI1t4FvnTPZH-r7DTk,798
68
+ triton/runtime/autotuner.py,sha256=cfWBuLpL6-eBv-J2tFIbL0gE3ZGHOFSJ0e3n0GfrzLw,20244
69
+ triton/runtime/build.py,sha256=r44tiyJFWp5Xoxb2WUyw0nqxOA2rtyWN7O8krW9gZKE,6209
70
+ triton/runtime/cache.py,sha256=uMV-CwCaS9cthIzKoLlTHXjhw_RoaIUaVP7zmgsdsIo,9689
71
+ triton/runtime/driver.py,sha256=seGhU4efCFPVN0KVzd4gmZ1x5s0I_sFyM5NC8brXWF8,1798
72
+ triton/runtime/errors.py,sha256=CwfJXciwel_-K3BfQfKUpLPDWrSyTnGsfJkqJojrdfQ,1052
73
+ triton/runtime/interpreter.py,sha256=IJ0kLHhnoRd9-lwtPk7l8IDs_reaDzLpIBJaH-h3S8g,60811
74
+ triton/runtime/jit.py,sha256=M1bqBguYaMuztS3hH4-T5CI8UrvADyEC2mVuuwKVrvg,36766
75
+ triton/runtime/tcc/libtcc.dll,sha256=4IVp00uvXFRsmhnF5tC1mT8Zb0Hl6uuxDlTHG1kQkrw,156160
76
+ triton/runtime/tcc/tcc.exe,sha256=6cs-ieIKnv6tg8yeaxADFCdWNML3BQVtpx9CTqmwzfA,23552
77
+ triton/runtime/tcc/include/_mingw.h,sha256=q0vn005_oOci8JSODJCtTZW4oexknC8Ybfo4e1e-eDM,3865
78
+ triton/runtime/tcc/include/assert.h,sha256=Orft7F5VhAw1viUrrVIjaVXDtPkUOBDNsfCcNFEOuMQ,1439
79
+ triton/runtime/tcc/include/conio.h,sha256=3nFh-Fg12Ys4_moZ74lz3K9Y7CN7HJHPBaxTWy_zhF8,11130
80
+ triton/runtime/tcc/include/ctype.h,sha256=TPqqQ7P3QUmEEm6LHN9l-drA72jZozlr4LiCg3anSms,9755
81
+ triton/runtime/tcc/include/dir.h,sha256=hAZLF-UB1pHEPUfkWxEsKITbRnQXkQtfoUgrcjQrrfs,952
82
+ triton/runtime/tcc/include/direct.h,sha256=F5wyBDEtfPgDIQJ3Nim8s-X_95LR2AiTHLZhmkMdJDU,1979
83
+ triton/runtime/tcc/include/dirent.h,sha256=iMH3Z_3NbVG5ke4yNHktpIyFdvX4gW8XpCNE-ci7scE,3339
84
+ triton/runtime/tcc/include/dos.h,sha256=Ov6kroXGiYf-WfQFkqxeo-8QSbT7cmErsYU1jWKOLew,1090
85
+ triton/runtime/tcc/include/errno.h,sha256=fISU_lfZRHc4YcTBzB8rRrMREUSiS_UFs9R7MvCsHoo,1410
86
+ triton/runtime/tcc/include/excpt.h,sha256=AJjlFgLJT4qXAvS3dtNjD1buwn7We5_DbZIEkztYrE0,3796
87
+ triton/runtime/tcc/include/fcntl.h,sha256=-9lPlFpXFlrIl726zSqGGxNR54UPp2dScDwKYi4GRvo,1269
88
+ triton/runtime/tcc/include/fenv.h,sha256=Z6gnrPTgllOvtdGPLsql_N-3Rx2KW4GXwvM9BuhGL4Q,3146
89
+ triton/runtime/tcc/include/float.h,sha256=ybqqR447qFiXt4H3BlueFE-qzI6ByvpaZCtdSceENOs,1374
90
+ triton/runtime/tcc/include/inttypes.h,sha256=QZTAQIzbozC3z6HSCR1yoM-_IHf_H-sZ9Dbz86oq3xg,6072
91
+ triton/runtime/tcc/include/io.h,sha256=Xal8hQ6OKrYIxClHozQR9Vb211uCZOHlzynKe6e5YlY,13067
92
+ triton/runtime/tcc/include/limits.h,sha256=OcB2Hw5D17k2ubgchWc92CiW6_pm6fG5oZtF805M1So,2686
93
+ triton/runtime/tcc/include/locale.h,sha256=iCYm-iXbwbWQPm_ZjMhRbx5UxOBpRQJmU_BbOBJd_yw,2135
94
+ triton/runtime/tcc/include/malloc.h,sha256=cwf_MwuNeVTVSOGeRYh-1k3jbaW-4f2izAIfDBwYkr0,5214
95
+ triton/runtime/tcc/include/math.h,sha256=6kH9ac-CcbSFMZnKg04GyURd4fsDFLcqYc59TqdZsMc,23036
96
+ triton/runtime/tcc/include/mem.h,sha256=Q5VpRq7-5Q4B_dTVSmxZdBirywIlH512le1wOf16X_Y,345
97
+ triton/runtime/tcc/include/memory.h,sha256=tDQeGIkTqBn6O_EBB4qVygd3gCGTc_Qkw5rYbJTgS28,1233
98
+ triton/runtime/tcc/include/process.h,sha256=aUfJVPKvZ25mzDjWSxoWVChzQADi4nL4g8LXSoW4ICA,9091
99
+ triton/runtime/tcc/include/setjmp.h,sha256=thZOt_rkoSFjJRSS9_TlbMUNFG7HovVkDYbspNCVBG8,3867
100
+ triton/runtime/tcc/include/share.h,sha256=bekiwb1-7cMzCDBHhcISlFBk12Pu37NzwJy7tcuTPd4,639
101
+ triton/runtime/tcc/include/signal.h,sha256=BFoDGzdnM-16aFvAFwn1KBQDcp_3xgG5E7Ksov4Uk7s,1583
102
+ triton/runtime/tcc/include/stdarg.h,sha256=EWUEp8P-q7xFUenbC-yVcXBkfvIGfrRqQwS8v93OWjA,2494
103
+ triton/runtime/tcc/include/stdbool.h,sha256=UlKCQiXdxIawRgZ392XkFXr10-16zWWzEKQEXq-1avc,176
104
+ triton/runtime/tcc/include/stddef.h,sha256=yR_6rvUjHG1-dE4HAPH0KcnPrYikES_dWrq7cB87Wks,1402
105
+ triton/runtime/tcc/include/stdint.h,sha256=M8bI2n1WS1cCr4xv9FwAoWhCuj_-P5X39iMnUvY8Wv0,6333
106
+ triton/runtime/tcc/include/stdio.h,sha256=dJBZg0FDvNW9zqE_yGPItlh6idbfyEzVAXqY3xkN770,14903
107
+ triton/runtime/tcc/include/stdlib.h,sha256=W7oJWi0iprwGcPc7_rumPP7GX4t8JI6E42s9ft4KTzw,20426
108
+ triton/runtime/tcc/include/string.h,sha256=1cAsImU3hHku7_BMxFNGe6IsIU2azodhJ-q1_My8p2I,8590
109
+ triton/runtime/tcc/include/tcclib.h,sha256=FR8_fIZXa9SS0lT4QOI02XmTxG1NmoJhTX0JU8AFdeE,2611
110
+ triton/runtime/tcc/include/tchar.h,sha256=f-X94Cj_j2nSvakQZk4sFp57ksbn8s95FetyBUqXRv8,31364
111
+ triton/runtime/tcc/include/time.h,sha256=RTeTotbG_HctHN1g5wH7PTk9dSk3wdayymTV8c7J_TY,8405
112
+ triton/runtime/tcc/include/vadefs.h,sha256=LmqzWVWTGaEagPj1KqBHLNCxQRN_Oh6qGMQNiCfcUdQ,304
113
+ triton/runtime/tcc/include/values.h,sha256=-jdYhHsz9Zq-mbAjvgDYoCfDkezQWAof51VJfBHgxyM,126
114
+ triton/runtime/tcc/include/varargs.h,sha256=B4WIV_Tu0KYd-UvrGp1ni1P8PWegsOiTYVX4XdvNHcw,355
115
+ triton/runtime/tcc/include/wchar.h,sha256=yb8S4CoqsHg-0cZt_kPeQ8QCszkGytqbEVdQKoLHw-Q,34132
116
+ triton/runtime/tcc/include/wctype.h,sha256=4S2cW8vk37lupsdUEOooeRezwkv_nNLnFtNeAMHUkGw,4782
117
+ triton/runtime/tcc/include/sec_api/conio_s.h,sha256=9zdegWc5SR-6s5UxwdYKd7eP-aFiq6F_gXx3O_dfZQg,1535
118
+ triton/runtime/tcc/include/sec_api/crtdbg_s.h,sha256=A2MO6D58khRGoHkIU_yt61owhVPdPE7N3VaM2jFnwPE,461
119
+ triton/runtime/tcc/include/sec_api/io_s.h,sha256=bgL0rlDTBimvffNHhbbDJkKxLZSt3VZgb2_Eq2aCUP8,881
120
+ triton/runtime/tcc/include/sec_api/mbstring_s.h,sha256=2WKrgHCViVP0iyTJ6gaLNFsVgjeCb7cbmnbTbPLooys,3615
121
+ triton/runtime/tcc/include/sec_api/search_s.h,sha256=lhdOCfHFc8f66oWm1WgiWhuUbhM8bASnvWqoZcWIlqI,796
122
+ triton/runtime/tcc/include/sec_api/stdio_s.h,sha256=UQe-10DGJ0_8dnrULe1s5aj1HLDHMjnQTVpkfWLt8vE,11508
123
+ triton/runtime/tcc/include/sec_api/stdlib_s.h,sha256=hlDjS-JBx9g3QzEmh462ow7nHAt1nCNnH9jwcVx83mU,4113
124
+ triton/runtime/tcc/include/sec_api/stralign_s.h,sha256=sj8M951UVeIy2SeS4rK-OBJaAoCLwAUEk2e6to2hMAs,824
125
+ triton/runtime/tcc/include/sec_api/string_s.h,sha256=7vMvtQW5ijYQkj6N2z3nJMVbRDidJc73z1DuPNFPXWg,1787
126
+ triton/runtime/tcc/include/sec_api/tchar_s.h,sha256=pTGMzrJBlidpFpwyo85b-5oHWlLtusMarTOw17iXtUQ,8328
127
+ triton/runtime/tcc/include/sec_api/time_s.h,sha256=munLejFkrQCT44h7DKCbtnSY2lG7ROm-UAtg5yo4XcA,2331
128
+ triton/runtime/tcc/include/sec_api/wchar_s.h,sha256=WkcKw1iy2VEgIYL57B-UUzHCOo15YprU7bCLfXPPruQ,7492
129
+ triton/runtime/tcc/include/sec_api/sys/timeb_s.h,sha256=0VNBfsZOt7FQR0m8pkd-_VG0si3mcFGPT9wnAQgBRcA,653
130
+ triton/runtime/tcc/include/sys/fcntl.h,sha256=K09mD_2JlK-gOHQHBR48p-zI_kS-sq3S1DHNUs6K2cQ,359
131
+ triton/runtime/tcc/include/sys/file.h,sha256=tud5xTFAwRe8Nr0zXGS_yxOuTCxIa5R4OzIUmm6y0yA,367
132
+ triton/runtime/tcc/include/sys/locking.h,sha256=KXhhRemvNKH5bnNohVsZ6IefyA01oXLZupfTx_wvYxE,648
133
+ triton/runtime/tcc/include/sys/stat.h,sha256=TcEmq0sxd9qF5A7Van1FFhBeQ2pGJCcpkoFrI-A5FbU,6881
134
+ triton/runtime/tcc/include/sys/time.h,sha256=UYdB8oZUVDTfZ2Vy5Tv4VTsElqcTiULcayD_JStCk-Q,1717
135
+ triton/runtime/tcc/include/sys/timeb.h,sha256=70P59RZgq4KCcH9xacw9l3h45iN0PSPsVlZj_itOl4I,2445
136
+ triton/runtime/tcc/include/sys/types.h,sha256=8cP55cgRpjvrrlIpBCwJy14Ff0EX_TG0Wqy7TDpibfg,2128
137
+ triton/runtime/tcc/include/sys/unistd.h,sha256=H1lahcru73OFoL2pSvUYlrIU7iYFZISvUDU-k5PeGSk,351
138
+ triton/runtime/tcc/include/sys/utime.h,sha256=UkMS4-ijJffVr8Id24_LzrhdRRF14H7xvq23-C-jaLM,3429
139
+ triton/runtime/tcc/include/tcc/tcc_libm.h,sha256=dY4Fhe37zkS_J-C7RNmyKvU7hsnCZeQwPfmycBlO1P8,5780
140
+ triton/runtime/tcc/include/winapi/basetsd.h,sha256=XJy6oWq_V0AO0xtJqrfuAVeI2-fTtY89U8hts4B91vA,5614
141
+ triton/runtime/tcc/include/winapi/basetyps.h,sha256=NIQu4zicsTpyorh-yTCq2__OiQbrMUgBgM_1Qcf0QTQ,2413
142
+ triton/runtime/tcc/include/winapi/guiddef.h,sha256=fbGx_kZRP1eKPHd8POMA2EA9Mfv7bQDqz_kyhtLtEpM,4165
143
+ triton/runtime/tcc/include/winapi/poppack.h,sha256=gclR4fuHqo9uiHGgcyd_HNHMubZvbvqSr_NbzQCmByY,282
144
+ triton/runtime/tcc/include/winapi/pshpack1.h,sha256=jrZ90jPVo4fW3BgUy262xt6aEjQ4-u_Ke0QmkcryMEk,285
145
+ triton/runtime/tcc/include/winapi/pshpack2.h,sha256=1FnL1UaSn9RJgNMsFoCo8XbXF86d8WL1xcRD39zMnkI,285
146
+ triton/runtime/tcc/include/winapi/pshpack4.h,sha256=zTuhJYpd2ccUh50-SZsCHIXumCfAa6wvwsHmd7WQlTE,285
147
+ triton/runtime/tcc/include/winapi/pshpack8.h,sha256=Mv57X_I4fJFq0TTvW1sKxnRH2g4NzPQFwxViqscY1tg,285
148
+ triton/runtime/tcc/include/winapi/winbase.h,sha256=R-_7pNS7ffvjc_EVYoWhcAQv4aNVK8u-5GDl22jh_y0,159607
149
+ triton/runtime/tcc/include/winapi/wincon.h,sha256=yWW4g54QDpqsrTM7NzIY-WKhWEBYMjH5aAdkQeeBU4s,14473
150
+ triton/runtime/tcc/include/winapi/windef.h,sha256=E36aQ6E25K4Zs6TIRAI8ahYRsjaFAANk9r4xQ9saTHU,5674
151
+ triton/runtime/tcc/include/winapi/windows.h,sha256=Ow2A5LJ-CZyK9UPW2cyilcaOEVoPunzXnMDnbRw6XBE,2173
152
+ triton/runtime/tcc/include/winapi/winerror.h,sha256=WQE0AAsbXE-3r7zFSkRaQiKNdBZKnoskQ00amT92hS4,150512
153
+ triton/runtime/tcc/include/winapi/wingdi.h,sha256=31k3rBgFsnq7oDJ30sNMrujLQ4ftuJStzXPmFyqfvZQ,121301
154
+ triton/runtime/tcc/include/winapi/winnt.h,sha256=t4lEvboYsxS8SiDVgd0IWP2Ld1pJLtvqLRp8KvxBjhs,192723
155
+ triton/runtime/tcc/include/winapi/winreg.h,sha256=bbuWncIekNkETavNGQJowbsz5EWGLOKkpTbppxNPpOs,13963
156
+ triton/runtime/tcc/include/winapi/winuser.h,sha256=Q1a_zfUgnE7FjeSG4hc85LF-DOdaQisib93dGFl8mQU,179678
157
+ triton/runtime/tcc/include/winapi/winver.h,sha256=fYRmeOwqjHD4YwjPa-WF12CSTGIN_PtLBI9g2IV3tp0,5381
158
+ triton/runtime/tcc/lib/cuda.def,sha256=c8XdUSeajwFv0jSgW1lDoiCcEauHygWrl8Ws4wRrB_g,15535
159
+ triton/runtime/tcc/lib/gdi32.def,sha256=NfGNAGtoQaOuBuheG0mv4AqlinvYm9aPNbSycCUP50A,5052
160
+ triton/runtime/tcc/lib/kernel32.def,sha256=ank2QlCtswD44SShHIX-0vqd5XQI6r0eu7HO3PszuM4,12882
161
+ triton/runtime/tcc/lib/libtcc1-64.a,sha256=huWSqjVuP1FZcAo-Fqp5kiBNVFlhsn6oy2JvyzSxWUs,41706
162
+ triton/runtime/tcc/lib/msvcrt.def,sha256=oB3JKUV0IE47w6R7bKFEnIlfef-SFeWC4jg6g-YUg7g,15880
163
+ triton/runtime/tcc/lib/python3.def,sha256=o8MijZkdWOnHNPU4fmJrT1qw3fWSlaegC969H_X5_VE,16173
164
+ triton/runtime/tcc/lib/python310.def,sha256=3ofvYJiv78p-4DljnpZVvy9D5SvSfF-H26MldEEVJlw,33539
165
+ triton/runtime/tcc/lib/python311.def,sha256=8rxqpShmaBhu2HzvmkjsJy7kxXjNDBtD3nHTa88QKqY,33820
166
+ triton/runtime/tcc/lib/python312.def,sha256=yIwbeXDcGnPfAjTo89oEojrlQtrW6aVPvGm7GMX1RNs,35695
167
+ triton/runtime/tcc/lib/python313.def,sha256=HcOu0MS-PFcj2_OskAKsXfv9w27GebWijs-rc-RXmQI,34658
168
+ triton/runtime/tcc/lib/python313t.def,sha256=LssGwvVZnHdyZV2HHGcAqhla1blHjulz8Q7Wft8ERrs,34774
169
+ triton/runtime/tcc/lib/python39.def,sha256=iv2tgW38gyRGVdJ126Za7jrtW-ZAH1gFLD62JHj1e4E,34237
170
+ triton/runtime/tcc/lib/python3t.def,sha256=vem4PTOKJ-w6B_UCZdGFCscddRA-XWRONNOTMdWkXYQ,18101
171
+ triton/runtime/tcc/lib/user32.def,sha256=EcYohyyDgmz9fLBoOR-vszLeJ2YkBUoNGvSnuXrkum0,10439
172
+ triton/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
173
+ triton/tools/build_extern.py,sha256=jCr-2hu3nLGBIJhCGUQ1jAyzLttughjkiPGEwRFjLR0,13673
174
+ triton/tools/compile.py,sha256=CP_-yqEd55ejkc2_OYVE7q0Eyh9xErk8KJy2BcdCV0Y,7129
175
+ triton/tools/disasm.py,sha256=T9jiTkdK_0nI3R_4uea0zvfioYdcR-zIZwTfuucgw6g,5026
176
+ triton/tools/link.py,sha256=u7qtfZRLriZkAMEGNvj8YF-k1cthmLL7BwHYqBgT63E,11871
177
+ triton/tools/mxfp.py,sha256=YQdpBrGkOVNOtnLeRjMCeVFHWkSwUubGeWsItIjO8TU,11737
178
+ triton/tools/tensor_descriptor.py,sha256=mt4iVVRcNg0gjoytb6iCP4l5vt-H2V3MGeAQfJcStJo,1289
179
+ triton/tools/extra/cuda/compile.c,sha256=TdIENsqk6wrvv1C4Mk-sq9keXe3SJuMQcf0UpxmjNZk,2153
180
+ triton/tools/extra/cuda/compile.h,sha256=n9QKIFZTL4RSsiXtAxBP9XGSnxjyaevQQ9bBpwDsvAg,332
181
+ triton_windows-3.4.0.post20.dist-info/licenses/LICENSE,sha256=kmQPuXIi_Qppj_KM4MN4LBcmI_jWxgm1V2NqgPKPuUY,1132
182
+ triton_windows-3.4.0.post20.dist-info/METADATA,sha256=XVQISF1LWaRTh_mbQoa1OXk_1uhmigdfEfWJ2whPIPc,1794
183
+ triton_windows-3.4.0.post20.dist-info/WHEEL,sha256=qV0EIPljj1XC_vuSatRWjn02nZIz3N1t8jsZz7HBr2U,101
184
+ triton_windows-3.4.0.post20.dist-info/entry_points.txt,sha256=cztF9ZYXxoMhibI_OttiKCl1EBP2LQaV8naJ-BcuES4,76
185
+ triton_windows-3.4.0.post20.dist-info/top_level.txt,sha256=WBiIZyv6n9Y7MIh-HPHSv2w1RDk7EFL__7ZgQRrmHYs,7
186
+ triton_windows-3.4.0.post20.dist-info/RECORD,,
@@ -0,0 +1,3 @@
1
+ [triton.backends]
2
+ amd = triton.backends.amd
3
+ nvidia = triton.backends.nvidia
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright 2018-2020 Philippe Tillet
3
+ * Copyright 2020-2022 OpenAI
4
+ *
5
+ * Permission is hereby granted, free of charge, to any person obtaining
6
+ * a copy of this software and associated documentation files
7
+ * (the "Software"), to deal in the Software without restriction,
8
+ * including without limitation the rights to use, copy, modify, merge,
9
+ * publish, distribute, sublicense, and/or sell copies of the Software,
10
+ * and to permit persons to whom the Software is furnished to do so,
11
+ * subject to the following conditions:
12
+ *
13
+ * The above copyright notice and this permission notice shall be
14
+ * included in all copies or substantial portions of the Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
+ * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20
+ * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21
+ * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22
+ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
+ */
@@ -0,0 +1 @@
1
+ triton
@@ -1,358 +0,0 @@
1
- /*
2
- Copyright (c) 2015 - 2023 Advanced Micro Devices, Inc. All rights reserved.
3
-
4
- Permission is hereby granted, free of charge, to any person obtaining a copy
5
- of this software and associated documentation files (the "Software"), to deal
6
- in the Software without restriction, including without limitation the rights
7
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- copies of the Software, and to permit persons to whom the Software is
9
- furnished to do so, subject to the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be included in
12
- all copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
- THE SOFTWARE.
21
- */
22
-
23
- #ifndef HIP_INCLUDE_HIP_AMD_DETAIL_CHANNEL_DESCRIPTOR_H
24
- #define HIP_INCLUDE_HIP_AMD_DETAIL_CHANNEL_DESCRIPTOR_H
25
-
26
- #if !defined(__HIPCC_RTC__)
27
- #include <hip/hip_common.h>
28
- #include <hip/driver_types.h>
29
- #include <hip/amd_detail/amd_hip_vector_types.h>
30
- #endif
31
-
32
- #ifdef __cplusplus
33
-
34
- extern "C" HIP_PUBLIC_API
35
- hipChannelFormatDesc hipCreateChannelDesc(int x, int y, int z, int w, hipChannelFormatKind f);
36
-
37
- static inline hipChannelFormatDesc hipCreateChannelDescHalf() {
38
- int e = (int)sizeof(unsigned short) * 8;
39
- return hipCreateChannelDesc(e, 0, 0, 0, hipChannelFormatKindFloat);
40
- }
41
-
42
- static inline hipChannelFormatDesc hipCreateChannelDescHalf1() {
43
- int e = (int)sizeof(unsigned short) * 8;
44
- return hipCreateChannelDesc(e, 0, 0, 0, hipChannelFormatKindFloat);
45
- }
46
-
47
- static inline hipChannelFormatDesc hipCreateChannelDescHalf2() {
48
- int e = (int)sizeof(unsigned short) * 8;
49
- return hipCreateChannelDesc(e, e, 0, 0, hipChannelFormatKindFloat);
50
- }
51
-
52
- static inline hipChannelFormatDesc hipCreateChannelDescHalf4() {
53
- int e = (int)sizeof(unsigned short) * 8;
54
- return hipCreateChannelDesc(e, e, e, e, hipChannelFormatKindFloat);
55
- }
56
-
57
- template <typename T>
58
- static inline hipChannelFormatDesc hipCreateChannelDesc() {
59
- return hipCreateChannelDesc(0, 0, 0, 0, hipChannelFormatKindNone);
60
- }
61
-
62
- template <>
63
- inline hipChannelFormatDesc hipCreateChannelDesc<char>() {
64
- int e = (int)sizeof(char) * 8;
65
- return hipCreateChannelDesc(e, 0, 0, 0, hipChannelFormatKindSigned);
66
- }
67
-
68
- template <>
69
- inline hipChannelFormatDesc hipCreateChannelDesc<signed char>() {
70
- int e = (int)sizeof(signed char) * 8;
71
- return hipCreateChannelDesc(e, 0, 0, 0, hipChannelFormatKindSigned);
72
- }
73
-
74
- template <>
75
- inline hipChannelFormatDesc hipCreateChannelDesc<unsigned char>() {
76
- int e = (int)sizeof(unsigned char) * 8;
77
- return hipCreateChannelDesc(e, 0, 0, 0, hipChannelFormatKindUnsigned);
78
- }
79
-
80
- template <>
81
- inline hipChannelFormatDesc hipCreateChannelDesc<uchar1>() {
82
- int e = (int)sizeof(unsigned char) * 8;
83
- return hipCreateChannelDesc(e, 0, 0, 0, hipChannelFormatKindUnsigned);
84
- }
85
-
86
- template <>
87
- inline hipChannelFormatDesc hipCreateChannelDesc<char1>() {
88
- int e = (int)sizeof(signed char) * 8;
89
- return hipCreateChannelDesc(e, 0, 0, 0, hipChannelFormatKindSigned);
90
- }
91
-
92
- template <>
93
- inline hipChannelFormatDesc hipCreateChannelDesc<uchar2>() {
94
- int e = (int)sizeof(unsigned char) * 8;
95
- return hipCreateChannelDesc(e, e, 0, 0, hipChannelFormatKindUnsigned);
96
- }
97
-
98
- template <>
99
- inline hipChannelFormatDesc hipCreateChannelDesc<char2>() {
100
- int e = (int)sizeof(signed char) * 8;
101
- return hipCreateChannelDesc(e, e, 0, 0, hipChannelFormatKindSigned);
102
- }
103
-
104
- #ifndef __GNUC__ // vector3 is the same as vector4
105
- template <>
106
- inline hipChannelFormatDesc hipCreateChannelDesc<uchar3>() {
107
- int e = (int)sizeof(unsigned char) * 8;
108
- return hipCreateChannelDesc(e, e, e, 0, hipChannelFormatKindUnsigned);
109
- }
110
-
111
- template <>
112
- inline hipChannelFormatDesc hipCreateChannelDesc<char3>() {
113
- int e = (int)sizeof(signed char) * 8;
114
- return hipCreateChannelDesc(e, e, e, 0, hipChannelFormatKindSigned);
115
- }
116
- #endif
117
-
118
- template <>
119
- inline hipChannelFormatDesc hipCreateChannelDesc<uchar4>() {
120
- int e = (int)sizeof(unsigned char) * 8;
121
- return hipCreateChannelDesc(e, e, e, e, hipChannelFormatKindUnsigned);
122
- }
123
-
124
- template <>
125
- inline hipChannelFormatDesc hipCreateChannelDesc<char4>() {
126
- int e = (int)sizeof(signed char) * 8;
127
- return hipCreateChannelDesc(e, e, e, e, hipChannelFormatKindSigned);
128
- }
129
-
130
- template <>
131
- inline hipChannelFormatDesc hipCreateChannelDesc<unsigned short>() {
132
- int e = (int)sizeof(unsigned short) * 8;
133
- return hipCreateChannelDesc(e, 0, 0, 0, hipChannelFormatKindUnsigned);
134
- }
135
-
136
- template <>
137
- inline hipChannelFormatDesc hipCreateChannelDesc<signed short>() {
138
- int e = (int)sizeof(signed short) * 8;
139
- return hipCreateChannelDesc(e, 0, 0, 0, hipChannelFormatKindSigned);
140
- }
141
-
142
- template <>
143
- inline hipChannelFormatDesc hipCreateChannelDesc<ushort1>() {
144
- int e = (int)sizeof(unsigned short) * 8;
145
- return hipCreateChannelDesc(e, 0, 0, 0, hipChannelFormatKindUnsigned);
146
- }
147
-
148
- template <>
149
- inline hipChannelFormatDesc hipCreateChannelDesc<short1>() {
150
- int e = (int)sizeof(signed short) * 8;
151
- return hipCreateChannelDesc(e, 0, 0, 0, hipChannelFormatKindSigned);
152
- }
153
-
154
- template <>
155
- inline hipChannelFormatDesc hipCreateChannelDesc<ushort2>() {
156
- int e = (int)sizeof(unsigned short) * 8;
157
- return hipCreateChannelDesc(e, e, 0, 0, hipChannelFormatKindUnsigned);
158
- }
159
-
160
- template <>
161
- inline hipChannelFormatDesc hipCreateChannelDesc<short2>() {
162
- int e = (int)sizeof(signed short) * 8;
163
- return hipCreateChannelDesc(e, e, 0, 0, hipChannelFormatKindSigned);
164
- }
165
-
166
- #ifndef __GNUC__
167
- template <>
168
- inline hipChannelFormatDesc hipCreateChannelDesc<ushort3>() {
169
- int e = (int)sizeof(unsigned short) * 8;
170
- return hipCreateChannelDesc(e, e, e, 0, hipChannelFormatKindUnsigned);
171
- }
172
-
173
- template <>
174
- inline hipChannelFormatDesc hipCreateChannelDesc<short3>() {
175
- int e = (int)sizeof(signed short) * 8;
176
- return hipCreateChannelDesc(e, e, e, 0, hipChannelFormatKindSigned);
177
- }
178
- #endif
179
-
180
- template <>
181
- inline hipChannelFormatDesc hipCreateChannelDesc<ushort4>() {
182
- int e = (int)sizeof(unsigned short) * 8;
183
- return hipCreateChannelDesc(e, e, e, e, hipChannelFormatKindUnsigned);
184
- }
185
-
186
- template <>
187
- inline hipChannelFormatDesc hipCreateChannelDesc<short4>() {
188
- int e = (int)sizeof(signed short) * 8;
189
- return hipCreateChannelDesc(e, e, e, e, hipChannelFormatKindSigned);
190
- }
191
-
192
- template <>
193
- inline hipChannelFormatDesc hipCreateChannelDesc<unsigned int>() {
194
- int e = (int)sizeof(unsigned int) * 8;
195
- return hipCreateChannelDesc(e, 0, 0, 0, hipChannelFormatKindUnsigned);
196
- }
197
-
198
- template <>
199
- inline hipChannelFormatDesc hipCreateChannelDesc<signed int>() {
200
- int e = (int)sizeof(signed int) * 8;
201
- return hipCreateChannelDesc(e, 0, 0, 0, hipChannelFormatKindSigned);
202
- }
203
-
204
- template <>
205
- inline hipChannelFormatDesc hipCreateChannelDesc<uint1>() {
206
- int e = (int)sizeof(unsigned int) * 8;
207
- return hipCreateChannelDesc(e, 0, 0, 0, hipChannelFormatKindUnsigned);
208
- }
209
-
210
- template <>
211
- inline hipChannelFormatDesc hipCreateChannelDesc<int1>() {
212
- int e = (int)sizeof(signed int) * 8;
213
- return hipCreateChannelDesc(e, 0, 0, 0, hipChannelFormatKindSigned);
214
- }
215
-
216
- template <>
217
- inline hipChannelFormatDesc hipCreateChannelDesc<uint2>() {
218
- int e = (int)sizeof(unsigned int) * 8;
219
- return hipCreateChannelDesc(e, e, 0, 0, hipChannelFormatKindUnsigned);
220
- }
221
-
222
- template <>
223
- inline hipChannelFormatDesc hipCreateChannelDesc<int2>() {
224
- int e = (int)sizeof(signed int) * 8;
225
- return hipCreateChannelDesc(e, e, 0, 0, hipChannelFormatKindSigned);
226
- }
227
-
228
- #ifndef __GNUC__
229
- template <>
230
- inline hipChannelFormatDesc hipCreateChannelDesc<uint3>() {
231
- int e = (int)sizeof(unsigned int) * 8;
232
- return hipCreateChannelDesc(e, e, e, 0, hipChannelFormatKindUnsigned);
233
- }
234
-
235
- template <>
236
- inline hipChannelFormatDesc hipCreateChannelDesc<int3>() {
237
- int e = (int)sizeof(signed int) * 8;
238
- return hipCreateChannelDesc(e, e, e, 0, hipChannelFormatKindSigned);
239
- }
240
- #endif
241
-
242
- template <>
243
- inline hipChannelFormatDesc hipCreateChannelDesc<uint4>() {
244
- int e = (int)sizeof(unsigned int) * 8;
245
- return hipCreateChannelDesc(e, e, e, e, hipChannelFormatKindUnsigned);
246
- }
247
-
248
- template <>
249
- inline hipChannelFormatDesc hipCreateChannelDesc<int4>() {
250
- int e = (int)sizeof(signed int) * 8;
251
- return hipCreateChannelDesc(e, e, e, e, hipChannelFormatKindSigned);
252
- }
253
-
254
- template <>
255
- inline hipChannelFormatDesc hipCreateChannelDesc<float>() {
256
- int e = (int)sizeof(float) * 8;
257
- return hipCreateChannelDesc(e, 0, 0, 0, hipChannelFormatKindFloat);
258
- }
259
-
260
- template <>
261
- inline hipChannelFormatDesc hipCreateChannelDesc<float1>() {
262
- int e = (int)sizeof(float) * 8;
263
- return hipCreateChannelDesc(e, 0, 0, 0, hipChannelFormatKindFloat);
264
- }
265
-
266
- template <>
267
- inline hipChannelFormatDesc hipCreateChannelDesc<float2>() {
268
- int e = (int)sizeof(float) * 8;
269
- return hipCreateChannelDesc(e, e, 0, 0, hipChannelFormatKindFloat);
270
- }
271
-
272
- #ifndef __GNUC__
273
- template <>
274
- inline hipChannelFormatDesc hipCreateChannelDesc<float3>() {
275
- int e = (int)sizeof(float) * 8;
276
- return hipCreateChannelDesc(e, e, e, 0, hipChannelFormatKindFloat);
277
- }
278
- #endif
279
-
280
- template <>
281
- inline hipChannelFormatDesc hipCreateChannelDesc<float4>() {
282
- int e = (int)sizeof(float) * 8;
283
- return hipCreateChannelDesc(e, e, e, e, hipChannelFormatKindFloat);
284
- }
285
-
286
- #if !defined(__LP64__)
287
-
288
- template <>
289
- inline hipChannelFormatDesc hipCreateChannelDesc<unsigned long>() {
290
- int e = (int)sizeof(unsigned long) * 8;
291
- return hipCreateChannelDesc(e, 0, 0, 0, hipChannelFormatKindUnsigned);
292
- }
293
-
294
- template <>
295
- inline hipChannelFormatDesc hipCreateChannelDesc<signed long>() {
296
- int e = (int)sizeof(signed long) * 8;
297
- return hipCreateChannelDesc(e, 0, 0, 0, hipChannelFormatKindSigned);
298
- }
299
-
300
- template <>
301
- inline hipChannelFormatDesc hipCreateChannelDesc<ulong1>() {
302
- int e = (int)sizeof(unsigned long) * 8;
303
- return hipCreateChannelDesc(e, 0, 0, 0, hipChannelFormatKindUnsigned);
304
- }
305
-
306
- template <>
307
- inline hipChannelFormatDesc hipCreateChannelDesc<long1>() {
308
- int e = (int)sizeof(signed long) * 8;
309
- return hipCreateChannelDesc(e, 0, 0, 0, hipChannelFormatKindSigned);
310
- }
311
-
312
- template <>
313
- inline hipChannelFormatDesc hipCreateChannelDesc<ulong2>() {
314
- int e = (int)sizeof(unsigned long) * 8;
315
- return hipCreateChannelDesc(e, e, 0, 0, hipChannelFormatKindUnsigned);
316
- }
317
-
318
- template <>
319
- inline hipChannelFormatDesc hipCreateChannelDesc<long2>() {
320
- int e = (int)sizeof(signed long) * 8;
321
- return hipCreateChannelDesc(e, e, 0, 0, hipChannelFormatKindSigned);
322
- }
323
-
324
- #ifndef __GNUC__
325
- template <>
326
- inline hipChannelFormatDesc hipCreateChannelDesc<ulong3>() {
327
- int e = (int)sizeof(unsigned long) * 8;
328
- return hipCreateChannelDesc(e, e, e, 0, hipChannelFormatKindUnsigned);
329
- }
330
-
331
- template <>
332
- inline hipChannelFormatDesc hipCreateChannelDesc<long3>() {
333
- int e = (int)sizeof(signed long) * 8;
334
- return hipCreateChannelDesc(e, e, e, 0, hipChannelFormatKindSigned);
335
- }
336
- #endif
337
-
338
- template <>
339
- inline hipChannelFormatDesc hipCreateChannelDesc<ulong4>() {
340
- int e = (int)sizeof(unsigned long) * 8;
341
- return hipCreateChannelDesc(e, e, e, e, hipChannelFormatKindUnsigned);
342
- }
343
-
344
- template <>
345
- inline hipChannelFormatDesc hipCreateChannelDesc<long4>() {
346
- int e = (int)sizeof(signed long) * 8;
347
- return hipCreateChannelDesc(e, e, e, e, hipChannelFormatKindSigned);
348
- }
349
- #endif /* !__LP64__ */
350
-
351
- #else
352
-
353
- struct hipChannelFormatDesc hipCreateChannelDesc(int x, int y, int z, int w,
354
- enum hipChannelFormatKind f);
355
-
356
- #endif /* __cplusplus */
357
-
358
- #endif /* !HIP_INCLUDE_HIP_AMD_DETAIL_CHANNEL_DESCRIPTOR_H */