也许这样行呢?
This commit is contained in:
parent
57b6dc0a53
commit
5673a7eb63
@ -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) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user