2004-08-18 23:24:27 +00:00
|
|
|
/*
|
2004-11-22 01:38:40 +00:00
|
|
|
* 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.
|
2004-11-28 20:09:25 +00:00
|
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
|
|
* University of Stuttgart. All rights reserved.
|
2005-03-24 12:43:37 +00:00
|
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
* All rights reserved.
|
2004-11-22 01:38:40 +00:00
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
2004-08-18 23:24:27 +00:00
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "include/constants.h"
|
2005-07-03 16:06:07 +00:00
|
|
|
#include "opal/class/opal_object.h"
|
2004-08-18 23:24:27 +00:00
|
|
|
|
|
|
|
typedef int affinity_t;
|
|
|
|
|
|
|
|
#ifndef ENABLE_NUMA
|
|
|
|
|
2005-07-03 21:38:51 +00:00
|
|
|
static inline int opal_set_affinity(void *addr, size_t size, affinity_t affinity)
|
2004-08-18 23:24:27 +00:00
|
|
|
{
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2005-07-03 21:38:51 +00:00
|
|
|
static inline int opal_get_cpu_set(void)
|
2004-08-18 23:24:27 +00:00
|
|
|
{
|
|
|
|
return OMPI_SUCCESS;
|
|
|
|
}
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
/* OS / architecture specific implementation elsewhere */
|
|
|
|
|
2005-07-03 21:38:51 +00:00
|
|
|
int opal_set_affinity(void *addr, size_t size, affinity_t affinity);
|
2004-08-18 23:24:27 +00:00
|
|
|
|
2005-07-03 21:38:51 +00:00
|
|
|
int opal_get_cpu_set(void)
|
2004-08-18 23:24:27 +00:00
|
|
|
|
|
|
|
#endif
|