Utils for the Coursera Heterogeneous Parallel Programmin Course