Eliminate the remaining dependency on mgpu.