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

Oops, I had promotion case wrong in this test... #13040

Merged
merged 2 commits into from
May 17, 2019
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
4 changes: 2 additions & 2 deletions test/distributions/robust/arithmetic/PREDIFF
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ else:
# get the distribution from the -sdistType=... option, if present
dist = 'block'
searchstring='distType=DistType.'
s = string.rfind(compopts, searchstring)
s = compopts.rfind(searchstring)

if s != -1:
opt = compopts[s+len(searchstring):len(compopts)]
Expand All @@ -40,5 +40,5 @@ if not os.path.isfile(goodfn):
if not os.path.isfile(goodfn):
goodfn=testname+'.default.good'

print "cp", goodfn, targetfn
print('cp {0} {1}'.format(goodfn, targetfn))
shutil.copy(goodfn, targetfn)
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ use slice as leader (module-scope):
(execute_on_nb = 3) (<no communication>) (<no communication>) (<no communication>)
use slice as follower (module-scope):
(execute_on_nb = 3) (<no communication>) (<no communication>) (<no communication>)
promotion (module-scope):
(execute_on_nb = 3) (get = 115) (get = 115) (get = 201)
1-arg promotion (module-scope):
(execute_on_nb = 3) (<no communication>) (<no communication>) (<no communication>)
2-arg promotion (module-scope):
(execute_on_nb = 3) (<no communication>) (<no communication>) (<no communication>)
create slice (local-scope):
(execute_on = 2) (execute_on = 1) (<no communication>) (<no communication>)
use slice via assignment (local-scope):
Expand All @@ -24,5 +26,7 @@ use slice as leader (local-scope):
(execute_on_nb = 3) (<no communication>) (<no communication>) (<no communication>)
use slice as follower (local-scope):
(execute_on_nb = 3) (<no communication>) (<no communication>) (<no communication>)
promotion (local-scope):
(execute_on_nb = 3) (get = 115) (get = 115) (get = 201)
1-arg promotion (local-scope):
(execute_on_nb = 3) (<no communication>) (<no communication>) (<no communication>)
2-arg promotion (local-scope):
(execute_on_nb = 3) (<no communication>) (<no communication>) (<no communication>)
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ use slice as leader (module-scope):
(execute_on_nb = 3) (execute_on_fast = 1) (execute_on_fast = 1) (execute_on_fast = 1)
use slice as follower (module-scope):
(execute_on_nb = 3) (execute_on_fast = 1) (execute_on_fast = 1) (execute_on_fast = 1)
promotion (module-scope):
(execute_on_nb = 3) (get = 115, execute_on_fast = 1) (get = 115, execute_on_fast = 1) (get = 201, execute_on_fast = 1)
1-arg promotion (module-scope):
(execute_on_nb = 3) (execute_on_fast = 1) (execute_on_fast = 1) (execute_on_fast = 1)
2-arg promotion (module-scope):
(execute_on_nb = 3) (execute_on_fast = 1) (execute_on_fast = 1) (execute_on_fast = 1)
create slice (local-scope):
(execute_on = 2) (execute_on = 1) (<no communication>) (<no communication>)
use slice via assignment (local-scope):
Expand All @@ -24,5 +26,7 @@ use slice as leader (local-scope):
(execute_on_nb = 3) (execute_on_fast = 1) (execute_on_fast = 1) (execute_on_fast = 1)
use slice as follower (local-scope):
(execute_on_nb = 3) (execute_on_fast = 1) (execute_on_fast = 1) (execute_on_fast = 1)
promotion (local-scope):
(execute_on_nb = 3) (get = 115, execute_on_fast = 1) (get = 115, execute_on_fast = 1) (get = 201, execute_on_fast = 1)
1-arg promotion (local-scope):
(execute_on_nb = 3) (execute_on_fast = 1) (execute_on_fast = 1) (execute_on_fast = 1)
2-arg promotion (local-scope):
(execute_on_nb = 3) (execute_on_fast = 1) (execute_on_fast = 1) (execute_on_fast = 1)
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,12 @@ forall (b,a) in zip(B,AS) do
stopTrial(B, "use slice as follower (module-scope)");

