Adding kokkos kernel name trucate test
Change-Id: I01af7dbb399cfe470e548a584faec890924d7039
Dieser Commit ist enthalten in:
@@ -331,4 +331,25 @@ TEST(WhenTrucatingLongKernelNames, KernelNameGetsTruncatedProperly) {
|
||||
std::string trunkated_name = rocprofiler::truncate_name(long_kernel_name);
|
||||
|
||||
EXPECT_EQ("kernel_7r_3d_pml", trunkated_name);
|
||||
}
|
||||
|
||||
TEST(WhenTrucatingKokkossKernelNames, KernelNameGetsTruncatedProperly) {
|
||||
std::string long_kernel_name =
|
||||
"void "
|
||||
"Kokkos::Experimental::Impl::hip_parallel_launch_local_memory<Kokkos::Impl::ParallelFor<"
|
||||
"Kokkos::"
|
||||
"Impl::ViewValueFunctor<Kokkos::Device<Kokkos::Experimental::HIP, "
|
||||
"Kokkos::Experimental::HIPSpace>, "
|
||||
"LAMMPS_NS::PairReaxFFKokkos<Kokkos::Experimental::HIP>::params_sing, false>, "
|
||||
"Kokkos::RangePolicy<Kokkos::Experimental::HIP, Kokkos::IndexType<long> >, "
|
||||
"Kokkos::Experimental::HIP>, 1024u, "
|
||||
"1u>(Kokkos::Impl::ParallelFor<Kokkos::Impl::ViewValueFunctor<Kokkos::Device<Kokkos::"
|
||||
"Experimental::"
|
||||
"HIP, Kokkos::Experimental::HIPSpace>, "
|
||||
"LAMMPS_NS::PairReaxFFKokkos<Kokkos::Experimental::HIP>::params_sing, false>, "
|
||||
"Kokkos::RangePolicy<Kokkos::Experimental::HIP, Kokkos::IndexType<long> >, "
|
||||
"Kokkos::Experimental::HIP> const*)";
|
||||
|
||||
std::string trunkated_name = rocprofiler::truncate_name(long_kernel_name);
|
||||
EXPECT_EQ("hip_parallel_launch_local_memory", trunkated_name);
|
||||
}
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren