<commit_before>#! /bin/bash

#
# Installation script for clBLAS.
#
# See CK LICENSE for licensing details.
# See CK COPYRIGHT for copyright details.
#
# Developer(s):
# - <NAME>, 2015;
# - <NAME>, 2016.
#

# PACKAGE_DIR
# INSTALL_DIR

cd ${INSTALL_DIR}

############################################################
echo ""
echo "Cloning package from '${PACKAGE_URL}' ..."

rm -rf src

git clone ${PACKAGE_URL} src

if [ "${?}" != "0" ] ; then
  echo "Error: cloning package failed!"
  exit 1
fi

############################################################
echo ""
echo "Cleaning ..."

cd ${INSTALL_DIR}
cd src

############################################################
echo ""
echo "Building ..."

if [ "${CK_ANDROID_ABI}" = "arm64-v8a"  ]; then
  NO_LAPACK=${NO_LAPACK:-1}
  TARGET=ARMV8
elif [ "${CK_ANDROID_ABI}" = "armeabi"  ]; then
  NO_LAPACK=1
  TARGET=ARMV5
elif [ "${CK_ANDROID_ABI}" = "x86"  ]; then
  NO_LAPACK=1
  TARGET=ATOM
elif [ "${CK_ANDROID_ABI}" = "x86_64"  ]; then
  NO_LAPACK=1
  TARGET=ATOM
else
  echo "Error: ${CK_ANDROID_ABI} is not supported!"
  exit 1
fi

make -j${CK_HOST_CPU_NUMBER_OF_PROCESSORS} \
     CC="${CK_CC} ${CK_COMPILER_FLAGS_OBLIGATORY}" \
     FC="xyz" \
     CROSS_SUFFIX=${CK_ENV_COMPILER_GCC_BIN}/${CK_COMPILER_PREFIX} \
     HOSTCC=gcc USE_THREAD=1 NUM_THREADS=8 USE_OPENMP=1 \
     NO_LAPACK=$NO_LAPACK \
     TARGET=$TARGET \
     BINARY=${CK_CPU_BITS}
<commit_msg>added armeabi-v7a to OpenBLAS<commit_after>#! /bin/bash

#
# Installation script for clBLAS.
#
# See CK LICENSE for licensing details.
# See CK COPYRIGHT for copyright details.
#
# Developer(s):
# - <NAME>, 2015;
# - <NAME>, 2016.
#

# PACKAGE_DIR
# INSTALL_DIR

cd ${INSTALL_DIR}

############################################################
echo ""
echo "Cloning package from '${PACKAGE_URL}' ..."

rm -rf src

git clone ${PACKAGE_URL} src

if [ "${?}" != "0" ] ; then
  echo "Error: cloning package failed!"
  exit 1
fi

############################################################
echo ""
echo "Cleaning ..."

cd ${INSTALL_DIR}
cd src

############################################################
echo ""
echo "Building ..."

if [ "${CK_ANDROID_ABI}" = "arm64-v8a"  ]; then
  NO_LAPACK=${NO_LAPACK:-1}
  TARGET=ARMV8
elif [ "${CK_ANDROID_ABI}" = "armeabi"  ]; then
  NO_LAPACK=1
  TARGET=ARMV5
elif [ "${CK_ANDROID_ABI}" = "armeabi-v7a"  ]; then
  NO_LAPACK=1
  TARGET=ARMV7
elif [ "${CK_ANDROID_ABI}" = "x86"  ]; then
  NO_LAPACK=1
  TARGET=ATOM
elif [ "${CK_ANDROID_ABI}" = "x86_64"  ]; then
  NO_LAPACK=1
  TARGET=ATOM
else
  echo "Error: ${CK_ANDROID_ABI} is not supported!"
  exit 1
fi

make -j${CK_HOST_CPU_NUMBER_OF_PROCESSORS} \
     CC="${CK_CC} ${CK_COMPILER_FLAGS_OBLIGATORY}" \
     FC="xyz" \
     CROSS_SUFFIX=${CK_ENV_COMPILER_GCC_BIN}/${CK_COMPILER_PREFIX} \
     HOSTCC=gcc USE_THREAD=1 NUM_THREADS=8 USE_OPENMP=1 \
     NO_LAPACK=$NO_LAPACK \
     TARGET=$TARGET \
     BINARY=${CK_CPU_BITS}

{'fraction_non_alphanumeric': 0.26168543159331287, 'fraction_numerical': 0.021153190037529853, 'mean_word_length': 4.449814126394052, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1206369', 'n_tokens_mistral': 1207, 'n_tokens_neox': 1123, 'n_words': 225}