Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6bc4cb5

Browse filesBrowse files
committed
Fix warnings in interop projects
1 parent 8eb190f commit 6bc4cb5
Copy full SHA for 6bc4cb5

File tree

Expand file treeCollapse file tree

4 files changed

+3
-4
lines changed
Filter options
Expand file treeCollapse file tree

4 files changed

+3
-4
lines changed

‎cuda-interop/Cargo.toml

Copy file name to clipboardExpand all lines: cuda-interop/Cargo.toml
+1-1Lines 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

Copy file name to clipboardExpand all lines: cuda-interop/examples/cuda_af_app.rs
-1Lines 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

Copy file name to clipboardExpand all lines: opencl-interop/Cargo.toml
+1-1Lines 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

Copy file name to clipboardExpand all lines: opencl-interop/examples/custom_kernel.rs
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.