<commit_before>cmake_minimum_required(VERSION 2.8.12)
project(bench Fortran C)

# https://software.intel.com/en-us/mkl-developer-reference-fortran-fortran-95-interface-conventions-for-blas-routines


set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")

set(CMAKE_C_STANDARD 11)
set(CMAKE_C_STANDARD_REQUIRED ON)


if(${CMAKE_Fortran_COMPILER_ID} STREQUAL "Intel")

#    message(STATUS "be sure you have in your ~/.bashrc source compilervars.sh")
    set(FFLAGS ${FFLAGS} -i8 -check all -fpe0 -warn -traceback -debug extended)
    set(FCOOPT -coarray)

elseif(${CMAKE_Fortran_COMPILER_ID} STREQUAL "GNU") # gfortran

# NOTE: -fdefault-integer-8 -m64  are crucial for MKL using gfortran to avoid SIGSEGV at runtime!
    set(FLAGS ${FLAGS} -Wall -Werror=array-bounds -Wextra -Wpedantic)
    set(FFLAGS ${FFLAGS} -fdefault-integer-8 -std=f2008ts -m64 -fbacktrace -ffpe-trap=zero,overflow,underflow)

    find_package(CAF)
    if(CAF_FOUND)
        set(FCOOPT -fcoarray=lib)
        set(FCOLIB caf_mpi)
    else()
        set(FCOOPT -fcoarray=single)
    endif()

elseif(${CMAKE_Fortran_COMPILER_ID} STREQUAL "PGI") # flang

endif()

add_compile_options(-g -mtune=native ${FLAGS})

#if (CMAKE_BUILD_TYPE STREQUAL "Debug" AND CMAKE_C_COMPILER_ID STREQUAL "GNU")
#    find_program( CODECOV_GCOV gcov )
#    find_program( CODECOV_LCOV lcov )
#    find_program( CODECOV_GENHTML genhtml )
#    add_compile_options( -fprofile-arcs -ftest-coverage )<commit_msg>cleanup<commit_after>cmake_minimum_required(VERSION 2.8.12)
project(bench Fortran C)

# https://software.intel.com/en-us/mkl-developer-reference-fortran-fortran-95-interface-conventions-for-blas-routines


set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")

set(CMAKE_C_STANDARD 11)
set(CMAKE_C_STANDARD_REQUIRED ON)


if(${CMAKE_Fortran_COMPILER_ID} STREQUAL "Intel")

#    message(STATUS "be sure you have in your ~/.bashrc source compilervars.sh")
    set(FFLAGS ${FFLAGS} -i8 -check all -fpe0 -warn -traceback -debug extended)
    set(FCOOPT -coarray)

elseif(${CMAKE_Fortran_COMPILER_ID} STREQUAL "GNU") # gfortran

# NOTE: -fdefault-integer-8 -m64  are crucial for MKL using gfortran to avoid SIGSEGV at runtime!
    set(FLAGS ${FLAGS} -Wall -Werror=array-bounds -Wextra -Wpedantic)
    set(FFLAGS ${FFLAGS} -fdefault-integer-8 -std=f2008ts -m64 -fbacktrace)# -ffpe-trap=zero,overflow,underflow)

    find_package(CAF)
    if(CAF_FOUND)
        set(FCOOPT -fcoarray=lib)
        set(FCOLIB caf_mpi)
    else()
        set(FCOOPT -fcoarray=single)
    endif()

elseif(${CMAKE_Fortran_COMPILER_ID} STREQUAL "PGI") # flang

endif()

add_compile_options(-g -mtune=native ${FLAGS})

#if (CMAKE_BUILD_TYPE STREQUAL "Debug" AND CMAKE_C_COMPILER_ID STREQUAL "GNU")
#    find_program( CODECOV_GCOV gcov )
#    find_program( CODECOV_LCOV lcov )
#    find_program( CODECOV_GENHTML genhtml )
#    add_compile_options( -fprofile-arcs -ftest-coverage )
{'fraction_non_alphanumeric': 0.12059620596205962, 'fraction_numerical': 0.013550135501355014, 'mean_word_length': 4.624761904761905, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1248245', 'n_tokens_mistral': 1255, 'n_tokens_neox': 1166, 'n_words': 214}