source: issm/oecreview/Archive/24307-24683/ISSM-24327-24328.diff

Last change on this file was 24684, checked in by Mathieu Morlighem, 5 years ago

CHG: added new review

File size: 27.6 KB
  • ../trunk-jpl/externalpackages/lapack/install-3.8-Linux.sh

     
     1#!/bin/bash
     2set -eu
     3
     4
     5# NOTE: This installation script will build both BLAS and LAPACK libraries
     6#
     7
     8## Constants
     9#
     10VER="3.8.0"
     11
     12# Download source
     13$ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/lapack-${VER}.tar.gz" "lapack-${VER}.tar.gz"
     14
     15# Unpack source
     16tar -zxvf lapack-$VER.tar.gz
     17
     18# Cleanup
     19rm -rf build install src
     20mkdir build install install/lib src
     21
     22# Move source to 'src' directory
     23mv lapack-$VER/* src
     24rm -rf lapack-$VER
     25
     26# Configure
     27#
     28cd build
     29cmake \
     30        -DBUILD_SHARED_LIBS=ON \
     31        ../src
     32
     33# Compile
     34make
     35
     36# Install
     37cd ..
     38cp ./build/lib/* ./install/lib
  • ../trunk-jpl/externalpackages/mpich/install-3.3-macOS_64.sh

    Property changes on: ../trunk-jpl/externalpackages/lapack/install-3.8-Linux.sh
    ___________________________________________________________________
    Added: svn:executable
    ## -0,0 +1 ##
    +*
    \ No newline at end of property
     
    1 #!/bin/bash
    2 set -eu
    3 
    4 
    5 ## Constants
    6 #
    7 VER="3.3"
    8 
    9 # Cleanup
    10 rm -rf src install
    11 mkdir src install
    12 
    13 #Download from ISSM server
    14 $ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/mpich-${VER}.tar.gz" "mpich-${VER}.tar.gz"
    15 
    16 # Unpack source
    17 tar -zxvf  mpich-$VER.tar.gz
    18 
    19 # Move source into 'src' directory
    20 mv mpich-$VER/* src
    21 rm -rf mpich-$VER
    22 
    23 # Configure
    24 cd src
    25 ./configure \
    26         --prefix="${ISSM_DIR}/externalpackages/mpich/install" \
    27         --enable-shared
    28 
    29 # Compile and install
    30 if [ $# -eq 0 ]; then
    31         make
    32         make install
    33 else
    34         make -j $1
    35         make -j $1 install
    36 fi
    37 
    38 # Return to initial directory
    39 cd ..
  • ../trunk-jpl/externalpackages/petsc/install-3.11-linux64.sh

    Property changes on: ../trunk-jpl/externalpackages/mpich/install-3.3-macOS_64.sh
    ___________________________________________________________________
    Deleted: svn:executable
    ## -1 +0,0 ##
    -*
    \ No newline at end of property
     
    1 #!/bin/bash
    2 set -eu
    3 
    4 #Some cleanup
    5 rm -rf install petsc-3.11.0 src
    6 mkdir install src
    7 
    8 #Download from ISSM server
    9 $ISSM_DIR/scripts/DownloadExternalPackage.sh 'http://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-lite-3.11.0.tar.gz' 'petsc-3.11.0.tar.gz'
    10 
    11 #Untar and move petsc to install directory
    12 tar -zxvf  petsc-3.11.0.tar.gz
    13 mv petsc-3.11.0/* src/
    14 rm -rf petsc-3.11.0
    15 
    16 #configure
    17 cd src
    18 ./config/configure.py \
    19         --prefix="$ISSM_DIR/externalpackages/petsc/install" \
    20         --with-mpi-dir="$ISSM_DIR/externalpackages/mpich/install" \
    21         --PETSC_DIR="$ISSM_DIR/externalpackages/petsc/src" \
    22         --with-debugging=1 \
    23         --with-valgrind=0 \
    24         --with-x=0 \
    25         --with-ssl=0 \
    26         --with-shared-libraries=1 \
    27         --download-metis=1 \
    28         --download-parmetis=1 \
    29         --download-mumps=1 \
    30         --download-scalapack=1 \
    31         --download-fblaslapack=1 \
    32         --with-pic=1
    33 
    34 #Compile and intall
    35 make
    36 make install
  • ../trunk-jpl/externalpackages/petsc/install-3.11-macOS.sh

    Property changes on: ../trunk-jpl/externalpackages/petsc/install-3.11-linux64.sh
    ___________________________________________________________________
    Deleted: svn:executable
    ## -1 +0,0 ##
    -*
    \ No newline at end of property
     
     1#!/bin/bash
     2set -eu
     3
     4
     5## Constants
     6#
     7VER="3.11.3"
     8
     9# Download source
     10$ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/petsc-lite-${VER}.tar.gz" "petsc-${VER}.tar.gz"
     11
     12# Unpack source
     13tar -zxvf  petsc-$VER.tar.gz
     14
     15# Cleanup
     16rm -rf install src
     17mkdir install src
     18
     19# Move source to 'src' directory
     20mv petsc-$VER/* src/
     21rm -rf petsc-$VER
     22
     23# Configure
     24cd src
     25./config/configure.py \
     26        --prefix="${ISSM_DIR}/externalpackages/petsc/install" \
     27        --PETSC_DIR="${ISSM_DIR}/externalpackages/petsc/src" \
     28        --with-mpi-dir="${ISSM_DIR}/externalpackages/mpich/install" \
     29        --with-blas-lib="-L${ISSM_DIR}/externalpackages/lapack/install/lib -lblas" \
     30        --with-lapack-lib="-L${ISSM_DIR}/externalpackages/lapack/install/lib -llapack" \
     31        --with-debugging=0 \
     32        --with-valgrind=0 \
     33        --with-x=0 \
     34        --with-ssl=0 \
     35        --with-shared-libraries=1 \
     36        --download-zlib=1\
     37        --download-hdf5=1 \
     38        --download-netcdf=1 \
     39        --download-metis=1 \
     40        --download-parmetis=1 \
     41        --download-scalapack=1 \
     42        --download-mumps=1
     43
     44# Compile and install
     45if [ $# -eq 0 ]; then
     46        make
     47        make install
     48else
     49        make -j $1
     50        make -j $1 install
     51fi
     52
     53# Return to initial directory
     54cd ..
  • ../trunk-jpl/externalpackages/petsc/install-3.11-Linux.sh

    Property changes on: ../trunk-jpl/externalpackages/petsc/install-3.11-macOS.sh
    ___________________________________________________________________
    Added: svn:executable
    ## -0,0 +1 ##
    +*
    \ No newline at end of property
     
     1#!/bin/bash
     2set -eu
     3
     4
     5## Constants
     6#
     7VER="3.11.3"
     8
     9# Download source
     10$ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/petsc-lite-${VER}.tar.gz" "petsc-${VER}.tar.gz"
     11
     12# Unpack source
     13tar -zxvf  petsc-$VER.tar.gz
     14
     15# Cleanup
     16rm -rf install src
     17mkdir install src
     18
     19# Move source to 'src' directory
     20mv petsc-$VER/* src/
     21rm -rf petsc-$VER
     22
     23# Configure
     24cd src
     25./config/configure.py \
     26        --prefix="${ISSM_DIR}/externalpackages/petsc/install" \
     27        --PETSC_DIR="${ISSM_DIR}/externalpackages/petsc/src" \
     28        --with-mpi-dir="${ISSM_DIR}/externalpackages/mpich/install" \
     29        --with-blas-lib="-L${ISSM_DIR}/externalpackages/lapack/install/lib -lblas" \
     30        --with-lapack-lib="-L${ISSM_DIR}/externalpackages/lapack/install/lib -llapack" \
     31        --with-debugging=0 \
     32        --with-valgrind=0 \
     33        --with-x=0 \
     34        --with-ssl=0 \
     35        --with-shared-libraries=1 \
     36        --download-zlib=1\
     37        --download-hdf5=1 \
     38        --download-netcdf=1 \
     39        --download-metis=1 \
     40        --download-parmetis=1 \
     41        --download-scalapack=1 \
     42        --download-mumps=1
     43
     44# Compile and install
     45if [ $# -eq 0 ]; then
     46        make
     47        make install
     48else
     49        make -j $1
     50        make -j $1 install
     51fi
     52
     53# Return to initial directory
     54cd ..
  • ../trunk-jpl/m4/issm_options.m4

    Property changes on: ../trunk-jpl/externalpackages/petsc/install-3.11-Linux.sh
    ___________________________________________________________________
    Added: svn:executable
    ## -0,0 +1 ##
    +*
    \ No newline at end of property
     
    14911491        dnl blas-lapack headers and libraries
    14921492        if test "x$HAVE_BLASLAPACK" == "xyes"; then
    14931493                BLASLAPACKINCL=""
    1494                 dnl: branch on whether we are running on windows or linux.
    14951494                case "${host_os}" in
    14961495                *cygwin*)
    14971496                  BLASLAPACKLIB="-L`cygpath -m $BLASLAPACK_ROOT` -Wl,libf2cblas.lib  -Wl,libf2clapack.lib"
    14981497                  ;;
    14991498                *linux*)
    1500                                 BLASLAPACKLIB=-L"$BLASLAPACK_ROOT/lib -lflapack -lfblas "
    1501                 #BLASLAPACKLIB=-L"$BLASLAPACK_ROOT/lib -llapack -lblas "
    1502                   ;;
     1499                        BLASLAPACKLIB="-L${BLASLAPACK_ROOT}/lib"
     1500                        if "x${BLASLAPACK_ROOT}" == "x${PETSC_ROOT}"; then
     1501                                BLASLAPACKLIB+=" -lflapack -lfblas"
     1502                        else
     1503                                BLASLAPACKLIB+=" -llapack -lblas"
     1504                        fi
     1505                ;;
    15031506                *darwin*)
    1504                   BLASLAPACKLIB=-L"$BLASLAPACK_ROOT/lib -lflapack -lfblas "
    1505                   ;;
     1507                        BLASLAPACKLIB="-L${BLASLAPACK_ROOT}/lib"
     1508                        if "x${BLASLAPACK_ROOT}" == "x${PETSC_ROOT}"; then
     1509                                BLASLAPACKLIB+=" -lflapack -lfblas"
     1510                        else
     1511                                BLASLAPACKLIB+=" -llapack -lblas"
     1512                        fi
     1513                ;;
    15061514                esac
    15071515                AC_DEFINE([_HAVE_BLASLAPACK_],[1],[with blas lapack in ISSM src])
    15081516                AC_SUBST([BLASLAPACKLIB])
  • ../trunk-jpl/externalpackages/gmt/configs/Linux/cmake/ConfigUser.cmake

     
     1#
     2#
     3# Copyright (c) 1991-2019 by the GMT Team (https://www.generic-mapping-tools.org/team.html)
     4# See LICENSE.TXT file for copying and redistribution conditions.
     5#
     6# This program is free software; you can redistribute it and/or modify it
     7# under the terms of the GNU Lesser General Public License as published by the
     8# Free Software Foundation; version 3 or any later version.
     9#
     10# This program is distributed in the hope that it will be useful, but WITHOUT
     11# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
     12# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
     13# for more details.
     14#
     15# Contact info: www.generic-mapping-tools.org
     16# ----------------------------------------------------------------------------
     17
     18# Use this file to override variables in 'ConfigDefault.cmake' on a per-user
     19# basis.  First copy 'ConfigUserTemplate.cmake' to 'ConfigUser.cmake', then
     20# edit 'ConfigUser.cmake'.  'ConfigUser.cmake' is not version controlled
     21# (currently listed in .gitignore).
     22#
     23# Note: CMake considers an empty string, "FALSE", "OFF", "NO", or any string
     24# ending in "-NOTFOUND" to be false (this happens to be case-insensitive, so
     25# "False", "off", "no", and "something-NotFound" are all false).  Other values
     26# are true.  Thus it does not matter whether you use TRUE and FALSE, ON and
     27# OFF, or YES and NO for your booleans.
     28
     29##
     30## Section 1: Installation paths
     31##
     32
     33# ============================================================================
     34# Basic setup begins here.  All settings are optional.  In most cases, setting
     35# CMAKE_INSTALL_PREFIX should be all you need to do in order to build GMT with
     36# reasonable defaults enabled.  Note: If you need to specify directory names
     37# with spaces (e.g., on Windows) then you must put them in quotes.
     38# ============================================================================
     39
     40# Installation path (usually defaults to /usr/local) [auto]:
     41set (CMAKE_INSTALL_PREFIX "$ENV{ISSM_DIR}/externalpackages/gmt/install")
     42
     43# Set install name suffix used for directories and gmt executables
     44# [undefined]:
     45#set (GMT_INSTALL_NAME_SUFFIX "suffix")
     46
     47# Install into traditional directory structure. Disable to install a
     48# distribution type directory structure (doc and share separated) [on]:
     49#set (GMT_INSTALL_TRADITIONAL_FOLDERNAMES OFF)
     50
     51# Install convenience links for GMT modules. Disable to install only the main
     52# gmt program and access modules as "gmt modulename options" [TRUE]:
     53#set (GMT_INSTALL_MODULE_LINKS FALSE)
     54
     55# Make executables relocatable on supported platforms (relative RPATH) [FALSE]:
     56set (GMT_INSTALL_RELOCATABLE TRUE)
     57
     58# Exclude optional GDAL, PCRE, PCRE2, FFTW3, LAPACK, BLAS, ZLIB dependencies even if you have them installed [FALSE]
     59#set (GMT_EXCLUDE_GDAL TRUE)
     60#set (GMT_EXCLUDE_PCRE TRUE)
     61#set (GMT_EXCLUDE_PCRE2 TRUE)
     62#set (GMT_EXCLUDE_FFTW3 TRUE)
     63#set (GMT_EXCLUDE_LAPACK TRUE)
     64#set (GMT_EXCLUDE_BLAS TRUE)
     65#set (GMT_EXCLUDE_ZLIB TRUE)
     66
     67# ============================================================================
     68# Advanced configuration begins here.  Usually it is not necessary to edit any
     69# settings below.  You should know what you are doing if you do though.  Note:
     70# installation paths are relative to ${CMAKE_INSTALL_PREFIX} unless absolute
     71# path is given.
     72# ============================================================================
     73
     74# Set binary installation path [bin]:
     75#set (GMT_BINDIR "bin")
     76
     77# Set library installation path [lib or lib64]:
     78#set (GMT_LIBDIR "lib")
     79
     80# Set include installation path [include/gmt${GMT_INSTALL_NAME_SUFFIX}]:
     81#set (GMT_INCLUDEDIR "include/gmt")
     82
     83# Set share installation path [share or share/gmt${GMT_INSTALL_NAME_SUFFIX}]:
     84#set (GMT_DATADIR "share/gmt")
     85
     86# Set doc installation path [share/doc or
     87# share/doc/gmt${GMT_INSTALL_NAME_SUFFIX}]:
     88#set (GMT_DOCDIR "share/doc/gmt")
     89
     90# Set manpage installation path [share/man or
     91# share/doc/gmt${GMT_INSTALL_NAME_SUFFIX}/man]:
     92#set (GMT_MANDIR "share/doc/gmt/man")
     93
     94# Install documentation files from this external location instead of creating
     95# new HTML documents from scratch [${GMT_SOURCE_DIR}/doc_release]:
     96#set (GMT_INSTALL_EXTERNAL_DOC OFF)
     97
     98# Install manual pages from this external location instead of creating the
     99# manpages from scratch [${GMT_SOURCE_DIR}/man_release]:
     100#set (GMT_INSTALL_EXTERNAL_MAN OFF)
     101
     102##
     103## Section 2: Build dependencies (should only be needed if CMake cannot
     104## automatically detect the rights version or path.)
     105##
     106
     107# Set URL to GMT Data server [auto]:
     108#set (GMT_DATA_SERVER "data_server_url")
     109
     110# Set path to GSHHG Shoreline Database [auto]:
     111set (GSHHG_ROOT "$ENV{ISSM_DIR}/externalpackages/gshhg/install")
     112
     113# Copy GSHHG files to ${GMT_DATADIR}/coast [FALSE]:
     114#set (COPY_GSHHG TRUE)
     115
     116# Set path to DCW Digital Chart of the World for GMT [auto]:
     117#set (DCW_ROOT "dcw-gmt_path")
     118
     119# Copy DCW files to ${GMT_DATADIR}/dcw [FALSE]:
     120#set (COPY_DCW TRUE)
     121
     122# Copy GDAL's 'data' directory to ${GMT_DATADIR}/GDAL_DATA [FALSE]:
     123#set (GDAL_DATA_PATH C:/programs/compa_libs/gdal_GIT/compileds/VC14_64/data)
     124
     125# Copy PROJ4's 'share' directory to ${GMT_DATADIR}/GDAL_DATA [FALSE]:
     126#set (PROJ_DATA_PATH C:/programs/compa_libs/proj5_GIT/compileds/VC14_64/share/proj)
     127
     128# FOR WINDOWS ONLY
     129# Set path to location of Ghostscript binaries (optional install)
     130#set (GHOST_DATA_PATH C:/programs/compa_libs/ghostscript/bin)
     131
     132# FOR WINDOWS ONLY
     133# Set path to location where the gmtmex is located.
     134#set (GMTMEX_PATH "C:/progs_cygw/GMTdev/gmtmex/${GMTver}")
     135
     136# Set location of NetCDF (can be root directory, path to header file or path
     137# to nc-config) [auto]:
     138set (NETCDF_ROOT "$ENV{ISSM_DIR}/externalpackages/petsc/install")
     139
     140# Set location of GDAL (can be root directory, path to header file or path to
     141# gdal-config) [auto]:
     142set (GDAL_ROOT "$ENV{ISSM_DIR}/externalpackages/gdal/install")
     143
     144# Set location of PCRE (can be root directory, path to header file or path to
     145# pcre-config) [auto]:
     146#set (PCRE_ROOT "pcre_install_prefix")
     147# Alternatively, set location of PCRE2 (can be root directory, path to header file or path to
     148# pcre2-config) [auto]:
     149#set (PCRE2_ROOT "pcre2_install_prefix")
     150
     151# Set location of single precision FFTW (can be root directory or path to
     152# header file) [auto]:
     153#set (FFTW3_ROOT "fftw_install_prefix")
     154
     155# Set location of ZLIB (can be root directory or path to header file) [auto]:
     156set (ZLIB_ROOT "$ENV{ISSM_DIR}/externalpackages/petsc/install")
     157
     158# Set location of CURL (can be root directory or path to header file) [auto]:
     159#set (CURL_ROOT "curl_install_prefix")
     160
     161# Set location of GLIB component gthread [auto].  This is an optional (and
     162# experimental) option which you need to enable:
     163#set (GMT_USE_THREADS TRUE)
     164# If pkg-config is not installed (e.g. on Windows) you need to specify these:
     165#set (GLIB_INCLUDE_DIR c:/path/to/glib-dev/include/glib-2.0)
     166#set (GLIB_LIBRARIES c:/path/to/glib-dev/lib/glib-2.0.lib)
     167
     168# Set LAPACK location. Use this when want to link with LAPACK and it's not found automatically
     169set (LAPACK_LIBRARY "-L$ENV{ISSM_DIR}/externalpackages/lapack/install/lib -llapack")
     170set (BLAS_LIBRARY "-L$ENV{ISSM_DIR}/externalpackages/lapack/install/lib -lblas")
     171
     172##
     173## Section 3: GMT features
     174##
     175
     176# Enforce GPL or LGPL conformity. Use this to disable routines that cannot be
     177# redistributed under the terms of the GPL or LGPL such as Shewchuk's
     178# triangulation (valid values are GPL, LGPL and off) [off]:
     179#set (LICENSE_RESTRICTED GPL)
     180
     181# Allow building of OpenMP if compiler supports it
     182# set (GMT_ENABLE_OPENMP TRUE)
     183
     184# Configure default units (possible values are SI and US) [SI]:
     185#set (UNITS "US")
     186
     187# Enable building of shared libraries [TRUE] (disable to use static libraries;
     188# not recommended; on non-x86 architectures uncomment the next option as well):
     189#set (BUILD_SHARED_LIBS FALSE)
     190
     191# Create position independent code on all targets [auto] (needed for static
     192# build on non-x86):
     193#set (CMAKE_POSITION_INDEPENDENT_CODE TRUE)
     194
     195# Build GMT shared lib with supplemental modules [TRUE]:
     196#set (BUILD_SUPPLEMENTS FALSE)
     197
     198# Build/Install GMT Developer include files [TRUE]:
     199# This installs the extra include files and configured files needed by 3rd-party
     200# developers.  Until we build a separate gmt-devel we include them in the main
     201# Distribution.
     202#set (BUILD_DEVELOPER FALSE)
     203
     204##
     205## Section 4: Advanced tweaking
     206##
     207
     208#
     209# Testing and development
     210#
     211
     212# Enable running examples/tests with "ctest" or "make check" (out-of-source).
     213# Need to set either DO_EXAMPLES, DO_TESTS or both and uncomment the following
     214# line.
     215#enable_testing()
     216#set (DO_EXAMPLES TRUE)
     217#set (DO_TESTS TRUE)
     218#set (DO_ANIMATIONS TRUE)
     219# Number of parallel test jobs with "make check":
     220#set (N_TEST_JOBS 4)
     221
     222# Enable this option to run GMT programs from within ${GMT_BINARY_DIR} without
     223# installing or setting GMT_SHAREDIR and GMT_USERDIR first. This is required
     224# for testing [OFF]:
     225#set (SUPPORT_EXEC_IN_BINARY_DIR ON)
     226
     227# List extra sub-dirs of 'src' with a CMakeList.txt to build non-module codes
     228# that link against the full gmt libs (not just the API; for building codes
     229# that only need the GMT API, see the gmt-custom project).
     230#set (EXTRA_BUILD_DIRS apidemo)
     231# Uncomment the following line to enable running low-level C tests of the API
     232#set (DO_API_TESTS ON)
     233
     234# Directory in which to install the release sources per default
     235# [${GMT_BINARY_DIR}/gmt-${GMT_PACKAGE_VERSION}]:
     236#set (GMT_RELEASE_PREFIX "release-src-prefix")
     237
     238# If set to false, image conversion from PS images to PNG and PDF does
     239# not depend on the gmt binary target. Note: "make gmt" is then required
     240# before docs_depends [TRUE].
     241#set (GMT_DOCS_DEPEND_ON_GMT FALSE)
     242
     243#
     244# Debugging
     245#
     246
     247# Set build type can be: empty, Debug, Release, RelWithDebInfo or MinSizeRel
     248# [Release]:
     249#set (CMAKE_BUILD_TYPE Debug)
     250
     251# Extra debugging for developers:
     252#if ( CMAKE_GENERATOR STREQUAL "Xcode" )
     253##      So Xcode can find the supplemental plug-ins during debug sessions
     254#       add_definitions(-DXCODER)
     255#   add_definitions(-DDEBUG_MODERN)                     # To set PPID == 0 during Xcode test
     256#       message("Add Xcode definition for GMT")
     257#endif()
     258#add_definitions(-DDEBUG)
     259#add_definitions(-DMEMDEBUG) # Turn on memory tracking see gmt_support.c for extra info
     260#set (CMAKE_C_FLAGS "-Wall -Wdeclaration-after-statement") # recommended even for release build
     261#set (CMAKE_C_FLAGS "-Wextra ${CMAKE_C_FLAGS}")            # extra warnings
     262#set (CMAKE_C_FLAGS_DEBUG -ggdb3)                          # gdb debugging symbols
     263#set (CMAKE_LINK_DEPENDS_DEBUG_MODE TRUE)                  # debug link dependencies
     264if (HAVE_OPENMP)
     265        set (CMAKE_C_FLAGS_RELEASE "-ggdb3 -O2 -Wuninitialized -flax-vector-conversions")  # check uninitialized variables
     266else (HAVE_OPENMP)
     267        set (CMAKE_C_FLAGS_RELEASE "-ggdb3 -O2 -Wuninitialized")  # check uninitialized variables
     268endif (HAVE_OPENMP)
     269
     270#
     271# System specific tweaks
     272#
     273
     274# This is for GCC on Solaris to avoid "relocations remain against allocatable
     275# but non-writable sections" problems:
     276#set (USER_GMTLIB_LINK_FLAGS -mimpure-text)
     277
     278# This may be needed to enable strdup and extended math functions with GCC and
     279# Suncc on Solaris:
     280#set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D__EXTENSIONS__")
     281
     282# Do not warn when building with Windows SDK or Visual Studio Express:
     283#set (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS ON)
     284
     285# Manually select runtime library when compiling with Windows SDK or Visual
     286# Studio Express:
     287#set (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS c:/Windows/System32/msvcr100.dll)
     288
     289# If your NetCDF library is static (not recommended, applies to Windows only)
     290#set (NETCDF_STATIC TRUE)
     291
     292# If want to rename the DLLs to something else than the default (e.g. to
     293# append the bitness - Windows only)
     294# WARNING: if using this option it is mandatory that the suffix starts with an underscore.
     295#if (WIN32)
     296# set (BITAGE 32)
     297# # Detect if we are building a 32 or 64 bits version
     298# if (CMAKE_SIZEOF_VOID_P EQUAL 8)
     299#   set (BITAGE 64)
     300# endif ()
     301# set (GMT_DLL_RENAME gmt_w${BITAGE})
     302# set (PSL_DLL_RENAME psl_w${BITAGE})
     303#endif(WIN32)
     304
     305# On Windows Visual C 2012 needs _ALLOW_KEYWORD_MACROS to build
     306#if(MSVC11)
     307#  add_definitions(/D_ALLOW_KEYWORD_MACROS)
     308#endif(MSVC11)
  • ../trunk-jpl/externalpackages/gmt/install-6.0-Linux.sh

     
     1#!/bin/bash
     2set -eu
     3
     4
     5## Constants
     6#
     7VER="6.0.0"
     8
     9# Download source
     10$ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/gmt-${VER}.tar.gz" "gmt-${VER}.tar.gz"
     11
     12# Unpack source
     13tar -zxvf gmt-$VER.tar.gz
     14
     15# Cleanup
     16rm -rf install src
     17mkdir install src
     18
     19# Move source to 'src' directory
     20mv gmt-$VER/* src
     21rm -rf gmt-$VER
     22
     23# Copy custom configuration files
     24cp ./configs/Linux/cmake/ConfigUser.cmake ./src/cmake
     25
     26# Configure
     27cd src
     28mkdir build
     29cd build
     30cmake ..
     31
     32# Compile and install
     33if [ $# -eq 0 ]; then
     34        make
     35        make install
     36else
     37        make -j $1
     38        make -j $1 install
     39fi
     40
     41# Return to initial directory
     42cd ../..
  • ../trunk-jpl/externalpackages/mpich/install-3.3.sh

    Property changes on: ../trunk-jpl/externalpackages/gmt/install-6.0-Linux.sh
    ___________________________________________________________________
    Added: svn:executable
    ## -0,0 +1 ##
    +*
    \ No newline at end of property
     
     1#!/bin/bash
     2set -eu
     3
     4
     5## Constants
     6#
     7VER="3.3"
     8
     9# Download source
     10$ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/mpich-${VER}.tar.gz" "mpich-${VER}.tar.gz"
     11
     12# Unpack source
     13tar -zxvf  mpich-$VER.tar.gz
     14
     15# Cleanup
     16rm -rf src install
     17mkdir src install
     18
     19# Move source into 'src' directory
     20mv mpich-$VER/* src
     21rm -rf mpich-$VER
     22
     23# Configure
     24cd src
     25./configure \
     26        --prefix="${ISSM_DIR}/externalpackages/mpich/install" \
     27        --enable-shared
     28
     29# Compile and install
     30if [ $# -eq 0 ]; then
     31        make
     32        make install
     33else
     34        make -j $1
     35        make -j $1 install
     36fi
     37
     38# Return to initial directory
     39cd ..
  • ../trunk-jpl/jenkins/linux64_ross_se

    Property changes on: ../trunk-jpl/externalpackages/mpich/install-3.3.sh
    ___________________________________________________________________
    Added: svn:executable
    ## -0,0 +1 ##
    +*
    \ No newline at end of property
     
    1515        --with-fortran-lib="-L/usr/lib/gcc/x86_64-linux-gnu/4.9 -lgfortran" \
    1616        --with-mpi-include=$ISSM_DIR/externalpackages/mpich/install/include \
    1717        --with-mpi-libflags="-L${ISSM_DIR}/externalpackages/mpich/install/lib -lmpi -lmpicxx -lmpifort" \
     18        --with-blas-lapack-dir=$ISSM_DIR/externalpackages/lapack/install \
    1819        --with-metis-dir=$ISSM_DIR/externalpackages/petsc/install \
    19         --with-blas-lapack-dir=$ISSM_DIR/externalpackages/petsc/install \
    20         --with-petsc-dir=$ISSM_DIR/externalpackages/petsc/install \
    2120        --with-scalapack-dir=$ISSM_DIR/externalpackages/petsc/install \
    2221        --with-mumps-dir=$ISSM_DIR/externalpackages/petsc/install \
     22        --with-petsc-dir=$ISSM_DIR/externalpackages/petsc/install \
    2323        --with-triangle-dir=$ISSM_DIR/externalpackages/triangle/install \
    2424        --with-boost-dir=$ISSM_DIR/externalpackages/boost/install \
    2525        --with-numthreads=4 \
     
    4141EXTERNALPACKAGES="
    4242        autotools       install.sh
    4343        cmake           install.sh
    44         mpich           install-3.2-linux64.sh
    45         petsc           install-3.7-linux64.sh
     44        mpich           install-3.3.sh
     45        lapack          install-3.8.sh
     46        petsc           install-3.11-Linux.sh
    4647        triangle        install-linux64.sh
     48        chaco           install.sh
     49        m1qn3           install.sh
     50        semic           install.sh
    4751        boost           install-1.55-linux.sh
    48         hdf5            install-1.10.sh
    49         netcdf          install-4.7.sh
    5052        proj            install-6.2.sh
    5153        gdal            install-3.0-netcdf.sh
    5254        gshhg           install.sh
    53         gmt                     install.sh
     55        gmt                     install-6.0-Linux.sh
    5456        gmsh            install.sh
    5557        shell2junit     install.sh
    5658"
     
    6466# NOTE: One is usually safer as some packages are very sensitive to parallel
    6567#       compilation.
    6668#
    67 NUMCPUS_INSTALL=10
     69NUMCPUS_INSTALL=8
    6870
    6971#number of cpus used in the nightly runs. (pb of access to all_vertices.txt if more than 1)
    70 NUMCPUS_RUN=5
     72NUMCPUS_RUN=8
    7173
    7274#Nightly run options. The matlab routine runme.m will be called
    7375#as follows: runme($MATLAB_NROPTIONS). The options must be understandable
  • ../trunk-jpl/jenkins/linux64_ross

     
    1111        --with-matlab-dir=$MATLAB_PATH \
    1212        --with-fortran-lib="-L/usr/lib/gcc/x86_64-linux-gnu/4.9 -lgfortran" \
    1313        --with-mpi-include=$ISSM_DIR/externalpackages/mpich/install/include  \
    14         --with-mpi-libflags="-L${ISSM_DIR}/externalpackages/mpich/install/lib -lmpi" \
     14        --with-mpi-libflags="-L${ISSM_DIR}/externalpackages/mpich/install/lib -lmpi -lmpicxx -lmpifort" \
     15        --with-blas-lapack-dir=$ISSM_DIR/externalpackages/lapack/install \
    1516        --with-metis-dir=$ISSM_DIR/externalpackages/petsc/install \
    16         --with-blas-lapack-dir=$ISSM_DIR/externalpackages/petsc/install \
    1717        --with-scalapack-dir=$ISSM_DIR/externalpackages/petsc/install \
    1818        --with-mumps-dir=$ISSM_DIR/externalpackages/petsc/install \
    1919        --with-petsc-dir=$ISSM_DIR/externalpackages/petsc/install \
     
    4040EXTERNALPACKAGES="
    4141        autotools       install.sh
    4242        cmake           install.sh
    43         mpich           install-3.2-linux64.sh
    44         petsc           install-3.7-linux64.sh
     43        mpich           install-3.3.sh
     44        lapack          install-3.8.sh
     45        petsc           install-3.11-Linux.sh
    4546        triangle        install-linux64.sh
    4647        chaco           install.sh
    4748        m1qn3           install.sh
    48         hdf5            install-1.10.sh
    49         netcdf          install-4.7.sh
    5049        semic           install.sh
    5150        shell2junit     install.sh
    5251"
     
    5554# 4: test options #
    5655#-----------------#
    5756
    58 # Number of CPUs used in ISSM compilation
    59 #
    60 # NOTE: One is usually safer as some packages are very sensitive to parallel
    61 #       compilation.
    62 #
    63 NUMCPUS_INSTALL=10
     57#number of cpus used in ISSM installation and compilation (one is usually
     58#safer as some packages are very sensitive to parallel compilation)
     59NUMCPUS_INSTALL=8
    6460
    6561#number of cpus used in the nightly runs.
    66 NUMCPUS_RUN=5
     62NUMCPUS_RUN=8
    6763
    6864#Nightly run options. The matlab routine runme.m will be called
    6965#as follows: runme($MATLAB_NROPTIONS). The options must be understandable
  • ../trunk-jpl/etc/environment.sh

     
    191191        ld_library_path_prepend "$MPI_DIR/lib"
    192192fi
    193193
     194LAPACK_DIR="${ISSM_DIR}/externalpackages/lapack/install"
     195if [ -d "$LAPACK_DIR" ]; then
     196        ld_library_path_append "$LAPACK_DIR/lib"
     197fi
     198
    194199PETSC_DIR="${ISSM_DIR}/externalpackages/petsc/install"
    195200if [ -d "$PETSC_DIR" ]; then
    196201        export PETSC_DIR
Note: See TracBrowser for help on using the repository browser.