Skip to content

Commit

Permalink
Format files
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas Grützmacher <thoasm@users.noreply.github.com>
  • Loading branch information
ginkgo-bot and thoasm committed Jul 18, 2024
1 parent e39ccdb commit 14f0e24
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 15 deletions.
11 changes: 5 additions & 6 deletions cuda/test/components/cooperative_groups.cu
Original file line number Diff line number Diff line change
Expand Up @@ -246,12 +246,11 @@ __global__ void cg_communicator_categorization(bool*)
group::is_synchronizable_group<tiled_partition_t>::value &&
group::is_synchronizable_group<subwarp_partition_t>::value,
"Synchronizable group check doesn't work.");
static_assert(
!group::is_communicator_group<not_group>::value &&
!group::is_communicator_group<this_block_t>::value &&
group::is_communicator_group<tiled_partition_t>::value &&
group::is_communicator_group<subwarp_partition_t>::value,
"Communicator group check doesn't work.");
static_assert(!group::is_communicator_group<not_group>::value &&
!group::is_communicator_group<this_block_t>::value &&
group::is_communicator_group<tiled_partition_t>::value &&
group::is_communicator_group<subwarp_partition_t>::value,
"Communicator group check doesn't work.");
}
TEST_F(CooperativeGroups, CorrectCategorization)
Expand Down
7 changes: 4 additions & 3 deletions hip/components/cooperative_groups.hip.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -372,10 +372,11 @@ namespace detail {
template <unsigned Size>
struct is_group_impl<group::thread_block_tile<Size>> : std::true_type {};
template <unsigned Size>
struct is_synchronizable_group_impl<group::thread_block_tile<Size>> : std::true_type {
};
struct is_synchronizable_group_impl<group::thread_block_tile<Size>>
: std::true_type {};
template <unsigned Size>
struct is_communicator_group_impl<group::thread_block_tile<Size>> : std::true_type {};
struct is_communicator_group_impl<group::thread_block_tile<Size>>
: std::true_type {};


} // namespace detail
Expand Down
11 changes: 5 additions & 6 deletions hip/test/components/cooperative_groups.hip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -265,12 +265,11 @@ __global__ void cg_communicator_categorization(bool*)
group::is_synchronizable_group<tiled_partition_t>::value &&
group::is_synchronizable_group<subwarp_partition_t>::value,
"Synchronizable group check doesn't work.");
static_assert(
!group::is_communicator_group<not_group>::value &&
!group::is_communicator_group<this_block_t>::value &&
group::is_communicator_group<tiled_partition_t>::value &&
group::is_communicator_group<subwarp_partition_t>::value,
"Communicator group check doesn't work.");
static_assert(!group::is_communicator_group<not_group>::value &&
!group::is_communicator_group<this_block_t>::value &&
group::is_communicator_group<tiled_partition_t>::value &&
group::is_communicator_group<subwarp_partition_t>::value,
"Communicator group check doesn't work.");
}

TEST_F(CooperativeGroups, CorrectCategorization)
Expand Down

0 comments on commit 14f0e24

Please sign in to comment.