From da2fdcd8627dbcbeb2b0a4a94d8196acfc9a5387 Mon Sep 17 00:00:00 2001 From: Frederic Suter Date: Fri, 29 Jul 2016 10:19:21 +0200 Subject: [PATCH 1/1] remove a not-really-simdag example. True IO support will wait for SimDag redefinition --- examples/simdag/CMakeLists.txt | 4 ++-- examples/simdag/io/sd_io.c | 37 ---------------------------------- examples/simdag/io/sd_io.tesh | 8 -------- 3 files changed, 2 insertions(+), 47 deletions(-) delete mode 100644 examples/simdag/io/sd_io.c delete mode 100644 examples/simdag/io/sd_io.tesh diff --git a/examples/simdag/CMakeLists.txt b/examples/simdag/CMakeLists.txt index 86fae0072c..a8f627919f 100644 --- a/examples/simdag/CMakeLists.txt +++ b/examples/simdag/CMakeLists.txt @@ -1,4 +1,4 @@ -foreach(x availability daxload fail typed_tasks io properties throttling scheduling) +foreach(x availability daxload fail typed_tasks properties throttling scheduling) add_executable (sd_${x} ${x}/sd_${x}.c) target_link_libraries(sd_${x} simgrid) set_target_properties(sd_${x} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${x}) @@ -39,7 +39,7 @@ set(txt_files ${txt_files} ${CMAKE_CURRENT_SOURCE_DIR}/dag-dotload/dag_wi ${CMAKE_CURRENT_SOURCE_DIR}/schedule-dotload/dag_with_bad_schedule.dot ${CMAKE_CURRENT_SOURCE_DIR}/schedule-dotload/dag_with_good_schedule.dot PARENT_SCOPE) -foreach(x availability daxload fail typed_tasks io properties throttling scheduling test) +foreach(x availability daxload fail typed_tasks properties throttling scheduling test) ADD_TESH(simdag-${x} --setenv srcdir=${CMAKE_HOME_DIRECTORY}/examples/simdag --cd ${CMAKE_BINARY_DIR}/examples/simdag ${CMAKE_HOME_DIRECTORY}/examples/simdag/${x}/sd_${x}.tesh) endforeach() diff --git a/examples/simdag/io/sd_io.c b/examples/simdag/io/sd_io.c deleted file mode 100644 index e2cdbbc7d8..0000000000 --- a/examples/simdag/io/sd_io.c +++ /dev/null @@ -1,37 +0,0 @@ -/* Copyright (c) 2013-2015. The SimGrid Team. - * All rights reserved. */ - -/* This program is free software; you can redistribute it and/or modify it - * under the terms of the license (GNU LGPL) which comes with this package. */ - -#include "simgrid/simdag.h" -#include "xbt/log.h" - -XBT_LOG_NEW_DEFAULT_CATEGORY(sd_io, "Logging specific to this SimDag example"); - -int main(int argc, char **argv) -{ - unsigned int ctr; - xbt_dict_t current_storage_list; - char *mount_name; - char *storage_name; - xbt_dict_cursor_t cursor = NULL; - - SD_init(&argc, argv); - /* Set the workstation model to default, as storage is not supported by the ptask_L07 model yet. */ - SD_config("host/model", "default"); - SD_create_environment(argv[1]); - sg_host_t *hosts = sg_host_list(); - int total_nhosts = sg_host_count(); - - for (ctr=0; ctr [0.000000] [sd_io/INFO] Workstation 'denise' mounts 'c:' -> [0.000000] [sd_io/INFO] Workstation 'denise' mounts '/home' -> [0.000000] [sd_io/INFO] Workstation 'alice' mounts 'c:' -> [0.000000] [sd_io/INFO] Workstation 'carl' mounts '/home' -> [0.000000] [sd_io/INFO] Workstation 'bob' mounts '/home' -- 2.20.1