Pull request #93 updated 13:54:21 Connecting to https://api.github.com using 476720/****** Obtained .jenkins/continuous.groovy from 374b1efe6bac7f22293a24cc7c8ea802abc2c86d [Pipeline] Start of Pipeline [Pipeline] timeout Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Clang-Format) [Pipeline] node Running on CpuNode5 in /var/jenkins/workspace/kokkos_remote_PR-93 [Pipeline] { [Pipeline] checkout The recommended git tool is: NONE using credential Jenkins ORNL Fetching changes from the remote Git repository Fetching without tags Checking out Revision 374b1efe6bac7f22293a24cc7c8ea802abc2c86d (PR-93) Commit message: "Add more use-cases for subview testing" > git rev-parse --resolve-git-dir /var/jenkins/workspace/kokkos_remote_PR-93/.git # timeout=10 > git config remote.origin.url https://github.com/kokkos/kokkos-remote-spaces.git # timeout=10 Fetching upstream changes from https://github.com/kokkos/kokkos-remote-spaces.git > git --version # timeout=10 > git --version # 'git version 2.17.1' using GIT_ASKPASS to set credentials > git fetch --no-tags --progress -- https://github.com/kokkos/kokkos-remote-spaces.git +refs/pull/93/head:refs/remotes/origin/PR-93 # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 374b1efe6bac7f22293a24cc7c8ea802abc2c86d # timeout=10 > git rev-list --no-walk eb220d4110bb27f286cf5ef545f3b18dc68c1de1 # timeout=10 [Pipeline] withEnv [Pipeline] { [Pipeline] isUnix [Pipeline] readFile [Pipeline] sh + docker build -t e2c481cf7982fc520a3984426cd16ef3d4fc52b1 -f scripts/docker/Dockerfile.clang scripts/docker #2 [internal] load .dockerignore #2 sha256:f36a43d382237be435bfdb6dd29ea8597a9519cebfb20af10e423452be521f6e #2 transferring context: 2B done #2 DONE 0.0s #1 [internal] load build definition from Dockerfile.clang #1 sha256:594000556fbcef77b66e0eb0103b45f0337536d0f29600b506c017f4a7162ac6 #1 transferring dockerfile: 2.07kB done #1 DONE 0.0s #3 [internal] load metadata for nvcr.io/nvidia/cuda:12.2.0-devel-ubuntu20.04 #3 sha256:37873c13a4bb2715c53a9d26a754255947021597dbae7e1d9416f04c4d99242f #3 DONE 0.0s #8 [1/5] FROM nvcr.io/nvidia/cuda:12.2.0-devel-ubuntu20.04 #8 sha256:0a313f51c59d65b8fd314754f1462f1dd8a2fac320eafde75b6f52bcee004b24 #8 DONE 0.0s #6 [3/5] RUN KEYDUMP_URL=https://cloud.cees.ornl.gov/download && KEYDUMP_FILE=keydump && wget --quiet ${KEYDUMP_URL}/${KEYDUMP_FILE} && wget --quiet ${KEYDUMP_URL}/${KEYDUMP_FILE}.sig && gpg --import ${KEYDUMP_FILE} && gpg --verify ${KEYDUMP_FILE}.sig ${KEYDUMP_FILE} && rm ${KEYDUMP_FILE}* #6 sha256:c6b344a6028de3f5818141df915e00cc6767d0d2c7b01bd36e96402387c51892 #6 CACHED #7 [2/5] RUN apt-get update && apt-get install -y bc git wget ccache && apt-get clean && rm -rf /var/lib/apt/lists/* #7 sha256:734f602daf340699447ae10ee59626c190bedbd705defd341870761c25bea692 #7 CACHED #5 [4/5] RUN CMAKE_URL=https://github.com/Kitware/CMake/releases/download/v3.16.8 && CMAKE_SCRIPT=cmake-3.16.8-Linux-x86_64.sh && CMAKE_SHA256=cmake-3.16.8-SHA-256.txt && wget --quiet ${CMAKE_URL}/${CMAKE_SHA256} && wget --quiet ${CMAKE_URL}/${CMAKE_SHA256}.asc && wget --quiet ${CMAKE_URL}/${CMAKE_SCRIPT} && gpg --verify ${CMAKE_SHA256}.asc ${CMAKE_SHA256} && grep -i ${CMAKE_SCRIPT} ${CMAKE_SHA256} | sed -e s/linux/Linux/ | sha256sum --check && mkdir -p /opt/cmake && sh ${CMAKE_SCRIPT} --skip-license --prefix=/opt/cmake && rm cmake* #5 sha256:f0790efd500103dc6fcef98649a77bb4a1765a30832b1102ec3d563bdf3b8528 #5 CACHED #4 [5/5] RUN LLVM_VERSION=8.0.0 && LLVM_URL=http://releases.llvm.org/${LLVM_VERSION}/clang+llvm-${LLVM_VERSION}-x86_64-linux-gnu-ubuntu-16.04.tar.xz && LLVM_ARCHIVE=llvm-${LLVM_VERSION}.tar.xz && SCRATCH_DIR=/scratch && mkdir -p ${SCRATCH_DIR} && cd ${SCRATCH_DIR} && wget --quiet ${LLVM_URL} --output-document=${LLVM_ARCHIVE} && wget --quiet ${LLVM_URL}.sig --output-document=${LLVM_ARCHIVE}.sig && gpg --verify ${LLVM_ARCHIVE}.sig ${LLVM_ARCHIVE} && mkdir -p /opt/llvm && tar -xvf ${LLVM_ARCHIVE} -C /opt/llvm --strip-components=1 && echo "/opt/llvm/lib" > /etc/ld.so.conf.d/llvm.conf && ldconfig && rm -rf /root/.gnupg && rm -rf ${SCRATCH_DIR} #4 sha256:a526c61f465b77aa4897f88a01167113eb9b3cace857bcebeae6e7a4d2da8f96 #4 CACHED #9 exporting to image #9 sha256:308ccb345b0e8c3efc98b669f77193214e52344567c703e0a9490f76ea42ffff #9 exporting layers done #9 writing image sha256:59e0af9e9345c2a74f1ff9fd6377f66c279ae4cd81d10f1865585fb3f9926a1b done #9 naming to docker.io/library/e2c481cf7982fc520a3984426cd16ef3d4fc52b1:latest done #9 DONE 0.0s [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh + docker inspect -f . e2c481cf7982fc520a3984426cd16ef3d4fc52b1 . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer CpuNode5 seems to be running inside container 96eb3c64af22c2400c54d0922c971f10735788eaca719af33e757c9e3fa73f0c $ docker run -t -d -u 0:0 -w /var/jenkins/workspace/kokkos_remote_PR-93 --volumes-from 96eb3c64af22c2400c54d0922c971f10735788eaca719af33e757c9e3fa73f0c -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** e2c481cf7982fc520a3984426cd16ef3d4fc52b1 cat $ docker top 8ba2849902aa89ae306e587e0f712865c862e0952facd6391b14cf0d21014b58 -eo pid,comm [Pipeline] { [Pipeline] sh + ./scripts/docker/check_format_cpp.sh diff --git a/src/core/Kokkos_RemoteSpaces_ViewMapping.hpp b/src/core/Kokkos_RemoteSpaces_ViewMapping.hpp index dd6dcff..f3ff44e 100644 --- a/src/core/Kokkos_RemoteSpaces_ViewMapping.hpp +++ b/src/core/Kokkos_RemoteSpaces_ViewMapping.hpp @@ -334,19 +334,19 @@ class ViewMapping< const SubviewExtents<SrcTraits::rank, rank> extents(src.m_offset.m_dim, args...); - dst.m_offset = dst_offset_type(src.m_offset, extents); - dst.remote_view_props = src.remote_view_props; + dst.m_offset = dst_offset_type(src.m_offset, extents); + dst.remote_view_props = src.remote_view_props; bool switch_to_local_indexing = false; /*We currently support only subviews of subviews where the first subview is created with a scalar over the leading dim*/ - /*Subviews that span across multiple nodes cannot have subviews in this version - */ + /*Subviews that span across multiple nodes cannot have subviews in this + * version + */ if (!src.remote_view_props.using_local_indexing) { dst.remote_view_props.using_local_indexing = !R0 ? true : false; - dst.remote_view_props.R0_offset = extents.domain_offset(0); - } - else + dst.remote_view_props.R0_offset = extents.domain_offset(0); + } else switch_to_local_indexing = true; typename view_type::size_type offset; @@ -362,7 +362,7 @@ class ViewMapping< extents.domain_offset(3), extents.domain_offset(4), extents.domain_offset(5), extents.domain_offset(6), extents.domain_offset(7)); - + #ifdef KRS_ENABLE_MPISPACE // Subviews propagate MPI_Window of the original view dst.m_handle = ViewDataHandle<DstTraits>::assign( diff --git a/unit_tests/Test_Subview.cpp b/unit_tests/Test_Subview.cpp index 489ff0e..f62642a 100644 --- a/unit_tests/Test_Subview.cpp +++ b/unit_tests/Test_Subview.cpp @@ -170,7 +170,6 @@ void test_subview3D(int i1, int i2, int i3) { for (int k = 0; k < v_h.extent(2); ++k) ASSERT_EQ(v_h(i, j, k), 2); } - template <class Data_t> void test_subview3D_byRank(int i1, int i2, int i3) { int my_rank; @@ -189,8 +188,10 @@ void test_subview3D_byRank(int i1, int i2, int i3) { Kokkos::Experimental::get_range(i1, (my_rank + 1) % num_ranks); // Set to next rank - auto v_sub_1 = Kokkos::subview(v, remote_range.first, Kokkos::ALL, Kokkos::ALL); - //auto v_sub_2 = ViewRemote_2D_t(v, remote_range.first, Kokkos::ALL, Kokkos::ALL); + auto v_sub_1 = + Kokkos::subview(v, remote_range.first, Kokkos::ALL, Kokkos::ALL); + // auto v_sub_2 = ViewRemote_2D_t(v, remote_range.first, Kokkos::ALL, + // Kokkos::ALL); // Init for (int i = 0; i < v_h.extent(0); ++i) @@ -204,7 +205,7 @@ void test_subview3D_byRank(int i1, int i2, int i3) { "Increment", v_sub_1.extent(0), KOKKOS_LAMBDA(const int i) { for (int j = 0; j < v_sub_1.extent(1); ++j) { v_sub_1(i, j)++; - // v_sub_2(i, j)++; + // v_sub_2(i, j)++; } }); @@ -230,7 +231,6 @@ void test_subviewOfSubview_Scalar_3D(int i1, int i2, int i3) { MPI_Comm_rank(MPI_COMM_WORLD, &my_rank); MPI_Comm_size(MPI_COMM_WORLD, &num_ranks); - using ViewRemote_3D_t = Kokkos::View<Data_t ***, RemoteSpace_t>; using ViewRemote_2D_t = Kokkos::View<Data_t **, RemoteSpace_t>; using ViewHost_3D_t = typename ViewRemote_3D_t::HostMirror; @@ -242,8 +242,10 @@ void test_subviewOfSubview_Scalar_3D(int i1, int i2, int i3) { Kokkos::Experimental::get_range(i1, (my_rank + 1) % num_ranks); // Set to next rank - auto v_sub_1 = Kokkos::subview(v, remote_range.first, Kokkos::ALL, Kokkos::ALL); - auto v_sub_2 = ViewRemote_2D_t(v, remote_range.first, Kokkos::ALL, Kokkos::ALL); + auto v_sub_1 = + Kokkos::subview(v, remote_range.first, Kokkos::ALL, Kokkos::ALL); + auto v_sub_2 = + ViewRemote_2D_t(v, remote_range.first, Kokkos::ALL, Kokkos::ALL); int i2_half = static_cast<int>(i2 * 0.5); @@ -263,10 +265,10 @@ void test_subviewOfSubview_Scalar_3D(int i1, int i2, int i3) { Kokkos::parallel_for( "Increment", v_sub_1_half.extent(0), KOKKOS_LAMBDA(const int j) { - for (int k = 0; k < v_sub_1_half.extent(1); ++k){ - v_sub_1_half(j, k)++; - v_sub_2_half(j, k)++; - } + for (int k = 0; k < v_sub_1_half.extent(1); ++k) { + v_sub_1_half(j, k)++; + v_sub_2_half(j, k)++; + } }); Kokkos::fence(); @@ -275,7 +277,7 @@ void test_subviewOfSubview_Scalar_3D(int i1, int i2, int i3) { for (int i = 0; i < v_h.extent(0); ++i) for (int j = 0; j < v_h.extent(1); ++j) - if(j < i2_half) + if (j < i2_half) for (int k = 0; k < v_h.extent(2); ++k) ASSERT_EQ(v_h(i, j, k), 0); else for (int k = 0; k < v_h.extent(2); ++k) ASSERT_EQ(v_h(i, j, k), 2); @@ -336,13 +338,12 @@ void test_subviewOfSubview_Range_3D(int i1, int i2, int i3) { for (int i = 0; i < v_h.extent(0); ++i) for (int j = 0; j < v_h.extent(1); ++j) - if(j < i2_half) + if (j < i2_half) for (int k = 0; k < v_h.extent(2); ++k) ASSERT_EQ(v_h(i, j, k), 0); else for (int k = 0; k < v_h.extent(2); ++k) ASSERT_EQ(v_h(i, j, k), 2); } - template <class Data_t> void test_subview3D_DCCopiesSubviewAccess(int i1, int i2, int i3) { int my_rank; [Pipeline] } $ docker stop --time=1 8ba2849902aa89ae306e587e0f712865c862e0952facd6391b14cf0d21014b58 $ docker rm -f --volumes 8ba2849902aa89ae306e587e0f712865c862e0952facd6391b14cf0d21014b58 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // node [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) Stage "Build" skipped due to earlier failure(s) [Pipeline] parallel [Pipeline] { (Branch: shmem-openmpi) [Pipeline] stage [Pipeline] { (shmem-openmpi) Stage "shmem-openmpi" skipped due to earlier failure(s) [Pipeline] } [Pipeline] // stage [Pipeline] } Failed in branch shmem-openmpi [Pipeline] // parallel [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // timeout [Pipeline] End of Pipeline ERROR: script returned exit code 1 GitHub has been notified of this commit’s build result Finished: FAILURE