Main Group of APIs


Functions

int ADL_Main_Control_Create (ADL_MAIN_MALLOC_CALLBACK callback, int iEnumConnectedAdapters)
 Function to initialize the ADL interface. This function should be called first.
int ADL_Main_Control_Refresh ()
 Function to refresh adapter information. This function generates an adapter index value for all logical adapters that have ever been present in the system.
int ADL_Main_Control_Destroy ()
 Function to destroy ADL global pointers. This function should be called last.
int ADL_Graphics_Platform_Get (int *lpPlatForm)

Detailed Description

This group describes the APIs for initializing, refreshing and destroying ADL

Function Documentation

int ADL_Main_Control_Create ( ADL_MAIN_MALLOC_CALLBACK  callback,
int  iEnumConnectedAdapters 
)

Function to initialize the ADL interface. This function should be called first.

This function initializes the ADL library. It also initializes global pointers and, at the same time, calls the ADL_Main_Control_Refresh function.

Supported Platforms:
Linux and Windows(XP, Vista and Windows 7); 32bit and 64bit
Parameters:
[in] callback,: The memory allocation function for memory buffer allocation. This must be provided by the user.
[in] iEnumConnectedAdapters,: Specify a value of 0 to retrieve adapter information for all adapters that have ever been present in the system. Specify a value of 1 to retrieve adapter information only for adapters that are physically present and enabled in the system.
Returns:
If the function succeeds, the return value is ADL_OK. Otherwise the return value is an ADL error code. Result Codes
Examples:
Sample-Managed/ADL.cs, and Sample/main.c.

int ADL_Main_Control_Refresh (  ) 

Function to refresh adapter information. This function generates an adapter index value for all logical adapters that have ever been present in the system.

This function updates the adapter information based on the logical adapters currently in the system. The adapter index and UDID mappings remain unchanged for each refresh call.

Supported Platforms:
Linux and Windows(XP, Vista and Windows 7); 32bit and 64bit
Returns:
If the function succeeds, the return value is ADL_OK. Otherwise the return value is an ADL error code. Result Codes

int ADL_Main_Control_Destroy (  ) 

Function to destroy ADL global pointers. This function should be called last.

All ADL global buffers and resources are released after this function is called.

Supported Platforms:
Linux and Windows(XP, Vista and Windows 7); 32bit and 64bit
Returns:
If the function succeeds, the return value is ADL_OK. Otherwise the return value is an ADL error code. Result Codes
Examples:
Sample-Managed/ADL.cs, and Sample/main.c.

int ADL_Graphics_Platform_Get ( int *  lpPlatForm  ) 


Copyright © 2009-2013 Advanced Micro Devices, Inc. All rights reserved.  AMD Developer