Skip to content

Commit 42372fc

Browse files
author
ericjunwei
committed
ADLX SDK v1.1
1 parent d2b8200 commit 42372fc

File tree

2,709 files changed

+28529
-26760
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,709 files changed

+28529
-26760
lines changed

SDK/ADLXHelper/Windows/C/ADLXHelper.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// Copyright (c) 2021 - 2022 Advanced Micro Devices, Inc. All rights reserved.
2+
// Copyright (c) 2021 - 2023 Advanced Micro Devices, Inc. All rights reserved.
33
//
44
//-------------------------------------------------------------------------------------------------
55
#include "ADLXHelper.h"

SDK/ADLXHelper/Windows/C/ADLXHelper.h

+20-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// Copyright (c) 2021 - 2022 Advanced Micro Devices, Inc. All rights reserved.
2+
// Copyright (c) 2021 - 2023 Advanced Micro Devices, Inc. All rights reserved.
33
//
44
//-------------------------------------------------------------------------------------------------
55

@@ -23,10 +23,12 @@
2323
* N/A
2424
*
2525
* @retvalues
26+
* @ENG_START_DOX
2627
* If __ADLXHelper_Initialize__ is successfully executed, __ADLX_OK__ is returned.<br>
2728
* If __ADLXHelper_Initialize__ is not successfully executed, an error code is returned.<br>
2829
* If ADLX was previously successfully initialized with any of the initialization functions, __ADLX_ALREADY_INITIALIZED__ is returned.<br>
2930
* Refer to @ref ADLX_RESULT for success codes and error codes.
31+
* @ENG_END_DOX
3032
*
3133
* @detaileddesc
3234
* @ENG_START_DOX
@@ -53,10 +55,12 @@ ADLX_RESULT ADLXHelper_Initialize();
5355
* N/A
5456
*
5557
* @retvalues
58+
* @ENG_START_DOX
5659
* If __ADLXHelper_InitializeWithIncompatibleDriver__ is successfully executed, __ADLX_OK__ is returned.<br>
5760
* If __ADLXHelper_InitializeWithIncompatibleDriver__ is not successfully executed, an error code is returned.<br>
5861
* If ADLX was previously successfully initialized with any of the initialization functions, __ADLX_ALREADY_INITIALIZED__ is returned.<br>
5962
* Refer to @ref ADLX_RESULT for success codes and error codes.<br>
63+
* @ENG_END_DOX
6064
*
6165
* @detaileddesc
6266
* @ENG_START_DOX
@@ -84,10 +88,12 @@ ADLX_RESULT ADLXHelper_InitializeWithIncompatibleDriver();
8488
* @paramrow{2.,[in],adlMainMemoryFree,@ref ADLX_ADL_Main_Memory_Free,@ENG_START_DOX The callback handler of the memory deallocation function. @ENG_END_DOX}
8589
*
8690
* @retvalues
91+
* @ENG_START_DOX
8792
* If __ADLXHelper_InitializeWithCallerAdl__ is successfully executed, __ADLX_OK__ is returned.<br>
8893
* If __ADLXHelper_InitializeWithCallerAdl__ is not successfully executed, an error code is returned.<br>
8994
* If ADLX was previously successfully initialized with any of the Initialize versions, __ADLX_ALREADY_INITIALIZED__ is returned.<br>
9095
* Refer to @ref ADLX_RESULT for success codes and error codes.<br>
96+
* @ENG_END_DOX
9197
*
9298
* @detaileddesc
9399
* @ENG_START_DOX
@@ -116,9 +122,11 @@ ADLX_RESULT ADLXHelper_InitializeWithCallerAdl (adlx_handle adlConte
116122
* N/A
117123
*
118124
* @retvalues
125+
* @ENG_START_DOX
119126
* If __ADLXHelper_Terminate__ is successfully executed, __ADLX_OK__ is returned.<br>
120127
* If __ADLXHelper_Terminate__ is not successfully executed, an error code is returned.<br>
121128
* Refer to @ref ADLX_RESULT for success codes and error codes.
129+
* @ENG_END_DOX
122130
*
123131
* @detaileddesc
124132
* @ENG_START_DOX
@@ -146,8 +154,11 @@ ADLX_RESULT ADLXHelper_Terminate();
146154
* N/A
147155
*
148156
* @retvalues
157+
* @ENG_START_DOX
149158
* If ADLX was successfully initialized before this function call, the @ref DOX_IADLXSystem interface is returned.<br>
150159
* If ADLX was not successfully initialized, __nullptr__ is returned.
160+
* @ENG_END_DOX
161+
*
151162
* @requirements
152163
* @DetailsTable{#include "ADLXHelper/Windows/C/ADLXHelper.h", @ADLX_First_Ver}
153164
*/
@@ -167,11 +178,13 @@ IADLXSystem* ADLXHelper_GetSystemServices ();
167178
* N/A
168179
*
169180
* @retvalues
181+
* @ENG_START_DOX
170182
* If ADLX was successfully initialized with ADL, a valid pointer of the @ref DOX_IADLMapping interface is returned.<br>
171183
* If ADLX was initialized under any of the following circumstances, __nullptr__ is returned.<br>
172184
* - ADLX initialization was with other initialization methods.<br>
173185
* - ADLX initialization was failed.<br>
174186
* - ADLX initialization was not called.<br>
187+
* @ENG_END_DOX
175188
*
176189
* @detaileddesc
177190
* @ENG_START_DOX
@@ -197,7 +210,10 @@ IADLMapping* ADLXHelper_GetAdlMapping();
197210
* N/A
198211
*
199212
* @retvalues
213+
* @ENG_START_DOX
200214
* The full version of ADLX.
215+
* @ENG_END_DOX
216+
*
201217
* @requirements
202218
* @DetailsTable{#include "ADLXHelper/Windows/C/ADLXHelper.h", @ADLX_First_Ver}
203219
*/
@@ -217,7 +233,10 @@ adlx_uint64 ADLXHelper_QueryFullVersion();
217233
* N/A
218234
*
219235
* @retvalues
236+
* @ENG_START_DOX
220237
* The version of ADLX.
238+
* @ENG_END_DOX
239+
*
221240
* @requirements
222241
* @DetailsTable{#include "ADLXHelper/Windows/C/ADLXHelper.h", @ADLX_First_Ver}
223242
*/

SDK/ADLXHelper/Windows/Cpp/ADLXHelper.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// Copyright (c) 2021 - 2022 Advanced Micro Devices, Inc. All rights reserved.
2+
// Copyright (c) 2021 - 2023 Advanced Micro Devices, Inc. All rights reserved.
33
//
44
//-------------------------------------------------------------------------------------------------
55

SDK/ADLXHelper/Windows/Cpp/ADLXHelper.h

+29-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// Copyright (c) 2021 - 2022 Advanced Micro Devices, Inc. All rights reserved.
2+
// Copyright (c) 2021 - 2023 Advanced Micro Devices, Inc. All rights reserved.
33
//
44
//-------------------------------------------------------------------------------------------------
55

@@ -27,7 +27,10 @@ class ADLXHelper
2727
* N/A
2828
*
2929
* @retvalues
30+
* @ENG_START_DOX
3031
* An ADLXHelper object.
32+
* @ENG_END_DOX
33+
*
3134
* @requirements
3235
* @DetailsTable{#include "ADLXHelper/Windows/Cpp/ADLXHelper.h", @ADLX_First_Ver}
3336
*/
@@ -53,6 +56,7 @@ class ADLXHelper
5356
* @ENG_START_DOX
5457
* @details This method calls @ref page_cppHelpTerminate.
5558
* @ENG_END_DOX
59+
*
5660
* @requirements
5761
* @DetailsTable{#include "ADLXHelper/Windows/Cpp/ADLXHelper.h", @ADLX_First_Ver}
5862
*/
@@ -75,10 +79,12 @@ class ADLXHelper
7579
* @paramrow{2.,[in],adlMainMemoryFree,@ref ADLX_ADL_Main_Memory_Free,@ENG_START_DOX The callback handler of the memory deallocation. @ENG_END_DOX}
7680
*
7781
* @retvalues
82+
* @ENG_START_DOX
7883
* If __InitializeWithCallerAdl__ is successfully executed, __ADLX_OK__ is returned.<br>
7984
* If __InitializeWithCallerAdl__ is not successfully executed, an error code is returned.<br>
8085
* If ADLX was previously successfully initialized with any of the Initialize versions, __ADLX_ALREADY_INITIALIZED__ is returned.<br>
8186
* Refer to @ref ADLX_RESULT for success codes and error codes.<br>
87+
* @ENG_END_DOX
8288
*
8389
* @detaileddesc
8490
* @ENG_START_DOX
@@ -108,15 +114,19 @@ class ADLXHelper
108114
* N/A
109115
*
110116
* @retvalues
117+
* @ENG_START_DOX
111118
* If __Initialize__ is successfully executed, __ADLX_OK__ is returned.<br>
112119
* If __Initialize__ is not successfully executed, an error code is returned.<br>
113120
* If ADLX was previously successfully initialized with any of the initialization functions, __ADLX_ALREADY_INITIALIZED__ is returned.<br>
114121
* Refer to @ref ADLX_RESULT for success codes and error codes.<br>
122+
* @ENG_END_DOX
115123
*
116124
* @detaileddesc
125+
* @ENG_START_DOX
117126
* @details
118127
* This method is used when an application does not use the ADL library and initializes ADLX with default parameters.<br>
119128
* For more information for initializing ADLX with default parameters, refer to @ref @adlx_gpu_support "ADLX GPU Support".<br>
129+
* @ENG_END_DOX
120130
*
121131
* @requirements
122132
* @DetailsTable{#include "ADLXHelper/Windows/Cpp/ADLXHelper.h", @ADLX_First_Ver}
@@ -137,15 +147,19 @@ class ADLXHelper
137147
* N/A
138148
*
139149
* @retvalues
150+
* @ENG_START_DOX
140151
* If __InitializeWithIncompatibleDriver__ is successfully executed, __ADLX_OK__ is returned.<br>
141152
* If __InitializeWithIncompatibleDriver__ is not successfully executed, an error code is returned.<br>
142153
* If ADLX was previously successfully initialized with any of the Initialize versions, __ADLX_ALREADY_INITIALIZED__ is returned.<br>
143154
* Refer to @ref ADLX_RESULT for success codes and error codes.<br>
155+
* @ENG_END_DOX
144156
*
145157
* @detaileddesc
158+
* @ENG_START_DOX
146159
* @details
147160
* This method is used when an application does not use the ADL library and initializes ADLX to consider AMD GPUs using legacy AMD graphics driver.<br>
148161
* For more information for initializing ADLX with a legacy driver, refer to @ref @adlx_gpu_support "ADLX GPU Support".<br>
162+
* @ENG_END_DOX
149163
*
150164
* @requirements
151165
* @DetailsTable{#include "ADLXHelper/Windows/Cpp/ADLXHelper.h", @ADLX_First_Ver}
@@ -170,14 +184,18 @@ class ADLXHelper
170184
* N/A
171185
*
172186
* @retvalues
187+
* @ENG_START_DOX
173188
* If __Terminate__ is successfully executed, __ADLX_OK__ is returned.<br>
174189
* If __Terminate__ is not successfully executed, an error code is returned.<br>
175190
* Refer to @ref ADLX_RESULT for success codes and error codes.
191+
* @ENG_END_DOX
176192
*
177193
* @detaileddesc
194+
* @ENG_START_DOX
178195
* @details
179196
* Any interface obtained from ADLX that is not released becomes invalid.<br>
180197
* Any attempt of calling ADLX interface after termination could result in errors such as exceptions or crashes.<br>
198+
* @ENG_END_DOX
181199
*
182200
* @requirements
183201
*
@@ -201,7 +219,9 @@ class ADLXHelper
201219
* N/A
202220
*
203221
* @retvalues
222+
* @ENG_START_DOX
204223
* The full version of ADLX.
224+
* @ENG_END_DOX
205225
*
206226
* @requirements
207227
* @DetailsTable{#include "ADLXHelper/Windows/Cpp/ADLXHelper.h", @ADLX_First_Ver}
@@ -222,7 +242,9 @@ class ADLXHelper
222242
* N/A
223243
*
224244
* @retvalues
245+
* @ENG_START_DOX
225246
* The version of ADLX.
247+
* @ENG_END_DOX
226248
*
227249
* @requirements
228250
* @DetailsTable{#include "ADLXHelper/Windows/Cpp/ADLXHelper.h", @ADLX_First_Ver}
@@ -243,8 +265,10 @@ class ADLXHelper
243265
* N/A
244266
*
245267
* @retvalues
268+
* @ENG_START_DOX
246269
* If ADLX was successfully initialized before this method call, the @ref DOX_IADLXSystem interface is returned.<br>
247270
* If ADLX was not successfully initialized, __nullptr__ is returned.
271+
* @ENG_END_DOX
248272
*
249273
* @requirements
250274
* @DetailsTable{#include "ADLXHelper/Windows/Cpp/ADLXHelper.h", @ADLX_First_Ver}
@@ -265,15 +289,19 @@ class ADLXHelper
265289
* N/A
266290
*
267291
* @retvalues
292+
* @ENG_START_DOX
268293
* If ADLX was successfully initialized with ADL, a valid pointer of the @ref DOX_IADLMapping interface is returned.<br>
269294
* If ADLX was initialized under any of the following circumstances, __nullptr__ is returned.<br>
270295
* - ADLX initialization was with other initialization methods.<br>
271296
* - ADLX initialization was failed.<br>
272297
* - ADLX initialization was not called.<br>
298+
* @ENG_END_DOX
273299
*
274300
* @detaileddesc
301+
* @ENG_START_DOX
275302
* @details
276303
* __GetAdlMapping__ is used to convert data between ADL and ADLX in applications where ADLX was initialized with @ref page_cppHelpInitializeWithCallerAdl.
304+
* @ENG_END_DOX
277305
*
278306
* @requirements
279307
* @DetailsTable{#include "ADLXHelper/Windows/Cpp/ADLXHelper.h", @ADLX_First_Ver}

SDK/Include/ADLX.h

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//
2-
// Copyright (c) 2021 - 2022 Advanced Micro Devices, Inc. All rights reserved.
2+
// Copyright (c) 2021 - 2023 Advanced Micro Devices, Inc. All rights reserved.
33
//
44
//-------------------------------------------------------------------------------------------------
55

@@ -187,17 +187,17 @@ extern "C"
187187
* If the full version is successfully returned, __ADLX_OK__ is returned.<br>
188188
* If the full version is not successfully returned, an error code is returned.<br>
189189
* Refer to @ref ADLX_RESULT for success codes and error codes.<br>
190-
* @ENG_END_DOX
191190
* @detaileddesc
192191
* The pointer of the function is returned by the @ref adlx_get_proc_address using the @ref ADLX_QUERY_FULL_VERSION_FUNCTION_NAME as the function name.
192+
* @ENG_END_DOX
193193
* @requirements
194194
* @DetailsTable{#include "ADLX.h", @ADLX_First_Ver}
195195
*/
196196

197197
/**
198198
* @typedef ADLXQueryFullVersion_Fn
199199
* @ingroup ADLXDefs
200-
* The typedef of QueryFullVersion function.
200+
* @ENG_START_DOX The typedef of QueryFullVersion function. @ENG_END_DOX
201201
* @definition
202202
* @codeStart
203203
* typedef @ref ADLX_RESULT (ADLX_CDECL_CALL *QueryFullVersion_Fn)(adlx_uint64* fullVersion)
@@ -223,17 +223,17 @@ extern "C"
223223
* If the version is successfully returned, __ADLX_OK__ is returned.<br>
224224
* If the version is not successfully returned, an error code is returned.<br>
225225
* Refer to @ref ADLX_RESULT for success codes and error codes.<br>
226-
* @ENG_END_DOX
227226
* @detaileddesc
228227
* The pointer of the function is returned by the @ref adlx_get_proc_address using the @ref ADLX_QUERY_VERSION_FUNCTION_NAME as the function name.
228+
* @ENG_END_DOX
229229
* @requirements
230230
* @DetailsTable{#include "ADLX.h", @ADLX_First_Ver}
231231
*/
232232

233233
/**
234234
* @typedef ADLXQueryVersion_Fn
235235
* @ingroup ADLXDefs
236-
* The typedef of QueryVersion function.
236+
* @ENG_START_DOX The typedef of QueryVersion function. @ENG_END_DOX
237237
* @definition
238238
* @codeStart
239239
* typedef @ref ADLX_RESULT (ADLX_CDECL_CALL *QueryVersion_Fn)(const char** version)
@@ -260,17 +260,17 @@ extern "C"
260260
* If ADLX was successfully initialized, __ADLX_OK__ is returned.<br>
261261
* If ADLX was not successfully initialized, an error code is returned.<br>
262262
* Refer to @ref ADLX_RESULT for success codes and error codes.<br>
263-
* @ENG_END_DOX
264263
* @detaileddesc
265264
* The pointer of the function is returned by the @ref adlx_get_proc_address using the @ref ADLX_INIT_FUNCTION_NAME or @ref ADLX_INIT_WITH_INCOMPATIBLE_DRIVER_FUNCTION_NAME as the function name.
265+
* @ENG_END_DOX
266266
* @requirements
267267
* @DetailsTable{#include "ADLX.h", @ADLX_First_Ver}
268268
*/
269269

270270
/**
271271
* @typedef ADLXInitialize_Fn
272272
* @ingroup ADLXDefs
273-
* The typedef of ADLXInitialize function.
273+
* @ENG_START_DOX The typedef of ADLXInitialize function. @ENG_END_DOX
274274
* @definition
275275
* @codeStart
276276
* typedef @ref ADLX_RESULT (ADLX_CDECL_CALL *ADLXInitialize_Fn)(adlx_uint64 version, @ref DOX_IADLXSystem** ppSystem)
@@ -300,17 +300,17 @@ extern "C"
300300
* If ADLX was successfully initialized, __ADLX_OK__ is returned.<br>
301301
* If ADLX was not successfully initialized, an error code is returned.<br>
302302
* Refer to @ref ADLX_RESULT for success codes and error codes.<br>
303-
* @ENG_END_DOX
304303
* @detaileddesc
305304
* The pointer of the function is returned by the @ref adlx_get_proc_address using the @ref ADLX_INIT_WITH_CALLER_ADL_FUNCTION_NAME as the function name.
305+
* @ENG_END_DOX
306306
* @requirements
307307
* @DetailsTable{#include "ADLX.h", @ADLX_First_Ver}
308308
*/
309309

310310
/**
311311
* @typedef ADLXInitializeWithCallerAdl_Fn
312312
* @ingroup ADLXDefs
313-
* The typedef of ADLXInitializeWithCallerAdl function.
313+
* @ENG_START_DOX The typedef of ADLXInitializeWithCallerAdl function. @ENG_END_DOX
314314
* @definition
315315
* @codeStart
316316
* typedef @ref ADLX_RESULT (ADLX_CDECL_CALL *ADLXInitializeWithCallerAdl_Fn)(adlx_uint64 version, @ref DOX_IADLXSystem** ppSystem, @ref DOX_IADLMapping** ppAdlMapping, adlx_handle adlContext, @ref ADLX_ADL_Main_Memory_Free adlMainMemoryFree)
@@ -336,17 +336,17 @@ extern "C"
336336
* If the function is successfully executed, __ADLX_OK__ is returned.<br>
337337
* If the function is not successfully executed, an error code is returned.<br>
338338
* Refer to @ref ADLX_RESULT for success codes and error codes.<br>
339-
* @ENG_END_DOX
340339
* @detaileddesc
341340
* The pointer of the function is returned by the @ref adlx_get_proc_address using the @ref ADLX_TERMINATE_FUNCTION_NAME as the function name.
341+
* @ENG_END_DOX
342342
* @requirements
343343
* @DetailsTable{#include "ADLX.h", @ADLX_First_Ver}
344344
*/
345345

346346
/**
347347
* @typedef ADLXTerminate_Fn
348348
* @ingroup ADLXDefs
349-
* The typedef of ADLXTerminate function.
349+
* @ENG_START_DOX The typedef of ADLXTerminate function. @ENG_END_DOX
350350
* @definition
351351
* @codeStart
352352
* typedef ADLX_RESULT (ADLX_CDECL_CALL *ADLXTerminate_Fn)()

0 commit comments

Comments
 (0)