不是哥们
This commit is contained in:
parent
664a100e80
commit
ea6cd1554a
@ -5,5 +5,4 @@ edition = "2021"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
anyhow = { version = "1.0", features = ["backtrace"] }
|
anyhow = { version = "1.0", features = ["backtrace"] }
|
||||||
opencl3 = { version = "0.9.5", features = ["serde",
|
opencl3 = { version = "0.9.5", features = ["serde"] }
|
||||||
"cl_khr_create_command_queue"] }
|
|
||||||
|
@ -48,14 +48,14 @@ fn main() -> anyhow::Result<()> {
|
|||||||
let context = Context::from_device(&device).expect("Context::from_device failed");
|
let context = Context::from_device(&device).expect("Context::from_device failed");
|
||||||
|
|
||||||
let property = CL_QUEUE_PROFILING_ENABLE | CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE;
|
let property = CL_QUEUE_PROFILING_ENABLE | CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE;
|
||||||
let queue = match CommandQueue::create_with_properties_khr(
|
let queue = match CommandQueue::create_default_with_properties(
|
||||||
&context,
|
&context,
|
||||||
device_id,
|
0,
|
||||||
&[], // 写死试试, 看起来没问题
|
10, // 写死试试, 看起来没问题
|
||||||
) {
|
) {
|
||||||
Ok(q) => q,
|
Ok(q) => q,
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
println!("创建命令队列失败: {}", err);
|
println!("创建命令队列失败: {}, 属性: {}", err, 0);
|
||||||
panic!();
|
panic!();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user