Skip to content

Commit

Permalink
set GenInfo pointers of access members in copy constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
joeljonsson committed Nov 10, 2023
1 parent c5e4310 commit f5700a3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/data_structures/APR/APR.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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(){
Expand Down

0 comments on commit f5700a3

Please sign in to comment.