diff --git a/oneapi-rs/examples/alloc.rs b/oneapi-rs/examples/alloc.rs deleted file mode 100644 index 52924c0..0000000 --- a/oneapi-rs/examples/alloc.rs +++ /dev/null @@ -1,30 +0,0 @@ -// -// Copyright (C) 2026 Intel Corporation -// -// Under the MIT License or the Apache License v2.0. -// See LICENSE-MIT and LICENSE-APACHE for license information. -// SPDX-License-Identifier: MIT OR Apache-2.0 -// - -use oneapi_rs::queue::Queue; - -fn main() { - let mut queue = Queue::new(); - let mut buffer = queue.alloc_shared::(10).wait(); - - for e in buffer.iter() { - print!("{e} ") - } - - println!(); - - for i in 0..buffer.len() { - buffer[i] = i as u32; - } - - for e in buffer.iter() { - print!("{e} ") - } - - println!(); -} diff --git a/oneapi-rs/examples/async.rs b/oneapi-rs/examples/async.rs deleted file mode 100644 index f3ff4b4..0000000 --- a/oneapi-rs/examples/async.rs +++ /dev/null @@ -1,31 +0,0 @@ -// -// Copyright (C) 2026 Intel Corporation -// -// Under the MIT License or the Apache License v2.0. -// See LICENSE-MIT and LICENSE-APACHE for license information. -// SPDX-License-Identifier: MIT OR Apache-2.0 -// - -use oneapi_rs::queue::Queue; - -#[tokio::main] -async fn main() { - let mut queue = Queue::new(); - let mut buffer = queue.alloc_shared::(10).await; - - for e in buffer.iter() { - print!("{e} ") - } - - println!(); - - for i in 0..buffer.len() { - buffer[i] = i as u32; - } - - for e in buffer.iter() { - print!("{e} ") - } - - println!(); -}