Skip to content

Commit

Permalink
Got some more fields for platform example
Browse files Browse the repository at this point in the history
  • Loading branch information
Zatvobor committed Sep 10, 2015
1 parent e744ba2 commit f441c5b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion examples/platform/main.rs
Expand Up @@ -5,12 +5,16 @@ use opencl::hl;
fn main() {
for platform in hl::get_platforms().iter() {
println!("Platform: {}", platform.name());
println!("Platform Version: {}", platform.version());
println!("Vendor: {}", platform.vendor());
println!("Profile: {}", platform.profile());
println!("Available extensions: {}", platform.extensions());
println!("Available devices:");
for device in platform.get_devices().iter() {
println!(" {}", device.name());
println!(" Name: {}", device.name());
println!(" Type: {}", device.device_type());
println!(" Profile: {}", device.profile());
println!(" Compute Units: {}", device.compute_units());
}
}
}

0 comments on commit f441c5b

Please sign in to comment.