Changeset 27308 in project


Ignore:
Timestamp:
08/27/12 08:34:17 (9 years ago)
Author:
Ivan Raikov
Message:

mpi: added support for env variable MPI_DIR in build script and version set to 1.13

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release/4/mpi/trunk/mpi.setup

    r26806 r27308  
    1919                     (t ()    #f)))))
    2020
     21(define mpi-dir (get-environment-variable "MPI_DIR"))
     22
    2123(define ld+cpp-options
    22   (or (mpi-test ("#include <mpi.h>" "-lmpi" ""))
    23       (mpi-test ("#include <mpi.h>" "-lmpi" "-I/usr/include/mpi"))
    24       (mpi-test ("#include <mpi.h>" "-lmpi" "-I/usr/lib/openmpi/include"))
    25       (error "unable to figure out location of MPI library")))
     24  (or
     25   (and mpi-dir (mpi-test ("#include <mpi.h>"
     26                           (sprintf "-lmpi -L~S" (make-pathname mpi-dir "lib") )
     27                           (sprintf "-I~S -L~S"
     28                                    (make-pathname mpi-dir "include")
     29                                    (make-pathname mpi-dir "lib") ))
     30                          ))
     31   (mpi-test ("#include <mpi.h>" "-lmpi" ""))
     32   (mpi-test ("#include <mpi.h>" "-lmpi" "-I/usr/include/mpi"))
     33   (mpi-test ("#include <mpi.h>" "-lmpi" "-I/usr/lib/openmpi/include"))
     34   (error "unable to figure out location of MPI library; try setting environment variable MPI_DIR to the proper location")))
    2635
    2736(compile -O2 -d0 -I. -s mpi.scm  -j mpi
     
    3948   
    4049  ; Assoc list with properties for your extension:
    41   `((version 1.12)
     50  `((version 1.13)
    4251    ))
    4352
Note: See TracChangeset for help on using the changeset viewer.