add_executable(sd_typed_tasks_test sd_typed_tasks_test.c)
add_executable(sd_comm_throttling sd_comm_throttling.c)
add_executable(sd_seq_access sd_seq_access.c)
-add_executable(sd_test_console sd_test_console.c)
add_executable(simdag_tracing simdag_trace.c)
### Add definitions for compile
target_link_libraries(sd_typed_tasks_test simgrid pthread m )
target_link_libraries(sd_comm_throttling simgrid pthread m )
target_link_libraries(sd_seq_access simgrid pthread m )
- target_link_libraries(sd_test_console simgrid pthread m )
target_link_libraries(simdag_tracing simgrid pthread m )
add_custom_command(TARGET ex_sd_test
target_link_libraries(sd_typed_tasks_test simgrid)
target_link_libraries(sd_comm_throttling simgrid)
target_link_libraries(sd_seq_access simgrid)
- target_link_libraries(sd_test_console simgrid)
target_link_libraries(simdag_tracing simgrid)
add_custom_command(TARGET ex_sd_test
${CMAKE_CURRENT_SOURCE_DIR}/sd_seq_access.c
${CMAKE_CURRENT_SOURCE_DIR}/sd_test.c
${CMAKE_CURRENT_SOURCE_DIR}/sd_test2.c
- ${CMAKE_CURRENT_SOURCE_DIR}/sd_test_console.c
${CMAKE_CURRENT_SOURCE_DIR}/sd_typed_tasks_test.c
${CMAKE_CURRENT_SOURCE_DIR}/simdag_trace.c
PARENT_SCOPE
XBT_PUBLIC(void) MSG_create_environment(const char *file);
-XBT_PUBLIC(void) MSG_load_platform_script(const char *script_file);
XBT_PUBLIC(msg_host_t) MSG_get_host_by_name(const char *name);
XBT_PUBLIC(xbt_dynar_t) MSG_hosts_as_dynar(void);
XBT_PUBLIC(void) SD_init(int *argc, char **argv);
XBT_PUBLIC(void) SD_application_reinit(void);
XBT_PUBLIC(void) SD_create_environment(const char *platform_file);
-XBT_PUBLIC(void) SD_load_environment_script(const char *script_file);
XBT_PUBLIC(xbt_dynar_t) SD_simulate(double how_long);
XBT_PUBLIC(double) SD_get_clock(void);
XBT_PUBLIC(void) SD_exit(void);
__MSG_host_create(xbt_dict_cursor_get_elm(cursor));
}
}
-
-/**
- * @ingroup MSG_LUA
- * \brief A platform constructor bypassing the parser.
- *
- * load lua script file to set up new platform, including hosts,links
- * and the routing table
- */
-
-void MSG_load_platform_script(const char *script_file)
-{
-#ifdef HAVE_LUA
- lua_State *L = lua_open();
- luaL_openlibs(L);
-
- if (luaL_loadfile(L, script_file) || lua_pcall(L, 0, 0, 0)) {
- printf("error: %s\n", lua_tostring(L, -1));
- return;
- }
-#else
- xbt_die
- ("Lua is not available! It is mandatory to use MSG_load_platform_script however. Bailing out...");
-#endif
-}
jedule_sd_cleanup();
#endif
}
-
-/**
- * \brief load script file
- */
-
-void SD_load_environment_script(const char *script_file)
-{
-#ifdef HAVE_LUA
- lua_State *L = lua_open();
- luaL_openlibs(L);
-
- if (luaL_loadfile(L, script_file) || lua_pcall(L, 0, 0, 0)) {
- printf("error: %s\n", lua_tostring(L, -1));
- return;
- }
-#else
- xbt_die
- ("Lua is not available!! to call SD_load_environment_script, lua should be available...");
-#endif
- return;
-}