Verified Commit 8bb7ef3d authored by Tommaso Tocci's avatar Tommaso Tocci
Browse files

Update mercury to v1.0.0rc1

Also removed mercury_cci_verbs_lookup patch, because it has been merged upstream [1]

[1]: https://github.com/mercury-hpc/mercury/pull/206
parent 2d8df805
Loading
Loading
Loading
Loading
+11 −16
Original line number Diff line number Diff line
@@ -260,24 +260,19 @@ echo "############################################################ Installing:

# Mercury
CURR=${SOURCE}/mercury
# check for specific Mercury version which has to be newer than from 25-02-2018
MERCURY_VERSION=$(cd ${CURR} && git log --since 02-25-2018 | wc -l)
echo $MERCURY_VERSION
if [ ${MERCURY_VERSION} -eq 0 ]; then
    echo "########## Mercury version is too old. Pulling new version ..."
    cd $CURR && git checkout d015745ce25d839b8b46e68c11a7d8278423a46b
fi
prepare_build_dir ${CURR}
cd ${CURR}
if [ "$NA_LAYER" == "cci" ] || [ "$NA_LAYER" == "all" ]; then
    # patch cci verbs addr lookup error handling
    echo "########## Applying cci addr lookup error handling patch"
    git apply ${PATCH_DIR}/mercury_cci_verbs_lookup.patch
fi
cd ${CURR}/build
$CMAKE -DMERCURY_USE_SELF_FORWARD:BOOL=ON -DMERCURY_USE_CHECKSUMS:BOOL=OFF -DBUILD_TESTING:BOOL=ON \
-DMERCURY_USE_BOOST_PP:BOOL=ON -DBUILD_SHARED_LIBS:BOOL=ON -DCMAKE_INSTALL_PREFIX=${INSTALL} \
-DCMAKE_BUILD_TYPE:STRING=Release -DMERCURY_USE_EAGER_BULK:BOOL=ON ${USE_BMI} ${USE_CCI} ${USE_OFI} ../
$CMAKE \
    -DCMAKE_BUILD_TYPE:STRING=Release \
    -DBUILD_TESTING:BOOL=OFF \
    -DMERCURY_USE_SELF_FORWARD:BOOL=ON \
    -DMERCURY_USE_CHECKSUMS:BOOL=OFF \
    -DMERCURY_USE_BOOST_PP:BOOL=ON \
    -DMERCURY_USE_EAGER_BULK:BOOL=ON \
    -DBUILD_SHARED_LIBS:BOOL=ON \
    -DCMAKE_INSTALL_PREFIX=${INSTALL} \
    ${USE_BMI} ${USE_CCI} ${USE_OFI} \
    ..
make -j${CORES}
make install

+1 −1
Original line number Diff line number Diff line
@@ -197,7 +197,7 @@ if [ "${NA_LAYER}" == "ofi" ] || [ "${NA_LAYER}" == "all" ]; then
    fi
fi
# get Mercury
clonedeps "mercury" "https://github.com/mercury-hpc/mercury" "f7f6955f140426b2a7c9e26dc35f8c8e1654d86a"  "--recurse-submodules" &
clonedeps "mercury" "https://github.com/mercury-hpc/mercury" "v1.0.0rc1"  "--recurse-submodules" &
# get Argobots
clonedeps "argobots" "https://github.com/carns/argobots.git" "4a84e66ed8544db215d6862f527775387418f7f6" "-b dev-fifo-wait" &
# get Margo
+0 −15
Original line number Diff line number Diff line
diff --git a/src/na/na_cci.c b/src/na/na_cci.c
index 0322a79..ad293ad 100644
--- a/src/na/na_cci.c
+++ b/src/na/na_cci.c
@@ -831,6 +831,10 @@ na_cci_addr_lookup(na_class_t * na_class, na_context_t * context,
     if (rc) {
         NA_LOG_ERROR("cci_connect(%s) failed with %s", name,
             cci_strerror(e, rc));
+        if (rc == CCI_ETIMEDOUT)
+            ret = NA_TIMEOUT;
+        else
+            ret = NA_CANCELED;
         goto out;
     }