1
1
This commit was SVN r2217.
Этот коммит содержится в:
David Daniel 2004-08-18 23:13:17 +00:00
родитель 715ceeb569
Коммит 48fb5094df
28 изменённых файлов: 9 добавлений и 423 удалений

Просмотреть файл

@ -8,9 +8,7 @@ include $(top_srcdir)/config/Makefile.options
SUBDIRS = cygwin darwin irix linux tru64
headers = \
atomic.h \
ompi_system.h \
numa.h
atomic.h
# Conditionally install the header files

Просмотреть файл

@ -6,9 +6,7 @@
include $(top_srcdir)/config/Makefile.options
headers = \
atomic.h \
smp_dev_params.h \
ulm_os.h
atomic.h
# Conditionally install the header files

Просмотреть файл

@ -1,14 +0,0 @@
/*
* $HEADER$
*/
static const int LogBase2PageSize = 12;
static const int SMPPageSize = 1 << LogBase2PageSize;
static const int LogBase2ChunkSize = 16;
static const int NumMemoryBuckets = 3;
static const int MProt = MMAP_SHARED_PROT;
static const int MFlags = MMAP_SHARED_FLAGS;
static const int PagesPerDevice = 2048;
static const int LogBase2MaxPoolSize = 32;
static const int MaxStkElements = 32768;
static const bool ZeroAllocBase = false;

Просмотреть файл

@ -1,30 +0,0 @@
/*
* $HEADER$
*/
/*
* ulm_os.h - This file contains CYGWIN OS dependent definitions.
*/
#include <unistd.h>
#ifdef __CYGWIN__
#define RESTRICT_MACRO __restrict__
#ifdef __i386
#define PAGESIZE 4096
#define SMPPAGESIZE 4096
#define intwordaligned(a) ( ( ((long)(a)&3L) == 0L) ? 1 : 0 )
#define MEMCOPY_FUNC bcopy
#define SMPFirstFragPayload 3496
#define SMPSecondFragPayload 8192
#define CACHE_ALIGNMENT 128
#else
#error
#endif
#else
#error
#endif

Просмотреть файл

@ -7,13 +7,3 @@ include $(top_srcdir)/config/Makefile.options
SUBDIRS = ppc_32 ppc_64
headers = ulm_os.h
# Conditionally install the header files
if WANT_INSTALL_HEADERS
ompidir = $(includedir)/openmpi/os/darwin
ompi_HEADERS = $(headers)
else
ompidir = $(includedir)
endif

Просмотреть файл

@ -1,12 +1,3 @@
#
# $HEADER$
#
include $(top_srcdir)/config/Makefile.options
headers = \
atomic.h \
smp_dev_params.h
# Conditionally install the header files

Просмотреть файл

@ -1,14 +0,0 @@
/*
* $HEADER$
*/
static const int LogBase2PageSize = 12;
static const int SMPPageSize = 1 << LogBase2PageSize;
static const int LogBase2ChunkSize = 16;
static const int NumMemoryBuckets = 3;
static const int MProt = MMAP_SHARED_PROT;
static const int MFlags = MMAP_SHARED_FLAGS;
static const int PagesPerDevice = 2048;
static const int LogBase2MaxPoolSize = 32;
static const int MaxStkElements = 32768;
static const bool ZeroAllocBase = false;

Просмотреть файл

@ -6,8 +6,7 @@
include $(top_srcdir)/config/Makefile.options
headers = \
atomic.h \
smp_dev_params.h
atomic.h
# Conditionally install the header files

Просмотреть файл

@ -1,14 +0,0 @@
/*
* $HEADER$
*/
static const int LogBase2PageSize = 12;
static const int SMPPageSize = 1 << LogBase2PageSize;
static const int LogBase2ChunkSize = 16;
static const int NumMemoryBuckets = 3;
static const int MProt = MMAP_SHARED_PROT;
static const int MFlags = MMAP_SHARED_FLAGS;
static const int PagesPerDevice = 2048;
static const int LogBase2MaxPoolSize = 32;
static const int MaxStkElements = 32768;
static const bool ZeroAllocBase = false;

Просмотреть файл

@ -1,31 +0,0 @@
/*
* $HEADER$
*/
/*
* ulm_os.h - This file contains DARWIN OS dependent definitions.
*/
#include <unistd.h>
#ifdef __APPLE__
#define RESTRICT_MACRO __restrict__
#ifdef __ppc__
#define PAGESIZE 4096
#define SMPPAGESIZE 4096
#define intwordaligned(a) ( ( ((long)(a)&3L) == 0L) ? 1 : 0 )
#define MEMCOPY_FUNC bcopy
#define SMPFirstFragPayload 3496
#define SMPSecondFragPayload 8192
#define CACHE_ALIGNMENT 256
/* Reference: http://developer.apple.com/hardware/ve/caches.html gives cacheline as 32 bytes */
#else
#error
#endif
#else
#error
#endif

Просмотреть файл

