2
0

Enabling -m and --basenames option

Change-Id: Ic19ac28ab6ec842daf2a93a311ed7690b61b1e2a
Este cometimento está contido em:
Sriraksha Nagaraj
2023-10-02 14:08:26 +00:00
ascendente a12d47fdb1
cometimento a76341e30c
5 ficheiros modificados com 81 adições e 37 eliminações
+23 -2
Ver ficheiro
@@ -310,7 +310,7 @@ TEST(WhenTrucatingLongKernelNames, KernelNameGetsTruncatedProperly) {
"int, int, long long, long long, long long, long long, long long, long "
"long, long long, long long, long long, float, float, float, float "
"const*, float*, float const*, float*, float const*) [clone .kd]";
setenv("ROCPROFILER_TRUNCATE_KERNEL_PATH", "1", true);
std::string trunkated_name = rocprofiler::truncate_name(long_kernel_name);
EXPECT_EQ("kernel_7r_3d_pml", trunkated_name);
@@ -332,7 +332,28 @@ TEST(WhenTrucatingKokkossKernelNames, KernelNameGetsTruncatedProperly) {
"LAMMPS_NS::PairReaxFFKokkos<Kokkos::Experimental::HIP>::params_sing, false>, "
"Kokkos::RangePolicy<Kokkos::Experimental::HIP, Kokkos::IndexType<long> >, "
"Kokkos::Experimental::HIP> const*)";
setenv("ROCPROFILER_TRUNCATE_KERNEL_PATH", "1", true);
std::string trunkated_name = rocprofiler::truncate_name(long_kernel_name);
EXPECT_EQ("hip_parallel_launch_local_memory", trunkated_name);
}
TEST(WhenTrucatingKokkossKernelNames, KernelNameDoesnotTruncated) {
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*)";
unsetenv("ROCPROFILER_TRUNCATE_KERNEL_PATH");
std::string trunkated_name = rocprofiler::truncate_name(long_kernel_name);
EXPECT_EQ(long_kernel_name, trunkated_name);
}