Function get_platform_ids

Source
pub fn get_platform_ids() -> Result<Vec<cl_platform_id>, OpenCLAPIError>
Expand description

Returns the list of all platforms available

num_entries is number of cl_platform_id entries can be added to platforms. if platforms is not null, num_entries must be greater than zero.

ยงExamples

use opencl_api::api::platform::*;

let id = get_platform_ids();