<commit_before>cmake_minimum_required (VERSION 3.6)
cmake_policy(SET CMP0077 NEW)
project(CMSISNN)

# Needed to find the config modules
list(APPEND CMAKE_MODULE_PATH ${ROOT}/CMSIS/DSP)
# CMSIS-NN is dependent on features in the CMSIS-DSP
# and must use similar logic for configuring the build
list(APPEND CMAKE_MODULE_PATH ${ROOT}/CMSIS/DSP/Source)

include(configLib)
include(configDsp)

# Select which parts of the CMSIS-DSP must be compiled.
# There are some dependencies between the parts but they are not tracked
# by this cmake. So, enabling some functions may require to enable some
# other ones.
option(CONCATENATION        "Concatenation"         ON)
option(FULLYCONNECTED       "Fully Connected"       ON)
option(CONVOLUTION          "Convolutions"          ON)
option(ACTIVATION           "Activations"           ON)
option(POOLING              "Pooling"               ON)
option(SOFTMAX              "Softmax"               ON)
option(BASICMATHSNN         "Basic Maths for NN"    ON)
option(RESHAPE              "Reshape"               ON)<commit_msg>CMSIS-NN: Update cmake to be able to use external toolchains<commit_after>cmake_minimum_required (VERSION 3.6)
cmake_policy(SET CMP0077 NEW)
project(CMSISNN)

set(EXTERNAL_TOOLCHAIN "YES" CACHE STRING "Use toolchain in ${ROOT}/CMSIS/DSP/Toolchain/ or not. (YES, NO)")

if(EXTERNAL_TOOLCHAIN STREQUAL "YES")
    function(compilerSpecificCompileOptions PROJECTNAME ROOT)
        # Override compilerSpecificCompileOptions defined in ${ROOT}/CMSIS/DSP/Toolchain
    endfunction()
endif()

# Needed to find the config modules
list(APPEND CMAKE_MODULE_PATH ${ROOT}/CMSIS/DSP)
# CMSIS-NN is dependent on features in the CMSIS-DSP
# and must use similar logic for configuring the build
list(APPEND CMAKE_MODULE_PATH ${ROOT}/CMSIS/DSP/Source)

include(configLib)
include(configDsp)

# Select which parts of the CMSIS-DSP must be compiled.
# There are some dependencies between the parts but they are not tracked
# by this cmake. So, enabling some functions may require to enable some
# other ones.
option(CONCATENATION        "Concatenation"         ON)
option(FULLYCONNECTED       "Fully Connected"       ON)
option(CONVOLUTION          "Convolutions"          ON)
option(ACTIVATION           "Activations"           ON)
option(POOLING              "Pooling"               ON)
option(SOFTMAX              "Softmax"               ON)
option(BASICMATHSNN         "Basic Maths for NN"    ON)
option(RESHAPE              "Reshape"               ON)
{'fraction_non_alphanumeric': 0.0744297719087635, 'fraction_numerical': 0.004801920768307323, 'mean_word_length': 3.025764895330113, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1758099', 'n_tokens_mistral': 793, 'n_tokens_neox': 747, 'n_words': 235}