<commit_before>cmake_minimum_required(VERSION 3.10)
project(external-OpenBLAS)
include(ExternalProject)
message("LDFLAGS ${LDFLAGS}")
message("FFLAGS  ${FFLAGS}")
ExternalProject_Add(external_OpenBLAS
        GIT_REPOSITORY      https://github.com/xianyi/OpenBLAS.git
        GIT_TAG             v0.3.7
        GIT_PROGRESS false
        GIT_SHALLOW true
        PREFIX      ${CMAKE_BINARY_DIR}
        INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/OpenBLAS
        UPDATE_COMMAND ""
        TEST_COMMAND ""
        CONFIGURE_COMMAND ""
#
#        CMAKE_ARGS
#        -DTARGET:STRING=${TARGET}
#        -DDYNAMIC_ARCH:BOOL=OFF
#        -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
#        -DBUILD_SHARED_LIBS:BOOL=${BUILD_SHARED_LIBS}
#        -DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR>
#        -DUSE_THREAD:BOOL=${USE_THREAD}
#        -DBINARY=64
#        -DCMAKE_INSTALL_MESSAGE=NEVER #Avoid unnecessary output to console
#        -DCMAKE_C_FLAGS=-w
#        -DCMAKE_CXX_FLAGS=-w
#        -DCMAKE_FORTRAN_FLAGS=-w

#        BUILD_COMMAND export LD_LIBRARY_PATH=${GFORTRAN_PATH}:$LD_LIBRARY_PATH &&
#        export LDFLAGS="-L${GFORTRAN_PATH} $LDFLAGS" &&

        BUILD_IN_SOURCE 1
        BUILD_COMMAND
            export LD_LIBRARY_PATH=${GFORTRAN_PATH} &&
            export LDFLAGS=${LDFLAGS} &&
            export FFLAGS=${FFLAGS} &&
            $(MAKE) TARGET=${TARGET}
                    DYNAMIC_ARCH=0
                    USE_THREAD=${USE_THREAD}
                    USE_OPENMP=${USE_OPENMP}
                    NO_AFFINITY=1
                    NO_WARMUP=1
                    QUIET_MAKE=0
                    NUM_THREADS=64
                    DEBUG=0
                    BINARY=64
                    GEMM_MULTITHREAD_THRESHOLD=32

        INSTALL_COMMAND $(MAKE) PREFIX=<INSTALL_DIR> install
        )<commit_msg>Sorted out include dirs<commit_after>cmake_minimum_required(VERSION 3.10)
project(external-OpenBLAS)
include(ExternalProject)
message("LDFLAGS ${LDFLAGS}")
message("FFLAGS  ${FFLAGS}")
ExternalProject_Add(external_OpenBLAS
        URL      https://github.com/xianyi/OpenBLAS/archive/v0.3.7.tar.gz
        PREFIX      ${CMAKE_BINARY_DIR}
        INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/OpenBLAS
        UPDATE_COMMAND ""
        TEST_COMMAND ""
        CONFIGURE_COMMAND ""
#
#        CMAKE_ARGS
#        -DTARGET:STRING=${TARGET}
#        -DDYNAMIC_ARCH:BOOL=OFF
#        -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
#        -DBUILD_SHARED_LIBS:BOOL=${BUILD_SHARED_LIBS}
#        -DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR>
#        -DUSE_THREAD:BOOL=${USE_THREAD}
#        -DBINARY=64
#        -DCMAKE_INSTALL_MESSAGE=NEVER #Avoid unnecessary output to console
#        -DCMAKE_C_FLAGS=-w
#        -DCMAKE_CXX_FLAGS=-w
#        -DCMAKE_FORTRAN_FLAGS=-w

#        BUILD_COMMAND export LD_LIBRARY_PATH=${GFORTRAN_PATH}:$LD_LIBRARY_PATH &&
#        export LDFLAGS="-L${GFORTRAN_PATH} $LDFLAGS" &&

        BUILD_IN_SOURCE 1
        BUILD_COMMAND
            export LD_LIBRARY_PATH=${GFORTRAN_PATH} &&
            export LDFLAGS=${LDFLAGS} &&
            export FFLAGS=${FFLAGS} &&
            ${CMAKE_MAKE_PROGRAM} -j
                    TARGET=${TARGET}
                    DYNAMIC_ARCH=0
                    USE_THREAD=${USE_THREAD}
                    USE_OPENMP=${USE_OPENMP}
                    NO_AFFINITY=1
                    NO_WARMUP=1
                    QUIET_MAKE=0
                    NUM_THREADS=64
                    DEBUG=0
                    BINARY=64
                    GEMM_MULTITHREAD_THRESHOLD=32

        INSTALL_COMMAND ${CMAKE_MAKE_PROGRAM}  PREFIX=<INSTALL_DIR> install
        )
{'fraction_non_alphanumeric': 0.0975609756097561, 'fraction_numerical': 0.011086474501108648, 'mean_word_length': 2.053299492385787, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '2226948', 'n_tokens_mistral': 1276, 'n_tokens_neox': 1157, 'n_words': 142}