Skip to content

Commit 882fcc6

Browse files
committed
fix(villas-pipe): Allocate at least 16 samples
Signed-off-by: Philipp Jungkamp <philipp.jungkamp@rwth-aachen.de>
1 parent fbe02d0 commit 882fcc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/villas-pipe.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class PipeDirection {
6161

6262
// Initialize memory
6363
unsigned pool_size =
64-
std::bit_ceil(std::max(node->out.vectorize, node->in.vectorize));
64+
std::bit_ceil(std::max({node->out.vectorize, node->in.vectorize, 16U}));
6565

6666
int ret = pool_init(&pool, pool_size, SAMPLE_LENGTH(DEFAULT_SAMPLE_LENGTH),
6767
node->getMemoryType());

0 commit comments

Comments
 (0)