Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
more documented examples
authorFrederic Suter <frederic.suter@cc.in2p3.fr>
Thu, 20 Feb 2020 14:05:14 +0000 (15:05 +0100)
committerFrederic Suter <frederic.suter@cc.in2p3.fr>
Thu, 20 Feb 2020 14:05:14 +0000 (15:05 +0100)
examples/README.rst
examples/c/io-file-remote/io-file-remote.c

index 9348665..6c0d93d 100644 (file)
@@ -288,6 +288,10 @@ Communications on the Network
 
          See also :cpp:func:`simgrid::s4u::Comm::wait_all()`.
 
+      .. example-tab:: examples/c/async-waitall/async-waitall.c
+
+         See also :cpp:func:`sg_comm_wait_all()`.
+
       .. example-tab:: examples/python/async-waitall/async-waitall.py
 
          See also :py:func:`simgrid.Comm.wait_all()`.
@@ -396,6 +400,10 @@ Executions on the CPU
 
           See also :cpp:func:`simgrid::s4u::Host::get_pstate_speed` and :cpp:func:`simgrid::s4u::Host::set_pstate`.
 
+       .. example-tab:: examples/c/exec-dvfs/exec-dvfs.c
+
+          See also :cpp:func:`sg_host_get_pstate_speed` and :cpp:func:`sg_host_set_pstate`.
+
        .. example-tab:: examples/python/exec-dvfs/exec-dvfs.py
 
           See also :py:func:`Host.get_pstate_speed` and :py:func:`Host.set_pstate`.
@@ -446,6 +454,8 @@ result in short reads and short write, as in reality.
 
        .. example-tab:: examples/s4u/io-file-remote/s4u-io-file-remote.cpp
 
+       .. example-tab:: examples/c/io-file-remote/io-file-remote.c
+
 .. _s4u_ex_IPC:
 
 Classical synchronization objects
@@ -699,6 +709,17 @@ Data diffusion
 
        .. example-tab:: examples/s4u/app-chainsend/s4u-app-chainsend.cpp
 
+       .. group-tab:: C
+
+          .. showfile:: examples/c/app-chainsend/chainsend.c
+             :language: c
+
+          .. showfile:: examples/c/app-chainsend/broadcaster.c
+             :language: c
+
+          .. showfile:: examples/c/app-chainsend/peer.c
+             :language: c
+
 Distributed Hash Tables (DHT)
 -----------------------------
 
@@ -747,6 +768,8 @@ Simulating Clouds
 
        .. example-tab:: examples/s4u/cloud-simple/s4u-cloud-simple.cpp
 
+       .. example-tab:: examples/c/cloud-simple/cloud-simple.c
+
   - **Migrating VMs**
     This example shows how to migrate VMs between PMs.
 
index f10c86b..7c8d412 100644 (file)
@@ -43,7 +43,6 @@ static void host(int argc, char* argv[])
 
 int main(int argc, char** argv)
 {
-
   simgrid_init(&argc, argv);
   sg_storage_file_system_init();
   simgrid_load_platform(argv[1]);