能跑?
This commit is contained in:
parent
1bb68c7753
commit
5a2c42ee5f
24
src/main.rs
24
src/main.rs
@ -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");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user