Adding kokkos kernel name trucate test

Change-Id: I01af7dbb399cfe470e548a584faec890924d7039
Dieser Commit ist enthalten in:
gobhardw
2023-07-26 00:18:31 +05:30
Ursprung 80ecb2b288
Commit 06d918d2b4
+21
Datei anzeigen
@@ -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);
}