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

rollback on forLoop #58

Merged
merged 1 commit into from
Sep 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions backend/test/forall/forall.cpp.good
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace forall {
#line 39 "forall.chpl"
chplx::Array<double, chplx::Domain<1>> B(chplx::Range(0, 9));
#line 40 "forall.chpl"
chplx::forLoop(HPX_CURRENT_SOURCE_LOCATION(),chplx::Range{0, 9}, [&](auto i) {
chplx::forLoop(chplx::Range{0, 9}, [&](auto i) {
#line 41 "forall.chpl"
B(i) = 1.000000;
});
Expand All @@ -31,7 +31,7 @@ namespace forall {
#line 10 "forall.chpl"
chplx::Array<double, chplx::Domain<1>> A(chplx::Range(0, N));
#line 12 "forall.chpl"
chplx::forLoop(HPX_CURRENT_SOURCE_LOCATION(),chplx::Range{0, 10}, [&](auto i) {
chplx::forLoop(chplx::Range{0, 10}, [&](auto i) {
#line 13 "forall.chpl"
std::cout << i << std::endl;
});
Expand All @@ -41,7 +41,7 @@ namespace forall {
std::cout << i << std::endl;
});
#line 20 "forall.chpl"
chplx::forLoop(HPX_CURRENT_SOURCE_LOCATION(),chplx::Range{0, N}, [&](auto i) {
chplx::forLoop(chplx::Range{0, N}, [&](auto i) {
#line 21 "forall.chpl"
std::cout << i << std::endl;
});
Expand All @@ -51,7 +51,7 @@ namespace forall {
std::cout << i << std::endl;
});
#line 28 "forall.chpl"
chplx::forLoop(HPX_CURRENT_SOURCE_LOCATION(),chplx::Range{0, N + 1}, [&](auto i) {
chplx::forLoop(chplx::Range{0, N + 1}, [&](auto i) {
#line 29 "forall.chpl"
A(i) = 1.000000;
#line 30 "forall.chpl"
Expand All @@ -65,7 +65,7 @@ namespace forall {
std::cout << i << std::endl;
});
#line 48 "forall.chpl"
chplx::forLoop(HPX_CURRENT_SOURCE_LOCATION(),chplx::Range{0, 9}, [&](auto i) {
chplx::forLoop(chplx::Range{0, 9}, [&](auto i) {
#line 49 "forall.chpl"
A(i) = i;
});
Expand All @@ -82,7 +82,7 @@ namespace forall {
B(tid) = tid;
});
#line 60 "forall.chpl"
chplx::forLoop(HPX_CURRENT_SOURCE_LOCATION(),chplx::Range{0, 2}, [&](auto i) {
chplx::forLoop(chplx::Range{0, 2}, [&](auto i) {
#line 61 "forall.chpl"
std::cout << B(i) << std::endl;
});
Expand All @@ -94,7 +94,7 @@ namespace forall {
C(tid) = tid;
});
#line 67 "forall.chpl"
chplx::forLoop(HPX_CURRENT_SOURCE_LOCATION(),chplx::Range{0, 2}, [&](auto i) {
chplx::forLoop(chplx::Range{0, 2}, [&](auto i) {
#line 68 "forall.chpl"
std::cout << C(i) << std::endl;
});
Expand Down
2 changes: 1 addition & 1 deletion backend/test/heat/heat.cpp.good
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ namespace heat {
#line 52 "heat.chpl"
hpx::chrono::high_resolution_timer t;
#line 54 "heat.chpl"
chplx::forLoop(HPX_CURRENT_SOURCE_LOCATION(),chplx::Range{1, nt}, [&](auto t) {
chplx::forLoop(chplx::Range{1, nt}, [&](auto t) {
#line 55 "heat.chpl"
update(data, data2);
});
Expand Down
Loading