Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCloud Han <cloudhan@outlook.com>2022-01-28 06:55:42 +0300
committerCloud Han <cloudhan@outlook.com>2022-01-28 06:55:42 +0300
commitc9fb07ffe57372f982dccd368a649c96effc880b (patch)
treea9618429f0132e1d3fbd4ff9bc3d09d0077e3fca /examples
parentf6769ecb910f05fd1e6088a13a207afa0f8cfe28 (diff)
remove blocking collect
Diffstat (limited to 'examples')
-rw-r--r--examples/OpenCLVectorAdd/OpenCLVectorAdd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/OpenCLVectorAdd/OpenCLVectorAdd.cpp b/examples/OpenCLVectorAdd/OpenCLVectorAdd.cpp
index ce5adece..a2560eae 100644
--- a/examples/OpenCLVectorAdd/OpenCLVectorAdd.cpp
+++ b/examples/OpenCLVectorAdd/OpenCLVectorAdd.cpp
@@ -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");