9da0b4fe1d
This commit was SVN r6325.
43 строки
1.0 KiB
C
43 строки
1.0 KiB
C
/*
|
|
* Copyright (c) 2004-2005 The Trustees of Indiana University.
|
|
* All rights reserved.
|
|
* Copyright (c) 2004-2005 The Trustees of the University of Tennessee.
|
|
* All rights reserved.
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
* University of Stuttgart. All rights reserved.
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
* All rights reserved.
|
|
* $COPYRIGHT$
|
|
*
|
|
* Additional copyrights may follow
|
|
*
|
|
* $HEADER$
|
|
*/
|
|
|
|
#include "include/constants.h"
|
|
#include "opal/class/opal_object.h"
|
|
|
|
typedef int affinity_t;
|
|
|
|
#ifndef ENABLE_NUMA
|
|
|
|
static inline int opal_set_affinity(void *addr, size_t size, affinity_t affinity)
|
|
{
|
|
return 1;
|
|
}
|
|
|
|
static inline int opal_get_cpu_set(void)
|
|
{
|
|
return OMPI_SUCCESS;
|
|
}
|
|
|
|
#else
|
|
|
|
/* OS / architecture specific implementation elsewhere */
|
|
|
|
int opal_set_affinity(void *addr, size_t size, affinity_t affinity);
|
|
|
|
int opal_get_cpu_set(void)
|
|
|
|
#endif
|