Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ompi/mca/osc/pt2pt/osc_pt2pt_frag.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* reserved.
* Copyright (c) 2015 Research Organization for Information Science
* and Technology (RIST). All rights reserved.
* Copyright (c) 2017 Cisco Systems, Inc. All rights reserved
* $COPYRIGHT$
*
* Additional copyrights may follow
Expand Down Expand Up @@ -153,7 +154,6 @@ int ompi_osc_pt2pt_frag_flush_pending_all (ompi_osc_pt2pt_module_t *module)
int ompi_osc_pt2pt_frag_flush_target (ompi_osc_pt2pt_module_t *module, int target)
{
ompi_osc_pt2pt_peer_t *peer = ompi_osc_pt2pt_peer_lookup (module, target);
ompi_osc_pt2pt_frag_t *frag;
int ret = OMPI_SUCCESS;

OPAL_OUTPUT_VERBOSE((50, ompi_osc_base_framework.framework_output,
Expand Down
3 changes: 2 additions & 1 deletion ompi/mca/topo/treematch/treematch/tm_kpartitioning.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ static int verbose_level = ERROR;
#define MAX_TRIALS 10
#define USE_KL_STRATEGY 1


#if !defined(MIN)
#define MIN(a,b) ((a)<(b)?(a):(b))
#endif


int fill_tab(int **,int *,int,int,int,int);
Expand Down
4 changes: 4 additions & 0 deletions ompi/mca/topo/treematch/treematch/tm_tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@
#include "tm_thread_pool.h"


#if !defined(MIN)
#define MIN(a,b) ((a)<(b)?(a):(b))
#endif
#if !defined(MAX)
#define MAX(a,b) ((a)>(b)?(a):(b))
#endif

#ifndef __CHARMC__
#define __CHARMC__ 0
Expand Down
15 changes: 10 additions & 5 deletions opal/mca/memory/patcher/memory_patcher_component.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* University of Stuttgart. All rights reserved.
* Copyright (c) 2004-2005 The Regents of the University of California.
* All rights reserved.
* Copyright (c) 2009-2016 Cisco Systems, Inc. All rights reserved.
* Copyright (c) 2009-2017 Cisco Systems, Inc. All rights reserved
* Copyright (c) 2013-2017 Los Alamos National Security, LLC. All rights
* reserved.
* Copyright (c) 2016 Research Organization for Information Science
Expand Down Expand Up @@ -59,6 +59,11 @@ static int patcher_query (int *);

static int mca_memory_patcher_priority;

/* NTH: we can't currently allow madvise to be intercepted due to a
* deadlock when running with glibc. In the future, we may re-enable
* this hook if the deadlock can be resolved. */
#define WANT_INTERCEPT_MADVISE 0

opal_memory_patcher_component_t mca_memory_patcher_component = {
.super = {
.memoryc_version = {
Expand Down Expand Up @@ -244,6 +249,7 @@ static void *intercept_mremap (void *start, size_t oldlen, void *new_address, si

#endif

#if WANT_INTERCEPT_MADVISE
#if defined (SYS_madvise)

static int (*original_madvise) (void *, size_t, int);
Expand Down Expand Up @@ -278,6 +284,7 @@ static int intercept_madvise (void *start, size_t length, int advice)
}

#endif
#endif // WANT_INTERCEPT_MADVISE

#if defined SYS_brk

Expand Down Expand Up @@ -496,16 +503,14 @@ static int patcher_open (void)
}
#endif

/* NTH: we can't currently allow madvise to be intercepted due to a deadlock when running with glibc. in
* the future we may re-enable this hook if the deadlock can be resolved. */
#if 0
#if WANT_INTERCEPT_MADVISE
#if defined (SYS_madvise)
rc = opal_patcher->patch_symbol ("madvise", (uintptr_t)intercept_madvise, (uintptr_t *) &original_madvise);
if (OPAL_SUCCESS != rc) {
return rc;
}
#endif
#endif
#endif // WANT_INTERCEPT_MADVISE

#if defined(SYS_shmdt) && defined(__linux__)
rc = opal_patcher->patch_symbol ("shmdt", (uintptr_t) intercept_shmdt, (uintptr_t *) &original_shmdt);
Expand Down