Clean up some comments; make paffinity/base/base.h comments agree with
paffinity/paffinity.h. This commit was SVN r23124.
Этот коммит содержится в:
родитель
9e300703ec
Коммит
ca6d95a9c8
@ -143,33 +143,33 @@ OPAL_DECLSPEC int opal_paffinity_base_get(opal_paffinity_base_cpu_set_t *cpumask
|
|||||||
OPAL_DECLSPEC int opal_paffinity_base_close(void);
|
OPAL_DECLSPEC int opal_paffinity_base_close(void);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get map of (socket,core) tuple to virtual processor ID
|
* Returns mapping of PHYSICAL socket:core -> PHYSICAL processor id.
|
||||||
*
|
*
|
||||||
* @param socket
|
* @param physical_socket
|
||||||
* @param core
|
* @param pyshical_core
|
||||||
* @param processor_id
|
* @param physical_processor_id
|
||||||
*
|
*
|
||||||
* @return int - OPAL_SUCCESS or OPAL_ERR_NOT_SUPPORTED if not
|
* @return int - OPAL_SUCCESS or OPAL_ERR_NOT_SUPPORTED if not
|
||||||
* supported
|
* supported
|
||||||
*/
|
*/
|
||||||
OPAL_DECLSPEC int opal_paffinity_base_get_map_to_processor_id(int socket, int core, int *processor_id);
|
OPAL_DECLSPEC int opal_paffinity_base_get_map_to_processor_id(int physical_socket, int physical_core, int *physical_processor_id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get map of processor_id to (socket,core) tuple
|
* Provides mapping of PHYSICAL processor id -> PHYSICAL socket:core.
|
||||||
*
|
*
|
||||||
* @param processor_id
|
* @param physical_processor_id
|
||||||
* @param socket
|
* @param physical_socket
|
||||||
* @param core
|
* @param physical_core
|
||||||
*
|
*
|
||||||
* @return int - OPAL_SUCCESS or OPAL_ERR_NOT_SUPPORTED if not
|
* @return int - OPAL_SUCCESS or OPAL_ERR_NOT_SUPPORTED if not
|
||||||
* supported
|
* supported
|
||||||
*/
|
*/
|
||||||
OPAL_DECLSPEC int opal_paffinity_base_get_map_to_socket_core(int processor_id, int *socket, int *core);
|
OPAL_DECLSPEC int opal_paffinity_base_get_map_to_socket_core(int physical_processor_id, int *physical_socket, int *physical_core);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the number of LOGICAL processors
|
* Return the number of LOGICAL processors
|
||||||
*
|
*
|
||||||
* @param max_processor_id
|
* @param num_logical_processors
|
||||||
*
|
*
|
||||||
* @return int - OPAL_SUCCESS or OPAL_ERR_NOT_SUPPORTED if not
|
* @return int - OPAL_SUCCESS or OPAL_ERR_NOT_SUPPORTED if not
|
||||||
* supported
|
* supported
|
||||||
@ -179,7 +179,7 @@ OPAL_DECLSPEC int opal_paffinity_base_get_processor_info(int *num_logical_proces
|
|||||||
/**
|
/**
|
||||||
* Return the number of LOGICAL sockets
|
* Return the number of LOGICAL sockets
|
||||||
*
|
*
|
||||||
* @param max_socket
|
* @param num_logical_sockets
|
||||||
*
|
*
|
||||||
* @return int - OPAL_SUCCESS or OPAL_ERR_NOT_SUPPORTED if not
|
* @return int - OPAL_SUCCESS or OPAL_ERR_NOT_SUPPORTED if not
|
||||||
* supported
|
* supported
|
||||||
@ -189,8 +189,8 @@ OPAL_DECLSPEC int opal_paffinity_base_get_socket_info(int *num_logical_sockets);
|
|||||||
/**
|
/**
|
||||||
* Return the number of LOGICAL cores for a given PHYSICAL socket
|
* Return the number of LOGICAL cores for a given PHYSICAL socket
|
||||||
*
|
*
|
||||||
* @param socket
|
* @param physical_socket
|
||||||
* @param max_core
|
* @param num_logical_cores
|
||||||
*
|
*
|
||||||
* @return int - OPAL_SUCCESS or OPAL_ERR_NOT_SUPPORTED if not
|
* @return int - OPAL_SUCCESS or OPAL_ERR_NOT_SUPPORTED if not
|
||||||
* supported
|
* supported
|
||||||
@ -204,14 +204,14 @@ OPAL_DECLSPEC int opal_paffinity_base_get_core_info(int physical_socket, int *nu
|
|||||||
OPAL_DECLSPEC int opal_paffinity_base_get_physical_processor_id(int logical_processor_id);
|
OPAL_DECLSPEC int opal_paffinity_base_get_physical_processor_id(int logical_processor_id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the PHYSICAL socket id that corresponds to the given
|
* Return the PHYSICAL socket ID that corresponds to the given
|
||||||
* LOGICAL socket id
|
* LOGICAL socket ID.
|
||||||
*/
|
*/
|
||||||
OPAL_DECLSPEC int opal_paffinity_base_get_physical_socket_id(int logical_socket_id);
|
OPAL_DECLSPEC int opal_paffinity_base_get_physical_socket_id(int logical_socket_id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the PHYSICAL core id that corresponds to the given LOGICAL
|
* Return the PHYSICAL core ID that corresponds to the given LOGICAL
|
||||||
* core id on the given PHYSICAL socket id
|
* core id on the given PHYSICAL socket ID.
|
||||||
*/
|
*/
|
||||||
OPAL_DECLSPEC int opal_paffinity_base_get_physical_core_id(int physical_socket_id, int logical_core_id);
|
OPAL_DECLSPEC int opal_paffinity_base_get_physical_core_id(int physical_socket_id, int logical_core_id);
|
||||||
|
|
||||||
|
@ -249,7 +249,7 @@ typedef int (*opal_paffinity_base_module_get_fn_t)(opal_paffinity_base_cpu_set_t
|
|||||||
/**
|
/**
|
||||||
* Returns mapping of PHYSICAL socket:core -> PHYSICAL processor id.
|
* Returns mapping of PHYSICAL socket:core -> PHYSICAL processor id.
|
||||||
*
|
*
|
||||||
* return OPAL_SUCCESS or OPAL_ERR_NOT_SUPPORTED if not
|
* Return OPAL_SUCCESS or OPAL_ERR_NOT_SUPPORTED if not
|
||||||
* supported
|
* supported
|
||||||
*/
|
*/
|
||||||
typedef int (*opal_paffinity_base_module_get_map_to_processor_id_fn_t)(int physical_socket,
|
typedef int (*opal_paffinity_base_module_get_map_to_processor_id_fn_t)(int physical_socket,
|
||||||
@ -259,7 +259,7 @@ typedef int (*opal_paffinity_base_module_get_map_to_processor_id_fn_t)(int physi
|
|||||||
/**
|
/**
|
||||||
* Provides mapping of PHYSICAL processor id -> PHYSICAL socket:core.
|
* Provides mapping of PHYSICAL processor id -> PHYSICAL socket:core.
|
||||||
*
|
*
|
||||||
* return OPAL_SUCCESS or OPAL_ERR_NOT_SUPPORTED if not
|
* Return OPAL_SUCCESS or OPAL_ERR_NOT_SUPPORTED if not
|
||||||
* supported
|
* supported
|
||||||
*/
|
*/
|
||||||
typedef int (*opal_paffinity_base_module_get_map_to_socket_core_fn_t)(int physical_processor_id,
|
typedef int (*opal_paffinity_base_module_get_map_to_socket_core_fn_t)(int physical_processor_id,
|
||||||
@ -269,7 +269,7 @@ typedef int (*opal_paffinity_base_module_get_map_to_socket_core_fn_t)(int physic
|
|||||||
/**
|
/**
|
||||||
* Provides number of LOGICAL processors in a host.
|
* Provides number of LOGICAL processors in a host.
|
||||||
*
|
*
|
||||||
* return OPAL_SUCCESS or OPAL_ERR_NOT_SUPPORTED if not
|
* Return OPAL_SUCCESS or OPAL_ERR_NOT_SUPPORTED if not
|
||||||
* supported
|
* supported
|
||||||
*/
|
*/
|
||||||
typedef int (*opal_paffinity_base_module_get_processor_info_fn_t)(int *num_processors);
|
typedef int (*opal_paffinity_base_module_get_processor_info_fn_t)(int *num_processors);
|
||||||
@ -277,7 +277,7 @@ typedef int (*opal_paffinity_base_module_get_processor_info_fn_t)(int *num_proce
|
|||||||
/**
|
/**
|
||||||
* Provides the number of LOGICAL sockets in a host.
|
* Provides the number of LOGICAL sockets in a host.
|
||||||
*
|
*
|
||||||
* return OPAL_SUCCESS or OPAL_ERR_NOT_SUPPORTED if not
|
* Return OPAL_SUCCESS or OPAL_ERR_NOT_SUPPORTED if not
|
||||||
* supported
|
* supported
|
||||||
*/
|
*/
|
||||||
typedef int (*opal_paffinity_base_module_get_socket_info_fn_t)(int *num_sockets);
|
typedef int (*opal_paffinity_base_module_get_socket_info_fn_t)(int *num_sockets);
|
||||||
@ -286,34 +286,31 @@ typedef int (*opal_paffinity_base_module_get_socket_info_fn_t)(int *num_sockets)
|
|||||||
* Provides the number of LOGICAL cores in a PHYSICAL socket.
|
* Provides the number of LOGICAL cores in a PHYSICAL socket.
|
||||||
*
|
*
|
||||||
* Returns OPAL_SUCCESS or OPAL_ERR_NOT_SUPPORTED if not
|
* Returns OPAL_SUCCESS or OPAL_ERR_NOT_SUPPORTED if not
|
||||||
* supporeted.
|
* supported.
|
||||||
*/
|
*/
|
||||||
typedef int (*opal_paffinity_base_module_get_core_info_fn_t)(int physical_socket, int *num_cores);
|
typedef int (*opal_paffinity_base_module_get_core_info_fn_t)(int physical_socket, int *num_cores);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the PHYSICAL processor id that corresponds to the
|
* Return the PHYSICAL processor ID that corresponds to the
|
||||||
* given LOGICAL processor id
|
* given LOGICAL processor ID.
|
||||||
*
|
*
|
||||||
* return OPAL_SUCCESS or OPAL_ERR_NOT_SUPPORTED if not
|
* Return OPAL_ERR_NOT_SUPPORTED if not supported.
|
||||||
* supporeted (solaris, windows, etc...)
|
|
||||||
*/
|
*/
|
||||||
typedef int (*opal_paffinity_base_module_get_physical_processor_id_fn_t)(int logical_processor_id);
|
typedef int (*opal_paffinity_base_module_get_physical_processor_id_fn_t)(int logical_processor_id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the PHYSICAL socket id that corresponds to the given
|
* Return the PHYSICAL socket ID that corresponds to the given
|
||||||
* LOGICAL socket id
|
* LOGICAL socket ID.
|
||||||
*
|
*
|
||||||
* return OPAL_SUCCESS or OPAL_ERR_NOT_SUPPORTED if not
|
* Return OPAL_ERR_NOT_SUPPORTED if not supported.
|
||||||
* supporeted (solaris, windows, etc...)
|
|
||||||
*/
|
*/
|
||||||
typedef int (*opal_paffinity_base_module_get_physical_socket_id_fn_t)(int logical_socket_id);
|
typedef int (*opal_paffinity_base_module_get_physical_socket_id_fn_t)(int logical_socket_id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the PHYSICAL core id that corresponds to the given LOGICAL
|
* Return the PHYSICAL core ID that corresponds to the given LOGICAL
|
||||||
* core id on the given PHYSICAL socket id
|
* core ID on the given PHYSICAL socket ID.
|
||||||
*
|
*
|
||||||
* return OPAL_SUCCESS or OPAL_ERR_NOT_SUPPORTED if not
|
* Return OPAL_ERR_NOT_SUPPORTED if not supported.
|
||||||
* supporeted (solaris, windows, etc...)
|
|
||||||
*/
|
*/
|
||||||
typedef int (*opal_paffinity_base_module_get_physical_core_id_fn_t)(int physical_socket_id, int logical_core_id);
|
typedef int (*opal_paffinity_base_module_get_physical_core_id_fn_t)(int physical_socket_id, int logical_core_id);
|
||||||
|
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user