Changeset 1509


Ignore:
Timestamp:
08/03/09 14:21:57 (16 years ago)
Author:
Mathieu Morlighem
Message:

changed mpich2

Location:
issm/trunk/externalpackages/mpich2
Files:
1 edited
4 moved

Legend:

Unmodified
Added
Removed
  • issm/trunk/externalpackages/mpich2/install.sh

    r1371 r1509  
    11#!/bin/bash
    22
    3 #Get number of cpus on current platform
    4 NUMCPUS=`grep -c processor /proc/cpuinfo`;
     3#Get number of cpus
     4NUMCPUS=$1;
    55
    66#version of mpich2
     
    3131
    3232#Compile mpich2
    33 make
    34 
    35 #Install
    36 make install
     33if [ -z $NUMCPUS ];
     34then
     35        make
     36        make install
     37else
     38        make  -j $NUMCPUS
     39        make  -j $NUMCPUS install
     40fi
Note: See TracChangeset for help on using the changeset viewer.