From c31e4cb074d1b7149ff7f7b176d8189c225b7e9e Mon Sep 17 00:00:00 2001 From: Matti Kortelainen Date: Thu, 11 Apr 2019 18:21:18 +0200 Subject: [PATCH] Fix the CUDA product availability logic in rechit --- .../SiPixelRecHits/plugins/SiPixelRecHitHeterogeneous.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/RecoLocalTracker/SiPixelRecHits/plugins/SiPixelRecHitHeterogeneous.cc b/RecoLocalTracker/SiPixelRecHits/plugins/SiPixelRecHitHeterogeneous.cc index 8786747ef7a50..be4ca76f23ad5 100644 --- a/RecoLocalTracker/SiPixelRecHits/plugins/SiPixelRecHitHeterogeneous.cc +++ b/RecoLocalTracker/SiPixelRecHits/plugins/SiPixelRecHitHeterogeneous.cc @@ -191,13 +191,13 @@ void SiPixelRecHitHeterogeneous::acquireGPUCuda(const edm::HeterogeneousEvent& i // synchronize explicitly (implementation is from // CUDAScopedContext). In practice these should not be needed // (because of synchronizations upstream), but let's play generic. - if(not hclusters->isAvailable() && hclusters->event()->has_occurred()) { + if(not hclusters->isAvailable() and not hclusters->event()->has_occurred()) { cudaCheck(cudaStreamWaitEvent(cudaStream.id(), hclusters->event()->id(), 0)); } - if(not hdigis->isAvailable() && hdigis->event()->has_occurred()) { + if(not hdigis->isAvailable() and not hdigis->event()->has_occurred()) { cudaCheck(cudaStreamWaitEvent(cudaStream.id(), hclusters->event()->id(), 0)); } - if(not hbs->isAvailable() && hbs->event()->has_occurred()) { + if(not hbs->isAvailable() and not hbs->event()->has_occurred()) { cudaCheck(cudaStreamWaitEvent(cudaStream.id(), hbs->event()->id(), 0)); }