1
0
mirror of https://gitlab.com/scemama/qp_plugins_scemama.git synced 2024-12-22 12:23:37 +01:00

Cleaning C

This commit is contained in:
Anthony Scemama 2023-08-05 01:47:59 +02:00
parent 699c555633
commit 3a43d6aea6

View File

@ -12,7 +12,6 @@ void gpu_upload(gpu_data* data,
double* t2) double* t2)
{ {
int lda; int lda;
const int cholesky_mo_num = data->cholesky_mo_num;
int ngpus = 1; int ngpus = 1;
if (MULTIGPU == 1) cudaGetDeviceCount(&ngpus); if (MULTIGPU == 1) cudaGetDeviceCount(&ngpus);
@ -33,7 +32,7 @@ void gpu_upload(gpu_data* data,
lda = nO*nO; lda = nO*nO;
cublasSetMatrix(nO*nO, nV*nV, sizeof(double), t2, lda, d_t2, lda); cublasSetMatrix(nO*nO, nV*nV, sizeof(double), t2, lda, d_t2, lda);
int m,n,k, lda, ldb, ldc; int lda, ldb, ldc;
double alpha, beta; double alpha, beta;
double* A; double* A;
double* B; double* B;
@ -219,7 +218,6 @@ void compute_h_vo_chol_gpu(gpu_data* data, int igpu)
double* d_t1 = data[igpu].t1; double* d_t1 = data[igpu].t1;
double* d_H_vo = data[igpu].H_vo; double* d_H_vo = data[igpu].H_vo;
double* d_tau_x = data[igpu].tau_x;
double* d_cc_space_f_vo = data[igpu].cc_space_f_vo; double* d_cc_space_f_vo = data[igpu].cc_space_f_vo;
double* d_cc_space_v_ov_chol = data[igpu].cc_space_v_ov_chol; double* d_cc_space_v_ov_chol = data[igpu].cc_space_v_ov_chol;
double* d_cc_space_v_vo_chol = data[igpu].cc_space_v_vo_chol; double* d_cc_space_v_vo_chol = data[igpu].cc_space_v_vo_chol;
@ -430,9 +428,7 @@ void compute_r2_space_chol_gpu(gpu_data* data, int nO, int nV, double* t1, doubl
double* d_cc_space_v_ovvo = data[igpu].cc_space_v_ovvo; double* d_cc_space_v_ovvo = data[igpu].cc_space_v_ovvo;
double* d_cc_space_v_ovov = data[igpu].cc_space_v_ovov; double* d_cc_space_v_ovov = data[igpu].cc_space_v_ovov;
double* d_cc_space_v_ovoo = data[igpu].cc_space_v_ovoo; double* d_cc_space_v_ovoo = data[igpu].cc_space_v_ovoo;
double* d_cc_space_f_oo = data[igpu].cc_space_f_oo;
double* d_cc_space_f_vo = data[igpu].cc_space_f_vo; double* d_cc_space_f_vo = data[igpu].cc_space_f_vo;
double* d_cc_space_f_vv = data[igpu].cc_space_f_vv;
double* d_tau = data[igpu].tau; double* d_tau = data[igpu].tau;
double* d_t1 = data[igpu].t1; double* d_t1 = data[igpu].t1;
double* d_t2 = data[igpu].t2; double* d_t2 = data[igpu].t2;
@ -2004,12 +2000,6 @@ double ccsd_energy_space_gpu(gpu_data* data)
#pragma omp parallel num_threads(ngpus) #pragma omp parallel num_threads(ngpus)
{ {
int m,n,k, lda, ldb, ldc;
double alpha, beta;
double* A;
double* B;
double* C;
int igpu = omp_get_thread_num(); int igpu = omp_get_thread_num();
cudaSetDevice(igpu); cudaSetDevice(igpu);