Pull request #6955 updated 09:54:34 Connecting to https://api.github.com using 476720/****** Obtained .jenkins from 7b6edf7f6c35eaf9ec7071220d23e4c7a4bb50d1+cc602957cec5627c8752137c0412caa6fe37d2bc (19a6d55e0eb56c0f09e7e2c57c1dabac1764a1dc) [Pipeline] Start of Pipeline [Pipeline] withEnv [Pipeline] { [Pipeline] timeout Timeout set to expire in 6 hr 0 min [Pipeline] { [Pipeline] stage [Pipeline] { (Clang-Format) [Pipeline] node Running on fetnat09 in /var/jenkins/workspace/Kokkos_PR-6955 [Pipeline] { [Pipeline] checkout Selected Git installation does not exist. Using Default The recommended git tool is: NONE using credential Jenkins ORNL Cloning the remote Git repository Cloning with configured refspecs honoured and without tags Cloning repository https://github.com/kokkos/kokkos.git > git init /var/jenkins/workspace/Kokkos_PR-6955 # timeout=10 Fetching upstream changes from https://github.com/kokkos/kokkos.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.git +refs/pull/6955/head:refs/remotes/origin/PR-6955 +refs/heads/develop:refs/remotes/origin/develop # timeout=10 > git config remote.origin.url https://github.com/kokkos/kokkos.git # timeout=10 > git config --add remote.origin.fetch +refs/pull/6955/head:refs/remotes/origin/PR-6955 # timeout=10 > git config --add remote.origin.fetch +refs/heads/develop:refs/remotes/origin/develop # timeout=10 Fetching without tags > git config remote.origin.url https://github.com/kokkos/kokkos.git # timeout=10 Fetching upstream changes from https://github.com/kokkos/kokkos.git using GIT_ASKPASS to set credentials > git fetch --no-tags --progress -- https://github.com/kokkos/kokkos.git +refs/pull/6955/head:refs/remotes/origin/PR-6955 +refs/heads/develop:refs/remotes/origin/develop # timeout=10 Merging remotes/origin/develop commit cc602957cec5627c8752137c0412caa6fe37d2bc into PR head commit 7b6edf7f6c35eaf9ec7071220d23e4c7a4bb50d1 > git config core.sparsecheckout # timeout=10 > git checkout -f 7b6edf7f6c35eaf9ec7071220d23e4c7a4bb50d1 # timeout=10 Merge succeeded, producing 4a3b0d6ec85205bf0c945921429c657919e4d997 Checking out Revision 4a3b0d6ec85205bf0c945921429c657919e4d997 (PR-6955) Commit message: "Merge commit 'cc602957cec5627c8752137c0412caa6fe37d2bc' into HEAD" First time build. Skipping changelog. [Pipeline] withEnv [Pipeline] { [Pipeline] isUnix [Pipeline] readFile [Pipeline] sh > git remote # timeout=10 > git config --get remote.origin.url # timeout=10 using GIT_ASKPASS to set credentials > git merge cc602957cec5627c8752137c0412caa6fe37d2bc # timeout=10 > git rev-parse HEAD^{commit} # timeout=10 > git config core.sparsecheckout # timeout=10 > git checkout -f 4a3b0d6ec85205bf0c945921429c657919e4d997 # timeout=10 > git rev-list --no-walk 77d9d2c7540361913d7fb9a6df241e574c940f7a # timeout=10 + docker build -t f36c7cbcf421110af2536a19f2dcfd0a8672172d -f scripts/docker/Dockerfile.clang scripts/docker DEPRECATED: The legacy builder is deprecated and will be removed in a future release. Install the buildx component to build images with BuildKit: https://docs.docker.com/go/buildx/ Sending build context to Docker daemon 22.02kB Step 1/3 : FROM ubuntu:20.04 ---> 3cff1c6ff37e Step 2/3 : RUN apt-get update && apt-get install -y bc git build-essential clang-format-8 wget && apt-get clean && rm -rf /var/lib/apt/lists/* ---> Using cache ---> 22f0e90c798a Step 3/3 : ENV CLANG_FORMAT_EXE=clang-format-8 ---> Using cache ---> 7fbf56a1efc6 Successfully built 7fbf56a1efc6 Successfully tagged f36c7cbcf421110af2536a19f2dcfd0a8672172d:latest [Pipeline] isUnix [Pipeline] withEnv [Pipeline] { [Pipeline] sh + docker inspect -f . f36c7cbcf421110af2536a19f2dcfd0a8672172d . [Pipeline] } [Pipeline] // withEnv [Pipeline] withDockerContainer fetnat09 seems to be running inside container 81643f3ce80dd524a9f6a2ac75cf8d20eb139c8b2d3d82b6e87cd717b39144a6 $ docker run -t -d -u 0:0 -v /tmp/ccache.kokkos:/tmp/ccache -w /var/jenkins/workspace/Kokkos_PR-6955 --volumes-from 81643f3ce80dd524a9f6a2ac75cf8d20eb139c8b2d3d82b6e87cd717b39144a6 -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 ******** -e ******** -e ******** -e ******** f36c7cbcf421110af2536a19f2dcfd0a8672172d cat $ docker top 0c3590f39324d41c6c6a11a1d4c3d8fce3bbb2d35bd5937b91a2e95e5cbfb8e9 -eo pid,comm [Pipeline] { [Pipeline] sh + ./scripts/docker/check_format_cpp.sh diff --git a/containers/src/Kokkos_DynRankView.hpp b/containers/src/Kokkos_DynRankView.hpp index 0ebc8c49b..c800a9aa6 100644 --- a/containers/src/Kokkos_DynRankView.hpp +++ b/containers/src/Kokkos_DynRankView.hpp @@ -1937,10 +1937,8 @@ namespace Impl { // private interface that accepts arbitrary view constructor args passed by a // view_alloc template <class T, class... P, class... ViewCtorArgs> -inline auto create_mirror( - const DynRankView<T, P...>& src, - const Impl::ViewCtorProp<ViewCtorArgs...>& arg_prop) { - +inline auto create_mirror(const DynRankView<T, P...>& src, + const Impl::ViewCtorProp<ViewCtorArgs...>& arg_prop) { check_view_ctor_args_create_mirror<ViewCtorArgs...>(); auto prop_copy = Impl::with_properties_if_unset( @@ -1951,12 +1949,14 @@ inline auto create_mirror( typename Impl::ViewCtorProp<ViewCtorArgs...>::memory_space, T, P...>::view_type; - return dst_type(prop_copy, Impl::reconstructLayout(src.layout(), src.rank())); + return dst_type(prop_copy, + Impl::reconstructLayout(src.layout(), src.rank())); } else { using src_type = DynRankView<T, P...>; using dst_type = typename src_type::HostMirror; - return dst_type(prop_copy, Impl::reconstructLayout(src.layout(), src.rank())); + return dst_type(prop_copy, + Impl::reconstructLayout(src.layout(), src.rank())); } } @@ -2029,27 +2029,25 @@ namespace Impl { // private interface that accepts arbitrary view constructor args passed by a // view_alloc template <class T, class... P, class... ViewCtorArgs> -inline auto create_mirror_view(const DynRankView<T, P...>& src, - [[maybe_unused]] const typename Impl::ViewCtorProp<ViewCtorArgs...>& arg_prop) { +inline auto create_mirror_view( + const DynRankView<T, P...>& src, + [[maybe_unused]] const typename Impl::ViewCtorProp<ViewCtorArgs...>& + arg_prop) { if constexpr (!Impl::ViewCtorProp<ViewCtorArgs...>::has_memory_space) { - if constexpr ( - std::is_same< - typename DynRankView<T, P...>::memory_space, - typename DynRankView<T, P...>::HostMirror::memory_space>::value && - std::is_same< - typename DynRankView<T, P...>::data_type, - typename DynRankView<T, P...>::HostMirror::data_type>::value - ) { + if constexpr (std::is_same<typename DynRankView<T, P...>::memory_space, + typename DynRankView< + T, P...>::HostMirror::memory_space>::value && + std::is_same<typename DynRankView<T, P...>::data_type, + typename DynRankView< + T, P...>::HostMirror::data_type>::value) { return src; } else { return Kokkos::Impl::create_mirror(src, arg_prop); } } else { - if constexpr ( - Impl::MirrorDRViewType< - typename Impl::ViewCtorProp<ViewCtorArgs...>::memory_space, T, - P...>::is_same_memspace - ) { + if constexpr (Impl::MirrorDRViewType<typename Impl::ViewCtorProp< + ViewCtorArgs...>::memory_space, + T, P...>::is_same_memspace) { return src; } else { return Kokkos::Impl::create_mirror(src, arg_prop); @@ -2129,9 +2127,7 @@ inline auto create_mirror_view( return Impl::create_mirror_view(src, arg_prop); } -namespace Impl { - -} // namespace Impl +namespace Impl {} // namespace Impl // create a mirror view and deep copy it // public interface that accepts arbitrary view constructor args passed by a @@ -2147,12 +2143,13 @@ auto create_mirror_view_and_copy( Impl::check_view_ctor_args_create_mirror_view_and_copy<ViewCtorArgs...>(); if constexpr (Impl::MirrorDRViewType< - typename Impl::ViewCtorProp<ViewCtorArgs...>::memory_space, T, - P...>::is_same_memspace) { + typename Impl::ViewCtorProp<ViewCtorArgs...>::memory_space, + T, P...>::is_same_memspace) { // same behavior as deep_copy(src, src) if constexpr (!alloc_prop_input::has_execution_space) fence( - "Kokkos::create_mirror_view_and_copy: fence before returning src view"); + "Kokkos::create_mirror_view_and_copy: fence before returning src " + "view"); return src; } else { using Space = typename alloc_prop_input::memory_space; diff --git a/containers/src/Kokkos_DynamicView.hpp b/containers/src/Kokkos_DynamicView.hpp index 87e296516..688a160fa 100644 --- a/containers/src/Kokkos_DynamicView.hpp +++ b/containers/src/Kokkos_DynamicView.hpp @@ -596,7 +596,7 @@ namespace Impl { // view_alloc template <class T, class... P, class... ViewCtorArgs> inline auto create_mirror(const Kokkos::Experimental::DynamicView<T, P...>& src, - const Impl::ViewCtorProp<ViewCtorArgs...>& arg_prop) { + const Impl::ViewCtorProp<ViewCtorArgs...>& arg_prop) { using alloc_prop_input = Impl::ViewCtorProp<ViewCtorArgs...>; check_view_ctor_args_create_mirror<ViewCtorArgs...>(); @@ -614,7 +614,6 @@ inline auto create_mirror(const Kokkos::Experimental::DynamicView<T, P...>& src, return ret; } else { - auto ret = typename Kokkos::Experimental::DynamicView<T, P...>::HostMirror( prop_copy, src.chunk_size(), src.chunk_max() * src.chunk_size()); @@ -669,27 +668,27 @@ namespace Impl { // private interface that accepts arbitrary view constructor args passed by a // view_alloc template <class T, class... P, class... ViewCtorArgs> -inline auto create_mirror_view(const Kokkos::Experimental::DynamicView<T, P...>& src, - [[maybe_unused]] const Impl::ViewCtorProp<ViewCtorArgs...>& arg_prop) { +inline auto create_mirror_view( + const Kokkos::Experimental::DynamicView<T, P...>& src, + [[maybe_unused]] const Impl::ViewCtorProp<ViewCtorArgs...>& arg_prop) { if constexpr (!Impl::ViewCtorProp<ViewCtorArgs...>::has_memory_space) { - if constexpr ( - std::is_same< - typename Kokkos::Experimental::DynamicView<T, P...>::memory_space, - typename Kokkos::Experimental::DynamicView< - T, P...>::HostMirror::memory_space>::value && - std::is_same< - typename Kokkos::Experimental::DynamicView<T, P...>::data_type, - typename Kokkos::Experimental::DynamicView< - T, P...>::HostMirror::data_type>::value - ) { + if constexpr (std::is_same<typename Kokkos::Experimental::DynamicView< + T, P...>::memory_space, + typename Kokkos::Experimental::DynamicView< + T, P...>::HostMirror::memory_space>::value && + std::is_same<typename Kokkos::Experimental::DynamicView< + T, P...>::data_type, + typename Kokkos::Experimental::DynamicView< + T, P...>::HostMirror::data_type>::value) { return src; } else { return Kokkos::Impl::create_mirror(src, arg_prop); } } else { if constexpr (Impl::MirrorDynamicViewType< - typename Impl::ViewCtorProp<ViewCtorArgs...>::memory_space, - T, P...>::is_same_memspace) { + typename Impl::ViewCtorProp< + ViewCtorArgs...>::memory_space, + T, P...>::is_same_memspace) { return src; } else { return Kokkos::Impl::create_mirror(src, arg_prop); @@ -925,9 +924,7 @@ struct ViewCopy<Kokkos::Experimental::DynamicView<DP...>, } // namespace Impl -namespace Impl { - -} // namespace Impl +namespace Impl {} // namespace Impl // create a mirror view and deep copy it // public interface that accepts arbitrary view constructor args passed by a @@ -943,12 +940,13 @@ auto create_mirror_view_and_copy( Impl::check_view_ctor_args_create_mirror_view_and_copy<ViewCtorArgs...>(); if constexpr (Impl::MirrorDynamicViewType< - typename Impl::ViewCtorProp<ViewCtorArgs...>::memory_space, T, - P...>::is_same_memspace) { + typename Impl::ViewCtorProp<ViewCtorArgs...>::memory_space, + T, P...>::is_same_memspace) { // same behavior as deep_copy(src, src) if constexpr (!alloc_prop_input::has_execution_space) fence( - "Kokkos::create_mirror_view_and_copy: fence before returning src view"); + "Kokkos::create_mirror_view_and_copy: fence before returning src " + "view"); return src; } else { using Space = typename alloc_prop_input::memory_space; diff --git a/containers/src/Kokkos_OffsetView.hpp b/containers/src/Kokkos_OffsetView.hpp index bdfd44f32..307783c37 100644 --- a/containers/src/Kokkos_OffsetView.hpp +++ b/containers/src/Kokkos_OffsetView.hpp @@ -1847,7 +1847,7 @@ namespace Impl { // view_alloc template <class T, class... P, class... ViewCtorArgs> inline auto create_mirror(const Kokkos::Experimental::OffsetView<T, P...>& src, - const Impl::ViewCtorProp<ViewCtorArgs...>& arg_prop) { + const Impl::ViewCtorProp<ViewCtorArgs...>& arg_prop) { check_view_ctor_args_create_mirror<ViewCtorArgs...>(); if constexpr (Impl::ViewCtorProp<ViewCtorArgs...>::has_memory_space) { @@ -1912,26 +1912,26 @@ namespace Impl { // private interface that accepts arbitrary view constructor args passed by a // view_alloc template <class T, class... P, class... ViewCtorArgs> -inline auto create_mirror_view(const Kokkos::Experimental::OffsetView<T, P...>& src, - [[maybe_unused]] const Impl::ViewCtorProp<ViewCtorArgs...>& arg_prop) { +inline auto create_mirror_view( + const Kokkos::Experimental::OffsetView<T, P...>& src, + [[maybe_unused]] const Impl::ViewCtorProp<ViewCtorArgs...>& arg_prop) { if constexpr (!Impl::ViewCtorProp<ViewCtorArgs...>::has_memory_space) { - if constexpr ( - std::is_same< - typename Kokkos::Experimental::OffsetView<T, P...>::memory_space, - typename Kokkos::Experimental::OffsetView< - T, P...>::HostMirror::memory_space>::value && - std::is_same< - typename Kokkos::Experimental::OffsetView<T, P...>::data_type, - typename Kokkos::Experimental::OffsetView< - T, P...>::HostMirror::data_type>::value) { + if constexpr (std::is_same<typename Kokkos::Experimental::OffsetView< + T, P...>::memory_space, + typename Kokkos::Experimental::OffsetView< + T, P...>::HostMirror::memory_space>::value && + std::is_same<typename Kokkos::Experimental::OffsetView< + T, P...>::data_type, + typename Kokkos::Experimental::OffsetView< + T, P...>::HostMirror::data_type>::value) { return src; } else { return Kokkos::Impl::create_mirror(src, arg_prop); } } else { - if constexpr (Impl::MirrorOffsetViewType< - typename Impl::ViewCtorProp<ViewCtorArgs...>::memory_space, - T, P...>::is_same_memspace) { + if constexpr (Impl::MirrorOffsetViewType<typename Impl::ViewCtorProp< + ViewCtorArgs...>::memory_space, + T, P...>::is_same_memspace) { return src; } else { return Kokkos::Impl::create_mirror(src, arg_prop); diff --git a/core/src/Kokkos_CopyViews.hpp b/core/src/Kokkos_CopyViews.hpp index cc813455a..4876bdbda 100644 --- a/core/src/Kokkos_CopyViews.hpp +++ b/core/src/Kokkos_CopyViews.hpp @@ -3474,7 +3474,7 @@ void check_view_ctor_args_create_mirror() { // view_alloc template <class T, class... P, class... ViewCtorArgs> inline auto create_mirror(const Kokkos::View<T, P...>& src, - const Impl::ViewCtorProp<ViewCtorArgs...>& arg_prop) { + const Impl::ViewCtorProp<ViewCtorArgs...>& arg_prop) { check_view_ctor_args_create_mirror<ViewCtorArgs...>(); auto prop_copy = Impl::with_properties_if_unset( @@ -3550,8 +3550,9 @@ namespace Impl { // private interface that accepts arbitrary view constructor args passed by a // view_alloc template <class T, class... P, class... ViewCtorArgs> -inline auto create_mirror_view(const Kokkos::View<T, P...>& src, - [[maybe_unused]] const Impl::ViewCtorProp<ViewCtorArgs...>& arg_prop) { +inline auto create_mirror_view( + const Kokkos::View<T, P...>& src, + [[maybe_unused]] const Impl::ViewCtorProp<ViewCtorArgs...>& arg_prop) { if constexpr (!Impl::ViewCtorProp<ViewCtorArgs...>::has_memory_space) { if constexpr (std::is_same<typename Kokkos::View<T, P...>::memory_space, typename Kokkos::View< [Pipeline] } $ docker stop --time=1 0c3590f39324d41c6c6a11a1d4c3d8fce3bbb2d35bd5937b91a2e95e5cbfb8e9 $ docker rm -f --volumes 0c3590f39324d41c6c6a11a1d4c3d8fce3bbb2d35bd5937b91a2e95e5cbfb8e9 [Pipeline] // withDockerContainer [Pipeline] } [Pipeline] // withEnv [Pipeline] } [Pipeline] // node [Pipeline] } [Pipeline] // stage [Pipeline] stage [Pipeline] { (Build) Stage "Build" skipped due to earlier failure(s) [Pipeline] getContext [Pipeline] parallel [Pipeline] { (Branch: OPENACC-NVHPC-CUDA-12.2) [Pipeline] { (Branch: CUDA-12.2-NVHPC) [Pipeline] { (Branch: SYCL-OneAPI) [Pipeline] { (Branch: HIP-ROCm-5.2) [Pipeline] { (Branch: HIP-ROCm-5.6-C++20) [Pipeline] { (Branch: OPENMPTARGET-Clang) [Pipeline] { (Branch: CUDA-11.0.3-Clang-Tidy) [Pipeline] { (Branch: CUDA-11.7-NVCC) [Pipeline] { (Branch: CUDA-11.0-NVCC-RDC) [Pipeline] { (Branch: CUDA-11.6-NVCC-DEBUG) [Pipeline] { (Branch: GCC-8.4.0) [Pipeline] stage [Pipeline] { (OPENACC-NVHPC-CUDA-12.2) [Pipeline] stage [Pipeline] { (CUDA-12.2-NVHPC) [Pipeline] stage [Pipeline] { (SYCL-OneAPI) [Pipeline] stage [Pipeline] { (HIP-ROCm-5.2) [Pipeline] stage [Pipeline] { (HIP-ROCm-5.6-C++20) [Pipeline] stage [Pipeline] { (OPENMPTARGET-Clang) [Pipeline] stage [Pipeline] { (CUDA-11.0.3-Clang-Tidy) [Pipeline] stage [Pipeline] { (CUDA-11.7-NVCC) [Pipeline] stage [Pipeline] { (CUDA-11.0-NVCC-RDC) [Pipeline] stage [Pipeline] { (CUDA-11.6-NVCC-DEBUG) [Pipeline] stage [Pipeline] { (GCC-8.4.0) Stage "OPENACC-NVHPC-CUDA-12.2" skipped due to earlier failure(s) [Pipeline] getContext [Pipeline] } Stage "CUDA-12.2-NVHPC" skipped due to earlier failure(s) [Pipeline] getContext [Pipeline] } Stage "SYCL-OneAPI" skipped due to earlier failure(s) [Pipeline] getContext [Pipeline] } Stage "HIP-ROCm-5.2" skipped due to earlier failure(s) [Pipeline] getContext [Pipeline] } Stage "HIP-ROCm-5.6-C++20" skipped due to earlier failure(s) [Pipeline] getContext [Pipeline] } Stage "OPENMPTARGET-Clang" skipped due to earlier failure(s) [Pipeline] getContext [Pipeline] } Stage "CUDA-11.0.3-Clang-Tidy" skipped due to earlier failure(s) [Pipeline] getContext [Pipeline] } Stage "CUDA-11.7-NVCC" skipped due to earlier failure(s) [Pipeline] getContext [Pipeline] } Stage "CUDA-11.0-NVCC-RDC" skipped due to earlier failure(s) [Pipeline] getContext [Pipeline] } Stage "CUDA-11.6-NVCC-DEBUG" skipped due to earlier failure(s) [Pipeline] getContext [Pipeline] } Stage "GCC-8.4.0" skipped due to earlier failure(s) [Pipeline] getContext [Pipeline] } [Pipeline] // stage [Pipeline] // stage [Pipeline] // stage [Pipeline] // stage [Pipeline] // stage [Pipeline] // stage [Pipeline] // stage [Pipeline] // stage [Pipeline] // stage [Pipeline] // stage [Pipeline] // stage [Pipeline] } Failed in branch OPENACC-NVHPC-CUDA-12.2 [Pipeline] } Failed in branch CUDA-12.2-NVHPC [Pipeline] } Failed in branch SYCL-OneAPI [Pipeline] } Failed in branch HIP-ROCm-5.2 [Pipeline] } Failed in branch HIP-ROCm-5.6-C++20 [Pipeline] } Failed in branch OPENMPTARGET-Clang [Pipeline] } Failed in branch CUDA-11.0.3-Clang-Tidy [Pipeline] } Failed in branch CUDA-11.7-NVCC [Pipeline] } Failed in branch CUDA-11.0-NVCC-RDC [Pipeline] } Failed in branch CUDA-11.6-NVCC-DEBUG [Pipeline] } Failed in branch GCC-8.4.0 [Pipeline] // parallel [Pipeline] } [Pipeline] // stage [Pipeline] } [Pipeline] // timeout [Pipeline] } [Pipeline] // withEnv [Pipeline] End of Pipeline ERROR: script returned exit code 1 GitHub has been notified of this commit’s build result Finished: FAILURE