Skip to content

Commit 3e94f60

Browse files
committed
fix large scale CI
1 parent 72d65c1 commit 3e94f60

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

sklbench/utils/measurement.py

+14-10
Original file line numberDiff line numberDiff line change
@@ -92,16 +92,20 @@ def measure_time(
9292
f"exceeded time limit ({time_limit} seconds)"
9393
)
9494
break
95-
from mpi4py import MPI
96-
97-
if MPI.COMM_WORLD.Get_rank() == 0:
98-
logger.debug(
99-
"iters across n runs: "
100-
+ str(iters)
101-
+ ", inner iters across n runs: "
102-
+ str(inners)
103-
)
104-
logger.debug(times)
95+
96+
try:
97+
from mpi4py import MPI
98+
99+
if MPI.COMM_WORLD.Get_rank() == 0:
100+
logger.debug(
101+
"iters across n runs: "
102+
+ str(iters)
103+
+ ", inner iters across n runs: "
104+
+ str(inners)
105+
)
106+
logger.debug(times)
107+
except ModuleNotFoundError:
108+
pass
105109
# mean, std = box_filter(times)
106110
# if std / mean > std_mean_ratio:
107111
# logger.warning(

0 commit comments

Comments
 (0)