Skip to content

Commit

Permalink
Adding pshmemx symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
wrrobin committed Oct 23, 2023
1 parent bb6b457 commit aa5de22
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/init_c.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,18 @@
#pragma weak shmem_init = pshmem_init
#define shmem_init pshmem_init

#pragma weak shmemx_heap_preinit = pshmemx_heap_preinit
#define shmemx_heap_preinit pshmemx_heap_preinit

#pragma weak shmemx_heap_postinit = pshmemx_heap_postinit
#define shmemx_heap_postinit pshmemx_heap_postinit

#pragma weak shmem_init_thread = pshmem_init_thread
#define shmem_init_thread pshmem_init_thread

#pragma weak shmemx_heap_preinit_thread = pshmemx_heap_preinit_thread
#define shmemx_heap_preinit_thread pshmemx_heap_preinit_thread

#pragma weak shmem_finalize = pshmem_finalize
#define shmem_finalize pshmem_finalize

Expand Down
3 changes: 3 additions & 0 deletions src/symmetric_heap_c.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@
#pragma weak shmem_malloc_with_hints = pshmem_malloc_with_hints
#define shmem_malloc_with_hints pshmem_malloc_with_hints

#pragma weak shmemx_heap_create = pshmemx_heap_create
#define shmemx_heap_create pshmemx_heap_create

#endif /* ENABLE_PROFILING */

static char *shmem_internal_heap_curr = NULL;
Expand Down

0 comments on commit aa5de22

Please sign in to comment.