From 9f0e04964a07455536c2a45f73b9eef6be1246a8 Mon Sep 17 00:00:00 2001 From: Ahmet Artu Yildirim <ahmet@artulab.com> Date: Mon, 30 May 2022 13:12:43 -0700 Subject: [PATCH] Use html for the code block in README --- README.md | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index d92eb35..d208dba 100644 --- a/README.md +++ b/README.md @@ -19,28 +19,26 @@ Remote Procedure Call (RPC) capabilities using Message Passing Interface (MPI). ### 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) - (format #t "I'm master process. Received ~s ~%" (rpc-make '(process-id-message))) - (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 -``` +</code></pre> -* Output of the command: -``` +Output: +<pre><code> I'm master process. Received ("process 0" "process 1" "process 2" "process 3") -``` +</code></pre> See `examples` directory for more examples. @@ -55,9 +53,8 @@ See `examples` directory for more examples. ## 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** -Copyright (C) 2020 Ahmet Artu Yildirim +Copyright (C) 2022 Ahmet Artu Yildirim -- 2.20.1