323e4418b9
- similar to opal/shmem - next step is some refactoring and merge into opal/shmem Developed by Igor, reviewed by AlexM, MikeD This commit fixes trac:4261. This commit was SVN r30855. The following Trac tickets were found above: Ticket 4261 --> https://svn.open-mpi.org/trac/ompi/ticket/4261
30 строки
606 B
C
30 строки
606 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"
|
|
|
|
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;
|
|
}
|