You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+10-10
Original file line number
Diff line number
Diff line change
@@ -27,28 +27,28 @@ This repo includes a `devcontainer.json` file, making it usable from GitHub Code
27
27
In the Codespace, compile Chapel programs using the __Terminal__ tab by using the `chpl` compiler:
28
28
29
29
```bash
30
-
chpl 01-hello.chpl
31
-
./01-hello
30
+
chpl 01-heat-1D-serial.chpl
31
+
./01-heat-1D-serial
32
32
```
33
33
34
34
### Simulating Multiple Nodes
35
35
Although the Codespace is set to a single-locale (single-node) mode by default, you can simulate multiple nodes by setting the `CHPL_COMM` environment variable to `gasnet` when compiling.
36
36
37
37
```bash
38
38
# Compile a program that distributes computation to multiple nodes
39
-
CHPL_COMM=gasnet chpl 01-hellopar.chpl
39
+
CHPL_COMM=gasnet chpl 07-heat-1D-block.chpl
40
40
41
41
# Run hello using two simulated nodes
42
-
./01-hellopar -nl 2
42
+
./07-heat-1D-block -nl 2
43
43
```
44
44
45
45
To avoid having to include `CHPL_COMM` in each compilation command, you can
46
46
`export` it:
47
47
48
48
```bash
49
49
export CHPL_COMM=gasnet
50
-
chpl 01-hellopar.chpl
51
-
./01-hellopar -nl 2
50
+
chpl 07-heat-1D-block.chpl
51
+
./07-heat-1D-block -nl 2
52
52
```
53
53
54
54
### Simulating GPU Support
@@ -59,7 +59,7 @@ this mode, set the `CHPL_LOCALE_MODEL` to `gpu` (to enable GPU support)
59
59
and `CHPL_GPU` to `cpu` to select "CPU-as-device" mode.
Please follow the instructions on the [Download Chapel](https://chapel-lang.org/download.html) page to build the Chapel compiler and runtime from source and get set up with the Chapel compiler executable `chpl`. From there, you can compile and run the `01-hello.chpl` file in this repository as follows:
92
+
Please follow the instructions on the [Download Chapel](https://chapel-lang.org/download.html) page to build the Chapel compiler and runtime from source and get set up with the Chapel compiler executable `chpl`. From there, you can compile and run the `01-heat-1D-serial.chpl` file in this repository as follows:
93
93
94
94
```bash
95
-
chpl 01-hello.chpl
96
-
./01-hello
95
+
chpl 01-heat-1D-serial.chpl
96
+
./01-heat-1D-serial
97
97
```
98
98
99
99
To make use of multiple nodes (or to simulate multi-node execution), please
0 commit comments