summaryrefslogtreecommitdiff
path: root/hpc/demo.py
diff options
context:
space:
mode:
authorzhang <zch921005@126.com>2022-05-04 08:47:54 +0800
committerzhang <zch921005@126.com>2022-05-04 08:47:54 +0800
commit2180c68999eb8dc0c7bcec015b2703f5b8b20223 (patch)
tree3ec71623038ff8b90a5bc4e32da14a7382d42d9d /hpc/demo.py
parent70aebb73b81b50911e2107cd4519e69f09971021 (diff)
ndarray axis
Diffstat (limited to 'hpc/demo.py')
-rw-r--r--hpc/demo.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/hpc/demo.py b/hpc/demo.py
new file mode 100644
index 0000000..0adfe17
--- /dev/null
+++ b/hpc/demo.py
@@ -0,0 +1,6 @@
+
+from mpi4py import MPI
+
+comm = MPI.COMM_WORLD
+rank = comm.Get_rank()
+size = comm.Get_size()