Skip to content

Commit

Permalink
Fix the CUDA product availability logic in SiPixelRecHitHeterogeneous (
Browse files Browse the repository at this point in the history
  • Loading branch information
makortel authored and fwyzard committed Apr 16, 2019
1 parent 30f4f4b commit 505dee5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,10 @@ 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));
}

Expand Down

0 comments on commit 505dee5

Please sign in to comment.