An Investigation Into Partitioning Algorithms for Automatic Heterogeneous Compilers