Beispiel #1
0
static ucs_status_t uct_knem_iface_get_address(uct_iface_t *tl_iface,
                                               struct sockaddr *addr)
{
    uct_sockaddr_process_t *iface_addr = (void*)addr;
    iface_addr->sp_family = UCT_AF_PROCESS;
    iface_addr->node_guid = ucs_machine_guid();
    return UCS_OK;
}
Beispiel #2
0
static ucs_status_t uct_cuda_iface_get_address(uct_iface_h tl_iface,
                                               struct sockaddr *iface_addr)
{
    uct_sockaddr_process_t *cuda_addr = (uct_sockaddr_process_t*)iface_addr;

    cuda_addr->sp_family = UCT_AF_PROCESS;
    cuda_addr->node_guid = ucs_machine_guid();
    cuda_addr->id        = 0;
    return UCS_OK;
}
Beispiel #3
0
static int uct_cma_iface_is_reachable(uct_iface_t *tl_iface,
                                     const struct sockaddr *addr)
{
    return (addr->sa_family == UCT_AF_PROCESS) &&
           (((uct_sockaddr_process_t*)addr)->node_guid == ucs_machine_guid());
}