A Workload Partitioner for Heterogeneous Grids