Skip to content

omp parallel for raises segmentation fault(core dumped) when the number of iterations in the for loop exceed a certain amount. #3

@arghyadeep-paul

Description

@arghyadeep-paul

I have been writing a code and have tried to parallelize it using #pragma omp parallel for. Everything works fine till about 100000 iterations but whe i increase the number of iterations to about 200000, it compiles without errors but while running shows the error "segmentation fault(core dumped) " immidiately.
I have been told that it might be local/global variable issue of the iteration variables but i think it is unlikely because it runs just fine if the number of iteration is lesser.
Also i have been told that it might be stack issue which i have no idea about

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions