Skip to content

Commit

Permalink
Fix issues with the NVIDIA compiler (#2441)
Browse files Browse the repository at this point in the history
* Fix issues with NVIDIA compiler in dbt_types

* Fix issues with NVIDIA compiler
  • Loading branch information
fstein93 committed Dec 8, 2022
1 parent eb88d02 commit 3c4ada8
Show file tree
Hide file tree
Showing 4 changed files with 313 additions and 314 deletions.
3 changes: 1 addition & 2 deletions src/almo_scf_methods.F
Original file line number Diff line number Diff line change
Expand Up @@ -1755,8 +1755,7 @@ SUBROUTINE almo_scf_t_to_proj(t, p, eps_filter, orthog_orbs, nocc_of_domain, s,
para_env=para_env, &
blacs_env=blacs_env, &
upper_to_full=.TRUE.)
CALL dbcsr_filter(sigma_inv, &
eps=eps_filter)
CALL dbcsr_filter(sigma_inv, eps_filter)
CASE DEFAULT
CPABORT("Illegal MO overalp inversion algorithm")
END SELECT
Expand Down
16 changes: 8 additions & 8 deletions src/almo_scf_optimizer.F
Original file line number Diff line number Diff line change
Expand Up @@ -6299,7 +6299,7 @@ SUBROUTINE compute_gradient(m_grad_out, m_ks, m_s, m_t, m_t0, &
CALL dbcsr_scale(m_tmp_no_2, &
envelope_amplitude)
CALL dbcsr_set(m_tmp_no_3, 0.0_dp)
CALL dbcsr_filter(m_tmp_no_3, eps=eps_filter)
CALL dbcsr_filter(m_tmp_no_3, eps_filter)
CALL dbcsr_hadamard_product(m_tmp_no_1, &
m_tmp_no_2, &
m_tmp_no_3, &
Expand All @@ -6312,7 +6312,7 @@ SUBROUTINE compute_gradient(m_grad_out, m_ks, m_s, m_t, m_t0, &
m_quench_t, &
m_grad_out)
END IF
CALL dbcsr_filter(m_grad_out, eps=eps_filter)
CALL dbcsr_filter(m_grad_out, eps_filter)
CALL dbcsr_release(m_tmp_no_1)
CALL dbcsr_release(m_tmp_no_2)
Expand Down Expand Up @@ -6907,7 +6907,7 @@ SUBROUTINE compute_xalmos_from_main_var(m_var_in, m_t_out, m_quench_t, &
overlap_sqrti=m_sig_sqrti_ii_out)
END IF
CALL dbcsr_filter(m_t_out, eps=eps_filter)
CALL dbcsr_filter(m_t_out, eps_filter)
CALL dbcsr_release(m_tmp_no_1)
CALL dbcsr_release(m_tmp_oo_1)
Expand Down Expand Up @@ -7127,7 +7127,7 @@ SUBROUTINE compute_preconditioner(domain_prec_out, m_prec_out, m_ks, m_s, &
upper_to_full=.TRUE.)
END IF !skip_inversion
CALL dbcsr_filter(m_prec_out, eps=eps_filter)
CALL dbcsr_filter(m_prec_out, eps_filter)
ELSE
Expand Down Expand Up @@ -7186,7 +7186,7 @@ SUBROUTINE compute_preconditioner(domain_prec_out, m_prec_out, m_ks, m_s, &
!!! blacs_env=almo_scf_env%blacs_env,&
!!! upper_to_full=.TRUE.)
!!!CALL dbcsr_filter(prec_vv,&
!!! eps=almo_scf_env%eps_filter)
!!! almo_scf_env%eps_filter)
!!!
! re-create the matrix because desymmetrize is buggy -
Expand Down Expand Up @@ -7222,7 +7222,7 @@ SUBROUTINE compute_preconditioner(domain_prec_out, m_prec_out, m_ks, m_s, &
!CALL dbcsr_desymmetrize(almo_scf_env%matrix_sigma(ispin),&
! prec_oo)
!CALL dbcsr_filter(prec_oo,&
! eps=almo_scf_env%eps_filter)
! almo_scf_env%eps_filter)
!! invert using cholesky
!CALL dbcsr_create(prec_oo_inv,&
Expand Down Expand Up @@ -9322,7 +9322,7 @@ SUBROUTINE almo_scf_xalmo_trustr(qs_env, almo_scf_env, optimizer, quench_t, &
para_env=almo_scf_env%para_env, &
blacs_env=almo_scf_env%blacs_env, &
upper_to_full=.TRUE.)
CALL dbcsr_filter(m_s_inv, eps=almo_scf_env%eps_filter)
CALL dbcsr_filter(m_s_inv, almo_scf_env%eps_filter)
END IF ! s_inv
Expand Down Expand Up @@ -9784,7 +9784,7 @@ SUBROUTINE almo_scf_xalmo_trustr(qs_env, almo_scf_env, optimizer, quench_t, &
blacs_env=almo_scf_env%blacs_env, &
upper_to_full=.TRUE.)
CALL dbcsr_filter(m_model_hessian_inv(ispin), &
eps=almo_scf_env%eps_filter)
almo_scf_env%eps_filter)
END DO
ELSE
Expand Down

0 comments on commit 3c4ada8

Please sign in to comment.