aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2020-07-10 16:49:41 +0200
committerAnton Khirnov <anton@khirnov.net>2020-07-13 10:58:43 +0200
commitb8b2c85627477b33c834825912ca0d27a6bbee2e (patch)
tree596173697982528dcfc0c399da5b51b7bf1502f1
parentd9c9d9a10058ed5d3e8d86d2bd11c2b6f202c1f7 (diff)
tmp
-rw-r--r--mg2d.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/mg2d.c b/mg2d.c
index 4414064..548858e 100644
--- a/mg2d.c
+++ b/mg2d.c
@@ -2228,7 +2228,13 @@ int mg2d_interp(MG2DContext *ctx,
NDArray *a_src;
int ret;
- gt = mg2di_gt_alloc(2, GRID_TRANSFER_LAGRANGE_5);
+ if (!priv->tp) {
+ ret = threadpool_init(ctx);
+ if (ret < 0)
+ return ret;
+ }
+
+ gt = mg2di_gt_alloc(2, GRID_TRANSFER_LAGRANGE_7);
if (!gt)
return -ENOMEM;