Project

General

Profile

Idea #15323

Setting alignment and padding defaults of QuickVec

Added by Eric Flumerfelt almost 3 years ago.

Status:
New
Priority:
Normal
Category:
Under Consideration
Target version:
-
Start date:
01/26/2017
Due date:
% Done:

0%

Estimated time:
Experiment:
-
Duration:

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.



Also available in: Atom PDF