triton-windows 3.3.1.post19__cp39-cp39-win_amd64.whl → 3.3.1.post21__cp39-cp39-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 (108) hide show
  1. triton/_C/libtriton.pyd +0 -0
  2. triton/backends/amd/driver.py +6 -1
  3. triton/backends/nvidia/compiler.py +1 -3
  4. triton/backends/nvidia/driver.py +7 -3
  5. triton/runtime/autotuner.py +2 -2
  6. triton/runtime/build.py +5 -5
  7. triton/windows_utils.py +11 -4
  8. {triton_windows-3.3.1.post19.dist-info → triton_windows-3.3.1.post21.dist-info}/METADATA +1 -1
  9. {triton_windows-3.3.1.post19.dist-info → triton_windows-3.3.1.post21.dist-info}/RECORD +11 -108
  10. triton/backends/amd/include/hip/amd_detail/amd_channel_descriptor.h +0 -358
  11. triton/backends/amd/include/hip/amd_detail/amd_device_functions.h +0 -1010
  12. triton/backends/amd/include/hip/amd_detail/amd_hip_atomic.h +0 -1638
  13. triton/backends/amd/include/hip/amd_detail/amd_hip_bf16.h +0 -1814
  14. triton/backends/amd/include/hip/amd_detail/amd_hip_bfloat16.h +0 -293
  15. triton/backends/amd/include/hip/amd_detail/amd_hip_common.h +0 -32
  16. triton/backends/amd/include/hip/amd_detail/amd_hip_complex.h +0 -174
  17. triton/backends/amd/include/hip/amd_detail/amd_hip_cooperative_groups.h +0 -835
  18. triton/backends/amd/include/hip/amd_detail/amd_hip_fp16.h +0 -1809
  19. triton/backends/amd/include/hip/amd_detail/amd_hip_fp8.h +0 -1391
  20. triton/backends/amd/include/hip/amd_detail/amd_hip_gl_interop.h +0 -108
  21. triton/backends/amd/include/hip/amd_detail/amd_hip_math_constants.h +0 -124
  22. triton/backends/amd/include/hip/amd_detail/amd_hip_runtime.h +0 -405
  23. triton/backends/amd/include/hip/amd_detail/amd_hip_runtime_pt_api.h +0 -196
  24. triton/backends/amd/include/hip/amd_detail/amd_hip_unsafe_atomics.h +0 -565
  25. triton/backends/amd/include/hip/amd_detail/amd_hip_vector_types.h +0 -2226
  26. triton/backends/amd/include/hip/amd_detail/amd_math_functions.h +0 -104
  27. triton/backends/amd/include/hip/amd_detail/amd_surface_functions.h +0 -244
  28. triton/backends/amd/include/hip/amd_detail/amd_warp_functions.h +0 -538
  29. triton/backends/amd/include/hip/amd_detail/amd_warp_sync_functions.h +0 -288
  30. triton/backends/amd/include/hip/amd_detail/concepts.hpp +0 -30
  31. triton/backends/amd/include/hip/amd_detail/device_library_decls.h +0 -133
  32. triton/backends/amd/include/hip/amd_detail/functional_grid_launch.hpp +0 -218
  33. triton/backends/amd/include/hip/amd_detail/grid_launch.h +0 -67
  34. triton/backends/amd/include/hip/amd_detail/grid_launch.hpp +0 -50
  35. triton/backends/amd/include/hip/amd_detail/grid_launch_GGL.hpp +0 -26
  36. triton/backends/amd/include/hip/amd_detail/helpers.hpp +0 -137
  37. triton/backends/amd/include/hip/amd_detail/hip_api_trace.hpp +0 -1446
  38. triton/backends/amd/include/hip/amd_detail/hip_assert.h +0 -101
  39. triton/backends/amd/include/hip/amd_detail/hip_cooperative_groups_helper.h +0 -242
  40. triton/backends/amd/include/hip/amd_detail/hip_fp16_gcc.h +0 -254
  41. triton/backends/amd/include/hip/amd_detail/hip_fp16_math_fwd.h +0 -96
  42. triton/backends/amd/include/hip/amd_detail/hip_ldg.h +0 -100
  43. triton/backends/amd/include/hip/amd_detail/hip_prof_str.h +0 -10570
  44. triton/backends/amd/include/hip/amd_detail/hip_runtime_prof.h +0 -78
  45. triton/backends/amd/include/hip/amd_detail/host_defines.h +0 -184
  46. triton/backends/amd/include/hip/amd_detail/hsa_helpers.hpp +0 -102
  47. triton/backends/amd/include/hip/amd_detail/macro_based_grid_launch.hpp +0 -798
  48. triton/backends/amd/include/hip/amd_detail/math_fwd.h +0 -698
  49. triton/backends/amd/include/hip/amd_detail/ockl_image.h +0 -177
  50. triton/backends/amd/include/hip/amd_detail/program_state.hpp +0 -107
  51. triton/backends/amd/include/hip/amd_detail/texture_fetch_functions.h +0 -491
  52. triton/backends/amd/include/hip/amd_detail/texture_indirect_functions.h +0 -478
  53. triton/backends/amd/include/hip/channel_descriptor.h +0 -39
  54. triton/backends/amd/include/hip/device_functions.h +0 -38
  55. triton/backends/amd/include/hip/driver_types.h +0 -468
  56. triton/backends/amd/include/hip/hip_bf16.h +0 -36
  57. triton/backends/amd/include/hip/hip_bfloat16.h +0 -44
  58. triton/backends/amd/include/hip/hip_common.h +0 -100
  59. triton/backends/amd/include/hip/hip_complex.h +0 -38
  60. triton/backends/amd/include/hip/hip_cooperative_groups.h +0 -46
  61. triton/backends/amd/include/hip/hip_deprecated.h +0 -95
  62. triton/backends/amd/include/hip/hip_ext.h +0 -161
  63. triton/backends/amd/include/hip/hip_fp16.h +0 -36
  64. triton/backends/amd/include/hip/hip_fp8.h +0 -33
  65. triton/backends/amd/include/hip/hip_gl_interop.h +0 -32
  66. triton/backends/amd/include/hip/hip_hcc.h +0 -24
  67. triton/backends/amd/include/hip/hip_math_constants.h +0 -36
  68. triton/backends/amd/include/hip/hip_profile.h +0 -27
  69. triton/backends/amd/include/hip/hip_runtime.h +0 -75
  70. triton/backends/amd/include/hip/hip_runtime_api.h +0 -9261
  71. triton/backends/amd/include/hip/hip_texture_types.h +0 -29
  72. triton/backends/amd/include/hip/hip_vector_types.h +0 -41
  73. triton/backends/amd/include/hip/hip_version.h +0 -17
  74. triton/backends/amd/include/hip/hiprtc.h +0 -421
  75. triton/backends/amd/include/hip/library_types.h +0 -78
  76. triton/backends/amd/include/hip/math_functions.h +0 -42
  77. triton/backends/amd/include/hip/surface_types.h +0 -63
  78. triton/backends/amd/include/hip/texture_types.h +0 -194
  79. triton/backends/amd/include/hsa/Brig.h +0 -1131
  80. triton/backends/amd/include/hsa/amd_hsa_common.h +0 -91
  81. triton/backends/amd/include/hsa/amd_hsa_elf.h +0 -462
  82. triton/backends/amd/include/hsa/amd_hsa_kernel_code.h +0 -269
  83. triton/backends/amd/include/hsa/amd_hsa_queue.h +0 -109
  84. triton/backends/amd/include/hsa/amd_hsa_signal.h +0 -80
  85. triton/backends/amd/include/hsa/hsa.h +0 -5738
  86. triton/backends/amd/include/hsa/hsa_amd_tool.h +0 -91
  87. triton/backends/amd/include/hsa/hsa_api_trace.h +0 -579
  88. triton/backends/amd/include/hsa/hsa_api_trace_version.h +0 -68
  89. triton/backends/amd/include/hsa/hsa_ext_amd.h +0 -3146
  90. triton/backends/amd/include/hsa/hsa_ext_finalize.h +0 -531
  91. triton/backends/amd/include/hsa/hsa_ext_image.h +0 -1454
  92. triton/backends/amd/include/hsa/hsa_ven_amd_aqlprofile.h +0 -488
  93. triton/backends/amd/include/hsa/hsa_ven_amd_loader.h +0 -667
  94. triton/backends/amd/include/hsa/hsa_ven_amd_pc_sampling.h +0 -416
  95. triton/backends/amd/include/roctracer/ext/prof_protocol.h +0 -107
  96. triton/backends/amd/include/roctracer/hip_ostream_ops.h +0 -4515
  97. triton/backends/amd/include/roctracer/hsa_ostream_ops.h +0 -1727
  98. triton/backends/amd/include/roctracer/hsa_prof_str.h +0 -3059
  99. triton/backends/amd/include/roctracer/roctracer.h +0 -779
  100. triton/backends/amd/include/roctracer/roctracer_ext.h +0 -81
  101. triton/backends/amd/include/roctracer/roctracer_hcc.h +0 -24
  102. triton/backends/amd/include/roctracer/roctracer_hip.h +0 -37
  103. triton/backends/amd/include/roctracer/roctracer_hsa.h +0 -112
  104. triton/backends/amd/include/roctracer/roctracer_plugin.h +0 -137
  105. triton/backends/amd/include/roctracer/roctracer_roctx.h +0 -67
  106. triton/backends/amd/include/roctracer/roctx.h +0 -229
  107. {triton_windows-3.3.1.post19.dist-info → triton_windows-3.3.1.post21.dist-info}/WHEEL +0 -0
  108. {triton_windows-3.3.1.post19.dist-info → triton_windows-3.3.1.post21.dist-info}/top_level.txt +0 -0
