heir icon indicating copy to clipboard operation
heir copied to clipboard

Support bootstrap in Mgmt/CKKS dialect and correctly determine MgmtAttr / RNS level

Open ZenithalHourlyRate opened this issue 1 year ago • 2 comments

Mainly from #1195, where a low-level openfhe.bootstrap is added but higher level of the compiler is not aware of how to manage it.

  • mulDepth is now interwined with bootstrap, hence all the RNS instantiation need to change. and #1176 way could not handle this. Should introduce a mgmt.bootstrap op and implement a bootstrap management pass (possibly related to #289, #1166).

    • I think the naive one is to greedily insert it when all level consumed, to get the pipeline running, then we will take time to optimize it instead of starting from complex solutions.
  • ckks does not have a bootstrap op for now.

ZenithalHourlyRate avatar Dec 17 '24 15:12 ZenithalHourlyRate

I think the naive one is to greedily insert it when all level consumed, to get the pipeline running, then we will take time to optimize it instead of starting from complex solutions.

+1, get something working first.

j2kun avatar Dec 17 '24 21:12 j2kun

This issue has 5 outstanding TODOs:

This comment was autogenerated by todo-backlinks

github-actions[bot] avatar Dec 18 '24 23:12 github-actions[bot]