Skip to content

Regent: How to improve program compile times

Seshu Yamajala edited this page Nov 6, 2019 · 1 revision

Here are some tips to improve Regent program compile times:

  1. Profile a compilation by adding the flag -flog profile 1
  2. Disable inlined tasks using -finline 0
  3. Disable LLVM optimizations by adding __forbid(__optimize) to tasks taking significant amounts of time in the profile.
  4. Parallelize compilation using -fjobs <N>

If all else fails, try breaking up large tasks into smaller ones and use inlining when runtime performance is important.