diff --git a/cuda/test/components/cooperative_groups.cu b/cuda/test/components/cooperative_groups.cu index 077b0121fbd..0b384cd704e 100644 --- a/cuda/test/components/cooperative_groups.cu +++ b/cuda/test/components/cooperative_groups.cu @@ -246,12 +246,11 @@ __global__ void cg_communicator_categorization(bool*) group::is_synchronizable_group::value && group::is_synchronizable_group::value, "Synchronizable group check doesn't work."); - static_assert( - !group::is_communicator_group::value && - !group::is_communicator_group::value && - group::is_communicator_group::value && - group::is_communicator_group::value, - "Communicator group check doesn't work."); + static_assert(!group::is_communicator_group::value && + !group::is_communicator_group::value && + group::is_communicator_group::value && + group::is_communicator_group::value, + "Communicator group check doesn't work."); } TEST_F(CooperativeGroups, CorrectCategorization) diff --git a/hip/components/cooperative_groups.hip.hpp b/hip/components/cooperative_groups.hip.hpp index 2e5d7c0abff..36618bb7f3e 100644 --- a/hip/components/cooperative_groups.hip.hpp +++ b/hip/components/cooperative_groups.hip.hpp @@ -372,10 +372,11 @@ namespace detail { template struct is_group_impl> : std::true_type {}; template -struct is_synchronizable_group_impl> : std::true_type { -}; +struct is_synchronizable_group_impl> + : std::true_type {}; template -struct is_communicator_group_impl> : std::true_type {}; +struct is_communicator_group_impl> + : std::true_type {}; } // namespace detail diff --git a/hip/test/components/cooperative_groups.hip.cpp b/hip/test/components/cooperative_groups.hip.cpp index 0f71550139c..bd8c79b9849 100644 --- a/hip/test/components/cooperative_groups.hip.cpp +++ b/hip/test/components/cooperative_groups.hip.cpp @@ -265,12 +265,11 @@ __global__ void cg_communicator_categorization(bool*) group::is_synchronizable_group::value && group::is_synchronizable_group::value, "Synchronizable group check doesn't work."); - static_assert( - !group::is_communicator_group::value && - !group::is_communicator_group::value && - group::is_communicator_group::value && - group::is_communicator_group::value, - "Communicator group check doesn't work."); + static_assert(!group::is_communicator_group::value && + !group::is_communicator_group::value && + group::is_communicator_group::value && + group::is_communicator_group::value, + "Communicator group check doesn't work."); } TEST_F(CooperativeGroups, CorrectCategorization)