Skip to content

Commit

Permalink
Apply code checks (#315)
Browse files Browse the repository at this point in the history
  • Loading branch information
fwyzard authored Apr 9, 2019
1 parent a1415e0 commit 49f2c7f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CUDADataFormats/SiPixelDigi/src/SiPixelDigiErrorsCUDA.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ SiPixelDigiErrorsCUDA::SiPixelDigiErrorsCUDA(size_t maxFedWords, PixelFormatterE

error_h = cs->make_host_unique<GPU::SimpleVector<PixelErrorCompact>>(stream);
GPU::make_SimpleVector(error_h.get(), maxFedWords, data_d.get());
assert(error_h->size() == 0);
assert(error_h->empty());
assert(error_h->capacity() == static_cast<int>(maxFedWords));

cudautils::copyAsync(error_d, error_h, stream);
Expand All @@ -35,7 +35,7 @@ SiPixelDigiErrorsCUDA::HostDataError SiPixelDigiErrorsCUDA::dataErrorToHostAsync
auto data = cs->make_host_unique<PixelErrorCompact[]>(error_h->capacity(), stream);

// but transfer only the required amount
if(error_h->size() > 0) {
if (not error_h->empty()) {
cudautils::copyAsync(data, data_d, error_h->size(), stream);
}
auto err = *error_h;
Expand Down
2 changes: 1 addition & 1 deletion HeterogeneousCore/CUDATest/plugins/TestCUDAAnalyzerGPU.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class TestCUDAAnalyzerGPU: public edm::global::EDAnalyzer<> {
static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);

void analyze(edm::StreamID, const edm::Event& iEvent, const edm::EventSetup& iSetup) const override;
void endJob();
void endJob() override;

private:
std::string label_;
Expand Down
2 changes: 1 addition & 1 deletion HeterogeneousCore/CUDATest/plugins/TestCUDAProducerCPU.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class TestCUDAProducerCPU: public edm::global::EDProducer<> {

static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);

void produce(edm::StreamID id, edm::Event& iEvent, const edm::EventSetup& iSetup) const;
void produce(edm::StreamID id, edm::Event& iEvent, const edm::EventSetup& iSetup) const override;
private:
std::string label_;
edm::EDGetTokenT<int> srcToken_;
Expand Down

0 comments on commit 49f2c7f

Please sign in to comment.