mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
svm: finish all queues in svm_pointer_passing (#2209)
The `svm_pointer_passing` test has unflushed buffer unmap commands queued, which a runtime might process after the `clSVMFree` calls at the end of the test (through implicit flushing when destroying the queues at e.g. program exit handlers). This is only an issue when running the test with multiple devices. However I think this was caused by a simple typo given the `clFinish` was simply in the wrong block.
This commit is contained in:
@@ -127,11 +127,11 @@ REGISTER_TEST(svm_pointer_passing)
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
error = clFinish(cmdq);
|
||||
test_error(error, "clFinish failed");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
clSVMFree(context, pbuf_svm_alloc);
|
||||
|
||||
Reference in New Issue
Block a user