-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. shmem_calloc needs to allocate count*size not size. resolves #122 2. push calloc impl down into OSHMPI layer. this is a performance optimization. previously, there was a theoretical possibility that some PEs could return before other PEs were done allocating. we could have fixed this by adding a second barrier, but instead we pushed calloc down to OSHMPI layer. a side benefit is that debugging output now exposes calloc calls directly. 3. early return if count or size is zero, as required by OpenSHMEM 1.5 section 9.3.3, which is noted in source code comments. Signed-off-by: Jeff Hammond <[email protected]>
- Loading branch information
1 parent
8c112d8
commit c0c56fe
Showing
3 changed files
with
23 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters