Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chplx::forall over ranges #53

Open
ct-clmsn opened this issue Jul 20, 2023 · 2 comments
Open

chplx::forall over ranges #53

ct-clmsn opened this issue Jul 20, 2023 · 2 comments
Assignees

Comments

@ct-clmsn
Copy link
Owner

The following code in backend/test/heat.chpl segmentation faults. The sequential version of the loop is working correctly.

Parallel version

        chplx::forall(chplx::Range(0, 4), [&](auto i) {
#line 44 "heat.chpl"
            data(i) = 1 + (((i - 1) + nx) % nx);
#line 45 "heat.chpl"
            data2(i) = 0;
        });

Sequential version

        chplx::forLoop(chplx::Range(0, 4), [&](auto i) {
#line 44 "heat.chpl"
            data(i) = 1 + (((i - 1) + nx) % nx);
#line 45 "heat.chpl"
            data2(i) = 0;
        });
@ct-clmsn
Copy link
Owner Author

@hkaiser ran the unit tests and got a similar segfault. I'll have to double back and see if this is an issue on x86 (I'm working off arm at the moment).

@hkaiser
Copy link
Collaborator

hkaiser commented Jul 20, 2023

@hkaiser ran the unit tests and got a similar segfault. I'll have to double back and see if this is an issue on x86 (I'm working off arm at the moment).

I'll have a look, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants