From f5700a3353fc4cd4906cd3fafe08736d2e104b81 Mon Sep 17 00:00:00 2001 From: joeljonsson Date: Fri, 10 Nov 2023 16:04:14 +0100 Subject: [PATCH] set GenInfo pointers of access members in copy constructor --- src/data_structures/APR/APR.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/data_structures/APR/APR.hpp b/src/data_structures/APR/APR.hpp index 7c9a2cf2..bd65d053 100644 --- a/src/data_structures/APR/APR.hpp +++ b/src/data_structures/APR/APR.hpp @@ -196,6 +196,16 @@ class APR { apr_initialized_random = apr2copy.apr_initialized_random; tree_initialized_random = apr2copy.tree_initialized_random; + linearAccess.genInfo = &aprInfo; + linearAccessTree.genInfo = &treeInfo; + apr_access.genInfo = &aprInfo; + tree_access.genInfo = &treeInfo; + +#ifdef APR_USE_CUDA + gpuAccess.genInfo = &aprInfo; + gpuTreeAccess.genInfo = &treeInfo; +#endif + } void initialize_linear(){