Loading scripts/dl_dep.sh +8 −6 Original line number Diff line number Diff line Loading @@ -264,12 +264,14 @@ if [[ ( "${DEPENDENCY}" == "" ) || ( "${DEPENDENCY}" == "bmi" ) ]]; then fi # get libfabric if [[ ( "${DEPENDENCY}" == "" ) || ( "${DEPENDENCY}" == "ofi" ) ]]; then if [ "${NA_LAYER}" == "ofi" ] || [ "${NA_LAYER}" == "all" ]; then # getting specific libpsm2 version to compile into libfabric if [[ ("${CLUSTER}" == "mogon2") ]]; then wgetdeps "psm2" "https://github.com/intel/opa-psm2/archive/PSM2_11.2.77.tar.gz" & fi # No need to get libfabric for mogon2 as it is already installed if [[ ("${CLUSTER}" != "mogon2") ]]; then wgetdeps "libfabric" "https://github.com/ofiwg/libfabric/releases/download/v1.7.2/libfabric-1.7.2.tar.gz" & fi wgetdeps "libfabric" "https://github.com/ofiwg/libfabric/releases/download/v1.8.1rc1/libfabric-1.8.1rc1.tar.gz" fi fi Loading src/client/preload_util.cpp +16 −2 Original line number Diff line number Diff line Loading @@ -25,6 +25,8 @@ #include <csignal> #include <random> #include <sys/sysmacros.h> #include <sys/types.h> #include <pwd.h> using namespace std; Loading Loading @@ -143,8 +145,20 @@ hermes::endpoint lookup_endpoint(const std::string& uri, void load_hosts() { string hosts_file; hosts_file = gkfs::env::get_var(gkfs::env::HOSTS_FILE, DEFAULT_HOSTS_FILE); try { hosts_file = gkfs::get_env_own("HOSTS_FILE"); } catch (const exception& e) { char* homedir = NULL; struct passwd *pw = getpwuid(getuid()); if (pw) { homedir = pw->pw_dir; hosts_file = string(homedir)+"/gkfs_hosts.txt"s; } CTX->log()->info("{}() Failed to get hosts file path" " from environment, using default: '{}'", __func__, DEFAULT_HOSTS_FILE); hosts_file = DEFAULT_HOSTS_FILE; } vector<pair<string, string>> hosts; try { Loading Loading
scripts/dl_dep.sh +8 −6 Original line number Diff line number Diff line Loading @@ -264,12 +264,14 @@ if [[ ( "${DEPENDENCY}" == "" ) || ( "${DEPENDENCY}" == "bmi" ) ]]; then fi # get libfabric if [[ ( "${DEPENDENCY}" == "" ) || ( "${DEPENDENCY}" == "ofi" ) ]]; then if [ "${NA_LAYER}" == "ofi" ] || [ "${NA_LAYER}" == "all" ]; then # getting specific libpsm2 version to compile into libfabric if [[ ("${CLUSTER}" == "mogon2") ]]; then wgetdeps "psm2" "https://github.com/intel/opa-psm2/archive/PSM2_11.2.77.tar.gz" & fi # No need to get libfabric for mogon2 as it is already installed if [[ ("${CLUSTER}" != "mogon2") ]]; then wgetdeps "libfabric" "https://github.com/ofiwg/libfabric/releases/download/v1.7.2/libfabric-1.7.2.tar.gz" & fi wgetdeps "libfabric" "https://github.com/ofiwg/libfabric/releases/download/v1.8.1rc1/libfabric-1.8.1rc1.tar.gz" fi fi Loading
src/client/preload_util.cpp +16 −2 Original line number Diff line number Diff line Loading @@ -25,6 +25,8 @@ #include <csignal> #include <random> #include <sys/sysmacros.h> #include <sys/types.h> #include <pwd.h> using namespace std; Loading Loading @@ -143,8 +145,20 @@ hermes::endpoint lookup_endpoint(const std::string& uri, void load_hosts() { string hosts_file; hosts_file = gkfs::env::get_var(gkfs::env::HOSTS_FILE, DEFAULT_HOSTS_FILE); try { hosts_file = gkfs::get_env_own("HOSTS_FILE"); } catch (const exception& e) { char* homedir = NULL; struct passwd *pw = getpwuid(getuid()); if (pw) { homedir = pw->pw_dir; hosts_file = string(homedir)+"/gkfs_hosts.txt"s; } CTX->log()->info("{}() Failed to get hosts file path" " from environment, using default: '{}'", __func__, DEFAULT_HOSTS_FILE); hosts_file = DEFAULT_HOSTS_FILE; } vector<pair<string, string>> hosts; try { Loading