-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathhello.chpl
More file actions
23 lines (16 loc) · 710 Bytes
/
hello.chpl
File metadata and controls
23 lines (16 loc) · 710 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// hello.chpl
/*
usage on puma/ocelote:
chpl hello.chpl
./hello
usage on laptop with podman (or docker):
podman pull docker.io/chapel/chapel // only have to do this once, but it takes a few minutes
podman run --rm -v "$PWD":/myapp -w /myapp chapel/chapel chpl hello.chpl
podman run --rm -v "$PWD":/myapp -w /myapp chapel/chapel ./hello
For docker usage, see https://chapel-lang.org/install-docker.html
See https://chapel-lang.org/docs/examples/index.html
1/25/23, downloaded from
https://github.com/chapel-lang/chapel/blob/main/test/release/examples/hello.chpl
*/
// Simple hello world
writeln("Hello, world!"); // print 'Hello, world!' to the console