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:
Karol Herbst
2025-01-07 18:35:46 +01:00
committed by GitHub
parent 86e0c236a1
commit 34feb6e008

View File

@@ -127,10 +127,10 @@ REGISTER_TEST(svm_pointer_passing)
return -1; return -1;
} }
} }
}
error = clFinish(cmdq); error = clFinish(cmdq);
test_error(error, "clFinish failed"); test_error(error, "clFinish failed");
}
} }