1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

remove blocking collect

This commit is contained in:
Cloud Han
2022-01-28 11:55:42 +08:00
parent f6769ecb91
commit c9fb07ffe5
2 changed files with 5 additions and 12 deletions
+2 -2
View File
@@ -200,8 +200,8 @@ int main()
}) / (durations.size() - 1.0f);
std::cout << "VectorAdd runtime avg: " << avg << "us, std: " << sqrt(stddev2) << "us over " << numLaunchs << " runs." << std::endl;
// Use blocking collect will ensure all queued events is finished
TracyCLBlockingCollect(tracyCLCtx);
// User should ensure all events are finished, in this case, collect after the clFinish will do the trick.
TracyCLCollect(tracyCLCtx);
{
ZoneScopedN("Checking results");