MCPcopy Index your code
hub / github.com/arrayfire/arrayfire-rust / get_platform

Function get_platform

opencl-interop/src/lib.rs:136–143  ·  view source on GitHub ↗

Fetch Active ArrayFire device's vendor platform

()

Source from the content-addressed store, hash-verified

134
135/// Fetch Active ArrayFire device's vendor platform
136pub fn get_platform() -> VendorPlatform {
137 unsafe {
138 let mut out: i32 = 0;
139 let err_val = afcl_get_platform(&mut out as *mut c_int);
140 handle_error_general(AfError::from(err_val));
141 mem::transmute(out)
142 }
143}

Callers

nothing calls this directly

Calls 1

handle_error_generalFunction · 0.85

Tested by

no test coverage detected