Skip to content

Commit

Permalink
ADLX SDK v1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ericjunwei committed Sep 27, 2023
1 parent d2b8200 commit 42372fc
Show file tree
Hide file tree
Showing 2,709 changed files with 28,529 additions and 26,760 deletions.
2 changes: 1 addition & 1 deletion SDK/ADLXHelper/Windows/C/ADLXHelper.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright (c) 2021 - 2022 Advanced Micro Devices, Inc. All rights reserved.
// Copyright (c) 2021 - 2023 Advanced Micro Devices, Inc. All rights reserved.
//
//-------------------------------------------------------------------------------------------------
#include "ADLXHelper.h"
Expand Down
21 changes: 20 additions & 1 deletion SDK/ADLXHelper/Windows/C/ADLXHelper.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright (c) 2021 - 2022 Advanced Micro Devices, Inc. All rights reserved.
// Copyright (c) 2021 - 2023 Advanced Micro Devices, Inc. All rights reserved.
//
//-------------------------------------------------------------------------------------------------

Expand All @@ -23,10 +23,12 @@
* N/A
*
* @retvalues
* @ENG_START_DOX
* If __ADLXHelper_Initialize__ is successfully executed, __ADLX_OK__ is returned.<br>
* If __ADLXHelper_Initialize__ is not successfully executed, an error code is returned.<br>
* If ADLX was previously successfully initialized with any of the initialization functions, __ADLX_ALREADY_INITIALIZED__ is returned.<br>
* Refer to @ref ADLX_RESULT for success codes and error codes.
* @ENG_END_DOX
*
* @detaileddesc
* @ENG_START_DOX
Expand All @@ -53,10 +55,12 @@ ADLX_RESULT ADLXHelper_Initialize();
* N/A
*
* @retvalues
* @ENG_START_DOX
* If __ADLXHelper_InitializeWithIncompatibleDriver__ is successfully executed, __ADLX_OK__ is returned.<br>
* If __ADLXHelper_InitializeWithIncompatibleDriver__ is not successfully executed, an error code is returned.<br>
* If ADLX was previously successfully initialized with any of the initialization functions, __ADLX_ALREADY_INITIALIZED__ is returned.<br>
* Refer to @ref ADLX_RESULT for success codes and error codes.<br>
* @ENG_END_DOX
*
* @detaileddesc
* @ENG_START_DOX
Expand Down Expand Up @@ -84,10 +88,12 @@ ADLX_RESULT ADLXHelper_InitializeWithIncompatibleDriver();
* @paramrow{2.,[in],adlMainMemoryFree,@ref ADLX_ADL_Main_Memory_Free,@ENG_START_DOX The callback handler of the memory deallocation function. @ENG_END_DOX}
*
* @retvalues
* @ENG_START_DOX
* If __ADLXHelper_InitializeWithCallerAdl__ is successfully executed, __ADLX_OK__ is returned.<br>
* If __ADLXHelper_InitializeWithCallerAdl__ is not successfully executed, an error code is returned.<br>
* If ADLX was previously successfully initialized with any of the Initialize versions, __ADLX_ALREADY_INITIALIZED__ is returned.<br>
* Refer to @ref ADLX_RESULT for success codes and error codes.<br>
* @ENG_END_DOX
*
* @detaileddesc
* @ENG_START_DOX
Expand Down Expand Up @@ -116,9 +122,11 @@ ADLX_RESULT ADLXHelper_InitializeWithCallerAdl (adlx_handle adlConte
* N/A
*
* @retvalues
* @ENG_START_DOX
* If __ADLXHelper_Terminate__ is successfully executed, __ADLX_OK__ is returned.<br>
* If __ADLXHelper_Terminate__ is not successfully executed, an error code is returned.<br>
* Refer to @ref ADLX_RESULT for success codes and error codes.
* @ENG_END_DOX
*
* @detaileddesc
* @ENG_START_DOX
Expand Down Expand Up @@ -146,8 +154,11 @@ ADLX_RESULT ADLXHelper_Terminate();
* N/A
*
* @retvalues
* @ENG_START_DOX
* If ADLX was successfully initialized before this function call, the @ref DOX_IADLXSystem interface is returned.<br>
* If ADLX was not successfully initialized, __nullptr__ is returned.
* @ENG_END_DOX
*
* @requirements
* @DetailsTable{#include "ADLXHelper/Windows/C/ADLXHelper.h", @ADLX_First_Ver}
*/
Expand All @@ -167,11 +178,13 @@ IADLXSystem* ADLXHelper_GetSystemServices ();
* N/A
*
* @retvalues
* @ENG_START_DOX
* If ADLX was successfully initialized with ADL, a valid pointer of the @ref DOX_IADLMapping interface is returned.<br>
* If ADLX was initialized under any of the following circumstances, __nullptr__ is returned.<br>
* - ADLX initialization was with other initialization methods.<br>
* - ADLX initialization was failed.<br>
* - ADLX initialization was not called.<br>
* @ENG_END_DOX
*
* @detaileddesc
* @ENG_START_DOX
Expand All @@ -197,7 +210,10 @@ IADLMapping* ADLXHelper_GetAdlMapping();
* N/A
*
* @retvalues
* @ENG_START_DOX
* The full version of ADLX.
* @ENG_END_DOX
*
* @requirements
* @DetailsTable{#include "ADLXHelper/Windows/C/ADLXHelper.h", @ADLX_First_Ver}
*/
Expand All @@ -217,7 +233,10 @@ adlx_uint64 ADLXHelper_QueryFullVersion();
* N/A
*
* @retvalues
* @ENG_START_DOX
* The version of ADLX.
* @ENG_END_DOX
*
* @requirements
* @DetailsTable{#include "ADLXHelper/Windows/C/ADLXHelper.h", @ADLX_First_Ver}
*/
Expand Down
2 changes: 1 addition & 1 deletion SDK/ADLXHelper/Windows/Cpp/ADLXHelper.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright (c) 2021 - 2022 Advanced Micro Devices, Inc. All rights reserved.
// Copyright (c) 2021 - 2023 Advanced Micro Devices, Inc. All rights reserved.
//
//-------------------------------------------------------------------------------------------------

Expand Down
30 changes: 29 additions & 1 deletion SDK/ADLXHelper/Windows/Cpp/ADLXHelper.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright (c) 2021 - 2022 Advanced Micro Devices, Inc. All rights reserved.
// Copyright (c) 2021 - 2023 Advanced Micro Devices, Inc. All rights reserved.
//
//-------------------------------------------------------------------------------------------------

Expand Down Expand Up @@ -27,7 +27,10 @@ class ADLXHelper
* N/A
*
* @retvalues
* @ENG_START_DOX
* An ADLXHelper object.
* @ENG_END_DOX
*
* @requirements
* @DetailsTable{#include "ADLXHelper/Windows/Cpp/ADLXHelper.h", @ADLX_First_Ver}
*/
Expand All @@ -53,6 +56,7 @@ class ADLXHelper
* @ENG_START_DOX
* @details This method calls @ref page_cppHelpTerminate.
* @ENG_END_DOX
*
* @requirements
* @DetailsTable{#include "ADLXHelper/Windows/Cpp/ADLXHelper.h", @ADLX_First_Ver}
*/
Expand All @@ -75,10 +79,12 @@ class ADLXHelper
* @paramrow{2.,[in],adlMainMemoryFree,@ref ADLX_ADL_Main_Memory_Free,@ENG_START_DOX The callback handler of the memory deallocation. @ENG_END_DOX}
*
* @retvalues
* @ENG_START_DOX
* If __InitializeWithCallerAdl__ is successfully executed, __ADLX_OK__ is returned.<br>
* If __InitializeWithCallerAdl__ is not successfully executed, an error code is returned.<br>
* If ADLX was previously successfully initialized with any of the Initialize versions, __ADLX_ALREADY_INITIALIZED__ is returned.<br>
* Refer to @ref ADLX_RESULT for success codes and error codes.<br>
* @ENG_END_DOX
*
* @detaileddesc
* @ENG_START_DOX
Expand Down Expand Up @@ -108,15 +114,19 @@ class ADLXHelper
* N/A
*
* @retvalues
* @ENG_START_DOX
* If __Initialize__ is successfully executed, __ADLX_OK__ is returned.<br>
* If __Initialize__ is not successfully executed, an error code is returned.<br>
* If ADLX was previously successfully initialized with any of the initialization functions, __ADLX_ALREADY_INITIALIZED__ is returned.<br>
* Refer to @ref ADLX_RESULT for success codes and error codes.<br>
* @ENG_END_DOX
*
* @detaileddesc
* @ENG_START_DOX
* @details
* This method is used when an application does not use the ADL library and initializes ADLX with default parameters.<br>
* For more information for initializing ADLX with default parameters, refer to @ref @adlx_gpu_support "ADLX GPU Support".<br>
* @ENG_END_DOX
*
* @requirements
* @DetailsTable{#include "ADLXHelper/Windows/Cpp/ADLXHelper.h", @ADLX_First_Ver}
Expand All @@ -137,15 +147,19 @@ class ADLXHelper
* N/A
*
* @retvalues
* @ENG_START_DOX
* If __InitializeWithIncompatibleDriver__ is successfully executed, __ADLX_OK__ is returned.<br>
* If __InitializeWithIncompatibleDriver__ is not successfully executed, an error code is returned.<br>
* If ADLX was previously successfully initialized with any of the Initialize versions, __ADLX_ALREADY_INITIALIZED__ is returned.<br>
* Refer to @ref ADLX_RESULT for success codes and error codes.<br>
* @ENG_END_DOX
*
* @detaileddesc
* @ENG_START_DOX
* @details
* 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>
* For more information for initializing ADLX with a legacy driver, refer to @ref @adlx_gpu_support "ADLX GPU Support".<br>
* @ENG_END_DOX
*
* @requirements
* @DetailsTable{#include "ADLXHelper/Windows/Cpp/ADLXHelper.h", @ADLX_First_Ver}
Expand All @@ -170,14 +184,18 @@ class ADLXHelper
* N/A
*
* @retvalues
* @ENG_START_DOX
* If __Terminate__ is successfully executed, __ADLX_OK__ is returned.<br>
* If __Terminate__ is not successfully executed, an error code is returned.<br>
* Refer to @ref ADLX_RESULT for success codes and error codes.
* @ENG_END_DOX
*
* @detaileddesc
* @ENG_START_DOX
* @details
* Any interface obtained from ADLX that is not released becomes invalid.<br>
* Any attempt of calling ADLX interface after termination could result in errors such as exceptions or crashes.<br>
* @ENG_END_DOX
*
* @requirements
*
Expand All @@ -201,7 +219,9 @@ class ADLXHelper
* N/A
*
* @retvalues
* @ENG_START_DOX
* The full version of ADLX.
* @ENG_END_DOX
*
* @requirements
* @DetailsTable{#include "ADLXHelper/Windows/Cpp/ADLXHelper.h", @ADLX_First_Ver}
Expand All @@ -222,7 +242,9 @@ class ADLXHelper
* N/A
*
* @retvalues
* @ENG_START_DOX
* The version of ADLX.
* @ENG_END_DOX
*
* @requirements
* @DetailsTable{#include "ADLXHelper/Windows/Cpp/ADLXHelper.h", @ADLX_First_Ver}
Expand All @@ -243,8 +265,10 @@ class ADLXHelper
* N/A
*
* @retvalues
* @ENG_START_DOX
* If ADLX was successfully initialized before this method call, the @ref DOX_IADLXSystem interface is returned.<br>
* If ADLX was not successfully initialized, __nullptr__ is returned.
* @ENG_END_DOX
*
* @requirements
* @DetailsTable{#include "ADLXHelper/Windows/Cpp/ADLXHelper.h", @ADLX_First_Ver}
Expand All @@ -265,15 +289,19 @@ class ADLXHelper
* N/A
*
* @retvalues
* @ENG_START_DOX
* If ADLX was successfully initialized with ADL, a valid pointer of the @ref DOX_IADLMapping interface is returned.<br>
* If ADLX was initialized under any of the following circumstances, __nullptr__ is returned.<br>
* - ADLX initialization was with other initialization methods.<br>
* - ADLX initialization was failed.<br>
* - ADLX initialization was not called.<br>
* @ENG_END_DOX
*
* @detaileddesc
* @ENG_START_DOX
* @details
* __GetAdlMapping__ is used to convert data between ADL and ADLX in applications where ADLX was initialized with @ref page_cppHelpInitializeWithCallerAdl.
* @ENG_END_DOX
*
* @requirements
* @DetailsTable{#include "ADLXHelper/Windows/Cpp/ADLXHelper.h", @ADLX_First_Ver}
Expand Down
22 changes: 11 additions & 11 deletions SDK/Include/ADLX.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright (c) 2021 - 2022 Advanced Micro Devices, Inc. All rights reserved.
// Copyright (c) 2021 - 2023 Advanced Micro Devices, Inc. All rights reserved.
//
//-------------------------------------------------------------------------------------------------

Expand Down Expand Up @@ -187,17 +187,17 @@ extern "C"
* If the full version is successfully returned, __ADLX_OK__ is returned.<br>
* If the full version is not successfully returned, an error code is returned.<br>
* Refer to @ref ADLX_RESULT for success codes and error codes.<br>
* @ENG_END_DOX
* @detaileddesc
* 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.
* @ENG_END_DOX
* @requirements
* @DetailsTable{#include "ADLX.h", @ADLX_First_Ver}
*/

/**
* @typedef ADLXQueryFullVersion_Fn
* @ingroup ADLXDefs
* The typedef of QueryFullVersion function.
* @ENG_START_DOX The typedef of QueryFullVersion function. @ENG_END_DOX
* @definition
* @codeStart
* typedef @ref ADLX_RESULT (ADLX_CDECL_CALL *QueryFullVersion_Fn)(adlx_uint64* fullVersion)
Expand All @@ -223,17 +223,17 @@ extern "C"
* If the version is successfully returned, __ADLX_OK__ is returned.<br>
* If the version is not successfully returned, an error code is returned.<br>
* Refer to @ref ADLX_RESULT for success codes and error codes.<br>
* @ENG_END_DOX
* @detaileddesc
* 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.
* @ENG_END_DOX
* @requirements
* @DetailsTable{#include "ADLX.h", @ADLX_First_Ver}
*/

/**
* @typedef ADLXQueryVersion_Fn
* @ingroup ADLXDefs
* The typedef of QueryVersion function.
* @ENG_START_DOX The typedef of QueryVersion function. @ENG_END_DOX
* @definition
* @codeStart
* typedef @ref ADLX_RESULT (ADLX_CDECL_CALL *QueryVersion_Fn)(const char** version)
Expand All @@ -260,17 +260,17 @@ extern "C"
* If ADLX was successfully initialized, __ADLX_OK__ is returned.<br>
* If ADLX was not successfully initialized, an error code is returned.<br>
* Refer to @ref ADLX_RESULT for success codes and error codes.<br>
* @ENG_END_DOX
* @detaileddesc
* 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.
* @ENG_END_DOX
* @requirements
* @DetailsTable{#include "ADLX.h", @ADLX_First_Ver}
*/

/**
* @typedef ADLXInitialize_Fn
* @ingroup ADLXDefs
* The typedef of ADLXInitialize function.
* @ENG_START_DOX The typedef of ADLXInitialize function. @ENG_END_DOX
* @definition
* @codeStart
* typedef @ref ADLX_RESULT (ADLX_CDECL_CALL *ADLXInitialize_Fn)(adlx_uint64 version, @ref DOX_IADLXSystem** ppSystem)
Expand Down Expand Up @@ -300,17 +300,17 @@ extern "C"
* If ADLX was successfully initialized, __ADLX_OK__ is returned.<br>
* If ADLX was not successfully initialized, an error code is returned.<br>
* Refer to @ref ADLX_RESULT for success codes and error codes.<br>
* @ENG_END_DOX
* @detaileddesc
* 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.
* @ENG_END_DOX
* @requirements
* @DetailsTable{#include "ADLX.h", @ADLX_First_Ver}
*/

/**
* @typedef ADLXInitializeWithCallerAdl_Fn
* @ingroup ADLXDefs
* The typedef of ADLXInitializeWithCallerAdl function.
* @ENG_START_DOX The typedef of ADLXInitializeWithCallerAdl function. @ENG_END_DOX
* @definition
* @codeStart
* 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)
Expand All @@ -336,17 +336,17 @@ extern "C"
* If the function is successfully executed, __ADLX_OK__ is returned.<br>
* If the function is not successfully executed, an error code is returned.<br>
* Refer to @ref ADLX_RESULT for success codes and error codes.<br>
* @ENG_END_DOX
* @detaileddesc
* 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.
* @ENG_END_DOX
* @requirements
* @DetailsTable{#include "ADLX.h", @ADLX_First_Ver}
*/

/**
* @typedef ADLXTerminate_Fn
* @ingroup ADLXDefs
* The typedef of ADLXTerminate function.
* @ENG_START_DOX The typedef of ADLXTerminate function. @ENG_END_DOX
* @definition
* @codeStart
* typedef ADLX_RESULT (ADLX_CDECL_CALL *ADLXTerminate_Fn)()
Expand Down
Loading

0 comments on commit 42372fc

Please sign in to comment.