@ -8,9 +8,7 @@ include $(top_srcdir)/config/Makefile.options
SUBDIRS = sn0
headers = \
atomic.h \
smp_dev_params.h \
ulm_os.h
atomic.h
# Conditionally install the header files

Просмотреть файл

@ -1,14 +0,0 @@
/*
* $HEADER$
*/
static const int LogBase2PageSize = 14;
static const int SMPPageSize = 1 << LogBase2PageSize;
static const int LogBase2ChunkSize = 16;
static const int NumMemoryBuckets = 3;
static const int MProt = MMAP_SHARED_PROT;
static const int MFlags = MMAP_SHARED_FLAGS;
static const int PagesPerDevice = 2048;
static const int LogBase2MaxPoolSize = 32;
static const int MaxStkElements = 32768;
static const bool ZeroAllocBase = false;

Просмотреть файл

@ -1,28 +0,0 @@
/*
* $HEADER$
*/
/*
* ulm_os.h - This file contains IRIX OS dependent definitions.
*/
#ifndef IRIX_ULM_OS
#define IRIX_ULM_OS
#include <strings.h> /* for bcopy */
/* memory page size */
#define LOG2PAGESIZE 14
#define SMPPAGESIZE (1 << LOG2PAGESIZE)
#define RESTRICT_MACRO restrict
#define intwordaligned(a) ( ( ((long long)(a)&3L) == 0L) ? 1 : 0 )
#define PAGESIZE 16384
#define CACHE_ALIGNMENT 128
/* memory copy function */
#define MEMCOPY_FUNC bcopy
#endif /* IRIX_ULM_OS */

Просмотреть файл

@ -6,14 +6,3 @@
include $(top_srcdir)/config/Makefile.options
SUBDIRS = alpha i686 ia64 x86_64
headers = ulm_os.h
# Conditionally install the header files
if WANT_INSTALL_HEADERS
ompidir = $(includedir)/openmpi/os/linux
ompi_HEADERS = $(headers)
else
ompidir = $(includedir)
endif

Просмотреть файл

@ -6,8 +6,7 @@
include $(top_srcdir)/config/Makefile.options
headers = \
atomic.h \
smp_dev_params.h
atomic.h
# Conditionally install the header files

Просмотреть файл

@ -1,14 +0,0 @@
/*
* $HEADER$
*/
static const int LogBase2PageSize = 13;
static const int SMPPageSize = 1 << LogBase2PageSize;
static const int LogBase2ChunkSize = 16;
static const int NumMemoryBuckets = 3;
static const int MProt = MMAP_SHARED_PROT;
static const int MFlags = MMAP_SHARED_FLAGS;
static const int PagesPerDevice = 2048;
static const int LogBase2MaxPoolSize = 32;
static const int MaxStkElements = 32768;
static const bool ZeroAllocBase = false;

Просмотреть файл

@ -7,8 +7,7 @@ include $(top_srcdir)/config/Makefile.options
headers = \
atomic.h \
lock.s \
smp_dev_params.h
lock.s
# Conditionally install the header files

Просмотреть файл

@ -1,14 +0,0 @@
/*
* $HEADER$
*/
static const int LogBase2PageSize = 12;
static const int SMPPageSize = 1 << LogBase2PageSize;
static const int LogBase2ChunkSize = 16;
static const int NumMemoryBuckets = 3;
static const int MProt = MMAP_SHARED_PROT;
static const int MFlags = MMAP_SHARED_FLAGS;
static const int PagesPerDevice = 2048;
static const int LogBase2MaxPoolSize = 32;
static const int MaxStkElements = 32768;
static const bool ZeroAllocBase = false;

Просмотреть файл

@ -7,8 +7,7 @@ include $(top_srcdir)/config/Makefile.options
headers = \
atomic.h \
lock.s \
smp_dev_params.h
lock.s
# Conditionally install the header files

Просмотреть файл

@ -1,14 +0,0 @@
/*
* $HEADER$
*/
static const int LogBase2PageSize = 14;
static const int SMPPageSize = 1 << LogBase2PageSize;
static const int LogBase2ChunkSize = 16;
static const int NumMemoryBuckets = 3;
static const int MProt = MMAP_SHARED_PROT;
static const int MFlags = MMAP_SHARED_FLAGS;
static const int PagesPerDevice = 2048;
static const int LogBase2MaxPoolSize = 32;
static const int MaxStkElements = 32768;
static const bool ZeroAllocBase = false;

Просмотреть файл

