Fix to find MPI symbols from undefined symbols (#293)

* Fix to find MPI symbols from undefined symbols

* Moved condition checks before

* Fixing format

---------

Co-authored-by: Anuj Shukla <anujshuk@amd.com>

[ROCm/rocprofiler-systems commit: 67ec52b523]
This commit is contained in:
Sajina PK
2025-07-23 16:02:05 -04:00
committed by GitHub
parent aa9b265302
commit 0b57805e20
3 changed files with 82 additions and 0 deletions
@@ -1721,6 +1721,14 @@ main(int argc, char** argv)
use_mpi = true;
break;
}
else if(find_undefined_function_symbol(app_image, itr) != nullptr)
{
verbprintf(0,
"Found undefined symbol '%s' in '%s'. Enabling MPI support...\n",
itr, _cmdv[0]);
use_mpi = true;
break;
}
}
#endif