22 void print(std::ostream&
out)
const {
29 buffer <<
", " << data_[1];
32 buffer <<
", " << data_[2];
47 std::ostream& operator<<(std::ostream& out, Column<T>
const&
column) {
62 for (int32_t
i = 0;
i <
view.metadata().size(); ++
i) {
68 msg <<
" data @ " << product.
buffer().get() <<
",\n" 69 <<
" x @ " <<
view.metadata().addressOf_x() <<
" = " << Column(
view.x(),
view.metadata().size()) <<
",\n" 70 <<
" y @ " <<
view.metadata().addressOf_y() <<
" = " << Column(
view.y(),
view.metadata().size()) <<
",\n" 71 <<
" z @ " <<
view.metadata().addressOf_z() <<
" = " << Column(
view.z(),
view.metadata().size()) <<
",\n" 72 <<
" id @ " <<
view.metadata().addressOf_id() <<
" = " << Column(
view.id(),
view.metadata().size()) <<
",\n" 73 <<
" r @ " <<
view.metadata().addressOf_r() <<
" = " <<
view.r() <<
'\n' 76 msg << std::hex <<
" [y - x] = 0x" 77 <<
reinterpret_cast<intptr_t
>(
view.metadata().addressOf_y()) -
78 reinterpret_cast<intptr_t>(
view.metadata().addressOf_x())
80 << reinterpret_cast<intptr_t>(
view.metadata().addressOf_z()) -
81 reinterpret_cast<intptr_t>(
view.metadata().addressOf_y())
83 << reinterpret_cast<intptr_t>(
view.metadata().addressOf_id()) -
84 reinterpret_cast<intptr_t>(
view.metadata().addressOf_z())
86 << reinterpret_cast<intptr_t>(
view.metadata().addressOf_r()) -
87 reinterpret_cast<intptr_t>(
view.metadata().addressOf_id())
89 << reinterpret_cast<intptr_t>(
view.metadata().addressOf_m()) -
90 reinterpret_cast<intptr_t>(
view.metadata().addressOf_r());
92 const portabletest::Matrix matrix{{1, 2, 3, 4, 5, 6}, {2, 4, 6, 8, 10, 12}, {3, 6, 9, 12, 15, 18}};
94 for (int32_t
i = 0;
i <
view.metadata().size(); ++
i) {
const edm::EDGetTokenT< cudatest::TestHostCollection > token_
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
const edm::InputTag source_
Eigen::Matrix< double, 3, 6 > Matrix
TestPortableAnalyzer(edm::ParameterSet const &config)
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
void analyze(edm::Event const &event, edm::EventSetup const &) override
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
#define DEFINE_FWK_MODULE(type)
ConstView const & const_view() const
char data[epos_bytes_allocation]
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)