55e35e0f6e
Few components had wrong mca variables registration procedure List of them: - atomic basic and mxm - spml yoda and ikrit Two mca variables as runtime_api_verbose and runtime_lock_recursive change names to oshmem_api_verbose and oshmem_lock_recursive otherwise they were not shown by oshmem_info tool. fixed by Igor, reviewed by Miked cmr=v1.8.2:reviewer=ompi-rm1.8 This commit was SVN r31962.
51 строка
1.1 KiB
C
51 строка
1.1 KiB
C
/*
|
|
* Copyright (c) 2013 Mellanox Technologies, Inc.
|
|
* All rights reserved.
|
|
* $COPYRIGHT$
|
|
*
|
|
* Additional copyrights may follow
|
|
*
|
|
* $HEADER$
|
|
*/
|
|
|
|
#include "oshmem_config.h"
|
|
#include <stdio.h>
|
|
|
|
#include "oshmem/constants.h"
|
|
#include "oshmem/mca/atomic/atomic.h"
|
|
#include "oshmem/mca/spml/spml.h"
|
|
#include "oshmem/mca/memheap/memheap.h"
|
|
#include "oshmem/proc/proc.h"
|
|
#include "atomic_mxm.h"
|
|
|
|
/*
|
|
* Initial query function that is invoked during initialization, allowing
|
|
* this module to indicate what level of thread support it provides.
|
|
*/
|
|
int mca_atomic_mxm_init(bool enable_progress_threads, bool enable_threads)
|
|
{
|
|
return OSHMEM_SUCCESS;
|
|
}
|
|
|
|
int mca_atomic_mxm_finalize(void)
|
|
{
|
|
return OSHMEM_SUCCESS;
|
|
}
|
|
|
|
mca_atomic_base_module_t *
|
|
mca_atomic_mxm_query(int *priority)
|
|
{
|
|
mca_atomic_mxm_module_t *module;
|
|
|
|
*priority = mca_atomic_mxm_component.priority;
|
|
|
|
module = OBJ_NEW(mca_atomic_mxm_module_t);
|
|
if (module) {
|
|
module->super.atomic_fadd = mca_atomic_mxm_fadd;
|
|
module->super.atomic_cswap = mca_atomic_mxm_cswap;
|
|
return &(module->super);
|
|
}
|
|
|
|
return NULL ;
|
|
}
|