Changeset 26092
- Timestamp:
- 03/14/21 16:24:28 (4 years ago)
- Location:
- issm/trunk-jpl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/etc/environment.sh
r26039 r26092 1 # Modifies path-related env rionment variables based on which external packages1 # Modifies path-related environment variables based on which external packages 2 2 # have been installed. 3 3 # … … 184 184 ####################### 185 185 186 OS=$(uname -s) 187 188 if [[ "${OS}" == MINGW* ]]; then 186 MINGW=0 187 if [[ $(uname -s) == MINGW* ]]; then 188 MINGW=1 189 189 MSMPI_ROOT="${ISSM_EXT_DIR}/msmpi/install" 190 190 if [ -d "${MSMPI_ROOT}" ]; then 191 191 export MSMPI_ROOT # Used in installation of ParMETIS, ScaLAPACK 192 path_prepend "${ISSM_DIR}/bin" # Allows dynamic loaded to find DLLs193 192 cpath_prepend "${MSMPI_ROOT}/include" 194 193 library_path_prepend "${MSMPI_ROOT}/lib" … … 293 292 ld_library_path_append "${BLAS_ROOT}/lib" 294 293 295 if [[ "${OS}" == MINGW*]]; then294 if [[ ${MINGW} -eq 1 ]]; then 296 295 path_append "${BLAS_ROOT}/lib" # Allows dynamic loaded to find DLLs 297 296 fi … … 304 303 ld_library_path_append "${LAPACK_ROOT}/lib" 305 304 306 if [[ "${OS}" == MINGW*]]; then305 if [[ ${MINGW} -eq 1 ]]; then 307 306 path_append "${LAPACK_ROOT}/lib" # Allows dynamic loaded to find DLLs 308 307 fi … … 315 314 ld_library_path_prepend "${METIS_ROOT}/lib" 316 315 317 if [[ "${OS}" == MINGW*]]; then316 if [[ ${MINGW} -eq 1 ]]; then 318 317 path_append "${METIS_ROOT}/lib" # Allows dynamic loaded to find DLLs 319 318 fi … … 325 324 library_path_append "${MUMPS_ROOT}/lib" 326 325 327 if [[ "${OS}" == MINGW*]]; then326 if [[ ${MINGW} -eq 1 ]]; then 328 327 path_append "${MUMPS_ROOT}/lib" # Allows dynamic loaded to find DLLs 329 328 fi … … 336 335 ld_library_path_prepend "${PARMETIS_ROOT}/lib" 337 336 338 if [[ "${OS}" == MINGW*]]; then337 if [[ ${MINGW} -eq 1 ]]; then 339 338 path_append "${PARMETIS_ROOT}/lib" # Allows dynamic loaded to find DLLs 340 339 fi … … 346 345 library_path_append "${SCALAPACK_ROOT}/lib" 347 346 348 if [[ "${OS}" == MINGW*]]; then347 if [[ ${MINGW} -eq 1 ]]; then 349 348 path_append "${SCALAPACK_ROOT}/lib" # Allows dynamic loaded to find DLLs 350 349 fi … … 363 362 ld_library_path_prepend "${PETSC_ROOT}/lib" 364 363 365 if [[ "${OS}" == MINGW*]]; then364 if [[ ${MINGW} -eq 1 ]]; then 366 365 path_append "${PETSC_ROOT}/lib" # Allows dynamic loaded to find DLLs 367 366 fi … … 541 540 dyld_library_path_append "${TRIANGLE_ROOT}/lib" 542 541 543 if [[ "${OS}" == MINGW*]]; then542 if [[ ${MINGW} -eq 1 ]]; then 544 543 path_append "${TRIANGLE_ROOT}/lib" # Allows dynamic loaded to find DLLs 545 544 fi -
issm/trunk-jpl/jenkins/jenkins.sh
r26045 r26092 219 219 fi 220 220 221 # Source here to include any newly installed externalpackages on the path.221 # Source here to include any newly-installed external packages on the path 222 222 source ${ISSM_DIR}/etc/environment.sh 223 223 … … 227 227 fi 228 228 229 # Set CXX/CC flags for JS runs after exnteralpackages to avoid conflicts during their compilation 229 # Set CXX/CC flags for JS runs after external packages to avoid conflicts 230 # during their compilation 230 231 # 231 232 # TODO: … … 235 236 # - Revisit enviroment variables (especially EMCC_CFLAGS) once support for 236 237 # Fortran has been accomplished. 238 # 237 239 CXX_PREVIOUS=$CXX 238 240 CC_PREVIOUS=$CC … … 311 313 # {{{ 312 314 if [ $MATLAB_TEST -eq 1 ]; then 315 MINGW=0 316 if [[ $(uname -s) == MINGW* ]]; then 317 MINGW=1 318 if [ -z "${ISSM_DIR_WIN}+x" ]; then 319 export ISSM_DIR_WIN=$(cygpath -w "${ISSM_DIR}") 320 fi 321 fi 322 313 323 #Launch all tests on different cpus 314 324 for (( i=1;i<=$NUMCPUS_RUN;i++ )); do … … 335 345 EOF 336 346 cd $ISSM_DIR/test/NightlyRun 337 if [[ "${OS}" == CYGWIN* || "${OS}" == MINGW*]]; then347 if [[ "${OS}" == CYGWIN* || ${MINGW} -eq 1 ]]; then 338 348 $MATLAB_PATH/bin/matlab -nodesktop -nosplash -nojvm -r "addpath ${ISSM_DIR_WIN}/src/m/dev; devpath; addpath ${ISSM_DIR_WIN}/nightlylog; matlab_run$i" -logfile ${ISSM_DIR_WIN}/nightlylog/matlab_log$i.log & 339 349 else … … 343 353 344 354 # Wait for MATLAB to exit 355 # 356 # TODO: 357 # - Replace by adding -wait option to above calls to matlab? 358 # 345 359 if [[ "${OS}" == CYGWIN* ]]; then 346 360 sleep 5;
Note:
See TracChangeset
for help on using the changeset viewer.