Enabling -m and --basenames option
Change-Id: Ic19ac28ab6ec842daf2a93a311ed7690b61b1e2a
[ROCm/rocprofiler commit: a76341e30c]
이 커밋은 다음에 포함됨:
1 부모
f4f9d5adf5
커밋
b5be707bcb
5 파일이 변경됨
+81
-37
검색과 일치하는 파일 없음
@@ -73,6 +73,7 @@ void __attribute__((constructor)) globalsetting() {
|
||||
gfx_path << app_path << metrics_path;
|
||||
setenv("ROCPROFILER_METRICS_PATH", gfx_path.str().c_str(), true);
|
||||
setenv("ROCPROFILER_MAX_ATT_PROFILES", "2", 1);
|
||||
setenv("ROCPROFILER_TRUNCATE_KERNEL_PATH", "1", true);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
새 이슈에서 참조
사용자 차단