Close the default pool on exit

Change-Id: I388ea4d4f06c1818312a72185ef55b615c730509
Bu işleme şunda yer alıyor:
Laurent Morichetti
2022-04-20 16:05:28 -07:00
ebeveyn 9d728f74a1
işleme a0fd1e7c4b
+3 -2
Dosyayı Görüntüle
@@ -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));
}
}