Skip to content

Commit

Permalink
Fix the CUDA product availability logic in rechit
Browse files Browse the repository at this point in the history
  • Loading branch information
makortel committed Apr 11, 2019
1 parent 0135dbf commit c31e4cb
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down

0 comments on commit c31e4cb

Please sign in to comment.