NewMadeleine

Documentation

« back to PM2 home.
nm_coll_drv.h
Go to the documentation of this file.
1/*
2 * NewMadeleine
3 * Copyright (C) 2026 (see AUTHORS file)
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or (at
8 * your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
14 */
15
16#ifndef NM_COLL_DRV_H
17#define NM_COLL_DRV_H
18
19#include <nm_public.h>
20#include <nm_colldrv.h>
21
22/* ********************************************************* */
23/* ** manage colldrv */
24
26
27void nm_colldrv_load(const char*p_name);
28
30
31int nm_colldrv_available(const struct nm_coll_topology_s*p_topology, nm_len_t data_size);
32
33void nm_colldrv_req_poll_start(struct nm_core*p_core, struct nm_colldrv_req_s*p_colldrv_req);
34
35/* ********************************************************* */
36/* ** high level interface for colldrv */
37
39
41
43
46
49
52
54 struct nm_data_s*p_sdata, struct nm_data_s*p_rdata, nm_tag_t tag,
56
58 struct nm_data_s*p_sdata, struct nm_data_s*p_rdata, nm_tag_t tag,
60
61#endif /* NM_COLL_DRV_H */
void(* nm_coll_req_notifier_t)(void *ref)
notification function for collective reqs
Definition nm_coll.h:131
struct nm_group_s * nm_group_t
type for groups
Definition nm_group.h:38
struct nm_coll_req_s * nm_coll_drv_igather(nm_session_t p_session, nm_group_t p_group, int root, struct nm_data_s *p_sdata, struct nm_data_s *p_rdata, nm_tag_t tag, nm_coll_req_notifier_t p_notify, void *p_ref)
int nm_colldrv_available(const struct nm_coll_topology_s *p_topology, nm_len_t data_size)
struct nm_coll_req_s * nm_coll_drv_iwaitall(nm_session_t p_session, nm_group_t p_group, int root, nm_tag_t tag, nm_coll_req_notifier_t p_notify, void *p_ref)
struct nm_coll_req_s * nm_coll_drv_ibcast(nm_session_t p_session, nm_group_t p_group, int root, struct nm_data_s *p_data, nm_tag_t tag, nm_coll_req_notifier_t p_notify, void *p_ref)
void nm_colldrv_load(const char *p_name)
void nm_coll_drv_waitall(nm_session_t p_session, nm_group_t p_group, int root, nm_tag_t tag)
void nm_coll_drv_bcast(nm_session_t p_session, nm_group_t p_group, int root, struct nm_data_s *p_data, nm_tag_t tag)
void nm_colldrv_req_poll_start(struct nm_core *p_core, struct nm_colldrv_req_s *p_colldrv_req)
void nm_coll_drv_barrier(nm_session_t p_session, nm_group_t p_group, nm_tag_t tag)
struct nm_colldrv_s * nm_colldrv_get(void)
struct nm_coll_req_s * nm_coll_drv_ibarrier(nm_session_t p_session, nm_group_t p_group, nm_tag_t tag, nm_coll_req_notifier_t p_notify, void *p_ref)
struct nm_coll_req_s * nm_coll_drv_iscatter(nm_session_t p_session, nm_group_t p_group, int root, struct nm_data_s *p_sdata, struct nm_data_s *p_rdata, nm_tag_t tag, nm_coll_req_notifier_t p_notify, void *p_ref)
void nm_colldrv_unload(void)
nm_tag_t tag
the user-supplied tag
nm_data_propertie_gpu_preinit & p_data
Definition nm_data.h:539
static nm_session_t p_session
int root
This is the common public header for NewMad.
uint64_t nm_tag_t
user tags, 64 bits, contained in indirect hashtable
Definition nm_types.h:56
uint64_t nm_len_t
data length used by nmad
Definition nm_types.h:68
nm_coll_req_notifier_t p_notify
notification function for op termination
void * p_ref
reference given to above p_notify
a description of hierarchy of processes; subgroup is empty when no topology is available and n_subgro...
Definition nm_group.h:55
Core NewMadeleine structure.
Definition nm_core.h:43
a data descriptor, used to pack/unpack data from app layout to/from contiguous buffers
Definition nm_data.h:200