<commit_before>cmake_minimum_required (VERSION 2.8.12)

set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR})
set(CMAKE_DEBUG_POSTFIX d)
set(CMAKE_CONFIGURATION_TYPES Debug;Release)
include(PENCIL.cmake)

project(PENCIL_improc_benchmark)

######################### Compiler switches ##########################
add_compile_options(-march=native -flto -Wall -Wno-unknown-pragmas)

if (CMAKE_SYSTEM_PROCESSOR MATCHES "arm.*|ARM.*")
    add_compile_options(-mfpu=vfpv4)
else()
    add_compile_options(-mavx)
endif()
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c11" CACHE STRING "C compilation flags" FORCE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x" CACHE STRING "C++ compilation flags" FORCE)

########################## Dependencies ##########################
#directories: change in GUI if needed

find_package(OpenCV REQUIRED core imgproc highgui ocl)
find_package(TBB REQUIRED)

set(OPENCL_LIBRARY "/opt/AMDAPPSDK-2.9-1/lib/x86_64/libOpenCL.so.1" CACHE PATH "OpenCL runtime library")    #broken in FindOpenCL.cmake (upgrade to CMake 3.1,. or use -DOPENCL_LIBRARY=...) - Add libmali.so for Mali as well!
find_package(OpenCL REQUIRED)

set(Boost_USE_STATIC_LIBS       OFF)
set(Boost_USE_MULTITHREADED      ON)
set(Boost_USE_STATIC_RUNTIME    OFF)
set(Boost_ADDITIONAL_VERSIONS "1.54" "1.54.0" "1.55" "1.55.0")
find_package(Boost 1.54.0 REQUIRED filesystem serialization system)

######################### Add project files ##########################

set( COMMON_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/include
                         ${OpenCV_INCLUDE_DIRS}
                         ${Boost_INCLUDE_DIRS}
                         ${TBB_INCLUDE_DIRS}
                         ${OPENCL_INCLUDE_DIRS}
                         ${PENCIL_INCLUDE_DIRS}
                         )
set( COMMON_LINK_LIBRARIES ${OpenCV_LIBRARIES}
                           ${Boost_LIBRARIES}
                           ${TBB_LIBRARIES}
                           ${PENCIL_LIBRARIES}<commit_msg>Remove FORCE from C/CXX flags<commit_after>cmake_minimum_required (VERSION 2.8.12)

set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR})
set(CMAKE_DEBUG_POSTFIX d)
set(CMAKE_CONFIGURATION_TYPES Debug;Release)
include(PENCIL.cmake)

project(PENCIL_improc_benchmark)

######################### Compiler switches ##########################
add_compile_options(-march=native -flto -Wall -Wno-unknown-pragmas)

if (CMAKE_SYSTEM_PROCESSOR MATCHES "arm.*|ARM.*")
    add_compile_options(-mfpu=vfpv4)
else()
    add_compile_options(-mavx)
endif()
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c11")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")

########################## Dependencies ##########################
#directories: change in GUI if needed

find_package(OpenCV REQUIRED core imgproc highgui ocl)
find_package(TBB REQUIRED)

set(OPENCL_LIBRARY "/opt/AMDAPPSDK-2.9-1/lib/x86_64/libOpenCL.so.1" CACHE PATH "OpenCL runtime library")    #broken in FindOpenCL.cmake (upgrade to CMake 3.1,. or use -DOPENCL_LIBRARY=...) - Add libmali.so for Mali as well!
find_package(OpenCL REQUIRED)

set(Boost_USE_STATIC_LIBS       OFF)
set(Boost_USE_MULTITHREADED      ON)
set(Boost_USE_STATIC_RUNTIME    OFF)
set(Boost_ADDITIONAL_VERSIONS "1.54" "1.54.0" "1.55" "1.55.0")
find_package(Boost 1.54.0 REQUIRED filesystem serialization system)

######################### Add project files ##########################

set( COMMON_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/include
                         ${OpenCV_INCLUDE_DIRS}
                         ${Boost_INCLUDE_DIRS}
                         ${TBB_INCLUDE_DIRS}
                         ${OPENCL_INCLUDE_DIRS}
                         ${PENCIL_INCLUDE_DIRS}
                         )
set( COMMON_LINK_LIBRARIES ${OpenCV_LIBRARIES}
                           ${Boost_LIBRARIES}
                           ${TBB_LIBRARIES}
                           ${PENCIL_LIBRARIES}
{'fraction_non_alphanumeric': 0.16898864809081526, 'fraction_numerical': 0.018575851393188854, 'mean_word_length': 3.5081395348837208, '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': '2522769', 'n_tokens_mistral': 1442, 'n_tokens_neox': 1305, 'n_words': 225}