obrah 3.4.0

High-level Rust wrapper around OpenCL using OBWIO
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
fn main() {
    if cfg!(target_os = "linux") {
        // linux is easy
        println!("cargo:rustc-link-lib=OpenCL");
        // stupid windows is not
    } else {
        // i swear if you dont have this set i am just... READ THE DOCS OMGG
        if let Ok(path) = std::env::var("OPENCL_SDK") {
            println!("cargo:rustc-link-search=native={}/lib", path);
            println!("cargo:rustc-link-lib=dylib=OpenCL");
        } else {
            println!(
                "cargo:error=Environment variable OPENCL_SDK not set. Set it to your OpenCL SDK path."
            );
        }
    }
}