Close the default pool on exit

Change-Id: I388ea4d4f06c1818312a72185ef55b615c730509


[ROCm/roctracer commit: a0fd1e7c4b]
This commit is contained in:
Laurent Morichetti
2022-04-20 16:05:28 -07:00
orang tua 3c18fb9f01
melakukan f8cc0d58a8
@@ -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));
}
}