<commit_before><commit_msg>Fix test file<commit_after>#![feature(macro_rules)]
extern crate opencl = "OpenCL#0.2";

use opencl::hl;

macro_rules! expect (
    ($test: expr, $expected: expr) => ({
            let test     = $test;
            let expected = $expected;
            if test != expected {
                fail!(format!("Test failure in {:s}: expected {:?}, got {:?}",
                              stringify!($test),
                              expected, test))
            }
        })
        )

fn main () {
    /*let src = "__kernel void test(__global int *i, long int k) {
                   *i += k;
                   }";
    let prog = ctx.create_program_from_source(src);
    prog.build(&device).unwrap();

    let k = prog.create_kernel("test");
    let v = ctx.create_buffer_from(&[1], CL_MEM_READ_WRITE);
    k.set_arg(0, &v);
    k.set_arg(1, &42);
    queue.enqueue_async_kernel(&k, 1, None, ()).wait();
    let v: ~[int] = queue.get(&v, ());

    expect!(v[0], 43);*/
    
    let platforms = hl::get_platforms();
    for p in platforms.iter() {
        let devices = p.get_devices();
        for d in devices.iter() {
            let context = d.create_context();
            let queue = context.create_command_queue(d);
            let name = d.name();
            println!("device found");
        }
    }
    
}
{'fraction_non_alphanumeric': 0.158364312267658, 'fraction_numerical': 0.008178438661710037, 'mean_word_length': 1.8336842105263158, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '5113720', 'n_tokens_mistral': 434, 'n_tokens_neox': 417, 'n_words': 97}