<commit_before>// Copyright (c) 2009-2019 The Regents of the University of Michigan
// This file is part of the HOOMD-blue project, released under the BSD 3-Clause License.


// Maintainer: joaander

#include "HOOMDVersion.h"
#include <iostream>
#include <sstream>
#include <string>

#ifdef ENABLE_HIP
#include <hip/hip_runtime.h>
#endif

using namespace std;

/*! \file HOOMDVersion.cc
    \brief Defines functions for formatting compile time version information as a string.

    \ingroup utils
*/

std::string hoomd_compile_flags()
    {
    ostringstream o;

    #ifdef ENABLE_HIP
    int hip_major = HIP_VERSION_MAJOR;
    int hip_minor = HIP_VERSION_MINOR;

    o << "HIP (" << hip_major << "." << hip_minor << ") ";
    #endif

    #ifdef SINGLE_PRECISION
    o << "SINGLE ";
    #else
    o << "DOUBLE ";
    #ifdef ENABLE_HPMC_MIXED_PRECISION
    o << "HPMC_MIXED ";
    #endif
    #endif

    #ifdef ENABLE_MPI
    o << "MPI ";
    #endif

    #ifdef ENABLE_MPI_CUDA
    o << "MPI_CUDA ";
    #endif

    #ifdef ENABLE_TBB
    o << "TBB ";
    #endif

    #ifdef __SSE__
    o << "SSE ";
    #endif

    #ifdef __SSE2__<commit_msg>update version output<commit_after>// Copyright (c) 2009-2019 The Regents of the University of Michigan
// This file is part of the HOOMD-blue project, released under the BSD 3-Clause License.


// Maintainer: joaander

#include "HOOMDVersion.h"
#include <iostream>
#include <sstream>
#include <string>

#ifdef ENABLE_HIP
#include <hip/hip_runtime.h>
#endif

using namespace std;

/*! \file HOOMDVersion.cc
    \brief Defines functions for formatting compile time version information as a string.

    \ingroup utils
*/

std::string hoomd_compile_flags()
    {
    ostringstream o;

    #ifdef ENABLE_HIP
    int hip_major = HIP_VERSION_MAJOR;
    int hip_minor = HIP_VERSION_MINOR;

    o << "HIP [";
    #if defined(__HIP_PLATFORM_NVCC__)
    o << "CUDA"
    #elif defined(__HIP_PLATFORM_HCC__)
    o << "ROCm";
    #endif
    o << "] (" << hip_major << "." << hip_minor << ") ";
    #endif

    #ifdef SINGLE_PRECISION
    o << "SINGLE ";
    #else
    o << "DOUBLE ";
    #ifdef ENABLE_HPMC_MIXED_PRECISION
    o << "HPMC_MIXED ";
    #endif
    #endif

    #ifdef ENABLE_MPI
    o << "MPI ";
    #endif

    #ifdef ENABLE_MPI_CUDA
    o << "MPI_CUDA ";
    #endif

    #ifdef ENABLE_TBB
    o << "TBB ";
    #endif

    #ifdef __SSE__
    o << "SSE ";
    #endif

    #ifdef __SSE2__
{'fraction_non_alphanumeric': 0.11568546727048168, 'fraction_numerical': 0.008233841086867023, 'mean_word_length': 2.8207547169811322, 'pattern_counts': {'":': 0, '<': 65, '<?xml version=': 0, '>': 11, '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': '473333', 'n_tokens_mistral': 928, 'n_tokens_neox': 895, 'n_words': 233}