ocl 0.19.7

OpenCL bindings and interfaces for Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use super::super::ProQue;

#[test]
#[should_panic]
#[allow(unused_variables)]
fn bad_kernel_variable_names() {
    let kernel = r#"
        kernel void multiply(global float* buffer, float coeff) {

            not_a_variable + im_with_not_a_variable;

            buffer[get_global_id(0)] *= coeff;
        }
    "#;

    let ocl_pq = ProQue::builder().src(kernel).build().unwrap();
}