Skip to content

Commit

Permalink
Merge pull request #79 from minsii/pr/20x-fix/pragma
Browse files Browse the repository at this point in the history
Revert "inline: setup pragma to inline only perf-critical path"

No reviewer
  • Loading branch information
minsii committed Dec 12, 2020
2 parents 9eaa6cb + 5af83a2 commit 127f663
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 11 deletions.
1 change: 0 additions & 1 deletion src/include/oshmpi_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,6 @@ OSHMPI_STATIC_INLINE_PREFIX void ctx_local_complete_impl(shmem_ctx_t ctx
OSHMPI_ATTRIBUTE((unused)), int pe,
MPI_Win win)
{
#pragma forceinline
OSHMPI_CALLMPI(MPI_Win_flush_local(pe, win));
}

Expand Down
2 changes: 0 additions & 2 deletions src/internal/rma_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ OSHMPI_STATIC_INLINE_PREFIX void ctx_put_nbi_impl(shmem_ctx_t ctx OSHMPI_ATTRIBU

/* TODO: check non-int inputs exceeds int limit */

#pragma forceinline
OSHMPI_CALLMPI(MPI_Put(origin_addr, (int) origin_count, origin_type, pe,
target_disp, (int) target_count, target_type, win));
OSHMPI_SET_OUTSTANDING_OP(win, OSHMPI_OP_OUTSTANDING); /* PUT is always outstanding */
Expand All @@ -48,7 +47,6 @@ OSHMPI_STATIC_INLINE_PREFIX void ctx_get_nbi_impl(shmem_ctx_t ctx OSHMPI_ATTRIBU

/* TODO: check non-int inputs exceeds int limit */

#pragma forceinline
OSHMPI_CALLMPI(MPI_Get(origin_addr, (int) origin_count, origin_type, pe,
target_disp, (int) target_count, target_type, win));
OSHMPI_SET_OUTSTANDING_OP(win, completion); /* GET can be outstanding or completed */
Expand Down
5 changes: 0 additions & 5 deletions src/shmem/mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,33 +9,28 @@

void *shmem_malloc(size_t size)
{
#pragma noinline recursive
return OSHMPI_malloc(size);
}

void shmem_free(void *ptr)
{
#pragma noinline recursive
OSHMPI_free(ptr);
}

void *shmem_realloc(void *ptr, size_t size)
{
#pragma noinline recursive
return OSHMPI_realloc(ptr, size);
}

void *shmem_align(size_t alignment, size_t size)
{
#pragma noinline recursive
return OSHMPI_align(alignment, size);
}

void *shmem_calloc(size_t count, size_t size)
{
void *ptr = NULL;

#pragma noinline recursive
ptr = OSHMPI_malloc(size);
memset(ptr, 0, count * size);

Expand Down
3 changes: 0 additions & 3 deletions src/shmem/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

void shmem_init(void)
{
#pragma noinline recursive
OSHMPI_initialize_thread(OSHMPI_DEFAULT_THREAD_SAFETY, NULL);
if (OSHMPI_env.version && OSHMPI_global.world_rank == 0)
OSHMPI_PRINTF("SHMEM library version:\n"
Expand All @@ -31,7 +30,6 @@ int shmem_n_pes(void)

void shmem_finalize(void)
{
#pragma noinline recursive
OSHMPI_finalize();
}

Expand All @@ -43,7 +41,6 @@ void shmem_global_exit(int status)
int shmem_init_thread(int requested, int *provided)
{
int mpi_errno = MPI_SUCCESS;
#pragma noinline recursive
mpi_errno = OSHMPI_initialize_thread(requested, provided);

if (OSHMPI_env.version && OSHMPI_global.world_rank == 0)
Expand Down

0 comments on commit 127f663

Please sign in to comment.