SWDEV-408607: Removed MPi message. Aded changelog and readme

Change-Id: I31efaf53ce4bf1b25c2bd94197a0b41bff84b0ff


[ROCm/rocprofiler commit: 02fbd5887b]
Этот коммит содержится в:
Giovanni LB committed 2023-06-30 21:55:51 -03:00
1 родитель 5f784afbe5
Коммит 9be8bcc9d4
3 files changed
+34 -26

No files matched your search

+11 -9
Просмотреть файл
@@ -18,8 +18,9 @@ import gc
try:
from mpi4py import MPI
MPI_IMPORTED = True
except:
pass
MPI_IMPORTED = False
class PerfEvent(ctypes.Structure):
_fields_ = [
@@ -330,15 +331,16 @@ def apply_min_event(min_event_time, OCCUPANCY, EVENTS, DBFILES, TIMELINES):
if __name__ == "__main__":
comm = None
mpi_root = True
try:
comm = MPI.COMM_WORLD
if comm.Get_size() < 2:
if MPI_IMPORTED:
try:
comm = MPI.COMM_WORLD
if comm.Get_size() < 2:
comm = None
else:
mpi_root = comm.Get_rank() == 0
except:
print('Could not load MPI')
comm = None
else:
mpi_root = comm.Get_rank() == 0
except:
print('Could not load MPI')
comm = None
pathenv = os.getenv('OUTPUT_PATH')
if pathenv is None: