-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
no-op implementation, which is what GA appears to be using right now. there is no documentation of this so i will be implemented using the ComEx source as the spec, whenever we bother to do that. This resolves #28 Signed-off-by: Hammond, Jeff R <[email protected]>
- Loading branch information
Jeff Hammond
authored
Dec 25, 2019
1 parent
2ec4348
commit 0a86364
Showing
4 changed files
with
74 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/* | ||
* Copyright (C) 2019. See COPYRIGHT in top-level directory. | ||
*/ | ||
|
||
#include <armci.h> | ||
#include <armci_internals.h> | ||
|
||
/* -- begin weak symbols block -- */ | ||
#if defined(HAVE_PRAGMA_WEAK) | ||
# pragma weak ARMCI_Malloc_memdev = PARMCI_Malloc_memdev | ||
#elif defined(HAVE_PRAGMA_HP_SEC_DEF) | ||
# pragma _HP_SECONDARY_DEF PARMCI_Malloc_memdev ARMCI_Malloc_memdev | ||
#elif defined(HAVE_PRAGMA_CRI_DUP) | ||
# pragma _CRI duplicate ARMCI_Malloc_memdev as PARMCI_Malloc_memdev | ||
#endif | ||
/* -- end weak symbols block -- */ | ||
int PARMCI_Malloc_memdev(void **ptr_arr, armci_size_t bytes, const char* device) | ||
{ | ||
return ARMCI_Malloc_group(ptr_arr, bytes, &ARMCI_GROUP_WORLD); | ||
} | ||
|
||
/* -- begin weak symbols block -- */ | ||
#if defined(HAVE_PRAGMA_WEAK) | ||
# pragma weak ARMCI_Malloc_group_memdev = PARMCI_Malloc_group_memdev | ||
#elif defined(HAVE_PRAGMA_HP_SEC_DEF) | ||
# pragma _HP_SECONDARY_DEF PARMCI_Malloc_group_memdev ARMCI_Malloc_group_memdev | ||
#elif defined(HAVE_PRAGMA_CRI_DUP) | ||
# pragma _CRI duplicate ARMCI_Malloc_group_memdev as PARMCI_Malloc_group_memdev | ||
#endif | ||
/* -- end weak symbols block -- */ | ||
int PARMCI_Malloc_group_memdev(void **ptr_arr, armci_size_t bytes, ARMCI_Group *group, const char *device) | ||
{ | ||
return ARMCI_Malloc_group(ptr_arr, bytes, group); | ||
} | ||
|
||
/* -- begin weak symbols block -- */ | ||
#if defined(HAVE_PRAGMA_WEAK) | ||
# pragma weak ARMCI_Free_memdev = PARMCI_Free_memdev | ||
#elif defined(HAVE_PRAGMA_HP_SEC_DEF) | ||
# pragma _HP_SECONDARY_DEF PARMCI_Free_memdev ARMCI_Free_memdev | ||
#elif defined(HAVE_PRAGMA_CRI_DUP) | ||
# pragma _CRI duplicate ARMCI_Free_memdev as PARMCI_Free_memdev | ||
#endif | ||
/* -- end weak symbols block -- */ | ||
int PARMCI_Free_memdev(void *ptr) | ||
{ | ||
return ARMCI_Free(ptr); | ||
} |
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