Add the copyright notice in the begining of all files.
Start the external32 representation. This commit was SVN r4474.
Этот коммит содержится в:
родитель
e9136c99f1
Коммит
d51fbdacd1
@ -25,7 +25,8 @@ libdatatype_la_SOURCES = \
|
||||
$(headers) \
|
||||
dt_add.c dt_create.c dt_create_array.c dt_create_dup.c dt_create_indexed.c \
|
||||
dt_create_struct.c dt_create_vector.c dt_destroy.c dt_module.c \
|
||||
dt_optimize.c dt_pack.c dt_sndrcv.c dt_unpack.c fake_stack.c dt_args.c dt_arch.c
|
||||
dt_optimize.c dt_pack.c dt_sndrcv.c dt_unpack.c fake_stack.c dt_args.c \
|
||||
dt_arch.c dt_external32.c
|
||||
|
||||
# Conditionally install the header files
|
||||
|
||||
|
@ -1,3 +1,17 @@
|
||||
/* -*- Mode: C; c-basic-offset:4 ; -*- */
|
||||
/*
|
||||
* 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$
|
||||
*
|
||||
* Additional copyrights may follow
|
||||
*
|
||||
* $HEADER$
|
||||
*/
|
||||
#include "dt_arch.h"
|
||||
|
||||
int32_t ompi_arch_compute_local_id( uint32_t *me )
|
||||
|
@ -1,3 +1,17 @@
|
||||
/* -*- Mode: C; c-basic-offset:4 ; -*- */
|
||||
/*
|
||||
* 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$
|
||||
*
|
||||
* Additional copyrights may follow
|
||||
*
|
||||
* $HEADER$
|
||||
*/
|
||||
#ifndef DATATYPE_ARCH_H_HAS_BEEN_INCLUDED
|
||||
#define DATATYPE_ARCH_H_HAS_BEEN_INCLUDED
|
||||
|
||||
|
67
src/datatype/dt_external32.c
Обычный файл
67
src/datatype/dt_external32.c
Обычный файл
@ -0,0 +1,67 @@
|
||||
/* -*- Mode: C; c-basic-offset:4 ; -*- */
|
||||
/*
|
||||
* 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$
|
||||
*
|
||||
* Additional copyrights may follow
|
||||
*
|
||||
* $HEADER$
|
||||
*/
|
||||
#include "ompi_config.h"
|
||||
#include "datatype.h"
|
||||
#include "datatype_internal.h"
|
||||
#include "dt_arch.h"
|
||||
|
||||
/* From the MPI standard. external32 use the following types:
|
||||
* Type Length
|
||||
* MPI_PACKED 1
|
||||
* MPI_BYTE 1
|
||||
* MPI_CHAR 1
|
||||
* MPI_UNSIGNED_CHAR 1
|
||||
* MPI_SIGNED_CHAR 1
|
||||
* MPI_WCHAR 2
|
||||
* MPI_SHORT 2
|
||||
* MPI_UNSIGNED_SHORT 2
|
||||
* MPI_INT 4
|
||||
* MPI_UNSIGNED 4
|
||||
* MPI_LONG 4
|
||||
* MPI_UNSIGNED_LONG 4
|
||||
* MPI_FLOAT 4
|
||||
* MPI_DOUBLE 8
|
||||
* MPI_LONG_DOUBLE 16
|
||||
* Fortran types
|
||||
* MPI_CHARACTER 1
|
||||
* MPI_LOGICAL 4
|
||||
* MPI_INTEGER 4
|
||||
* MPI_REAL 4
|
||||
* MPI_DOUBLE_PRECISION 8
|
||||
* MPI_COMPLEX 2*4
|
||||
* MPI_DOUBLE_COMPLEX 2*8
|
||||
* Optional types
|
||||
* MPI_INTEGER1 1
|
||||
* MPI_INTEGER2 2
|
||||
* MPI_INTEGER4 4
|
||||
* MPI_INTEGER8 8
|
||||
* MPI_LONG_LONG 8
|
||||
* MPI_UNSIGNED_LONG_LONG 8
|
||||
* MPI_REAL4 4
|
||||
* MPI_REAL8 8
|
||||
* MPI_REAL16 16
|
||||
*
|
||||
* All floating point values are in big-endian IEEE format. Double extended use 16 bytes, with
|
||||
* 15 exponent bits (bias = 10383), 112 mantissa bits and the same encoding as double.All
|
||||
* integers are in two's complement big-endian format.
|
||||
*
|
||||
* All data are byte aligned, regardless of type. That's exactly what we expect as we can
|
||||
* consider the data stored in external32 as being packed.
|
||||
*/
|
||||
|
||||
uint32_t ompi_ddt_external32_arch_id = OMPI_ARCH_LDEXPSIZEIS15 | OMPI_ARCH_LDMANTDIGIS113 |
|
||||
OMPI_ARCH_LONGDOUBLEIS128 | OMPI_ARCH_ISBIGENDIAN |
|
||||
OMPI_ARCH_HEADERMASK | OMPI_ARCH_HEADERMASK2;
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user