File: tc_UseMpich.c

package info (click to toggle)
scalapack 2.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 37,012 kB
  • sloc: fortran: 339,113; ansic: 74,517; makefile: 1,494; sh: 34
file content (25 lines) | stat: -rw-r--r-- 681 bytes parent folder | download | duplicates (19)
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
#include <stdio.h>
#include <mpi.h>
main()
{
   MPI_Comm ccomm;
   int fcomm;
   extern void *MPIR_ToPointer();
   extern int   MPIR_FromPointer();
   extern void *MPIR_RmPointer();

   if (sizeof(int) < sizeof(int*))
   {
      fcomm = MPIR_FromPointer(MPI_COMM_WORLD);
      ccomm = (MPI_Comm) MPIR_ToPointer(fcomm);
      if (ccomm == MPI_COMM_WORLD)
         printf("Set TRANSCOMM = -DUseMpich -DPOINTER_64_BITS=1\n");
      else
         printf("Do _NOT_ set TRANSCOMM = -DUseMpich -DPOINTER_64_BITS=1\n");
   }
   else
   {
      printf("Compile and run xtc_CsameF77 for correct TRANSCOMM setting.\n");
      printf("If xtc_CsameF77 fails, leave TRANSCOMM blank.\n");
   }
}