@@ -167,8 +167,9 @@ def f(x):
167
167
self .assertArraysEqual (f (x ), expected )
168
168
self .assertEqual (cache_miss_count (), 2 )
169
169
fdo_profiles_before_pgle = self .get_fdo_profiles (dump_dir )
170
- # One for before and one for after optimization.
171
- self .assertLen (fdo_profiles_before_pgle , 2 )
170
+ # One for before optimizatiom, one after SPMD partitioning, and one
171
+ # after optimization.
172
+ self .assertLen (fdo_profiles_before_pgle , 3 )
172
173
# The FDO profile file should be empty.
173
174
self .assertEqual (
174
175
os .path .getsize (os .path .join (dump_dir , fdo_profiles_before_pgle [0 ])), 0 )
@@ -178,8 +179,9 @@ def f(x):
178
179
self .assertArraysEqual (f (x ), expected )
179
180
self .assertEqual (cache_miss_count (), 2 )
180
181
fdo_profiles_after_pgle = self .get_fdo_profiles (dump_dir )
181
- # One for before and one for after optimization.
182
- self .assertLen (fdo_profiles_after_pgle , 4 )
182
+ # One more before optimizatiom, one more after SPMD partitioning, and
183
+ # one more after optimization.
184
+ self .assertLen (fdo_profiles_after_pgle , 6 )
183
185
184
186
for fdo_profile in fdo_profiles_after_pgle :
185
187
if fdo_profile not in fdo_profiles_before_pgle :
0 commit comments