Skip to content

Commit becbc98

Browse files
committed
Merge remote-tracking branch 'upstream/v5.0.x' into HEAD
2 parents f372109 + c30acea commit becbc98

File tree

6 files changed

+29
-15
lines changed

6 files changed

+29
-15
lines changed

docs/developers/sphinx.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,12 @@ permissions to run this command):
113113
# Or: python3 -m pip install install -r docs/requirements.txt
114114
115115
This will install Sphinx and some Python modules required for building
116-
the Open MPI documentation in a system-wide location.
116+
the Open MPI documentation in a user-specific location, likely
117+
somewhere under ``$HOME``
117118

118119
You will likely need to find the location where ``sphinx-build`` was
119-
installed and add it to your ``PATH``.
120+
installed and add it to your ``PATH`` (e.g., on macOS, it might appear
121+
under ``$HOME/Library/Python/PYTHON_VERSION/bin/sphinx-build``).
120122

121123
.. note:: On MacOS, look for ``sphinx-build`` under
122124
``$HOME/Library/Python/VERSION/bin`` (where ``VERSION`` is

docs/index.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,11 @@ Table of contents
8282
history
8383
man-openmpi/index
8484
man-openshmem/index
85+
86+
Contributors
87+
============
88+
89+
A gigantic "thank you!" to all of our contributors:
90+
91+
.. image:: https://contrib.rocks/image?repo=open-mpi/ompi&max=999
92+
:target: https://github.com/open-mpi/ompi/graphs/contributors

ompi/mca/io/ompio/io_ompio_file_open.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -414,19 +414,21 @@ static void mca_io_ompio_file_get_eof_offset (ompio_file_t *fh,
414414
in_offset -= fh->f_disp;
415415
if ( fh->f_view_size > 0 ) {
416416
/* starting offset of the current copy of the filew view */
417-
start_offset = in_offset / fh->f_view_extent;
417+
start_offset = (in_offset / fh->f_view_extent) * fh->f_view_extent;
418418

419419
index_in_file_view = 0;
420420
/* determine block id that the offset is located in and
421421
the starting offset of that block */
422-
while ( offset <= in_offset && index_in_file_view < fh->f_iov_count) {
423-
prev_offset = offset;
422+
while (offset <= in_offset && index_in_file_view < fh->f_iov_count) {
424423
offset = start_offset + (OMPI_MPI_OFFSET_TYPE)(intptr_t) fh->f_decoded_iov[index_in_file_view++].iov_base;
424+
if (offset <= in_offset) {
425+
prev_offset = offset;
426+
}
425427
}
426428

427429
offset = prev_offset;
428430
blocklen = fh->f_decoded_iov[index_in_file_view-1].iov_len;
429-
while ( offset <= in_offset && k <= blocklen ) {
431+
while (offset <= in_offset && k <= blocklen) {
430432
prev_offset = offset;
431433
offset += fh->f_etype_size;
432434
k += fh->f_etype_size;

opal/mca/btl/ofi/btl_ofi_context.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
/*
33
* $COPYRIGHT$
44
* Copyright (c) 2018 Intel Inc. All rights reserved
5+
* Copyright (c) 2025 Triad National Security, LLC. All rights
6+
* reserved.
57
* $COPYRIGHT$
68
*
79
* Additional copyrights may follow
@@ -14,10 +16,10 @@
1416
#include "btl_ofi_rdma.h"
1517

1618
#if OPAL_HAVE_THREAD_LOCAL
17-
opal_thread_local mca_btl_ofi_context_t *my_context = NULL;
19+
static opal_thread_local mca_btl_ofi_context_t *my_context = NULL;
1820
#endif /* OPAL_HAVE_THREAD_LOCAL */
1921

20-
int init_context_freelists(mca_btl_ofi_context_t *context)
22+
static int init_context_freelists(mca_btl_ofi_context_t *context)
2123
{
2224
int rc;
2325
OBJ_CONSTRUCT(&context->rdma_comp_list, opal_free_list_t);
@@ -113,6 +115,7 @@ mca_btl_ofi_context_t *mca_btl_ofi_context_alloc_normal(struct fi_info *info,
113115
context->tx_ctx = ep;
114116
context->rx_ctx = ep;
115117
context->context_id = 0;
118+
my_context = NULL;
116119

117120
return context;
118121

opal/mca/btl/ofi/btl_ofi_endpoint.h

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
* Copyright (c) 2018 Intel, Inc, All rights reserved
1616
* Copyright (c) 2020 Amazon.com, Inc. or its affiliates.
1717
* All Rights reserved.
18+
* Copyright (c) 2025 Triad National Security, LLC. All rights
19+
* reserved.
1820
* $COPYRIGHT$
1921
*
2022
* Additional copyrights may follow
@@ -32,10 +34,6 @@
3234

3335
BEGIN_C_DECLS
3436

35-
#if OPAL_HAVE_THREAD_LOCAL
36-
extern opal_thread_local mca_btl_ofi_context_t *my_context;
37-
#endif /* OPAL_HAVE_THREAD_LOCAL */
38-
3937
struct mca_btl_base_endpoint_t {
4038
opal_list_item_t super;
4139

@@ -53,8 +51,6 @@ typedef struct mca_btl_base_endpoint_t mca_btl_base_endpoint_t;
5351
typedef mca_btl_base_endpoint_t mca_btl_ofi_endpoint_t;
5452
OBJ_CLASS_DECLARATION(mca_btl_ofi_endpoint_t);
5553

56-
int init_context_freelists(mca_btl_ofi_context_t *context);
57-
5854
mca_btl_base_endpoint_t *mca_btl_ofi_endpoint_create(opal_proc_t *proc, struct fid_ep *ep);
5955

6056
/* contexts */

opal/mca/memory/patcher/memory_patcher_component.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
* Copyright (c) 2016-2017 Research Organization for Information Science
1717
* and Technology (RIST). All rights reserved.
1818
* Copyright (c) 2016-2020 IBM Corporation. All rights reserved.
19+
* Copyright (c) 2025 Triad National Security, LLC. All rights reserved.
1920
*
2021
* $COPYRIGHT$
2122
*
@@ -73,6 +74,7 @@ static int patcher_register(void);
7374
static int patcher_query(int *);
7475

7576
static int mca_memory_patcher_priority;
77+
static int was_executed_already = 0;
7678

7779
opal_memory_patcher_component_t mca_memory_patcher_component = {
7880
.super =
@@ -585,7 +587,6 @@ static int patcher_query(int *priority)
585587

586588
static int patcher_open(void)
587589
{
588-
static int was_executed_already = 0;
589590
int rc;
590591

591592
if (was_executed_already) {
@@ -678,6 +679,8 @@ static int patcher_close(void)
678679
{
679680
mca_base_framework_close(&opal_patcher_base_framework);
680681

682+
was_executed_already = 0;
683+
681684
/* Note that we don't need to unpatch any symbols here; the
682685
patcher framework will take care of all of that for us. */
683686
return OPAL_SUCCESS;

0 commit comments

Comments
 (0)