mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
pipe: fix invalid pool size
This commit is contained in:
parent
fc0a4e2c0a
commit
e34c5f0036
1 changed files with 2 additions and 1 deletions
|
@ -68,7 +68,8 @@ public:
|
|||
|
||||
|
||||
/* Initialize memory */
|
||||
unsigned pool_size = node_type(node)->pool_size ? node_type(node)->pool_size : LOG2_CEIL(node->out.vectorize);
|
||||
unsigned vec = LOG2_CEIL(MAX(node->out.vectorize, node->in.vectorize));
|
||||
unsigned pool_size = node_type(node)->pool_size ? node_type(node)->pool_size : vec;
|
||||
|
||||
int ret = pool_init(&pool, pool_size, SAMPLE_LENGTH(DEFAULT_SAMPLE_LENGTH), node_memory_type(node, &memory_hugepage));
|
||||
if (ret < 0)
|
||||
|
|
Loading…
Add table
Reference in a new issue