2013-09-10 19:34:09 +04:00
|
|
|
/*
|
2016-04-13 22:03:44 +03:00
|
|
|
* Copyright (c) 2013-2016 Mellanox Technologies, Inc.
|
2013-09-10 19:34:09 +04:00
|
|
|
* All rights reserved.
|
|
|
|
* $COPYRIGHT$
|
2015-06-24 06:59:57 +03:00
|
|
|
*
|
2013-09-10 19:34:09 +04:00
|
|
|
* Additional copyrights may follow
|
2015-06-24 06:59:57 +03:00
|
|
|
*
|
2013-09-10 19:34:09 +04:00
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "oshmem_config.h"
|
|
|
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
#include "orte/util/show_help.h"
|
|
|
|
|
2015-06-24 06:59:57 +03:00
|
|
|
#include "oshmem/constants.h"
|
2013-09-10 19:34:09 +04:00
|
|
|
#include "oshmem/include/shmem.h"
|
|
|
|
#include "oshmem/shmem/shmem_api_logger.h"
|
|
|
|
#include "oshmem/runtime/runtime.h"
|
|
|
|
#include "oshmem/shmem/shmem_lock.h"
|
|
|
|
|
2014-04-08 02:55:21 +04:00
|
|
|
#if OSHMEM_PROFILING
|
2014-04-22 20:49:20 +04:00
|
|
|
#include "oshmem/include/pshmem.h"
|
2014-04-08 02:55:21 +04:00
|
|
|
#pragma weak shmem_test_lock = pshmem_test_lock
|
|
|
|
#include "oshmem/shmem/c/profile/defines.h"
|
|
|
|
#endif
|
|
|
|
|
2016-04-13 22:03:44 +03:00
|
|
|
int shmem_test_lock(volatile long *lock)
|
2013-09-10 19:34:09 +04:00
|
|
|
{
|
2016-04-13 22:03:44 +03:00
|
|
|
return _shmem_test_lock((void *)lock, sizeof(long));
|
2013-09-10 19:34:09 +04:00
|
|
|
}
|