Skip to content

Commit

Permalink
Add shmem_pcontrol
Browse files Browse the repository at this point in the history
  • Loading branch information
dalcinl committed Mar 14, 2023
1 parent f2b2b82 commit 5f43bbd
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/shmem.h.in.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,9 @@ void shmem_clear_lock(long *lock);
void shmem_set_lock(long *lock);
int shmem_test_lock(long *lock);

/* -- Profiling Interface -- */
void shmem_pcontrol(int level, ...);

/* -- Cache Management -- */
/* (deprecated APIs) */
void shmem_clear_cache_inv(void);
Expand Down
1 change: 1 addition & 0 deletions src/shmem/Makefile.mk
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ liboshmpi_la_SOURCES += src/shmem/setup.c \
src/shmem/p2p_typed.c \
src/shmem/order.c \
src/shmem/lock.c \
src/shmem/profile.c \
src/shmem/cache.c

EXTRA_DIST += src/shmem/rma_typed.c.tpl \
Expand Down
11 changes: 11 additions & 0 deletions src/shmem/profile.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/* -*- Mode: C; c-basic-offset:4 ; -*- */
/*
* (C) 2023 by Argonne National Laboratory.
* See COPYRIGHT in top-level directory.
*/
#include <shmem.h>
#include "oshmpi_impl.h"

void shmem_pcontrol(int level, ...)
{
}

0 comments on commit 5f43bbd

Please sign in to comment.