-
Couldn't load subscription status.
- Fork 59
Description
Hi all, I'm trying to use RcppParallel to parallelize an iteration process iterating over all possible k (k = 2, 3, 4...) permutations over an n-dimensional integer vector. Since the number of iterations is huge, I'm trying to use RcppParallel to speed up my process. I test my code with small n/k, n = 9 and k = 3, so there's only 504 iterations in total. When stopping the iterations at 10/20, my code runs fine and the result is the same as the non-parallel version. However, when i tried to increase the iteration, I often ran into segmentation fault/memory not mapped/bad value errors. I'm not an expert on parallel computing and only started to learn such technique. Do you have any idea on how I should change my code so that the segmentation error can be avoided?
Thanks in advance!