Skip to content

Commit 0819e73

Browse files
committed
Fix warnings in interop projects
1 parent 05a4da5 commit 0819e73

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

cuda-interop/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ rustacuda = "0.1"
1919
rustacuda_core = "0.1"
2020

2121
[[example]]
22-
name = "custom_kernel"
22+
name = "afcuda_custom_kernel"
2323
path = "examples/custom_kernel.rs"
2424

2525
[[example]]

cuda-interop/examples/cuda_af_app.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
use arrayfire::{af_print, dim4, info, set_device, Array};
22
use rustacuda::prelude::*;
3-
use rustacuda::*;
43

54
fn main() {
65
// MAKE SURE to do all rustacuda initilization before arrayfire API's

opencl-interop/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ cl-sys = "0.4.2"
1818
ocl-core = "0.11.2"
1919

2020
[[example]]
21-
name = "custom_kernel"
21+
name = "afocl_custom_kernel"
2222
path = "examples/custom_kernel.rs"
2323

2424
[[example]]

opencl-interop/examples/custom_kernel.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ fn main() {
2222
let af_ctx = afcl::get_context(false);
2323
let af_que = afcl::get_queue(false);
2424

25-
let devid = unsafe { ocl_core::DeviceId::from_raw(af_did) };
25+
let _devid = unsafe { ocl_core::DeviceId::from_raw(af_did) };
2626
let contx = unsafe { ocl_core::Context::from_raw_copied_ptr(af_ctx) };
2727
let queue = unsafe { ocl_core::CommandQueue::from_raw_copied_ptr(af_que) };
2828

0 commit comments

Comments
 (0)