artulab
projects
/
guile-orca
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d193afd
)
Use html for the code block in README
master
author
Ahmet Artu Yildirim
<ahmet@artulab.com>
Mon, 30 May 2022 20:12:43 +0000
(13:12 -0700)
committer
Ahmet Artu Yildirim
<ahmet@artulab.com>
Mon, 30 May 2022 20:12:43 +0000
(13:12 -0700)
README.md
patch
|
blob
|
history
diff --git
a/README.md
b/README.md
index
d92eb35
..
d208dba
100644
(file)
--- a/
README.md
+++ b/
README.md
@@
-19,28
+19,26
@@
Remote Procedure Call (RPC) capabilities using Message Passing Interface (MPI).
### Using library
### Using library
-
*
Code to gather computation results from all processes:
-```
+Code to gather computation results from all processes:
+<pre><code>
(use-modules (orca))
(define (process-id-message) (format #f "process ~a" (rpc-worker-process-id)))
(rpc-start)
(use-modules (orca))
(define (process-id-message) (format #f "process ~a" (rpc-worker-process-id)))
(rpc-start)
-
(format #t "I'm master process. Received ~s ~%" (rpc-make '(process-id-message)))
(format #t "I'm master process. Received ~s ~%" (rpc-make '(process-id-message)))
-
(rpc-finalize)
(rpc-finalize)
-```
+</code></pre>
-
*
Command to run program using 4 processes:
-```
+Command to run program using 4 processes:
+<pre><code>
mpirun -n 4 ./rpc-print-process-ids.scm
mpirun -n 4 ./rpc-print-process-ids.scm
-```
+</code></pre>
-
* Output of the command
:
-```
+
Output
:
+<pre><code>
I'm master process. Received ("process 0" "process 1" "process 2" "process 3")
I'm master process. Received ("process 0" "process 1" "process 2" "process 3")
-```
+</code></pre>
See `examples` directory for more examples.
See `examples` directory for more examples.
@@
-55,9
+53,8
@@
See `examples` directory for more examples.
## License
## License
-This project is licensed under the GNU Lesser General Public License - see
-the COPYING.LESSER file for details.
+This project is licensed under the GNU Lesser General Public License - see the COPYING.LESSER file for details.
Please send comments on orca to **ahmet@artulab.com**
Please send comments on orca to **ahmet@artulab.com**
-Copyright (C) 202
0
Ahmet Artu Yildirim
+Copyright (C) 202
2
Ahmet Artu Yildirim