ROCm / AMDMIGraphX

AMD's graph optimization engine.
https://rocm.docs.amd.com/projects/AMDMIGraphX/en/latest/
MIT License
185 stars 86 forks source link

Reduce compile time for MIGraphX #3485

Open aarushjain29 opened 1 month ago

aarushjain29 commented 1 month ago

### Discussion regarding ways to reduce the compile time. SD Clip Analysis: <html xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

Name | Time (ms) | Number of times called | Note -- | -- | -- | -- optimize_module | 8080.13 | 40 | Takes longer time only for 2 passes rewrite_gelu | 3732.81 | 1 |   simplify_algebra | 2022.83 | 48 | Takes longer time only for 10 passes simplify_algebra | 1787.21 |   |   simplify_algebra | 1477.3 |   |   optimize_module | 1346.62 |   |   simplify_algebra | 1294.1 |   |   propagate_constant | 570.865 | 42 | Takes longer time only  for 1 pass propagate_constant | 474.608 |   |   gpu::prefuse_ops | 462.095 |   |   fuse_pointwise_reduce | 267.548 | 1 |   simplify_reshapes | 248.682 |   |   simplify_reshapes | 234.135 |   |   fuse_reduce | 213.437 |   |