/usr/share/doc/pgapack/util/wordsizes.c is in pgapack 1.1.1-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | #define WL 32
#define FAKE_MPI
#include <stdio.h>
#include "../include/pgapack.h"
/*
* Compile with: cc -o wordsizes wordsizes.c
*
* Any size WL can be used -- it will not affect the sizes below.
*
* FAKE_MPI will also not affect the sizes of the structures below,
* but will simplify the compilation.
*
* If PGAContext * is 8 bytes, then you have a "64-bit" machine. Be
* sure to use integer*8 for the PGAContext variable, and integer*4
* (usually just integer) for everything else.
*
*/
void main(void) {
printf("Sizes of various datatypes in bytes.\n\n");
printf("sizeof(PGAContext *): %2d\n", sizeof(PGAContext *));
printf("sizeof(PGABinary): %2d\n", sizeof(PGABinary));
printf("sizeof(PGAReal): %2d\n", sizeof(PGAReal));
printf("sizeof(PGAInteger): %2d\n", sizeof(PGAInteger));
printf("sizeof(PGACharacter): %2d\n", sizeof(PGACharacter));
printf("sizeof(int): %2d\n", sizeof(int));
printf("sizeof(long int): %2d\n", sizeof(long int));
printf("sizeof(double): %2d\n", sizeof(double));
printf("sizeof(char): %2d\n", sizeof(char));
}
|