<commit_before>################################################################################
# Copyright (C) 2016 Advanced Micro Devices, Inc. All rights reserved.
################################################################################

include(AddCobaltLib)
include(EnableWarnings)
set(Cobalt_DIR_PROBLEMS ${PROJECT_BINARY_DIR}/problems CACHE PATH "path to problems used by clients")

find_package(OpenCL "1.2")
find_package(HIP)

set(Cobalt_BACKENDS NONE)

if( HIP_FOUND )
  set( Cobalt_BACKEND "HIP" CACHE STRING "Which of Cobalt's backends to use?" )
  list(APPEND Cobalt_BACKENDS HIP)
endif()

if( OPENCL_FOUND )
  set( Cobalt_BACKEND "OpenCL_1.2" CACHE STRING "Which of Cobalt's backends to use?" )
  list(APPEND Cobalt_BACKENDS OpenCL_1.2)
endif()
message(STATUS "Cobalt_BACKENDS: ${Cobalt_BACKENDS}")
set_property( CACHE Cobalt_BACKEND PROPERTY STRINGS ${Cobalt_BACKENDS})

# OpenCL 1.2
if( Cobalt_BACKEND MATCHES "OpenCL_1.2")
  message(STATUS "${Cobalt_BACKEND} backend selected." )
# HIP
elseif( Cobalt_BACKEND MATCHES "HIP")<commit_msg>Add c++11 flag for clients<commit_after>################################################################################
# Copyright (C) 2016 Advanced Micro Devices, Inc. All rights reserved.
################################################################################

include(AddCobaltLib)
include(EnableWarnings)
set(Cobalt_DIR_PROBLEMS ${PROJECT_BINARY_DIR}/problems CACHE PATH "path to problems used by clients")

find_package(OpenCL "1.2")
find_package(HIP)
if(NOT MSVC)
    add_definitions(-std=c++11)
endif()

set(Cobalt_BACKENDS NONE)
if( HIP_FOUND )
  set( Cobalt_BACKEND "HIP" CACHE STRING "Which of Cobalt's backends to use?" )
  list(APPEND Cobalt_BACKENDS HIP)
endif()

if( OPENCL_FOUND )
  set( Cobalt_BACKEND "OpenCL_1.2" CACHE STRING "Which of Cobalt's backends to use?" )
  list(APPEND Cobalt_BACKENDS OpenCL_1.2)
endif()
message(STATUS "Cobalt_BACKENDS: ${Cobalt_BACKENDS}")
set_property( CACHE Cobalt_BACKEND PROPERTY STRINGS ${Cobalt_BACKENDS})

# OpenCL 1.2
if( Cobalt_BACKEND MATCHES "OpenCL_1.2")
  message(STATUS "${Cobalt_BACKEND} backend selected." )
# HIP
elseif( Cobalt_BACKEND MATCHES "HIP")
{'fraction_non_alphanumeric': 0.23707093821510297, 'fraction_numerical': 0.014645308924485127, 'mean_word_length': 7.709163346613546, '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': '1320316', 'n_tokens_mistral': 787, 'n_tokens_neox': 734, 'n_words': 179}