Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: src/util/wrappers/mpiu_shm_wrappers.h
- ===================================================================
- --- src/util/wrappers/mpiu_shm_wrappers.h (revision 9448)
- +++ src/util/wrappers/mpiu_shm_wrappers.h (working copy)
- @@ -250,7 +250,7 @@ static inline void MPIU_SHMW_Hnd_free(MPIU_SHMW_Hn
- }
- }
- -static inline int MPIU_SHMW_Seg_open(MPIU_SHMW_Hnd_t hnd, int seg_sz);
- +static inline int MPIU_SHMW_Seg_open(MPIU_SHMW_Hnd_t hnd, MPIU_Size_t seg_sz);
- static inline int MPIU_SHMW_Hnd_deserialize_by_ref(MPIU_SHMW_Hnd_t hnd, char **ser_hnd_ptr);
- /* FIXME : Don't print ENGLISH strings on error. Define the error
- @@ -457,7 +457,7 @@ static inline int MPIU_SHMW_Hnd_finalize(
- #undef FCNAME
- #define FCNAME MPIU_QUOTE(FUNCNAME)
- static inline int MPIU_SHMW_Seg_create_attach_templ(
- - MPIU_SHMW_Hnd_t hnd, int seg_sz, char **shm_addr_ptr,
- + MPIU_SHMW_Hnd_t hnd, MPIU_Size_t seg_sz, char **shm_addr_ptr,
- int offset, int flag)
- {
- int mpi_errno = MPI_SUCCESS;
- @@ -522,7 +522,7 @@ fn_fail:
- #undef FCNAME
- #define FCNAME MPIU_QUOTE(FUNCNAME)
- static inline int MPIU_SHMW_Seg_detach(
- - MPIU_SHMW_Hnd_t hnd, char **shm_addr_ptr, int seg_sz)
- + MPIU_SHMW_Hnd_t hnd, char **shm_addr_ptr, MPIU_Size_t seg_sz)
- {
- int mpi_errno = MPI_SUCCESS;
- int rc = -1;
- @@ -588,7 +588,7 @@ fn_fail:
- #undef FCNAME
- #define FCNAME MPIU_QUOTE(FUNCNAME)
- static inline int MPIU_SHMW_Seg_create_attach_templ(
- - MPIU_SHMW_Hnd_t hnd, int seg_sz, char **shm_addr_ptr,
- + MPIU_SHMW_Hnd_t hnd, MPIU_Size_t seg_sz, char **shm_addr_ptr,
- int offset, int flag)
- {
- int mpi_errno = MPI_SUCCESS;
- @@ -672,7 +672,7 @@ fn_fail:
- #undef FCNAME
- #define FCNAME MPIU_QUOTE(FUNCNAME)
- static inline int MPIU_SHMW_Seg_detach(
- - MPIU_SHMW_Hnd_t hnd, char **shm_addr_ptr, int seg_sz)
- + MPIU_SHMW_Hnd_t hnd, char **shm_addr_ptr, MPIU_Size_t seg_sz)
- {
- int mpi_errno = MPI_SUCCESS;
- int rc = -1;
- @@ -722,12 +722,14 @@ fn_fail:
- #undef FCNAME
- #define FCNAME MPIU_QUOTE(FUNCNAME)
- static inline int MPIU_SHMW_Seg_create_attach_templ(
- - MPIU_SHMW_Hnd_t hnd, int seg_sz, char **shm_addr_ptr,
- + MPIU_SHMW_Hnd_t hnd, MPIU_Size_t seg_sz, char **shm_addr_ptr,
- int offset, int flag)
- {
- int mpi_errno = MPI_SUCCESS;
- HANDLE lhnd = INVALID_HANDLE_VALUE;
- int rc = -1;
- + ULARGE_INTEGER seg_sz_large;
- + seg_sz_large.QuadPart = seg_sz;
- if(!MPIU_SHMW_Ghnd_is_valid(hnd)){
- MPIU_Assert(flag & MPIU_SHMW_FLAG_SHM_CREATE);
- @@ -739,7 +741,7 @@ static inline int MPIU_SHMW_Seg_create_attach_temp
- if(flag & MPIU_SHMW_FLAG_SHM_CREATE){
- lhnd = CreateFileMapping(INVALID_HANDLE_VALUE, NULL,
- - PAGE_READWRITE, 0, seg_sz,
- + PAGE_READWRITE, seg_sz_large.HighPart, seg_sz_large.LowPart,
- MPIU_SHMW_Ghnd_get_by_ref(hnd));
- /* Return error if SHM seg already exists or create fails */
- MPIU_ERR_CHKANDJUMP2((lhnd == INVALID_HANDLE_VALUE) ||
- @@ -788,7 +790,7 @@ fn_fail:
- #undef FCNAME
- #define FCNAME MPIU_QUOTE(FUNCNAME)
- static inline int MPIU_SHMW_Seg_detach(
- - MPIU_SHMW_Hnd_t hnd, char **shm_addr_ptr, int seg_sz)
- + MPIU_SHMW_Hnd_t hnd, char **shm_addr_ptr, MPIU_Size_t seg_sz)
- {
- int mpi_errno = MPI_SUCCESS;
- int rc = -1;
- @@ -825,7 +827,7 @@ fn_fail:
- #undef FCNAME
- #define FCNAME MPIU_QUOTE(FUNCNAME)
- static inline int MPIU_SHMW_Seg_create(
- - MPIU_SHMW_Hnd_t hnd, int seg_sz)
- + MPIU_SHMW_Hnd_t hnd, MPIU_Size_t seg_sz)
- {
- int mpi_errno = MPI_SUCCESS;
- @@ -852,7 +854,7 @@ fn_fail:
- #undef FCNAME
- #define FCNAME MPIU_QUOTE(FUNCNAME)
- static inline int MPIU_SHMW_Seg_open(
- - MPIU_SHMW_Hnd_t hnd, int seg_sz)
- + MPIU_SHMW_Hnd_t hnd, MPIU_Size_t seg_sz)
- {
- int mpi_errno = MPI_SUCCESS;
- @@ -880,7 +882,7 @@ fn_fail:
- #undef FCNAME
- #define FCNAME MPIU_QUOTE(FUNCNAME)
- static inline int MPIU_SHMW_Seg_create_and_attach(
- - MPIU_SHMW_Hnd_t hnd, int seg_sz, char **shm_addr_ptr,
- + MPIU_SHMW_Hnd_t hnd, MPIU_Size_t seg_sz, char **shm_addr_ptr,
- int offset)
- {
- int mpi_errno = MPI_SUCCESS;
- @@ -912,7 +914,7 @@ fn_fail:
- #undef FCNAME
- #define FCNAME MPIU_QUOTE(FUNCNAME)
- static inline int MPIU_SHMW_Seg_attach(
- - MPIU_SHMW_Hnd_t hnd, int seg_sz, char **shm_addr_ptr,
- + MPIU_SHMW_Hnd_t hnd, MPIU_Size_t seg_sz, char **shm_addr_ptr,
- int offset)
- {
- int mpi_errno = MPI_SUCCESS;
Add Comment
Please, Sign In to add comment