Dealing with compiler issues from *double[] declarations in cuda_util.cu