diff --git a/test/profiler/test_profiler_tree.py b/test/profiler/test_profiler_tree.py index c8a750a3f5fa..0a820f0edc6e 100644 --- a/test/profiler/test_profiler_tree.py +++ b/test/profiler/test_profiler_tree.py @@ -28,7 +28,10 @@ "torch/profiler/profiler.py(...): _transit_action": KEEP_ELLIPSES, "": PRUNE_ALL, "cudaStreamIsCapturing": PRUNE_ALL, - "cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags": PRUNE_ALL, + + # These show up only on CUDA, prune them so the CUDA and CPU expected results can be the same + "cudaGetDeviceCount": PRUNE_ALL, + "cudaGetDeviceProperties_v2": PRUNE_ALL, } # ROCTracer is currently not producing events that profiler can extract. We