也许这样行呢?

This commit is contained in:
shenjack 2024-10-17 21:42:29 +08:00
parent 57b6dc0a53
commit 5673a7eb63
Signed by: shenjack
GPG Key ID: 7B1134A979775551

View File

@ -62,7 +62,7 @@ fn main() -> anyhow::Result<()> {
property |= CL_QUEUE_ON_DEVICE; property |= CL_QUEUE_ON_DEVICE;
} }
let queue = match CommandQueue::create_default_with_properties( let queue = match CommandQueue::create_default_with_properties(
&context, property, worker_count as u32, // 写死试试, 看起来没问题 &context, property, 0
) { ) {
Ok(q) => q, Ok(q) => q,
Err(err) => { Err(err) => {