能跑?

This commit is contained in:
shenjack 2024-10-16 22:21:16 +08:00
parent 1bb68c7753
commit 5a2c42ee5f
Signed by: shenjack
GPG Key ID: 7B1134A979775551

View File

@ -169,18 +169,18 @@ fn main() -> anyhow::Result<()> {
println!("开始写入buffer"); println!("开始写入buffer");
// 阻塞写 // 阻塞写
let _team_write_event = // let _team_write_event =
unsafe { queue.enqueue_write_buffer(&mut team, CL_BLOCKING, 0, &team_data_vec, &[]) }?; // unsafe { queue.enqueue_write_buffer(&mut team, CL_BLOCKING, 0, &team_data_vec, &[]) }?;
_team_write_event.wait()?; // _team_write_event.wait()?;
let _name_write_event = // let _name_write_event =
unsafe { queue.enqueue_write_buffer(&mut name, CL_BLOCKING, 0, &name_data_vec, &[]) }?; // unsafe { queue.enqueue_write_buffer(&mut name, CL_BLOCKING, 0, &name_data_vec, &[]) }?;
_name_write_event.wait()?; // _name_write_event.wait()?;
let _t_len_write_event = // let _t_len_write_event =
unsafe { queue.enqueue_write_buffer(&mut t_len, CL_BLOCKING, 0, &t_len_vec, &[]) }?; // unsafe { queue.enqueue_write_buffer(&mut t_len, CL_BLOCKING, 0, &t_len_vec, &[]) }?;
_t_len_write_event.wait()?; // _t_len_write_event.wait()?;
let _n_len_write_event = // let _n_len_write_event =
unsafe { queue.enqueue_write_buffer(&mut n_len, CL_BLOCKING, 0, &n_len_vec, &[]) }?; // unsafe { queue.enqueue_write_buffer(&mut n_len, CL_BLOCKING, 0, &n_len_vec, &[]) }?;
_n_len_write_event.wait()?; // _n_len_write_event.wait()?;
println!("开始执行kernel"); println!("开始执行kernel");