Commit a0eb3bc0 authored by Jean Bez's avatar Jean Bez
Browse files

Enable AGIOS integration for GekkoFWD

parent 48ccef9e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -93,6 +93,7 @@ compile GekkoFWD:
      -DGKFS_INSTALL_TESTS:BOOL=ON
      -DRPC_PROTOCOL="ofi+sockets"
      -DENABLE_FORWARDING:BOOL=ON
      -DENABLE_AGIOS:BOOL=ON
      -DCMAKE_PREFIX_PATH=${DEPS_INSTALL_PATH}
      -DCMAKE_INSTALL_PREFIX=${INSTALL_FWD_PATH}
      ${CI_PROJECT_DIR}
+14 −0
Original line number Diff line number Diff line
@@ -162,6 +162,20 @@ void init_environment() {
        throw;
    }

    #ifdef GKFS_ENABLE_FORWARDING
    GKFS_DATA->spdlogger()->debug("{}() Enable I/O forwarding mode", __func__);
    #endif

    #ifdef GKFS_ENABLE_AGIOS
    // Initialize AGIOS scheduler
    GKFS_DATA->spdlogger()->debug("{}() Initializing AGIOS scheduler: '{}'", __func__, "/tmp/agios.conf");
    try {
        agios_initialize();    
    } catch (const std::exception & e) {
        GKFS_DATA->spdlogger()->error("{}() Failed to initialize AGIOS scheduler: {}", __func__, e.what());
        throw;
    }
    #endif
    // Initialize data backend
    std::string chunk_storage_path = GKFS_DATA->rootdir() + "/data/chunks"s;
    GKFS_DATA->spdlogger()->debug("{}() Initializing storage backend: '{}'", __func__, chunk_storage_path);