From 090712ebf92618e248d1b1a37973bb6ff04a9ff5 Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Fri, 12 Aug 2005 20:30:25 +0000 Subject: [PATCH] Remove two useless files (they weren't even listed in their respective Makefile.am's) This commit was SVN r6841. --- opal/include/sys/numa.h | 42 ------------------------- opal/mca/base/mca_base_mem.c | 59 ------------------------------------ 2 files changed, 101 deletions(-) delete mode 100644 opal/include/sys/numa.h delete mode 100644 opal/mca/base/mca_base_mem.c diff --git a/opal/include/sys/numa.h b/opal/include/sys/numa.h deleted file mode 100644 index 474be4a139..0000000000 --- a/opal/include/sys/numa.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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 diff --git a/opal/mca/base/mca_base_mem.c b/opal/mca/base/mca_base_mem.c deleted file mode 100644 index 545e57a1db..0000000000 --- a/opal/mca/base/mca_base_mem.c +++ /dev/null @@ -1,59 +0,0 @@ -/* - * 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 "ompi_config.h" - -#include -#include - -#include "mpi.h" -#include "include/constants.h" -#include "mca/mca.h" -#include "mca/base/base.h" - - -int mca_base_alloc_mem(MPI_Aint size, MPI_Info info, void *baseptr) -{ - void *temp; - - /* Error checks */ - - if (0 == size) - return OMPI_SUCCESS; - else if (size < 0) - return OMPI_ERROR; - - /* Do the alloc */ - - temp = malloc(size); - if (NULL == temp) - return OMPI_ERROR; - - /* All done */ - - *((void **) baseptr) = temp; - return OMPI_SUCCESS; -} - - -int mca_base_free_mem(void *baseptr) -{ - if (NULL != baseptr) - free(baseptr); - - return OMPI_SUCCESS; -} -