<commit_before>
cmake_minimum_required(VERSION 3.0)

project(cpu_gpu_num_optim_bench)

# Make the scripts available in the 'cmake' directory available for the
# 'include()' command,
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_LIST_DIR}/cmake)

# Definition and compilation flags:
if(WIN32)
    # Windows specifics
    add_definitions(/Ot /arch:SSE2 /fp:fast /openmp)
    if(${BITSIZE_NUM} EQUAL 64) # 64 bits
        set(PROJECT_LINK_FLAGS_PROPERTY " /MACHINE:X64 /Ob2")
    else(${BITSIZE_NUM} EQUAL 32) # 32 bits
        set(PROJECT_LINK_FLAGS_PROPERTY " /MACHINE:X86 /Ob2")
    endif(${BITSIZE_NUM} EQUAL 64)
    set(PROJECT_LINK_FLAGS_PROPERTY "/OPT:NOREF")

elseif(MINGW OR UNIX)
    # Linux specifics
    set(DXYZ_RELEASE_OPTIM_FLAGS "-O2 -msse2 -fopenmp")
    set(DXYZ_RELWITHDEBINFO_OPTIM_FLAGS "-O2 -ggdb -msse2 -fopenmp \
    -fno-omit-frame-pointer")
    set(DXYZ_DEBUG_OPTIM_FLAGS "-O0 -ggdb")
    set(DXYZ_COMPILE_FLAGS "-Werror -Wall -Wno-sign-compare \
    -Wno-unused-local-typedefs -Wno-unknown-pragmas -fvisibility=hidden \
    -fvisibility-inlines-hidden -Wno-unknown-warning-option")
    set(CMAKE_CXX_FLAGS_RELEASE ${DXYZ_RELEASE_OPTIM_FLAGS} CACHE STRING
        "Tune the release flags" FORCE)
    set(CMAKE_CXX_FLAGS_RELWITHDEBINFO ${DXYZ_RELWITHDEBINFO_OPTIM_FLAGS} CACHE STRING
        "Tune the RelWithDebInfo flags" FORCE)
    set(CMAKE_CXX_FLAGS_DEBUG ${DXYZ_DEBUG_OPTIM_FLAGS} CACHE STRING
        "Tune the RelWithDebInfo flags" FORCE)
    set(CMAKE_CXX_FLAGS ${DXYZ_COMPILE_FLAGS} CACHE STRING "Tune the always \
    present flags" FORCE)

else()
    message(SEND_ERROR "Unknown platform.")
endif()

# find packages
set(EIGEN3_INCLUDE_DIR libs/eigen CACHE PATH "path to Eigen3")
set(CIMG_INCLUDE_DIR libs/CImg CACHE PATH "path to CImg")
set(ARRAYFIRE_INCLUDE_DIR libs/ArrayFire CACHE PATH "path to ArrayFire")


add_subdirectory(dense_im_registration/CPU)


<commit_msg>fixed cmake's default lib path bug<commit_after>
cmake_minimum_required(VERSION 3.0)

project(cpu_gpu_num_optim_bench)

# Make the scripts available in the 'cmake' directory available for the
# 'include()' command,
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_LIST_DIR}/cmake)

# Definition and compilation flags:
if(WIN32)
    # Windows specifics
    add_definitions(/Ot /arch:SSE2 /fp:fast /openmp)
    if(${BITSIZE_NUM} EQUAL 64) # 64 bits
        set(PROJECT_LINK_FLAGS_PROPERTY " /MACHINE:X64 /Ob2")
    else(${BITSIZE_NUM} EQUAL 32) # 32 bits
        set(PROJECT_LINK_FLAGS_PROPERTY " /MACHINE:X86 /Ob2")
    endif(${BITSIZE_NUM} EQUAL 64)
    set(PROJECT_LINK_FLAGS_PROPERTY "/OPT:NOREF")

elseif(MINGW OR UNIX)
    # Linux specifics
    set(DXYZ_RELEASE_OPTIM_FLAGS "-O2 -msse2 -fopenmp")
    set(DXYZ_RELWITHDEBINFO_OPTIM_FLAGS "-O2 -ggdb -msse2 -fopenmp \
    -fno-omit-frame-pointer")
    set(DXYZ_DEBUG_OPTIM_FLAGS "-O0 -ggdb")
    set(DXYZ_COMPILE_FLAGS "-Werror -Wall -Wno-sign-compare \
    -Wno-unused-local-typedefs -Wno-unknown-pragmas -fvisibility=hidden \
    -fvisibility-inlines-hidden -Wno-unknown-warning-option")
    set(CMAKE_CXX_FLAGS_RELEASE ${DXYZ_RELEASE_OPTIM_FLAGS} CACHE STRING
        "Tune the release flags" FORCE)
    set(CMAKE_CXX_FLAGS_RELWITHDEBINFO ${DXYZ_RELWITHDEBINFO_OPTIM_FLAGS} CACHE STRING
        "Tune the RelWithDebInfo flags" FORCE)
    set(CMAKE_CXX_FLAGS_DEBUG ${DXYZ_DEBUG_OPTIM_FLAGS} CACHE STRING
        "Tune the RelWithDebInfo flags" FORCE)
    set(CMAKE_CXX_FLAGS ${DXYZ_COMPILE_FLAGS} CACHE STRING "Tune the always \
    present flags" FORCE)

else()
    message(SEND_ERROR "Unknown platform.")
endif()

# find packages
set(EIGEN3_INCLUDE_DIR ${CMAKE_CURRENT_LIST_DIR}/libs/eigen CACHE PATH "path to Eigen3")
set(CIMG_INCLUDE_DIR ${CMAKE_CURRENT_LIST_DIR}/libs/CImg CACHE PATH "path to CImg")
set(ARRAYFIRE_INCLUDE_DIR ${CMAKE_CURRENT_LIST_DIR}/libs/ArrayFire CACHE PATH "path to ArrayFire")


add_subdirectory(dense_im_registration/CPU)



{'fraction_non_alphanumeric': 0.09941520467836257, 'fraction_numerical': 0.014238494787693873, 'mean_word_length': 4.6767676767676765, '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': '6385485', 'n_tokens_mistral': 1578, 'n_tokens_neox': 1469, 'n_words': 295}