b20de8ae34
use weak symbols, based on http://www.open-mpi.org/community/lists/devel/2014/03/14429.php fixed by Roman, reviewed by Igor/Miked cmr=v1.8.1:reviewer=ompi-rm1.8 This commit was SVN r31330.
35 строки
739 B
C
35 строки
739 B
C
/*
|
|
* Copyright (c) 2013 Mellanox Technologies, Inc.
|
|
* All rights reserved.
|
|
* $COPYRIGHT$
|
|
*
|
|
* Additional copyrights may follow
|
|
*
|
|
* $HEADER$
|
|
*/
|
|
#include "oshmem_config.h"
|
|
|
|
#include "oshmem/constants.h"
|
|
#include "oshmem/include/shmem.h"
|
|
|
|
#include "oshmem/runtime/runtime.h"
|
|
#include "oshmem/mca/memheap/memheap.h"
|
|
|
|
#if OSHMEM_PROFILING
|
|
#pragma weak shmem_addr_accessible = pshmem_addr_accessible
|
|
#include "oshmem/shmem/c/profile/defines.h"
|
|
#endif
|
|
|
|
int shmem_addr_accessible(void *addr, int pe)
|
|
{
|
|
void* rva;
|
|
sshmem_mkey_t *mkey;
|
|
|
|
RUNTIME_CHECK_INIT();
|
|
|
|
mkey = MCA_MEMHEAP_CALL(get_cached_mkey(pe, addr,
|
|
oshmem_get_transport_id(pe), &rva));
|
|
|
|
return mkey ? 1 : 0;
|
|
}
|