Skip to content

Commit 9384c6f

Browse files
madhav-madhusoodananLegNeato
authored andcommitted
chore: move async_api example to the samples/introduction/ subdirectory
1 parent 3431da8 commit 9384c6f

File tree

6 files changed

+3
-3
lines changed

6 files changed

+3
-3
lines changed

Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ members = [
88

99
"xtask",
1010

11-
"examples/cuda/async_api",
12-
"examples/cuda/async_api/kernels",
1311
"examples/cuda/vecadd",
1412
"examples/cuda/vecadd/kernels",
1513
"examples/cuda/gemm",
@@ -22,6 +20,9 @@ members = [
2220
"examples/optix/*",
2321
"tests/compiletests",
2422
"tests/compiletests/deps-helper",
23+
24+
"samples/introduction/async_api",
25+
"samples/introduction/async_api/kernels",
2526
]
2627

2728
exclude = [
File renamed without changes.
File renamed without changes.

examples/cuda/async_api/src/main.rs renamed to samples/introduction/async_api/src/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ fn main() -> Result<(), cust::error::CudaError> {
3838
let stream = Stream::new(StreamFlags::NON_BLOCKING, None).expect("Stream couldn't be init!");
3939

4040
const N: usize = 16 * 1024 * 1024;
41-
const N_BYTES: usize = N * (i32::BITS as usize);
4241
let value = 26;
4342

4443
let blocks = BlockSize::xy(512, 1);

0 commit comments

Comments
 (0)