Skip to content

Commit

Permalink
Fix compilation of HGCalRecHitProducers.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
iarspider committed Jan 24, 2025
1 parent 75451d5 commit 53bfa9e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ namespace ALPAKA_ACCELERATOR_NAMESPACE {
private:
void print(HGCalDigiHost const& digis, int max = -1) const;
void print_digi_device(HGCalDigiDevice const& digis, int max = -1) const;
void print_recHit_device(Queue& queue, HGCalRecHitDevice const& recHits, int max = -1) const;
void print_recHit_device(Queue& queue, PortableHostCollection<hgcalrechit::HGCalRecHitSoALayout<> >::View const& recHits, int max = -1) const;

int n_blocks_;
int n_threads_;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,11 @@ namespace ALPAKA_ACCELERATOR_NAMESPACE {
}

void HGCalRecHitCalibrationAlgorithms::print_recHit_device(Queue& queue,
HGCalRecHitDevice const& recHits,
PortableHostCollection<hgcalrechit::HGCalRecHitSoALayout<> >::View const& recHits,
int max) const {
auto grid = make_workdiv<Acc1D>(1, 1);
auto size = max > 0 ? max : recHits.view().metadata().size();
alpaka::exec<Acc1D>(queue, grid, HGCalRecHitCalibrationKernel_printRecHits{}, recHits.view(), size);
auto size = max > 0 ? max : recHits.metadata().size();
alpaka::exec<Acc1D>(queue, grid, HGCalRecHitCalibrationKernel_printRecHits{}, recHits, size);

// ensure that the print operations are complete before returning
alpaka::wait(queue);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ namespace ALPAKA_ACCELERATOR_NAMESPACE {
<< "ADC_ped = " << deviceCalibParamProvider.view()[i].ADC_ped() << ", "
<< "CM_slope = " << deviceCalibParamProvider.view()[i].CM_slope() << ", "
<< "CM_ped = " << deviceCalibParamProvider.view()[i].CM_ped() << ", "
<< "BXm1_slope = " << deviceCalibParamProvider.view()[i].BXm1_slope() << ", " << std::endl;
<< "BXm1_slope = " << deviceCalibParamProvider.view()[i].BXm1_slope() << ", ";
}
}
});
Expand Down

0 comments on commit 53bfa9e

Please sign in to comment.