@@ -1,29 +0,0 @@
1
- /*
2
- Copyright (c) 2015 - 2021 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
-
24
- #ifndef HIP_INCLUDE_HIP_HIP_TEXTURE_TYPES_H
25
- #define HIP_INCLUDE_HIP_HIP_TEXTURE_TYPES_H
26
-
27
- #include <hip/texture_types.h>
28
-
29
- #endif
@@ -1,41 +0,0 @@
1
- /*
2
- Copyright (c) 2015 - 2021 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
- //! hip_vector_types.h : Defines the HIP vector types.
24
-
25
- #ifndef HIP_INCLUDE_HIP_HIP_VECTOR_TYPES_H
26
- #define HIP_INCLUDE_HIP_HIP_VECTOR_TYPES_H
27
-
28
- #include <hip/hip_common.h>
29
-
30
-
31
- #if defined(__HIP_PLATFORM_AMD__) && !defined(__HIP_PLATFORM_NVIDIA__)
32
- #if __cplusplus
33
- #include <hip/amd_detail/amd_hip_vector_types.h>
34
- #endif
35
- #elif !defined(__HIP_PLATFORM_AMD__) && defined(__HIP_PLATFORM_NVIDIA__)
36
- #include <vector_types.h>
37
- #else
38
- #error("Must define exactly one of __HIP_PLATFORM_AMD__ or __HIP_PLATFORM_NVIDIA__");
39
- #endif
40
-
41
- #endif
@@ -1,17 +0,0 @@
1
- // Auto-generated by cmake
2
-
3
- #ifndef HIP_VERSION_H
4
- #define HIP_VERSION_H
5
-
6
- #define HIP_VERSION_MAJOR 6
7
- #define HIP_VERSION_MINOR 2
8
- #define HIP_VERSION_PATCH 41134
9
- #define HIP_VERSION_GITHASH "65d174c3e"
10
- #define HIP_VERSION_BUILD_ID 0
11
- #define HIP_VERSION_BUILD_NAME ""
12
- #define HIP_VERSION (HIP_VERSION_MAJOR * 10000000 + HIP_VERSION_MINOR * 100000 + HIP_VERSION_PATCH)
13
-
14
- #define __HIP_HAS_GET_PCH 1
15
-
16
- #endif
17
-
@@ -1,421 +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
- #pragma once
23
-
24
- #include <hip/hip_common.h>
25
-
26
- #if !defined(__HIP_PLATFORM_AMD__) && defined(__HIP_PLATFORM_NVIDIA__)
27
- #include <hip/nvidia_detail/nvidia_hiprtc.h>
28
- #elif defined(__HIP_PLATFORM_AMD__) && !defined(__HIP_PLATFORM_NVIDIA__)
29
-
30
- #ifdef __cplusplus
31
- extern "C" {
32
- #endif /* __cplusplus */
33
-
34
- #include <stdlib.h>
35
-
36
- #if !defined(_WIN32)
37
- #pragma GCC visibility push(default)
38
- #endif
39
-
40
- /**
41
- *
42
- * @addtogroup GlobalDefs
43
- * @{
44
- *
45
- */
46
- /**
47
- * hiprtc error code
48
- */
49
- typedef enum hiprtcResult {
50
- HIPRTC_SUCCESS = 0, ///< Success
51
- HIPRTC_ERROR_OUT_OF_MEMORY = 1, ///< Out of memory
52
- HIPRTC_ERROR_PROGRAM_CREATION_FAILURE = 2, ///< Failed to create program
53
- HIPRTC_ERROR_INVALID_INPUT = 3, ///< Invalid input
54
- HIPRTC_ERROR_INVALID_PROGRAM = 4, ///< Invalid program
55
- HIPRTC_ERROR_INVALID_OPTION = 5, ///< Invalid option
56
- HIPRTC_ERROR_COMPILATION = 6, ///< Compilation error
57
- HIPRTC_ERROR_BUILTIN_OPERATION_FAILURE = 7, ///< Failed in builtin operation
58
- HIPRTC_ERROR_NO_NAME_EXPRESSIONS_AFTER_COMPILATION = 8, ///< No name expression after compilation
59
- HIPRTC_ERROR_NO_LOWERED_NAMES_BEFORE_COMPILATION = 9, ///< No lowered names before compilation
60
- HIPRTC_ERROR_NAME_EXPRESSION_NOT_VALID = 10, ///< Invalid name expression
61
- HIPRTC_ERROR_INTERNAL_ERROR = 11, ///< Internal error
62
- HIPRTC_ERROR_LINKING = 100 ///< Error in linking
63
- } hiprtcResult;
64
-
65
- /**
66
- * hiprtc JIT option
67
- */
68
-
69
- typedef enum hiprtcJIT_option {
70
- HIPRTC_JIT_MAX_REGISTERS = 0, ///< CUDA Only Maximum registers may be used in a thread, passed to compiler
71
- HIPRTC_JIT_THREADS_PER_BLOCK, ///< CUDA Only Number of thread per block
72
- HIPRTC_JIT_WALL_TIME, ///< CUDA Only Value for total wall clock time
73
- HIPRTC_JIT_INFO_LOG_BUFFER, ///< CUDA Only Pointer to the buffer with logged information
74
- HIPRTC_JIT_INFO_LOG_BUFFER_SIZE_BYTES, ///< CUDA Only Size of the buffer in bytes for logged info
75
- HIPRTC_JIT_ERROR_LOG_BUFFER, ///< CUDA Only Pointer to the buffer with logged error(s)
76
- HIPRTC_JIT_ERROR_LOG_BUFFER_SIZE_BYTES, ///< CUDA Only Size of the buffer in bytes for logged error(s)
77
- HIPRTC_JIT_OPTIMIZATION_LEVEL, ///< Value of optimization level for generated codes, acceptable options -O0, -O1, -O2, -O3
78
- HIPRTC_JIT_TARGET_FROM_HIPCONTEXT, ///< CUDA Only The target context, which is the default
79
- HIPRTC_JIT_TARGET, ///< CUDA Only JIT target
80
- HIPRTC_JIT_FALLBACK_STRATEGY, ///< CUDA Only Fallback strategy
81
- HIPRTC_JIT_GENERATE_DEBUG_INFO, ///< CUDA Only Generate debug information
82
- HIPRTC_JIT_LOG_VERBOSE, ///< CUDA Only Generate log verbose
83
- HIPRTC_JIT_GENERATE_LINE_INFO, ///< CUDA Only Generate line number information
84
- HIPRTC_JIT_CACHE_MODE, ///< CUDA Only Set cache mode
85
- HIPRTC_JIT_NEW_SM3X_OPT, ///< @deprecated CUDA Only New SM3X option.
86
- HIPRTC_JIT_FAST_COMPILE, ///< CUDA Only Set fast compile
87
- HIPRTC_JIT_GLOBAL_SYMBOL_NAMES, ///< CUDA Only Array of device symbol names to be relocated to the host
88
- HIPRTC_JIT_GLOBAL_SYMBOL_ADDRESS, ///< CUDA Only Array of host addresses to be relocated to the device
89
- HIPRTC_JIT_GLOBAL_SYMBOL_COUNT, ///< CUDA Only Number of symbol count.
90
- HIPRTC_JIT_LTO, ///< @deprecated CUDA Only Enable link-time optimization for device code
91
- HIPRTC_JIT_FTZ, ///< @deprecated CUDA Only Set single-precision denormals.
92
- HIPRTC_JIT_PREC_DIV, ///< @deprecated CUDA Only Set single-precision floating-point division and
93
- ///< reciprocals
94
- HIPRTC_JIT_PREC_SQRT, ///< @deprecated CUDA Only Set single-precision floating-point square root
95
- HIPRTC_JIT_FMA, ///< @deprecated CUDA Only Enable floating-point multiplies and adds/subtracts operations
96
- HIPRTC_JIT_NUM_OPTIONS, ///< Number of options
97
- HIPRTC_JIT_IR_TO_ISA_OPT_EXT = 10000, ///< Linker options to be passed on to compiler
98
- /// @note Only supported for the AMD platform.
99
- HIPRTC_JIT_IR_TO_ISA_OPT_COUNT_EXT, ///< Count of linker options to be passed on to
100
- ///< compiler @note Only supported for the AMD platform
101
- } hiprtcJIT_option;
102
-
103
- /**
104
- * hiprtc JIT input type
105
- */
106
- typedef enum hiprtcJITInputType {
107
- HIPRTC_JIT_INPUT_CUBIN = 0, ///< Input cubin
108
- HIPRTC_JIT_INPUT_PTX, ///< Input PTX
109
- HIPRTC_JIT_INPUT_FATBINARY, ///< Input fat binary
110
- HIPRTC_JIT_INPUT_OBJECT, ///< Input object
111
- HIPRTC_JIT_INPUT_LIBRARY, ///< Input library
112
- HIPRTC_JIT_INPUT_NVVM, ///< Input NVVM
113
- HIPRTC_JIT_NUM_LEGACY_INPUT_TYPES, ///< Number of legacy input type
114
- HIPRTC_JIT_INPUT_LLVM_BITCODE = 100, ///< LLVM bitcode or IR assembly
115
- HIPRTC_JIT_INPUT_LLVM_BUNDLED_BITCODE = 101, ///< LLVM bundled bitcode
116
- HIPRTC_JIT_INPUT_LLVM_ARCHIVES_OF_BUNDLED_BITCODE = 102, ///< LLVM archives of boundled bitcode
117
- HIPRTC_JIT_NUM_INPUT_TYPES = (HIPRTC_JIT_NUM_LEGACY_INPUT_TYPES + 3)
118
- } hiprtcJITInputType;
119
- /**
120
- * @}
121
- */
122
-
123
- /**
124
- * hiprtc link state
125
- *
126
- */
127
- typedef struct ihiprtcLinkState* hiprtcLinkState;
128
- /**
129
- * @ingroup Runtime
130
- *
131
- * @brief Returns text string message to explain the error which occurred
132
- *
133
- * @param [in] result code to convert to string.
134
- * @returns const char pointer to the NULL-terminated error string
135
- *
136
- * @warning In HIP, this function returns the name of the error,
137
- * if the hiprtc result is defined, it will return "Invalid HIPRTC error code"
138
- *
139
- * @see hiprtcResult
140
- */
141
- const char* hiprtcGetErrorString(hiprtcResult result);
142
-
143
- /**
144
- * @ingroup Runtime
145
- * @brief Sets the parameters as major and minor version.
146
- *
147
- * @param [out] major HIP Runtime Compilation major version.
148
- * @param [out] minor HIP Runtime Compilation minor version.
149
- *
150
- * @returns #HIPRTC_ERROR_INVALID_INPUT, #HIPRTC_SUCCESS
151
- *
152
- */
153
- hiprtcResult hiprtcVersion(int* major, int* minor);
154
-
155
- /**
156
- * hiprtc program
157
- *
158
- */
159
- typedef struct _hiprtcProgram* hiprtcProgram;
160
-
161
- /**
162
- * @ingroup Runtime
163
- * @brief Adds the given name exprssion to the runtime compilation program.
164
- *
165
- * @param [in] prog runtime compilation program instance.
166
- * @param [in] name_expression const char pointer to the name expression.
167
- * @returns #HIPRTC_SUCCESS
168
- *
169
- * If const char pointer is NULL, it will return #HIPRTC_ERROR_INVALID_INPUT.
170
- *
171
- * @see hiprtcResult
172
- */
173
- hiprtcResult hiprtcAddNameExpression(hiprtcProgram prog,
174
- const char* name_expression);
175
-
176
- /**
177
- * @ingroup Runtime
178
- * @brief Compiles the given runtime compilation program.
179
- *
180
- * @param [in] prog runtime compilation program instance.
181
- * @param [in] numOptions number of compiler options.
182
- * @param [in] options compiler options as const array of strins.
183
- * @returns #HIPRTC_SUCCESS
184
- *
185
- * If the compiler failed to build the runtime compilation program,
186
- * it will return #HIPRTC_ERROR_COMPILATION.
187
- *
188
- * @see hiprtcResult
189
- */
190
- hiprtcResult hiprtcCompileProgram(hiprtcProgram prog,
191
- int numOptions,
192
- const char** options);
193
-
194
- /**
195
- * @ingroup Runtime
196
- * @brief Creates an instance of hiprtcProgram with the given input parameters,
197
- * and sets the output hiprtcProgram prog with it.
198
- *
199
- * @param [in, out] prog runtime compilation program instance.
200
- * @param [in] src const char pointer to the program source.
201
- * @param [in] name const char pointer to the program name.
202
- * @param [in] numHeaders number of headers.
203
- * @param [in] headers array of strings pointing to headers.
204
- * @param [in] includeNames array of strings pointing to names included in program source.
205
- * @returns #HIPRTC_SUCCESS
206
- *
207
- * Any invalide input parameter, it will return #HIPRTC_ERROR_INVALID_INPUT
208
- * or #HIPRTC_ERROR_INVALID_PROGRAM.
209
- *
210
- * If failed to create the program, it will return #HIPRTC_ERROR_PROGRAM_CREATION_FAILURE.
211
- *
212
- * @see hiprtcResult
213
- */
214
- hiprtcResult hiprtcCreateProgram(hiprtcProgram* prog,
215
- const char* src,
216
- const char* name,
217
- int numHeaders,
218
- const char** headers,
219
- const char** includeNames);
220
-
221
- /**
222
- * @brief Destroys an instance of given hiprtcProgram.
223
- * @ingroup Runtime
224
- * @param [in] prog runtime compilation program instance.
225
- * @returns #HIPRTC_SUCCESS
226
- *
227
- * If prog is NULL, it will return #HIPRTC_ERROR_INVALID_INPUT.
228
- *
229
- * @see hiprtcResult
230
- */
231
- hiprtcResult hiprtcDestroyProgram(hiprtcProgram* prog);
232
-
233
- /**
234
- * @brief Gets the lowered (mangled) name from an instance of hiprtcProgram with the given input parameters,
235
- * and sets the output lowered_name with it.
236
- * @ingroup Runtime
237
- * @param [in] prog runtime compilation program instance.
238
- * @param [in] name_expression const char pointer to the name expression.
239
- * @param [in, out] lowered_name const char array to the lowered (mangled) name.
240
- * @returns #HIPRTC_SUCCESS
241
- *
242
- * If any invalide nullptr input parameters, it will return #HIPRTC_ERROR_INVALID_INPUT
243
- *
244
- * If name_expression is not found, it will return #HIPRTC_ERROR_NAME_EXPRESSION_NOT_VALID
245
- *
246
- * If failed to get lowered_name from the program, it will return #HIPRTC_ERROR_COMPILATION.
247
- *
248
- * @see hiprtcResult
249
- */
250
- hiprtcResult hiprtcGetLoweredName(hiprtcProgram prog,
251
- const char* name_expression,
252
- const char** lowered_name);
253
-
254
- /**
255
- * @brief Gets the log generated by the runtime compilation program instance.
256
- * @ingroup Runtime
257
- * @param [in] prog runtime compilation program instance.
258
- * @param [out] log memory pointer to the generated log.
259
- * @returns #HIPRTC_SUCCESS
260
- *
261
- * @see hiprtcResult
262
- */
263
- hiprtcResult hiprtcGetProgramLog(hiprtcProgram prog, char* log);
264
-
265
- /**
266
- * @brief Gets the size of log generated by the runtime compilation program instance.
267
- *
268
- * @param [in] prog runtime compilation program instance.
269
- * @param [out] logSizeRet size of generated log.
270
- * @returns #HIPRTC_SUCCESS
271
- *
272
- * @see hiprtcResult
273
- */
274
- hiprtcResult hiprtcGetProgramLogSize(hiprtcProgram prog,
275
- size_t* logSizeRet);
276
-
277
- /**
278
- * @brief Gets the pointer of compilation binary by the runtime compilation program instance.
279
- * @ingroup Runtime
280
- * @param [in] prog runtime compilation program instance.
281
- * @param [out] code char pointer to binary.
282
- * @returns #HIPRTC_SUCCESS
283
- *
284
- * @see hiprtcResult
285
- */
286
- hiprtcResult hiprtcGetCode(hiprtcProgram prog, char* code);
287
-
288
- /**
289
- * @brief Gets the size of compilation binary by the runtime compilation program instance.
290
- * @ingroup Runtime
291
- * @param [in] prog runtime compilation program instance.
292
- * @param [out] codeSizeRet the size of binary.
293
- * @returns #HIPRTC_SUCCESS
294
- *
295
- * @see hiprtcResult
296
- */
297
- hiprtcResult hiprtcGetCodeSize(hiprtcProgram prog, size_t* codeSizeRet);
298
-
299
- /**
300
- * @brief Gets the pointer of compiled bitcode by the runtime compilation program instance.
301
- *
302
- * @param [in] prog runtime compilation program instance.
303
- * @param [out] bitcode char pointer to bitcode.
304
- * @return HIPRTC_SUCCESS
305
- *
306
- * @see hiprtcResult
307
- */
308
- hiprtcResult hiprtcGetBitcode(hiprtcProgram prog, char* bitcode);
309
-
310
- /**
311
- * @brief Gets the size of compiled bitcode by the runtime compilation program instance.
312
- * @ingroup Runtime
313
- *
314
- * @param [in] prog runtime compilation program instance.
315
- * @param [out] bitcode_size the size of bitcode.
316
- * @returns #HIPRTC_SUCCESS
317
- *
318
- * @see hiprtcResult
319
- */
320
- hiprtcResult hiprtcGetBitcodeSize(hiprtcProgram prog, size_t* bitcode_size);
321
-
322
- /**
323
- * @brief Creates the link instance via hiprtc APIs.
324
- * @ingroup Runtime
325
- * @param [in] num_options Number of options
326
- * @param [in] option_ptr Array of options
327
- * @param [in] option_vals_pptr Array of option values cast to void*
328
- * @param [out] hip_link_state_ptr hiprtc link state created upon success
329
- *
330
- * @returns #HIPRTC_SUCCESS, #HIPRTC_ERROR_INVALID_INPUT, #HIPRTC_ERROR_INVALID_OPTION
331
- *
332
- * @see hiprtcResult
333
- */
334
- hiprtcResult hiprtcLinkCreate(unsigned int num_options, hiprtcJIT_option* option_ptr,
335
- void** option_vals_pptr, hiprtcLinkState* hip_link_state_ptr);
336
-
337
- /**
338
- * @brief Adds a file with bit code to be linked with options
339
- * @ingroup Runtime
340
- * @param [in] hip_link_state hiprtc link state
341
- * @param [in] input_type Type of the input data or bitcode
342
- * @param [in] file_path Path to the input file where bitcode is present
343
- * @param [in] num_options Size of the options
344
- * @param [in] options_ptr Array of options applied to this input
345
- * @param [in] option_values Array of option values cast to void*
346
- *
347
- * @returns #HIPRTC_SUCCESS
348
- *
349
- * If input values are invalid, it will
350
- * @return #HIPRTC_ERROR_INVALID_INPUT
351
- *
352
- * @see hiprtcResult
353
- */
354
-
355
- hiprtcResult hiprtcLinkAddFile(hiprtcLinkState hip_link_state, hiprtcJITInputType input_type,
356
- const char* file_path, unsigned int num_options,
357
- hiprtcJIT_option* options_ptr, void** option_values);
358
-
359
- /**
360
- * @brief Completes the linking of the given program.
361
- * @ingroup Runtime
362
- * @param [in] hip_link_state hiprtc link state
363
- * @param [in] input_type Type of the input data or bitcode
364
- * @param [in] image Input data which is null terminated
365
- * @param [in] image_size Size of the input data
366
- * @param [in] name Optional name for this input
367
- * @param [in] num_options Size of the options
368
- * @param [in] options_ptr Array of options applied to this input
369
- * @param [in] option_values Array of option values cast to void*
370
- *
371
- * @returns #HIPRTC_SUCCESS, #HIPRTC_ERROR_INVALID_INPUT
372
- *
373
- * If adding the file fails, it will
374
- * @return #HIPRTC_ERROR_PROGRAM_CREATION_FAILURE
375
- *
376
- * @see hiprtcResult
377
- */
378
-
379
- hiprtcResult hiprtcLinkAddData(hiprtcLinkState hip_link_state, hiprtcJITInputType input_type,
380
- void* image, size_t image_size, const char* name,
381
- unsigned int num_options, hiprtcJIT_option* options_ptr,
382
- void** option_values);
383
-
384
- /**
385
- * @brief Completes the linking of the given program.
386
- * @ingroup Runtime
387
- * @param [in] hip_link_state hiprtc link state
388
- * @param [out] bin_out Upon success, points to the output binary
389
- * @param [out] size_out Size of the binary is stored (optional)
390
- *
391
- * @returns #HIPRTC_SUCCESS
392
- *
393
- * If adding the data fails, it will
394
- * @return #HIPRTC_ERROR_LINKING
395
- *
396
- * @see hiprtcResult
397
- */
398
- hiprtcResult hiprtcLinkComplete(hiprtcLinkState hip_link_state, void** bin_out, size_t* size_out);
399
-
400
- /**
401
- * @brief Deletes the link instance via hiprtc APIs.
402
- * @ingroup Runtime
403
- * @param [in] hip_link_state link state instance
404
- *
405
- * @returns #HIPRTC_SUCCESS
406
- *
407
- * @see hiprtcResult
408
- */
409
- hiprtcResult hiprtcLinkDestroy(hiprtcLinkState hip_link_state);
410
-
411
- #if !defined(_WIN32)
412
- #pragma GCC visibility pop
413
- #endif
414
-
415
- #ifdef __cplusplus
416
- }
417
- #endif /* __cplusplus */
418
-
419
- #else
420
- #error("Must define exactly one of __HIP_PLATFORM_AMD__ or __HIP_PLATFORM_NVIDIA__");
421
- #endif
@@ -1,78 +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_LIBRARY_TYPES_H
24
- #define HIP_INCLUDE_HIP_LIBRARY_TYPES_H
25
-
26
- #if !defined(__HIPCC_RTC__)
27
- #include <hip/hip_common.h>
28
- #endif
29
-
30
- #if defined(__HIP_PLATFORM_AMD__) && !defined(__HIP_PLATFORM_NVIDIA__)
31
-
32
- typedef enum hipDataType {
33
- HIP_R_32F = 0,
34
- HIP_R_64F = 1,
35
- HIP_R_16F = 2,
36
- HIP_R_8I = 3,
37
- HIP_C_32F = 4,
38
- HIP_C_64F = 5,
39
- HIP_C_16F = 6,
40
- HIP_C_8I = 7,
41
- HIP_R_8U = 8,
42
- HIP_C_8U = 9,
43
- HIP_R_32I = 10,
44
- HIP_C_32I = 11,
45
- HIP_R_32U = 12,
46
- HIP_C_32U = 13,
47
- HIP_R_16BF = 14,
48
- HIP_C_16BF = 15,
49
- HIP_R_4I = 16,
50
- HIP_C_4I = 17,
51
- HIP_R_4U = 18,
52
- HIP_C_4U = 19,
53
- HIP_R_16I = 20,
54
- HIP_C_16I = 21,
55
- HIP_R_16U = 22,
56
- HIP_C_16U = 23,
57
- HIP_R_64I = 24,
58
- HIP_C_64I = 25,
59
- HIP_R_64U = 26,
60
- HIP_C_64U = 27,
61
- // HIP specific Data Types
62
- HIP_R_8F_E4M3_FNUZ = 1000,
63
- HIP_R_8F_E5M2_FNUZ = 1001
64
- } hipDataType;
65
-
66
- typedef enum hipLibraryPropertyType {
67
- HIP_LIBRARY_MAJOR_VERSION,
68
- HIP_LIBRARY_MINOR_VERSION,
69
- HIP_LIBRARY_PATCH_LEVEL
70
- } hipLibraryPropertyType;
71
-
72
- #elif !defined(__HIP_PLATFORM_AMD__) && defined(__HIP_PLATFORM_NVIDIA__)
73
- #include "library_types.h"
74
- #else
75
- #error("Must define exactly one of __HIP_PLATFORM_AMD__ or __HIP_PLATFORM_NVIDIA__");
76
- #endif
77
-
78
- #endif
@@ -1,42 +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_MATH_FUNCTIONS_H
24
- #define HIP_INCLUDE_HIP_MATH_FUNCTIONS_H
25
-
26
- // Some standard header files, these are included by hc.hpp and so want to make them avail on both
27
- // paths to provide a consistent include env and avoid "missing symbol" errors that only appears
28
- // on NVCC path:
29
-
30
- #if !defined(__HIPCC_RTC__)
31
- #include <hip/hip_common.h>
32
- #endif
33
-
34
- #if defined(__HIP_PLATFORM_AMD__) && !defined(__HIP_PLATFORM_NVIDIA__)
35
- #include <hip/amd_detail/amd_math_functions.h>
36
- #elif !defined(__HIP_PLATFORM_AMD__) && defined(__HIP_PLATFORM_NVIDIA__)
37
- //#include <hip/nvidia_detail/math_functions.h>
38
- #else
39
- #error("Must define exactly one of __HIP_PLATFORM_AMD__ or __HIP_PLATFORM_NVIDIA__");
40
- #endif
41
-
42
- #endif
@@ -1,63 +0,0 @@
1
- /*
2
- Copyright (c) 2022 - 2023 Advanced Micro Devices, Inc. All rights reserved.
3
- Permission is hereby granted, free of charge, to any person obtaining a copy
4
- of this software and associated documentation files (the "Software"), to deal
5
- in the Software without restriction, including without limitation the rights
6
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
- copies of the Software, and to permit persons to whom the Software is
8
- furnished to do so, subject to the following conditions:
9
- The above copyright notice and this permission notice shall be included in
10
- all copies or substantial portions of the Software.
11
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
17
- THE SOFTWARE.
18
- */
19
-
20
- /**
21
- * @file surface_types.h
22
- * @brief Defines surface types for HIP runtime.
23
- */
24
-
25
- #ifndef HIP_INCLUDE_HIP_SURFACE_TYPES_H
26
- #define HIP_INCLUDE_HIP_SURFACE_TYPES_H
27
-
28
- #if defined(__clang__)
29
- #pragma clang diagnostic push
30
- #pragma clang diagnostic ignored "-Wreserved-identifier"
31
- #endif
32
-
33
- #if !defined(__HIPCC_RTC__)
34
- #include <hip/driver_types.h>
35
- #endif
36
-
37
- /**
38
- * An opaque value that represents a hip surface object
39
- */
40
- struct __hip_surface;
41
- typedef struct __hip_surface* hipSurfaceObject_t;
42
-
43
- /**
44
- * hip surface reference
45
- */
46
- struct surfaceReference {
47
- hipSurfaceObject_t surfaceObject;
48
- };
49
-
50
- /**
51
- * hip surface boundary modes
52
- */
53
- enum hipSurfaceBoundaryMode {
54
- hipBoundaryModeZero = 0,
55
- hipBoundaryModeTrap = 1,
56
- hipBoundaryModeClamp = 2
57
- };
58
-
59
- #if defined(__clang__)
60
- #pragma clang diagnostic pop
61
- #endif
62
-
63
- #endif /* !HIP_INCLUDE_HIP_SURFACE_TYPES_H */