Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix build, and avoid (void*) cast
authorFrederic Suter <frederic.suter@cc.in2p3.fr>
Fri, 10 Mar 2017 09:45:09 +0000 (10:45 +0100)
committerFrederic Suter <frederic.suter@cc.in2p3.fr>
Fri, 10 Mar 2017 09:45:09 +0000 (10:45 +0100)
examples/s4u/CMakeLists.txt
examples/s4u/app-masterworker/s4u_app-masterworker.cpp

index 00d01fd..05e0be2 100644 (file)
@@ -12,7 +12,7 @@ set(tesh_files    ${tesh_files}                                       PARENT_SCO
 set(xml_files     ${xml_files}    ${CMAKE_CURRENT_SOURCE_DIR}/launching/deployment.xml
                                   ${CMAKE_CURRENT_SOURCE_DIR}/actions-comm/s4u_actions-comm_split_d.xml
                                   ${CMAKE_CURRENT_SOURCE_DIR}/actions-comm/s4u_actions-comm_d.xml
-                                  ${CMAKE_CURRENT_SOURCE_DIR}/app-masterworker/app-masterworker_d.xml      PARENT_SCOPE)
+                                  ${CMAKE_CURRENT_SOURCE_DIR}/app-masterworker/s4u_app-masterworker_d.xml      PARENT_SCOPE)
 set(txt_files     ${txt_files}    ${CMAKE_CURRENT_SOURCE_DIR}/actions-comm/s4u_actions-comm_split_p0.txt
                                   ${CMAKE_CURRENT_SOURCE_DIR}/actions-comm/s4u_actions-comm_split_p1.txt
                                   ${CMAKE_CURRENT_SOURCE_DIR}/actions-comm/s4u_actions-comm.txt
index 68342bd..f9e0c1b 100644 (file)
@@ -42,7 +42,7 @@ public:
 
       /* - Send the task to the @ref worker */
       char* payload = bprintf("%f", comp_size);
-      simgrid::s4u::this_actor::send(mailbox, (void*)(payload), comm_size);
+      simgrid::s4u::this_actor::send(mailbox, payload, comm_size);
     }
 
     XBT_INFO("All tasks have been dispatched. Let's tell everybody the computation is over.");