From 5a2c42ee5f0120ad75026a4b556051dc74a337b2 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Wed, 16 Oct 2024 22:21:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=83=BD=E8=B7=91=EF=BC=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.rs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/main.rs b/src/main.rs index eac90d7..b8605aa 100644 --- a/src/main.rs +++ b/src/main.rs @@ -169,18 +169,18 @@ fn main() -> anyhow::Result<()> { println!("开始写入buffer"); // 阻塞写 - let _team_write_event = - unsafe { queue.enqueue_write_buffer(&mut team, CL_BLOCKING, 0, &team_data_vec, &[]) }?; - _team_write_event.wait()?; - let _name_write_event = - unsafe { queue.enqueue_write_buffer(&mut name, CL_BLOCKING, 0, &name_data_vec, &[]) }?; - _name_write_event.wait()?; - let _t_len_write_event = - unsafe { queue.enqueue_write_buffer(&mut t_len, CL_BLOCKING, 0, &t_len_vec, &[]) }?; - _t_len_write_event.wait()?; - let _n_len_write_event = - unsafe { queue.enqueue_write_buffer(&mut n_len, CL_BLOCKING, 0, &n_len_vec, &[]) }?; - _n_len_write_event.wait()?; + // let _team_write_event = + // unsafe { queue.enqueue_write_buffer(&mut team, CL_BLOCKING, 0, &team_data_vec, &[]) }?; + // _team_write_event.wait()?; + // let _name_write_event = + // unsafe { queue.enqueue_write_buffer(&mut name, CL_BLOCKING, 0, &name_data_vec, &[]) }?; + // _name_write_event.wait()?; + // let _t_len_write_event = + // unsafe { queue.enqueue_write_buffer(&mut t_len, CL_BLOCKING, 0, &t_len_vec, &[]) }?; + // _t_len_write_event.wait()?; + // let _n_len_write_event = + // unsafe { queue.enqueue_write_buffer(&mut n_len, CL_BLOCKING, 0, &n_len_vec, &[]) }?; + // _n_len_write_event.wait()?; println!("开始执行kernel");