@ -1,59 +0,0 @@
/*
* $HEADER$
*/
#ifndef ULM_OS_H_HAS_BEEN_INCLUDED
#define ULM_OS_H_HAS_BEEN_INCLUDED
/*
* ulm_os.h - This file contains LINUX OS dependent definitions.
*/
#include <unistd.h>
#if defined(__linux__)
#define RESTRICT_MACRO __restrict__
#if defined(__i386)
#define PAGESIZE 4096
#define SMPPAGESIZE 4096
#define intwordaligned(a) ( ( ((long)(a)&3L) == 0L) ? 1 : 0 )
#define MEMCOPY_FUNC bcopy
#define SMPFirstFragPayload 3496
#define SMPSecondFragPayload 8192
#define CACHE_ALIGNMENT 128
#else
#if defined(__ia64)
#define PAGESIZE 16384
#define SMPPAGESIZE 16384
#define CACHE_ALIGNMENT 128
#define intwordaligned(a) ( ( ((long)(a)&3L) == 0L) ? 1 : 0 )
#else
#if defined(__alpha)
#define PAGESIZE 8192
#define SMPPAGESIZE 8192
#define CACHE_ALIGNMENT 128
#define intwordaligned(a) ( ( ((long long)(a)&3L) == 0L) ? 1 : 0 )
#else
#if defined(__x86_64)
#define PAGESIZE 4096
#define SMPPAGESIZE 4096
#define intwordaligned(a) ( ( ((long)(a)&3L) == 0L) ? 1 : 0 )
#define SMPFirstFragPayload 3496
#define SMPSecondFragPayload 8192
#define CACHE_ALIGNMENT 128
#else /* !__x86_64 */
#error
#endif /* __x86_64 */
#endif /* __alpha */
#endif /* __ia64 */
#endif /* __i386 */
#else /* ! __linux__ */
#error
#endif /* __linux__ */
#endif /* ULM_OS_H_HAS_BEEN_INCLUDED */

Просмотреть файл

@ -6,8 +6,7 @@
include $(top_srcdir)/config/Makefile.options
headers = \
atomic.h \
smp_dev_params.h
atomic.h
# Conditionally install the header files

Просмотреть файл

@ -1,14 +0,0 @@
/*
* $HEADER$
*/
static const int LogBase2PageSize = 12;
static const int SMPPageSize = 1 << LogBase2PageSize;
static const int LogBase2ChunkSize = 16;
static const int NumMemoryBuckets = 3;
static const int MProt = MMAP_SHARED_PROT;
static const int MFlags = MMAP_SHARED_FLAGS;
static const int PagesPerDevice = 2048;
static const int LogBase2MaxPoolSize = 32;
static const int MaxStkElements = 32768;
static const bool ZeroAllocBase = false;

Просмотреть файл

@ -1,30 +0,0 @@
/*
* $HEADER$
*/
#include "include/constants.h"
#include "class/ompi_object.h"
typedef int affinity_t;
#ifndef ENABLE_NUMA
static inline int ompi_set_affinity(void *addr, size_t size, affinity_t affinity)
{
return 1;
}
static inline int ompi_get_cpu_set(void)
{
return OMPI_SUCCESS;
}
#else
/* OS / architecture specific implementation elsewhere */
int ompi_set_affinity(void *addr, size_t size, affinity_t affinity);
int ompi_get_cpu_set(void)
#endif

Просмотреть файл

@ -1,35 +0,0 @@
/*
* $HEADER$
*/
#ifndef OMPI_SYSTEM_H
#define OMPI_SYSTEM_H
/* conditionally include system dependent stuff here */
#if defined (__mips)
#include "os/irix/ulm_os.h"
#elif defined (__linux__)
#include "os/linux/ulm_os.h"
#elif defined (__osf__)
#include "os/tru64/ulm_os.h"
#elif defined (__APPLE__)
#include "os/darwin/ulm_os.h"
#elif defined (__CYGWIN__)
#include "os/cygwin/ulm_os.h"
#else
# error
#endif
#endif /* OMPI_SYSTEM_H */

Просмотреть файл

@ -6,9 +6,7 @@
include $(top_srcdir)/config/Makefile.options
headers = \
atomic.h \
smp_dev_params.h \
ulm_os.h
atomic.h
# Conditionally install the header files

Просмотреть файл

@ -1,14 +0,0 @@
/*
* $HEADER$
*/
static const int LogBase2PageSize = 13;
static const int SMPPageSize = 1 << LogBase2PageSize;
static const int LogBase2ChunkSize = 16;
static const int NumMemoryBuckets = 3;
static const int MProt = MMAP_SHARED_PROT;
static const int MFlags = MMAP_SHARED_FLAGS;
static const int PagesPerDevice = 2048;
static const int LogBase2MaxPoolSize = 32;
static const int MaxStkElements = 32768;
static const bool ZeroAllocBase = false;

Просмотреть файл

@ -1,32 +0,0 @@
/*
* $HEADER$
*/
/*
* ulm_os.h - This file contains IRIX OS dependent definitions.
*/
/* memory page size */
#define LOG2PAGESIZE 13
#define SMPPAGESIZE (1 << LOG2PAGESIZE)
#ifndef PAGESIZE
#define PAGESIZE 8192
#endif
#define CACHE_ALIGNMENT 64
/* if cxx is invoked with -model ansi -accept restrict_keyword */
#ifdef __MODEL_ANSI
#define RESTRICT_MACRO __restrict
#else
#define RESTRICT_MACRO
#endif
#define intwordaligned(a) ( ( ((long long)(a)&3L) == 0L) ? 1 : 0 )
#define MEMCOPY_FUNC bcopy
#define SMPSecondFragPayload 65536
#define SMPFirstFragPayload 3496