Idea #15323
Setting alignment and padding defaults of QuickVec
Start date:
01/26/2017
Due date:
% Done:
0%
Estimated time:
Experiment:
-
Description
For Direct-IO, artdaq::Fragments must be 512-byte aligned and their size must be a multiple of 512-bytes. We currently enforce the 512-byte alignment but QuickVecs are only sized in 8-byte increments.
It would be really good if there was a compile-time way to change between "pad to" 8-bytes and 512-bytes, based on the needs of the experiment. We could have something like:
#ifndef QV_PADBYTES #define QV_PADBYTES 8 #endif
and then use a CMake add_definition(QV_PADBYTES 512) where needed.