<commit_before>oclutil
=======

oclutil is header-only template library created for ease of C++ based OpenCL
development.

Selection of compute devices
----------------------------

You can select any number of available compute devices, which satisfy provided
filters. Filter is a functor returning bool and acting on a cl::Device
parameter. Several standard filters are provided, such as device type or name
filter, double precision support etc. Filters can be combined with logical
operators. In the example below all available NVIDIA GPUs are selected:

```C++
#include <vector>
#include <oclutil/devlist.hpp>

using namespace std;

int main() {
    std::vector<cl::Device> dev = device_list(
	Filter::Type(CL_DEVICE_TYPE_GPU) && [](const cl::Device &d) {
	    return d.getInfo<CL_DEVICE_VENDOR>() == "NVIDIA Corporation";
	});
}

```<commit_msg>Output device names in READE example<commit_after>oclutil
=======

oclutil is header-only template library created for ease of C++ based OpenCL
development.

Selection of compute devices
----------------------------

You can select any number of available compute devices, which satisfy provided
filters. Filter is a functor returning bool and acting on a cl::Device
parameter. Several standard filters are provided, such as device type or name
filter, double precision support etc. Filters can be combined with logical
operators. In the example below all available NVIDIA GPUs are selected:

```C++
#include <iostream>
#include <oclutil/devlist.hpp>

using namespace std;

int main() {
    auto device = device_list(
        Filter::Type(CL_DEVICE_TYPE_GPU) && [](const cl::Device &d) {
            return d.getInfo<CL_DEVICE_VENDOR>() == "NVIDIA Corporation";
        });

    std::cout << device.size() << " GPUs found:" << std::endl;
    for(auto &d : device)
        std::cout << "\t" << d.getInfo<CL_DEVICE_NAME>() << std::endl;
}

```
{'fraction_non_alphanumeric': 0.13220518244315177, 'fraction_numerical': 0.0, 'mean_word_length': 3.8637532133676094, 'pattern_counts': {'":': 0, '<': 23, '<?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': '1931290', 'n_tokens_mistral': 529, 'n_tokens_neox': 513, 'n_words': 211}