<commit_before>#!/bin/bash
#
# $Id$
#
######################################################################

######################################################################
#
# Trigger variables set in lapack_aux.sh
#
######################################################################

mydir=`dirname $BASH_SOURCE`
source $mydir/lapack_aux.sh

######################################################################
#
# Set variables that should trigger a rebuild, but which by value change
# here do not, so that build gets triggered by change of this file.
# E.g: mask
#
######################################################################

setLapackNonTriggerVars() {
  LAPACK_UMASK=002
}
setLapackNonTriggerVars

######################################################################
#
# Launch lapack builds.
#
######################################################################

buildLapack() {

  if ! bilderUnpack lapack; then
    return
  fi

  local buildargs=
  if [[ `uname` =~ CYGWIN ]]; then
    buildargs="-m nmake"
  fi

# <NAME>: building the testing code fails with a seg fault on
# Linux systems running gfortran 4.4.6. Turn off BUILD_TESTING
# for these cases
  if [ `uname` = "Linux" -a "gfortran" = `basename $FC` ]; then
    version=`$FC --version | tr '\n' ' ' | awk '{print $4}'`
    if [ "4.4.6" = $version ]; then
      LAPACK_SER_OTHER_ARGS="-DBUILD_TESTING:BOOL=OFF $LAPACK_SER_OTHER_ARGS"
	LAPACK_SERSH_OTHER_ARGS="-DBUILD_TESTING:BOOL=OFF $LAPACK_SER_OTHER_ARGS"
    fi
  fi

  if bilderConfig lapack ser "$CMAKE_COMPILERS_SER $CMAKE_COMPFLAGS_SER $LAPACK_SER_OTHER_ARGS"; then
    bilderBuild $buildargs lapack ser
  fi
  if bilderConfig lapack sermd "-DBUILD_WITH_SHARED_RUNTIME:BOOL=ON $CMAKE_COMPILERS_SER $CMAKE_COMPFLAGS_SER $LAPACK_SERMD_OTHER_ARGS"; then
    bilderBuild $buildargs lapack sermd
  fi
  if bilderConfig lapack sersh "-DBUILD_SHARED_LIBS:BOOL=ON $CMAKE_COMPILERS_SER $CMAKE_COMPFLAGS_SER $LAPACK_SERSH_OTHER_ARGS"; then
    bilderBuild $buildargs lapack sersh
  fi
  if bilderConfig lapack pycsh "-DBUILD_SHARED_LIBS:BOOL=ON $CMAKE_COMPILERS_PYC $CMAKE_COMPFLAGS_PYC $LAPACK_PYCSH_OTHER_ARGS"; then
    bilderBuild $buildargs lapack pycsh
  fi
  if bilderConfig lapack ben "$CMAKE_COMPILERS_BEN $CMAKE_COMPFLAGS_BEN $LAPACK_BEN_OTHER_ARGS"; then
    bilderBuild $buildargs lapack ben
  fi

  return 0

}

######################################################################
#
# Test lapack
#
######################################################################

testLapack() {
  techo "Not testing lapack."
}
<commit_msg>Trilinos-11.14.3 is still requiring the deprecated symbol in sggsvp.f so must build that.  Once this goes away we can revert this.<commit_after>#!/bin/bash
#
# $Id$
#
######################################################################

######################################################################
#
# Trigger variables set in lapack_aux.sh
#
######################################################################

mydir=`dirname $BASH_SOURCE`
source $mydir/lapack_aux.sh

######################################################################
#
# Set variables that should trigger a rebuild, but which by value change
# here do not, so that build gets triggered by change of this file.
# E.g: mask
#
######################################################################

setLapackNonTriggerVars() {
  LAPACK_UMASK=002
}
setLapackNonTriggerVars

######################################################################
#
# Launch lapack builds.
#
######################################################################

buildLapack() {

  if ! bilderUnpack lapack; then
    return
  fi

  local buildargs=
  if [[ `uname` =~ CYGWIN ]]; then
    buildargs="-m nmake"
  fi

# <NAME>: building the testing code fails with a seg fault on
# Linux systems running gfortran 4.4.6. Turn off BUILD_TESTING
# for these cases
  local LAPACK_ALL_ADDL_ARGS="-DBUILD_DEPRECATED:BOOL=TRUE"
  if test `uname` = "Linux" -a "gfortran" = `basename $FC`; then
    version=`$FC --version | tr '\n' ' ' | awk '{print $4}'`
    if test $version = "4.4.6"; then
      LAPACK_ALL_ADDL_ARGS="-DBUILD_TESTING:BOOL=OFF $LAPACK_ALL_ADDL_ARGS"
    fi
  fi

  if bilderConfig lapack ser "$CMAKE_COMPILERS_SER $CMAKE_COMPFLAGS_SER $LAPACK_ALL_ADDL_ARGS $LAPACK_SER_OTHER_ARGS"; then
    bilderBuild $buildargs lapack ser
  fi
  if bilderConfig lapack sermd "-DBUILD_WITH_SHARED_RUNTIME:BOOL=ON $CMAKE_COMPILERS_SER $CMAKE_COMPFLAGS_SER $LAPACK_ALL_ADDL_ARGS $LAPACK_SERMD_OTHER_ARGS"; then
    bilderBuild $buildargs lapack sermd
  fi
  if bilderConfig lapack sersh "-DBUILD_SHARED_LIBS:BOOL=ON $CMAKE_COMPILERS_SER $CMAKE_COMPFLAGS_SER $LAPACK_ALL_ADDL_ARGS $LAPACK_SERSH_OTHER_ARGS"; then
    bilderBuild $buildargs lapack sersh
  fi
  if bilderConfig lapack pycsh "-DBUILD_SHARED_LIBS:BOOL=ON $CMAKE_COMPILERS_PYC $CMAKE_COMPFLAGS_PYC $LAPACK_ALL_ADDL_ARGS $LAPACK_PYCSH_OTHER_ARGS"; then
    bilderBuild $buildargs lapack pycsh
  fi
  if bilderConfig lapack ben "$CMAKE_COMPILERS_BEN $CMAKE_COMPFLAGS_BEN $LAPACK_ALL_ADDL_ARGS $LAPACK_BEN_OTHER_ARGS"; then
    bilderBuild $buildargs lapack ben
  fi

  return 0

}

######################################################################
#
# Test lapack
#
######################################################################

testLapack() {
  techo "Not testing lapack."
}

{'fraction_non_alphanumeric': 0.30148148148148146, 'fraction_numerical': 0.005, 'mean_word_length': 6.201333333333333, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5172669', 'n_tokens_mistral': 1789, 'n_tokens_neox': 1685, 'n_words': 395}