1
1

PML/SPML/UCX: init global objects using C99 style

- to avoid value mix used C99 style of object initializations

Signed-off-by: Sergey Oblomov <sergeyo@mellanox.com>
Этот коммит содержится в:
Sergey Oblomov 2018-07-25 14:52:45 +03:00
родитель 99ad8d4f2a
Коммит 2806504290
2 изменённых файлов: 59 добавлений и 59 удалений

Просмотреть файл

@ -49,33 +49,33 @@
#define MODEX_KEY "pml-ucx" #define MODEX_KEY "pml-ucx"
mca_pml_ucx_module_t ompi_pml_ucx = { mca_pml_ucx_module_t ompi_pml_ucx = {
{ .super = {
mca_pml_ucx_add_procs, .pml_add_procs = mca_pml_ucx_add_procs,
mca_pml_ucx_del_procs, .pml_del_procs = mca_pml_ucx_del_procs,
mca_pml_ucx_enable, .pml_enable = mca_pml_ucx_enable,
NULL, .pml_progress = NULL,
mca_pml_ucx_add_comm, .pml_add_comm = mca_pml_ucx_add_comm,
mca_pml_ucx_del_comm, .pml_del_comm = mca_pml_ucx_del_comm,
mca_pml_ucx_irecv_init, .pml_irecv_init = mca_pml_ucx_irecv_init,
mca_pml_ucx_irecv, .pml_irecv = mca_pml_ucx_irecv,
mca_pml_ucx_recv, .pml_recv = mca_pml_ucx_recv,
mca_pml_ucx_isend_init, .pml_isend_init = mca_pml_ucx_isend_init,
mca_pml_ucx_isend, .pml_isend = mca_pml_ucx_isend,
mca_pml_ucx_send, .pml_send = mca_pml_ucx_send,
mca_pml_ucx_iprobe, .pml_iprobe = mca_pml_ucx_iprobe,
mca_pml_ucx_probe, .pml_probe = mca_pml_ucx_probe,
mca_pml_ucx_start, .pml_start = mca_pml_ucx_start,
mca_pml_ucx_improbe, .pml_improbe = mca_pml_ucx_improbe,
mca_pml_ucx_mprobe, .pml_mprobe = mca_pml_ucx_mprobe,
mca_pml_ucx_imrecv, .pml_imrecv = mca_pml_ucx_imrecv,
mca_pml_ucx_mrecv, .pml_mrecv = mca_pml_ucx_mrecv,
mca_pml_ucx_dump, .pml_dump = mca_pml_ucx_dump,
NULL, /* FT */ .pml_ft_event = NULL,
1ul << (PML_UCX_CONTEXT_BITS), .pml_max_contextid = 1ul << (PML_UCX_CONTEXT_BITS),
1ul << (PML_UCX_TAG_BITS - 1), .pml_max_tag = 1ul << (PML_UCX_TAG_BITS - 1)
}, },
NULL, /* ucp_context */ .ucp_context = NULL,
NULL /* ucp_worker */ .ucp_worker = NULL
}; };
#define PML_UCX_REQ_ALLOCA() \ #define PML_UCX_REQ_ALLOCA() \

Просмотреть файл

@ -48,47 +48,47 @@ static
spml_ucx_mkey_t * mca_spml_ucx_get_mkey_slow(int pe, void *va, void **rva); spml_ucx_mkey_t * mca_spml_ucx_get_mkey_slow(int pe, void *va, void **rva);
mca_spml_ucx_t mca_spml_ucx = { mca_spml_ucx_t mca_spml_ucx = {
{ .super = {
/* Init mca_spml_base_module_t */ /* Init mca_spml_base_module_t */
mca_spml_ucx_add_procs, .spml_add_procs = mca_spml_ucx_add_procs,
mca_spml_ucx_del_procs, .spml_del_procs = mca_spml_ucx_del_procs,
mca_spml_ucx_enable, .spml_enable = mca_spml_ucx_enable,
mca_spml_ucx_register, .spml_register = mca_spml_ucx_register,
mca_spml_ucx_deregister, .spml_deregister = mca_spml_ucx_deregister,
mca_spml_base_oob_get_mkeys, .spml_oob_get_mkeys = mca_spml_base_oob_get_mkeys,
mca_spml_ucx_ctx_create, .spml_ctx_create = mca_spml_ucx_ctx_create,
mca_spml_ucx_ctx_destroy, .spml_ctx_destroy = mca_spml_ucx_ctx_destroy,
mca_spml_ucx_put, .spml_put = mca_spml_ucx_put,
mca_spml_ucx_put_nb, .spml_put_nb = mca_spml_ucx_put_nb,
mca_spml_ucx_get, .spml_get = mca_spml_ucx_get,
mca_spml_ucx_get_nb, .spml_get_nb = mca_spml_ucx_get_nb,
mca_spml_ucx_recv, .spml_recv = mca_spml_ucx_recv,
mca_spml_ucx_send, .spml_send = mca_spml_ucx_send,
mca_spml_base_wait, .spml_wait = mca_spml_base_wait,
mca_spml_base_wait_nb, .spml_wait_nb = mca_spml_base_wait_nb,
mca_spml_base_test, .spml_test = mca_spml_base_test,
mca_spml_ucx_fence, .spml_fence = mca_spml_ucx_fence,
mca_spml_ucx_quiet, .spml_quiet = mca_spml_ucx_quiet,
mca_spml_ucx_rmkey_unpack, .spml_rmkey_unpack = mca_spml_ucx_rmkey_unpack,
mca_spml_ucx_rmkey_free, .spml_rmkey_free = mca_spml_ucx_rmkey_free,
mca_spml_ucx_rmkey_ptr, .spml_rmkey_ptr = mca_spml_ucx_rmkey_ptr,
mca_spml_ucx_memuse_hook, .spml_memuse_hook = mca_spml_ucx_memuse_hook,
(void*)&mca_spml_ucx .self = (void*)&mca_spml_ucx
}, },
NULL, /* ucp_context */ .ucp_context = NULL,
1, /* num_disconnect */ .num_disconnect = 1,
0, /* heap_reg_nb */ .heap_reg_nb = 0,
0, /* enabled */ .enabled = 0,
mca_spml_ucx_get_mkey_slow .get_mkey_slow = mca_spml_ucx_get_mkey_slow
}; };
OBJ_CLASS_INSTANCE(mca_spml_ucx_ctx_list_item_t, opal_list_item_t, NULL, NULL); OBJ_CLASS_INSTANCE(mca_spml_ucx_ctx_list_item_t, opal_list_item_t, NULL, NULL);
mca_spml_ucx_ctx_t mca_spml_ucx_ctx_default = { mca_spml_ucx_ctx_t mca_spml_ucx_ctx_default = {
NULL, /* ucp_worker */ .ucp_worker = NULL,
NULL, /* ucp_peers */ .ucp_peers = NULL,
0 /* options */ .options = 0
}; };
int mca_spml_ucx_enable(bool enable) int mca_spml_ucx_enable(bool enable)