diff --git a/devel/ccsd_gpu/gpu.c b/devel/ccsd_gpu/gpu.c index fc118e9..e448fee 100644 --- a/devel/ccsd_gpu/gpu.c +++ b/devel/ccsd_gpu/gpu.c @@ -138,15 +138,15 @@ void compute_h_oo_chol_gpu(gpu_data* data, int igpu) double* d_cc_space_v_ov_chol = data[igpu].cc_space_v_ov_chol; double* d_tau_kau; - cudaStat = cudaMalloc((void **)&d_tau_kau, cholesky_mo_num*nV*nO * sizeof(double)); + cudaStat = cudaMallocManaged((void **)&d_tau_kau, cholesky_mo_num*nV*nO * sizeof(double), 1); assert(cudaStat == cudaSuccess); double* d_tmp_ovv; - cudaStat = cudaMalloc((void **)&d_tmp_ovv, nO*nV*nV * sizeof(double)); + cudaStat = cudaMallocManaged((void **)&d_tmp_ovv, nO*nV*nV * sizeof(double), 1); assert(cudaStat == cudaSuccess); double* d_tmp_vov; - cudaStat = cudaMalloc((void **)&d_tmp_vov, nV*nO*nV * sizeof(double)); + cudaStat = cudaMallocManaged((void **)&d_tmp_vov, nV*nO*nV * sizeof(double), 1); assert(cudaStat == cudaSuccess); for (size_t i=0 ; i', 'E(mu) + ', 'E(mu) + \alpha_0', & 'E(mu) + \alpha_0_s + \alpha_1_t', 'E(mu) + \alpha_0_r_s + \alpha_1_r_t' - print '(''|'',F6.1,''|'',5(F20.15,''|''))', mu_erf, energy_mu(istate), energy_mu(istate) + correction_mu(istate), energy_mu(istate) + & + print '(''|'',F6.2,''|'',5(F20.15,''|''))', mu_erf, energy_mu(istate), energy_mu(istate) + correction_mu(istate), energy_mu(istate) + & correction_alpha_0(istate), energy_mu(istate) + correction_alpha_1(istate), energy_mu(istate) + & correction_alpha_1_r(istate) enddo