startTrial();
foo(B, A);
stopTrial(B, "promotion (module-scope)");
foo(AS);
stopTrial(B, "1-arg promotion (module-scope)");

startTrial();
bar(B, AS);
stopTrial(B, "2-arg promotion (module-scope)");

proc main() {
const bigDom4D = Dom4D.expand((1,1,1,1));
Expand Down Expand Up @@ -72,9 +76,12 @@ proc main() {
stopTrial(B, "use slice as follower (local-scope)");

startTrial();
foo(B, A);
stopTrial(B, "promotion (local-scope)");

foo(AS);
stopTrial(B, "1-arg promotion (local-scope)");

startTrial();
bar(B, AS);
stopTrial(B, "2-arg promotion (local-scope)");
}

proc startTrial() {
Expand All @@ -92,6 +99,9 @@ proc stopTrial(B, str, skipVerify=true) {
B = (0,0,0,0);
}

proc foo(ref b: B.eltType, a: A.eltType) {
proc foo(a: A.eltType) {
}

proc bar(ref b: B.eltType, a: A.eltType) {
b = a;
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ use slice as leader (module-scope):
(execute_on_nb = 3) (<no communication>) (<no communication>) (<no communication>)
use slice as follower (module-scope):
(execute_on_nb = 3) (<no communication>) (<no communication>) (<no communication>)
promotion (module-scope):
(get = 331, execute_on_nb = 3) (get = 331) (get = 331) (get = 331)
1-arg promotion (module-scope):
(execute_on_nb = 3) (<no communication>) (<no communication>) (<no communication>)
2-arg promotion (module-scope):
(execute_on_nb = 3) (<no communication>) (<no communication>) (<no communication>)
create slice (local-scope):
(execute_on = 2) (execute_on = 1) (<no communication>) (<no communication>)
use slice via assignment (local-scope):
Expand All @@ -24,5 +26,7 @@ use slice as leader (local-scope):
(execute_on_nb = 3) (<no communication>) (<no communication>) (<no communication>)
use slice as follower (local-scope):
(execute_on_nb = 3) (<no communication>) (<no communication>) (<no communication>)
promotion (local-scope):
(get = 331, execute_on_nb = 3) (get = 331) (get = 331) (get = 331)
1-arg promotion (local-scope):
(execute_on_nb = 3) (<no communication>) (<no communication>) (<no communication>)
2-arg promotion (local-scope):
(execute_on_nb = 3) (<no communication>) (<no communication>) (<no communication>)
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ use slice as leader (module-scope):
(execute_on_nb = 3) (execute_on_fast = 1) (execute_on_fast = 1) (execute_on_fast = 1)
use slice as follower (module-scope):
(execute_on_nb = 3) (execute_on_fast = 1) (execute_on_fast = 1) (execute_on_fast = 1)
promotion (module-scope):
(get = 331, execute_on_nb = 3) (get = 331, execute_on_fast = 1) (get = 331, execute_on_fast = 1) (get = 331, execute_on_fast = 1)
1-arg promotion (module-scope):
(execute_on_nb = 3) (execute_on_fast = 1) (execute_on_fast = 1) (execute_on_fast = 1)
2-arg promotion (module-scope):
(execute_on_nb = 3) (execute_on_fast = 1) (execute_on_fast = 1) (execute_on_fast = 1)
create slice (local-scope):
(execute_on = 2) (execute_on = 1) (<no communication>) (<no communication>)
use slice via assignment (local-scope):
Expand All @@ -24,5 +26,7 @@ use slice as leader (local-scope):
(execute_on_nb = 3) (execute_on_fast = 1) (execute_on_fast = 1) (execute_on_fast = 1)
use slice as follower (local-scope):
(execute_on_nb = 3) (execute_on_fast = 1) (execute_on_fast = 1) (execute_on_fast = 1)
promotion (local-scope):
(get = 331, execute_on_nb = 3) (get = 331, execute_on_fast = 1) (get = 331, execute_on_fast = 1) (get = 331, execute_on_fast = 1)
1-arg promotion (local-scope):
(execute_on_nb = 3) (execute_on_fast = 1) (execute_on_fast = 1) (execute_on_fast = 1)
2-arg promotion (local-scope):
(execute_on_nb = 3) (execute_on_fast = 1) (execute_on_fast = 1) (execute_on_fast = 1)
Original file line number Diff line number Diff line change
@@ -1,28 +1,32 @@
create slice (module-scope):
(execute_on = 2) (execute_on = 1) (<no communication>) (<no communication>)
(<no communication>)
use slice via assignment (module-scope):
(execute_on_nb = 3) (execute_on_fast = 1) (execute_on_fast = 1) (execute_on_fast = 1)
(<no communication>)
use slice via random access (module-scope):
(execute_on_nb = 3) (get = 648, execute_on_fast = 1) (get = 648, execute_on_fast = 1) (get = 648, execute_on_fast = 1)
(<no communication>)
use slice as standalone (module-scope):
(execute_on_nb = 3) (execute_on_fast = 1) (execute_on_fast = 1) (execute_on_fast = 1)
(<no communication>)
use slice as leader (module-scope):
(execute_on_nb = 3) (execute_on_fast = 1) (execute_on_fast = 1) (execute_on_fast = 1)
(<no communication>)
use slice as follower (module-scope):
(execute_on_nb = 3) (execute_on_fast = 1) (execute_on_fast = 1) (execute_on_fast = 1)
promotion (module-scope):
(execute_on_nb = 3) (get = 115, execute_on_fast = 1) (get = 115, execute_on_fast = 1) (get = 201, execute_on_fast = 1)
(<no communication>)
1-arg promotion (module-scope):
(<no communication>)
2-arg promotion (module-scope):
(<no communication>)
create slice (local-scope):
(execute_on = 2) (execute_on = 1) (<no communication>) (<no communication>)
(<no communication>)
use slice via assignment (local-scope):
(execute_on_nb = 3) (execute_on_fast = 1) (execute_on_fast = 1) (execute_on_fast = 1)
(<no communication>)
use slice via random access (local-scope):
(execute_on_nb = 3) (execute_on_fast = 1) (execute_on_fast = 1) (execute_on_fast = 1)
(<no communication>)
use slice as standalone (local-scope):
(execute_on_nb = 3) (execute_on_fast = 1) (execute_on_fast = 1) (execute_on_fast = 1)
(<no communication>)
use slice as leader (local-scope):
(execute_on_nb = 3) (execute_on_fast = 1) (execute_on_fast = 1) (execute_on_fast = 1)
(<no communication>)
use slice as follower (local-scope):
(execute_on_nb = 3) (execute_on_fast = 1) (execute_on_fast = 1) (execute_on_fast = 1)
promotion (local-scope):
(execute_on_nb = 3) (get = 115, execute_on_fast = 1) (get = 115, execute_on_fast = 1) (get = 201, execute_on_fast = 1)
(<no communication>)
1-arg promotion (local-scope):
(<no communication>)
2-arg promotion (local-scope):
(<no communication>)
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ use slice as leader (module-scope):
(<no communication>) (<no communication>) (<no communication>) (<no communication>)
use slice as follower (module-scope):
(<no communication>) (<no communication>) (<no communication>) (<no communication>)
promotion (module-scope):
1-arg promotion (module-scope):
(<no communication>) (<no communication>) (<no communication>) (<no communication>)
2-arg promotion (module-scope):
(<no communication>) (<no communication>) (<no communication>) (<no communication>)
create slice (local-scope):
(execute_on = 2) (execute_on = 1) (<no communication>) (<no communication>)
Expand All @@ -24,5 +26,7 @@ use slice as leader (local-scope):
(<no communication>) (<no communication>) (<no communication>) (<no communication>)
use slice as follower (local-scope):
(<no communication>) (<no communication>) (<no communication>) (<no communication>)
promotion (local-scope):
1-arg promotion (local-scope):
(<no communication>) (<no communication>) (<no communication>) (<no communication>)
2-arg promotion (local-scope):
(<no communication>) (<no communication>) (<no communication>) (<no communication>)