Changeset 27638


Ignore:
Timestamp:
03/08/23 21:13:05 (2 years ago)
Author:
jdquinn
Message:

CHG: No need for MATLAB_PATH on Silicon-based machine; modified devpath for testing binaries

Location:
issm/trunk-jpl
Files:
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/jenkins/mac-silicon-basic

    r27636 r27638  
    1111#--------------------#
    1212
    13 MATLAB_PATH="/Applications/MATLAB_R2022b.app"
    14 
    1513ISSM_CONFIG='\
    1614        --prefix=${ISSM_DIR} \
     
    2018        --without-wrappers \
    2119        --with-numthreads=8 \
    22         --with-matlab-dir=${MATLAB_PATH} \
    23         --with-fortran-lib="-L/opt/homebrew/lib/gcc/current -lgfortran" \
     20        --with-fortran-lib="-L/opt/homebrew/Cellar/gcc/12.2.0/lib/gcc/12 -lgfortran" \
    2421        --with-mpi-include=${ISSM_DIR}/externalpackages/petsc/install/include \
    2522        --with-mpi-libflags="-L${ISSM_DIR}/externalpackages/petsc/install/lib -lmpi -lmpicxx -lmpifort" \
     
    6764#               compilation
    6865#
    69 NUMCPUS_INSTALL=4
     66NUMCPUS_INSTALL=8
    7067
    7168# Number of CPUs used in the nightly runs
  • issm/trunk-jpl/jenkins/mac-silicon-full

    r27636 r27638  
    11# NOTE:
     2# - This configuration adds solid earth and Dakota capabilities to the basic
     3#       build.
    24# - Currently, this configuration does not compile the MATLAB and Python
    35#       APIs. After compiling, you will need to download the ISSM pre-compiled
     
    1113#--------------------#
    1214
    13 MATLAB_PATH="/Applications/MATLAB_R2022b.app"
    14 
    1515ISSM_CONFIG='\
    1616        --prefix=${ISSM_DIR} \
     
    2020        --without-wrappers \
    2121        --with-numthreads=8 \
    22         --with-matlab-dir=${MATLAB_PATH} \
    23         --with-fortran-lib="-L/opt/homebrew/lib/gcc/current -lgfortran" \
    24         --with-mpi-include=${ISSM_DIR}/externalpackages/petsc/install/include \
    25         --with-mpi-libflags="-L${ISSM_DIR}/externalpackages/petsc/install/lib -lmpi -lmpicxx -lmpifort" \
    26         --with-blas-lapack-dir=${ISSM_DIR}/externalpackages/petsc/install \
    27         --with-metis-dir=${ISSM_DIR}/externalpackages/petsc/install \
    28         --with-parmetis-dir=${ISSM_DIR}/externalpackages/petsc/install \
    29         --with-scalapack-dir=${ISSM_DIR}/externalpackages/petsc/install \
    30         --with-mumps-dir=${ISSM_DIR}/externalpackages/petsc/install \
    31         --with-petsc-dir=${ISSM_DIR}/externalpackages/petsc/install \
    32         --with-triangle-dir=${ISSM_DIR}/externalpackages/triangle/install \
    33         --with-chaco-dir=${ISSM_DIR}/externalpackages/chaco/install \
    34         --with-m1qn3-dir=${ISSM_DIR}/externalpackages/m1qn3/install \
    35         --with-semic-dir=${ISSM_DIR}/externalpackages/semic/install \
     22        --with-fortran-lib="-L/opt/homebrew/Cellar/gcc/12.2.0/lib/gcc/12 -lgfortran" \
     23        --with-mpi-include=${ISSM_EXT_DIR}/shared/petsc/install/include \
     24        --with-mpi-libflags="-L${ISSM_EXT_DIR}/shared/petsc/install/lib -lmpi -lmpicxx -lmpifort" \
     25        --with-blas-lapack-dir=${ISSM_EXT_DIR}/shared/petsc/install \
     26        --with-metis-dir=${ISSM_EXT_DIR}/shared/petsc/install \
     27        --with-parmetis-dir=${ISSM_EXT_DIR}/shared/petsc/install \
     28        --with-scalapack-dir=${ISSM_EXT_DIR}/shared/petsc/install \
     29        --with-mumps-dir=${ISSM_EXT_DIR}/shared/petsc/install \
     30        --with-hdf5-dir=${ISSM_EXT_DIR}/shared/petsc/install \
     31        --with-petsc-dir=${ISSM_EXT_DIR}/shared/petsc/install \
     32        --with-gsl-dir=${ISSM_EXT_DIR}/shared/gsl/install \
     33        --with-boost-dir=${ISSM_EXT_DIR}/shared/boost/install \
     34        --with-dakota-dir=${ISSM_EXT_DIR}/shared/dakota/install \
     35        --with-proj-dir=${ISSM_EXT_DIR}/shared/proj/install \
     36        --with-triangle-dir=${ISSM_EXT_DIR}/shared/triangle/install \
     37        --with-chaco-dir=${ISSM_EXT_DIR}/chaco/install \
     38        --with-m1qn3-dir=${ISSM_EXT_DIR}/m1qn3/install \
     39        --with-semic-dir=${ISSM_EXT_DIR}/semic/install \
    3640'
    3741
     
    4044#-------------------#
    4145
    42 # List of external packages to be installed and their installation scripts
    4346EXTERNALPACKAGES="
    4447        autotools       install-mac.sh
    4548        cmake           install.sh
    4649        petsc           install-3.17-mac-silicon.sh
     50        gsl                     install.sh
     51        boost           install-1.7-mac.sh
     52        dakota          install-6.2-mac.sh
     53        curl            install-7-mac.sh
     54        netcdf          install-4.7-parallel.sh
     55        proj            install-6.sh
     56        gdal            install-3-python.sh
     57        gshhg           install.sh
     58        gmt                     install-6-mac-silicon.sh
     59        gmsh            install-4-mac.sh
    4760        triangle        install-mac.sh
    4861        chaco           install-mac.sh
     
    6780#               compilation
    6881#
    69 NUMCPUS_INSTALL=4
     82NUMCPUS_INSTALL=8
    7083
    7184# Number of CPUs used in the nightly runs
     
    7386
    7487# Nightly run options
    75 #
    76 # See documentation in test/NightlyRun/runme.* for more information
    77 #
    7888MATLAB_NROPTIONS=""
    7989PYTHON_NROPTIONS=""
  • issm/trunk-jpl/m4/issm_options.m4

    r27398 r27638  
    847847                AC_MSG_RESULT([found])
    848848
    849                 PYTHONEXT=.so
     849                PYWRAPPEREXT=.so
    850850                case "${host_os}" in
    851851                        *cygwin*)
     
    868868                AC_SUBST([PYTHONINCL])
    869869                AC_SUBST([PYTHONLIB])
    870                 PYTHONWRAPPEREXT=${PYTHONEXT}
     870                PYTHONWRAPPEREXT=${PYWRAPPEREXT}
    871871                AC_SUBST([PYTHONWRAPPEREXT])
    872872                AC_SUBST([PYTHONLINK])
  • issm/trunk-jpl/src/m/dev/devpath.m

    r26184 r27638  
    1818
    1919%ISSM path
    20 addpath([ISSM_DIR '/src/m/os/']); %load recursivepath
    21 addpath([ISSM_DIR '/lib']);       %load MEX files
     20addpath([ISSM_DIR '/src/m/os/']);       %load recursivepath
     21addpath([ISSM_DIR '/lib']);             %load MEX files
     22addpath([ISSM_DIR '/lib-precompiled']); %load MEX files (precompiled; remove after MEX file compilation is supported on Silicon-based Macs)
    2223addpath(recursivepath([ISSM_DIR '/src/m']));
    2324addpath(recursivepath([ISSM_DIR '/externalpackages/scotch']));
  • issm/trunk-jpl/src/m/dev/devpath.py

    r27202 r27638  
    1 #!/usr/bin/env python
     1#!/usr/bin/env python3
    22import os
    33import sys
    44
    5 #Recover ISSM_DIR and USERNAME
     5# Recover ISSM_DIR and USERNAME
    66ISSM_DIR = os.getenv('ISSM_DIR')
    77USERNAME = os.getenv('USER')
     
    1010    raise NameError('"ISSM_DIR" environment variable is empty! You should define ISSM_DIR in your .cshrc or .bashrc!')
    1111
    12 #Go through src/m and append any directory that contains a *.py file to PATH
     12# Go through src/m and append any directory that contains a *.py file to PATH
    1313for root, dirs, files in os.walk(ISSM_DIR + '/src/m'):
    1414    if '.svn' in dirs:
     
    2020                    sys.path.append(root)
    2121
    22 #Also add the Nightly run directory
     22# Also add the Nightly run directory
    2323if ISSM_DIR + '/test/NightlyRun' not in sys.path:
    2424    sys.path.append(ISSM_DIR + '/test/NightlyRun')
    2525if ISSM_DIR + '/lib' not in sys.path:
    2626    sys.path.append(ISSM_DIR + '/lib')
     27if ISSM_DIR + '/lib-precompiled' not in sys.path:
     28    sys.path.append(ISSM_DIR + '/lib-precompiled') # load precompiled MEX files; remove after MEX file compilation is supported on Silicon-based Macs
    2729if ISSM_DIR + '/src/wrappers/python/.libs' not in sys.path:
    2830    sys.path.append(ISSM_DIR + '/src/wrappers/python/.libs')
     
    5153# print("\n  ISSM development path correctly loaded")
    5254# print("Current path is {}\n\n".format(ISSM_DIR))
     55
Note: See TracChangeset for help on using the changeset viewer.