Skip to content

Segmentation Fault/Memory Not Mapped #47

@linliu-stats

Description

@linliu-stats

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions