<commit_before>add_executable(build_halide_h ../tools/build_halide_h.cpp)
add_executable(bitcode2cpp ../tools/bitcode2cpp.cpp)


if (MSVC)
  # Suppress some warnings
  add_definitions("-D_CRT_SECURE_NO_WARNINGS")
  add_definitions("-D_SCL_SECURE_NO_WARNINGS")
  add_definitions("/wd4244 /wd4267 /wd4800 /wd4996")
endif()

if (HALIDE_SHARED_LIBRARY)
  add_definitions("-DHalide_SHARED")
  set(HALIDE_LIBRARY_TYPE SHARED)
else()
  set(HALIDE_LIBRARY_TYPE STATIC)
endif()

include_directories ("${LLVM_INCLUDE}")
link_directories ("${LLVM_LIB}")

if(WIN32)
  file(GLOB LIBS RELATIVE "${LLVM_LIB}" "${LLVM_LIB}/*.lib")
else()
  execute_process(COMMAND ${LLVM_CONFIG} --libs OUTPUT_VARIABLE LIBS)
endif()

if (TARGET_NATIVE_CLIENT)
  add_definitions("-DWITH_NATIVE_CLIENT=1")
endif()

if (TARGET_X86)
  add_definitions("-DWITH_X86=1")
endif()

if (TARGET_ARM)
  add_definitions("-DWITH_ARM=1")
endif()

if (TARGET_PTX)
  add_definitions("-DWITH_PTX=1")
endif()

if (TARGET_OPENCL)
  add_definitions("-DWITH_OPENCL=1")
endif()

if (TARGET_OPENGL)
  add_definitions("-DWITH_OPENGL=1")
endif()

if (TARGET_SPIR)
  add_definitions("-DWITH_SPIR=1")
endif()

if (TARGET_ARM64)
  add_definitions("-DWITH_ARM64=1")
endif()

add_definitions("-DLLVM_VERSION=${LLVM_VERSION}")

set(RUNTIME_CPP
  android_io
  cuda
  fake_thread_pool
  gcd_thread_pool
  ios_io
  android_clock
  linux_clock
  nogpu
  opencl
  opengl
  posix_allocator
  posix_clock
  osx_clock
  windows_clock
  posix_error_handler
  posix_io
  nacl_io
  ssp
  osx_io
  posix_math
  posix_thread_pool
  windows_thread_pool
  android_host_cpu_count
  linux_host_cpu_count
  osx_host_cpu_count
  tracing
  write_debug_image
  cuda_debug
  opencl_debug
  windows_io)
set (RUNTIME_LL
  arm
  posix_math
  pnacl_math
  ptx_dev
  spir_dev
  spir64_dev<commit_msg>Add opengl_debug to the cmake build<commit_after>add_executable(build_halide_h ../tools/build_halide_h.cpp)
add_executable(bitcode2cpp ../tools/bitcode2cpp.cpp)


if (MSVC)
  # Suppress some warnings
  add_definitions("-D_CRT_SECURE_NO_WARNINGS")
  add_definitions("-D_SCL_SECURE_NO_WARNINGS")
  add_definitions("/wd4244 /wd4267 /wd4800 /wd4996")
endif()

if (HALIDE_SHARED_LIBRARY)
  add_definitions("-DHalide_SHARED")
  set(HALIDE_LIBRARY_TYPE SHARED)
else()
  set(HALIDE_LIBRARY_TYPE STATIC)
endif()

include_directories ("${LLVM_INCLUDE}")
link_directories ("${LLVM_LIB}")

if(WIN32)
  file(GLOB LIBS RELATIVE "${LLVM_LIB}" "${LLVM_LIB}/*.lib")
else()
  execute_process(COMMAND ${LLVM_CONFIG} --libs OUTPUT_VARIABLE LIBS)
endif()

if (TARGET_NATIVE_CLIENT)
  add_definitions("-DWITH_NATIVE_CLIENT=1")
endif()

if (TARGET_X86)
  add_definitions("-DWITH_X86=1")
endif()

if (TARGET_ARM)
  add_definitions("-DWITH_ARM=1")
endif()

if (TARGET_PTX)
  add_definitions("-DWITH_PTX=1")
endif()

if (TARGET_OPENCL)
  add_definitions("-DWITH_OPENCL=1")
endif()

if (TARGET_OPENGL)
  add_definitions("-DWITH_OPENGL=1")
endif()

if (TARGET_SPIR)
  add_definitions("-DWITH_SPIR=1")
endif()

if (TARGET_ARM64)
  add_definitions("-DWITH_ARM64=1")
endif()

add_definitions("-DLLVM_VERSION=${LLVM_VERSION}")

set(RUNTIME_CPP
  android_io
  cuda
  fake_thread_pool
  gcd_thread_pool
  ios_io
  android_clock
  linux_clock
  nogpu
  opencl
  opengl
  posix_allocator
  posix_clock
  osx_clock
  windows_clock
  posix_error_handler
  posix_io
  nacl_io
  ssp
  osx_io
  posix_math
  posix_thread_pool
  windows_thread_pool
  android_host_cpu_count
  linux_host_cpu_count
  osx_host_cpu_count
  tracing
  write_debug_image
  cuda_debug
  opencl_debug
  opengl_debug
  windows_io)
set (RUNTIME_LL
  arm
  posix_math
  pnacl_math
  ptx_dev
  spir_dev
  spir64_dev
{'fraction_non_alphanumeric': 0.10353327855382087, 'fraction_numerical': 0.020816214735688853, 'mean_word_length': 5.775510204081633, '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': '2312852', 'n_tokens_mistral': 1582, 'n_tokens_neox': 1551, 'n_words': 233}