diff --git a/src/intel/ds/intel_pps_driver.cc b/src/intel/ds/intel_pps_driver.cc index 09fcba27f27..8a038c3cceb 100644 --- a/src/intel/ds/intel_pps_driver.cc +++ b/src/intel/ds/intel_pps_driver.cc @@ -73,7 +73,8 @@ bool IntelDriver::init_perfcnt() */ this->clock_id = intel_pps_clock_id(drm_device.gpu_num); - assert(!perf && "Intel perf should not be initialized at this point"); + if (perf) + return true; perf = std::make_unique(drm_device.fd);