Changing cuda_double_allocate to include size