Skip to content

Commit 320ab3b

Browse files
sssharkajjhursey
authored andcommitted
pml/base: Expose some bsend varaibles so PMLs may reference them
Signed-off-by: Joshua Hursey <[email protected]>
1 parent c6595c2 commit 320ab3b

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

ompi/mca/pml/base/pml_base_bsend.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
* and Technology (RIST). All rights reserved.
1616
* Copyright (c) 2015 Los Alamos National Security, LLC. All rights
1717
* reserved.
18+
* Copyright (c) 2017 IBM Corporation. All rights reserved.
1819
* $COPYRIGHT$
1920
*
2021
* Additional copyrights may follow
@@ -43,9 +44,9 @@ static opal_condition_t mca_pml_bsend_condition; /* condition variable to block
4344
static mca_allocator_base_component_t* mca_pml_bsend_allocator_component;
4445
static mca_allocator_base_module_t* mca_pml_bsend_allocator; /* sub-allocator to manage users buffer */
4546
static size_t mca_pml_bsend_usersize; /* user provided buffer size */
46-
static unsigned char *mca_pml_bsend_userbase; /* user provided buffer base */
47-
static unsigned char *mca_pml_bsend_base; /* adjusted base of user buffer */
48-
static unsigned char *mca_pml_bsend_addr; /* current offset into user buffer */
47+
unsigned char *mca_pml_bsend_userbase; /* user provided buffer base */
48+
unsigned char *mca_pml_bsend_base; /* adjusted base of user buffer */
49+
unsigned char *mca_pml_bsend_addr; /* current offset into user buffer */
4950
static size_t mca_pml_bsend_size; /* adjusted size of user buffer */
5051
static size_t mca_pml_bsend_count; /* number of outstanding requests */
5152
static size_t mca_pml_bsend_pagesz; /* mmap page size */

ompi/mca/pml/base/pml_base_bsend.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* University of Stuttgart. All rights reserved.
1010
* Copyright (c) 2004-2005 The Regents of the University of California.
1111
* All rights reserved.
12+
* Copyright (c) 2017 IBM Corporation. All rights reserved.
1213
* $COPYRIGHT$
1314
*
1415
* Additional copyrights may follow
@@ -36,6 +37,10 @@ OMPI_DECLSPEC int mca_pml_base_bsend_request_fini(ompi_request_t*);
3637
OMPI_DECLSPEC void* mca_pml_base_bsend_request_alloc_buf( size_t length );
3738
OMPI_DECLSPEC int mca_pml_base_bsend_request_free(void* addr);
3839

40+
extern unsigned char *mca_pml_bsend_userbase; /* user provided buffer base */
41+
extern unsigned char *mca_pml_bsend_base; /* adjusted base of user buffer */
42+
extern unsigned char *mca_pml_bsend_addr; /* current offset into user buffer */
43+
3944
END_C_DECLS
4045

4146
#endif

0 commit comments

Comments
 (0)