Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[cmake] tiny cleanup around smpi
authorMartin Quinson <martin.quinson@loria.fr>
Sat, 24 Oct 2015 20:50:53 +0000 (22:50 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Sat, 24 Oct 2015 20:50:53 +0000 (22:50 +0200)
CMakeLists.txt
include/smpi/mpif.h.in
teshsuite/smpi/mpich3-test/f77/datatype/typeaints.h.in

index 0099811..5dfb7d4 100644 (file)
@@ -232,12 +232,6 @@ IF(CMAKE_SYSTEM_PROCESSOR MATCHES ".86|AMD64|amd64")
 
 ENDIF()
 
-if(ARCH_32_BITS)
-  set(MPI_ADDRESS_SIZE 4)
-else()
-  set(MPI_ADDRESS_SIZE 8)
-endif()
-
 include(CheckFunctionExists)
 include(CheckTypeSize)
 include(CheckIncludeFile)
index 84adf93..8467db5 100644 (file)
       parameter(MPI_BXOR=11)
       
       INTEGER MPI_ADDRESS_KIND, MPI_OFFSET_KIND
-      PARAMETER (MPI_ADDRESS_KIND=@MPI_ADDRESS_SIZE@)
-      PARAMETER (MPI_OFFSET_KIND=@MPI_ADDRESS_SIZE@)
+      PARAMETER (MPI_ADDRESS_KIND=@CMAKE_SIZEOF_VOID_P@)
+      PARAMETER (MPI_OFFSET_KIND=@CMAKE_SIZEOF_VOID_P@)
 
       integer MPI_COMBINER_NAMED, MPI_COMBINER_DUP
       integer MPI_COMBINER_CONTIGUOUS, MPI_COMBINER_VECTOR
index 5cfae7b..2f69b88 100644 (file)
@@ -3,4 +3,4 @@ C
 C  (C) 2003 by Argonne National Laboratory.
 C      See COPYRIGHT in top-level directory.
 C
-      integer*@MPI_ADDRESS_SIZE@ aint, aintv(max_asizev)
+      integer*@CMAKE_SIZEOF_VOID_P@ aint, aintv(max_asizev)