|
21 | 21 |
|
22 | 22 | #include "ompi/mca/mtl/portals4/mtl_portals4.h" |
23 | 23 |
|
| 24 | +#define REQ_OSC_TABLE_ID 4 |
| 25 | + |
24 | 26 | #define OSC_PORTALS4_MB_DATA 0x0000000000000000ULL |
25 | 27 | #define OSC_PORTALS4_MB_CONTROL 0x1000000000000000ULL |
26 | 28 |
|
@@ -51,6 +53,11 @@ struct ompi_osc_portals4_component_t { |
51 | 53 | ptl_size_t matching_atomic_max; |
52 | 54 | ptl_size_t matching_fetch_atomic_max; |
53 | 55 | 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; |
54 | 61 |
|
55 | 62 | opal_free_list_t requests; /* request free list for the r* communication variants */ |
56 | 63 | }; |
@@ -80,6 +87,7 @@ struct ompi_osc_portals4_module_t { |
80 | 87 | ptl_handle_ni_t ni_h; /* network interface used by this window */ |
81 | 88 | ptl_pt_index_t pt_idx; /* portal table index used by this window (this will be same across window) */ |
82 | 89 | ptl_handle_ct_t ct_h; /* Counting event handle used for completion in this window */ |
| 90 | + int ct_link; /* PTL_EVENT_LINK flag */ |
83 | 91 | ptl_handle_md_t md_h; /* memory descriptor describing all of memory used by this window */ |
84 | 92 | ptl_handle_md_t req_md_h; /* memory descriptor with event completion used by this window */ |
85 | 93 | 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, |
175 | 183 | int result_count, |
176 | 184 | struct ompi_datatype_t *result_datatype, |
177 | 185 | int target_rank, |
178 | | - MPI_Aint target_disp, |
| 186 | + OPAL_PTRDIFF_TYPE target_disp, |
179 | 187 | int target_count, |
180 | 188 | struct ompi_datatype_t *target_datatype, |
181 | 189 | struct ompi_op_t *op, |
@@ -219,7 +227,7 @@ int ompi_osc_portals4_rget_accumulate(const void *origin_addr, |
219 | 227 | int result_count, |
220 | 228 | struct ompi_datatype_t *result_datatype, |
221 | 229 | int target_rank, |
222 | | - MPI_Aint target_disp, |
| 230 | + OPAL_PTRDIFF_TYPE target_disp, |
223 | 231 | int target_count, |
224 | 232 | struct ompi_datatype_t *target_datatype, |
225 | 233 | struct ompi_op_t *op, |
|
0 commit comments