@@ -59,6 +59,9 @@ def tearDown(self):
5959 super ().tearDown ()
6060
6161 def testPGLEProfilerGetFDOProfile (self ):
62+ if jtu .is_device_rocm ():
63+ self .skipTest ("Skip on ROCm: testPGLEProfilerGetFDOProfile. PGLE collected empty trace." )
64+
6265 mesh = jtu .create_mesh ((2 ,), ('x' ,))
6366
6467 @partial (
@@ -92,6 +95,9 @@ def f(x, y):
9295 self .assertIn (b'custom' , fdo_profile )
9396
9497 def testPGLEProfilerGetFDOProfileLarge (self ):
98+ if jtu .is_device_rocm ():
99+ self .skipTest ("Skip on ROCm: testPGLEProfilerGetFDOProfileLarge. PGLE collected empty trace." )
100+
95101 mesh = jtu .create_mesh ((2 ,), ('x' ,))
96102 its = 500
97103
@@ -133,6 +139,8 @@ def get_fdo_profiles(self, dump_dir):
133139 return jit_f_fdo_profiles
134140
135141 def testAutoPgle (self ):
142+ if jtu .is_device_rocm ():
143+ self .skipTest ("Skip on ROCm: testAutoPgle. PGLE collected empty trace." )
136144 mesh = jtu .create_mesh ((2 ,), ('x' ,))
137145
138146 with tempfile .TemporaryDirectory () as dump_dir :
@@ -216,6 +224,8 @@ def f(x):
216224 self .assertEqual (cache_miss_count (), 0 )
217225
218226 def testAutoPgleWithPersistentCache (self ):
227+ if jtu .is_device_rocm ():
228+ self .skipTest ("Skip on ROCm: testAutoPgleWithPersistentCache. PGLE collected empty trace." )
219229 its = 50
220230 mesh = jtu .create_mesh ((2 ,), ('x' ,))
221231
@@ -482,7 +492,7 @@ def check_if_cache_hit(event):
482492 @jtu .thread_unsafe_test ()
483493 def testAutoPgleWithCommandBuffers (self , enable_compilation_cache ):
484494 if jtu .is_device_rocm ():
485- self .skipTest ("Skip on ROCm: tests/pgle_test.py::PgleTest::testAutoPgleWithCommandBuffers" )
495+ self .skipTest ("Skip on ROCm: tests/pgle_test.py::PgleTest::testAutoPgleWithCommandBuffers" )
486496 with (config .pgle_profiling_runs (1 ),
487497 config .enable_compilation_cache (enable_compilation_cache ),
488498 config .enable_pgle (True ),
0 commit comments