Skip to content
This repository was archived by the owner on Sep 30, 2022. It is now read-only.

Commit b21eea5

Browse files
authored
Merge pull request #1280 from PDeveze/Patchs-on-osc-portals4
Patchs on osc portals4
2 parents 007ee59 + 30116b0 commit b21eea5

File tree

4 files changed

+432
-125
lines changed

4 files changed

+432
-125
lines changed

ompi/mca/osc/portals4/osc_portals4.h

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121

2222
#include "ompi/mca/mtl/portals4/mtl_portals4.h"
2323

24+
#define REQ_OSC_TABLE_ID 4
25+
2426
#define OSC_PORTALS4_MB_DATA 0x0000000000000000ULL
2527
#define OSC_PORTALS4_MB_CONTROL 0x1000000000000000ULL
2628

@@ -51,6 +53,11 @@ struct ompi_osc_portals4_component_t {
5153
ptl_size_t matching_atomic_max;
5254
ptl_size_t matching_fetch_atomic_max;
5355
ptl_size_t matching_atomic_ordered_size;
56+
ptl_size_t ptl_max_msg_size; /* max size given by portals (cf PtlNIInit) */
57+
bool no_locks;
58+
ptl_uid_t uid;
59+
opal_mutex_t lock;
60+
opal_condition_t cond;
5461

5562
opal_free_list_t requests; /* request free list for the r* communication variants */
5663
};
@@ -80,6 +87,7 @@ struct ompi_osc_portals4_module_t {
8087
ptl_handle_ni_t ni_h; /* network interface used by this window */
8188
ptl_pt_index_t pt_idx; /* portal table index used by this window (this will be same across window) */
8289
ptl_handle_ct_t ct_h; /* Counting event handle used for completion in this window */
90+
int ct_link; /* PTL_EVENT_LINK flag */
8391
ptl_handle_md_t md_h; /* memory descriptor describing all of memory used by this window */
8492
ptl_handle_md_t req_md_h; /* memory descriptor with event completion used by this window */
8593
ptl_handle_me_t data_me_h; /* data match list entry (MB are CID | OSC_PORTALS4_MB_DATA) */
@@ -175,7 +183,7 @@ int ompi_osc_portals4_get_accumulate(const void *origin_addr,
175183
int result_count,
176184
struct ompi_datatype_t *result_datatype,
177185
int target_rank,
178-
MPI_Aint target_disp,
186+
OPAL_PTRDIFF_TYPE target_disp,
179187
int target_count,
180188
struct ompi_datatype_t *target_datatype,
181189
struct ompi_op_t *op,
@@ -219,7 +227,7 @@ int ompi_osc_portals4_rget_accumulate(const void *origin_addr,
219227
int result_count,
220228
struct ompi_datatype_t *result_datatype,
221229
int target_rank,
222-
MPI_Aint target_disp,
230+
OPAL_PTRDIFF_TYPE target_disp,
223231
int target_count,
224232
struct ompi_datatype_t *target_datatype,
225233
struct ompi_op_t *op,

0 commit comments

Comments
 (0)