Close the default pool on exit

Change-Id: I388ea4d4f06c1818312a72185ef55b615c730509
This commit is contained in:
Laurent Morichetti committed 2022-04-20 19:48:24 -07:00
1 parent 9d728f74a1
commit a0fd1e7c4b
1 file changed
+3 -2
+3 -2
View File
@@ -760,8 +760,9 @@ void open_tracing_pool() {
// Flush tracing pool
void close_tracing_pool() {
if (roctracer_default_pool() != NULL) {
ROCTRACER_CALL(roctracer_flush_activity());
if (roctracer_pool_t* pool = roctracer_default_pool(); pool != nullptr) {
ROCTRACER_CALL(roctracer_flush_activity_expl(pool));
ROCTRACER_CALL(roctracer_close_pool_expl(pool));
}
}