We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9334199 commit 83a7fb8Copy full SHA for 83a7fb8
opencl-interop/examples/ocl_af_app.rs
@@ -5,6 +5,9 @@ use arrayfire as af;
5
use ocl_core::{ContextProperties, Event};
6
7
fn main() {
8
+ // Set the arrayfire backend to use OopenCL first, because CUDA is the default
9
+ af::set_backend(af::Backend::OPENCL);
10
+
11
// Choose platform & device(s) to use. Create a context, queue,
12
let platform_id = ocl_core::default_platform().unwrap();
13
let device_ids = ocl_core::get_device_ids(&platform_id, None, None).unwrap();
0 commit comments