Enable MPI tracing for Fortran (#185)

- Move the MPI gotcha functionality from Timemory to the repo.
- Add the PMPI Fortran MPI functions to the existing mpi gotcha handle.

[ROCm/rocprofiler-systems commit: 4fcd8cc78d]
Este commit está contenido en:
Sajina PK
2025-06-04 18:06:18 -04:00
cometido por GitHub
padre 4c4fc2bebe
commit 916aac1e92
Se han modificado 13 ficheros con 1576 adiciones y 55 borrados
@@ -1711,8 +1711,10 @@ main(int argc, char** argv)
{ "rocprofsys_user_stop_thread_trace" });
#if ROCPROFSYS_USE_MPI > 0 || ROCPROFSYS_USE_MPI_HEADERS > 0
// if any of the below MPI functions are found, enable MPI support
for(const auto* itr : { "MPI_Init", "MPI_Init_thread", "MPI_Finalize",
"MPI_Comm_rank", "MPI_Comm_size" })
for(const auto* itr :
{ "MPI_Init", "MPI_Init_thread", "MPI_Finalize", "MPI_Comm_rank", "MPI_Comm_size",
"MPI_INIT", "mpi_init", "mpi_init_", "mpi_init__", "MPI_INIT_THREAD",
"mpi_init_thread", "mpi_init_thread_", "mpi_init_thread__" })
{
if(find_function(app_image, itr) != nullptr)
{