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");