forked from chapel-lang/chapel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add example codes from comm part of the tutorial slides (chapel-lang#…
…23646) This PR adds tests for: - commTable.chpl - verboseComm.chpl - commOverDom.chpl - [x] paratest - [x] paratest gasnet
- Loading branch information
Showing
12 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
use BlockDist; | ||
use CommDiagnostics; | ||
|
||
config const size = 5; | ||
|
||
var D = blockDist.createDomain(0..#size); | ||
|
||
var a = 0; | ||
|
||
startCommDiagnostics(); | ||
forall i in D with (ref a) { | ||
a += 1; // beware! race condition! | ||
} | ||
stopCommDiagnostics(); | ||
printCommDiagnosticsTable(); | ||
|
||
writeln(a); |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
use CommDiagnostics; | ||
|
||
var a = 0; | ||
|
||
startCommDiagnostics(); | ||
on Locales[1] { | ||
for i in 0..#5 do | ||
a += 1; | ||
} | ||
stopCommDiagnostics(); | ||
printCommDiagnosticsTable(); | ||
|
||
writeln(a); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--no-cache-remote |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
| locale | get | put | execute_on | | ||
| -----: | --: | --: | ---------: | | ||
| 0 | 0 | 0 | 1 | | ||
| 1 | 5 | 5 | 0 | | ||
5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CHPL_COMM==none |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
use CommDiagnostics; | ||
|
||
var a = 0; | ||
|
||
startVerboseComm(); | ||
on Locales[1] { | ||
for i in 0..#5 do | ||
a += 1; | ||
} | ||
stopVerboseComm(); | ||
|
||
writeln(a); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--no-cache-remote |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
0: 04-verboseComm.chpl:6: remote executeOn, node 1 | ||
1: 04-verboseComm.chpl:8: remote get, node 0, 8 bytes, commid 5 | ||
1: 04-verboseComm.chpl:8: remote put, node 0, 8 bytes, commid 6 | ||
1: 04-verboseComm.chpl:8: remote get, node 0, 8 bytes, commid 5 | ||
1: 04-verboseComm.chpl:8: remote put, node 0, 8 bytes, commid 6 | ||
1: 04-verboseComm.chpl:8: remote get, node 0, 8 bytes, commid 5 | ||
1: 04-verboseComm.chpl:8: remote put, node 0, 8 bytes, commid 6 | ||
1: 04-verboseComm.chpl:8: remote get, node 0, 8 bytes, commid 5 | ||
1: 04-verboseComm.chpl:8: remote put, node 0, 8 bytes, commid 6 | ||
1: 04-verboseComm.chpl:8: remote get, node 0, 8 bytes, commid 5 | ||
1: 04-verboseComm.chpl:8: remote put, node 0, 8 bytes, commid 6 | ||
5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CHPL_COMM==none |