Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev stable #346

Merged
merged 216 commits into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
216 commits
Select commit Hold shift + click to select a range
6365089
trying to fix bug
Sep 22, 2023
30db888
Merge branch 'dev-stable' of https://github.com/QuantumPackage/qp2 in…
Sep 22, 2023
6564fe2
Merge branch 'dev-stable' of https://github.com/QuantumPackage/qp2 in…
Sep 26, 2023
8f60ad4
Merge branch 'dev-stable' of https://github.com/QuantumPackage/qp2 in…
Sep 26, 2023
d351319
Merge branch 'dev-stable' of https://github.com/QuantumPackage/qp2 in…
Jan 25, 2024
eaab1b8
few modif for HHG
AbdAmmar Mar 7, 2024
0c2f912
Merge branch 'dev-stable' of https://github.com/AbdAmmar/qp2 into dev…
AbdAmmar Mar 7, 2024
3f861a4
added the thresh_de_tc_angles keyword in minimize tc angles
eginer Mar 8, 2024
8031839
Merge branch 'dev-stable' of https://github.com/QuantumPackage/qp2 in…
eginer Mar 8, 2024
d405aea
few mom opt
AbdAmmar Mar 11, 2024
c3c7c69
Merge branch 'dev-stable' of https://github.com/AbdAmmar/qp2 into dev…
AbdAmmar Mar 11, 2024
d324dc8
Merge branch 'dev-stable' of https://github.com/QuantumPackage/qp2 in…
eginer Mar 12, 2024
1dbde56
O(N4) -> O(N3) transformations
AbdAmmar Mar 13, 2024
9c8073a
Merge branch 'dev-stable' of https://github.com/QuantumPackage/qp2 in…
eginer Mar 13, 2024
83ed573
few modif in ao tc integ
AbdAmmar Mar 19, 2024
d872d60
saving olympe2 modif
AbdAmmar Apr 6, 2024
f8bff47
added loops
AbdAmmar Mar 28, 2024
002aff9
working on mem reduction
AbdAmmar Mar 28, 2024
1a36d97
saving lcpq-ampere
AbdAmmar Apr 6, 2024
e65d791
saving lcpq
AbdAmmar Apr 6, 2024
2c899e6
few modif in grids
AbdAmmar Apr 20, 2024
e9dccd2
added spherical harmonics
eginer Apr 25, 2024
f35bc23
Begining to make some cleaning in TC
eginer Apr 24, 2024
22e3e63
Merge branch 'dev-stable' of https://github.com/QuantumPackage/qp2 in…
eginer Apr 25, 2024
05f35ab
Added properly the routines for the test of the Spherical Harmonics
eginer Apr 25, 2024
c3483df
Added properly the routines for the test of the Spherical Harmonics
eginer Apr 25, 2024
a730559
Merge branch 'dev-spher_harm' of https://github.com/QuantumPackage/qp…
eginer Apr 25, 2024
5c69a7c
removed stupid stuffs in spher_harm
eginer Apr 26, 2024
88e0b5f
Merge branch 'dev-stable' into dev-stable
AbdAmmar May 1, 2024
920573e
Merge pull request #35 from QuantumPackage/dev-stable
AbdAmmar May 1, 2024
40ea886
added NEED in local/slater_tc
eginer May 1, 2024
c150f2a
Merge branch 'dev-stable' of https://github.com/QuantumPackage/qp2 in…
eginer May 1, 2024
7dd08de
Merge branch 'QuantumPackage:dev-stable' into dev-stable
AbdAmmar May 1, 2024
0465a0f
added local/normal_order_old/NEED
eginer May 1, 2024
a607f84
Merge branch 'QuantumPackage:dev-stable' into dev-stable
AbdAmmar May 1, 2024
c50018e
TC SPRING CLEANING: BEGINNING
AbdAmmar May 1, 2024
da8eac8
TC-SCF CLEANED
AbdAmmar May 1, 2024
d43d960
TC-SCF CLEANED
AbdAmmar May 1, 2024
fd7a3c0
fixed conf
AbdAmmar May 1, 2024
23acd60
removed diag_three_elem_hf
AbdAmmar May 1, 2024
944c41b
Merge branch 'dev-stable' of github.com:QuantumPackage/qp2 into dev-s…
scemama May 2, 2024
bd8d45b
FIXED BUG IN OPTIM J_BH
AbdAmmar May 2, 2024
13785b2
fixed a bug in src/scf_utils/roothaan_hall_scf.irp.f
eginer May 3, 2024
96f2312
Merge branch 'dev-stable' of https://github.com/QuantumPackage/qp2 in…
eginer May 3, 2024
a1eb62f
Merge branch 'dev-stable' of github.com:AbdAmmar/qp2 into AbdAmmar-de…
scemama May 6, 2024
310872e
Merge branch 'AbdAmmar-dev-stable' into dev-stable
scemama May 6, 2024
76732ff
merge with Abdallah
eginer May 6, 2024
7335e29
updated get_fci_tc_conv.sh
eginer May 6, 2024
b14325f
Introducing qmckl
scemama May 6, 2024
fceee0d
Merge branch 'dev-stable' of github.com:QuantumPackage/qp2 into dev-s…
scemama May 6, 2024
109a956
does not compile but working on it
eginer May 6, 2024
b749796
still not compiling
eginer May 6, 2024
366afb2
compiling after some cleaning
eginer May 6, 2024
2a8b9e5
working on aos debug
AbdAmmar May 6, 2024
a2f03ff
Merge branch 'dev-stable' into dev-stable
AbdAmmar May 6, 2024
9c0350e
Merge pull request #36 from QuantumPackage/dev-stable
AbdAmmar May 6, 2024
17ae4d8
added tc_progs
eginer May 7, 2024
b7787f5
trying to speed up the PT2 in TC by transposing the array of tc integ…
eginer May 7, 2024
18fd70f
added get_d1_transp.irp.f
eginer May 7, 2024
687259c
working on the matrix elements both
eginer May 7, 2024
42fdb3c
it works with new routines for pt2 tc
eginer May 7, 2024
22241d5
Merge branch 'dev-stable' of https://github.com/QuantumPackage/qp2 in…
eginer May 7, 2024
a38bf00
updated default keywords in tc_keywords and ao_twoe_e_ints
eginer May 8, 2024
2af293f
minor modifs in BH jastrows
eginer May 8, 2024
812e759
minor modifs in plugins/local/non_h_ints_mu/jast_deriv_utils_vect.irp.f
eginer May 10, 2024
6e2f28b
COLLAPSE(4) -> COLLAPSE(3)
AbdAmmar May 11, 2024
8eea5d7
fixed a bug in cholesk_ao_transp
eginer May 15, 2024
c6a6163
added f_hf with cholesky by default
eginer May 16, 2024
ce042fb
basis set correction with cholesky works for hf
eginer May 21, 2024
a6824a4
Merge pull request #336 from QuantumPackage/dev-stable
eginer May 21, 2024
112f113
fixed forgotten stuffs in normal_order_old/NEED
eginer May 21, 2024
8c4183c
Merge pull request #337 from QuantumPackage/dev-spher_harm
eginer May 21, 2024
723ab06
Merge branch 'dev-stable' of https://github.com/QuantumPackage/qp2 in…
eginer May 21, 2024
6fb0f2a
modified scripts/get_fci_tc_conv.sh according to new printing
eginer May 21, 2024
fca30b9
minor modifs
eginer May 21, 2024
4dd4762
Merge branch 'dev-stable' of https://github.com/QuantumPackage/qp2 in…
eginer May 22, 2024
3600c3c
removed stupid dead link for PYSCF_EOMCC.py
eginer May 22, 2024
957dc8b
removed prints in plugins/local/tc_bi_ortho/tc_h_eigvectors.irp.f
May 22, 2024
29da3b6
bypass one_e_tr_dm_mo for large mo_num & n_states
AbdAmmar May 22, 2024
70f8019
removed stupid print in tc_keywords/EZFIO.cfg
eginer May 23, 2024
49a96d4
added f_hf_cholesky without big storage in memory
eginer May 23, 2024
00a9fdc
Merge branch 'dev-stable' of https://github.com/QuantumPackage/qp2 in…
eginer May 23, 2024
70745cb
added sparse cholesky mu_of_r
eginer May 23, 2024
1e886ac
implemented the f_hf_sparse for open systems in basis set correction
eginer May 27, 2024
4d18a01
changed the default in mu_of_r_potential
eginer May 27, 2024
09d9a81
Added stop in (T)
scemama May 27, 2024
ed8cfdc
Added print of the error bar in (T)
scemama May 27, 2024
b773a36
fixed uninitialized variable in cholesky'
scemama May 31, 2024
0dca6cf
block size in cholesky
scemama May 31, 2024
0a3d462
Clean up openmp in cholesky
scemama May 31, 2024
b743201
Use integer*8 in cholesky
scemama May 31, 2024
38d386d
Debug cholesky
scemama Jun 2, 2024
ff59e9e
added print in src/ao_two_e_ints/cholesky.irp.f
eginer Jun 2, 2024
1b48f30
merged
eginer Jun 2, 2024
c1ca673
Added omp_lib.F file
scemama Jun 4, 2024
5c97da4
Merge branch 'dev-stable' of github.com:QuantumPackage/qp2 into dev-s…
scemama Jun 4, 2024
2a9b8c5
omp_lib was a bad idea...
scemama Jun 4, 2024
c95a0b2
Disk-based cholesky
scemama Jun 4, 2024
b9f041e
More I/O in Cholesky
scemama Jun 4, 2024
19286be
Initialization
scemama Jun 5, 2024
36a2f0b
Fixed cholesky
scemama Jun 5, 2024
2241096
Trying to improve mmap performance
scemama Jun 6, 2024
6ae162b
Disk-based cholesky OK
scemama Jun 7, 2024
af89737
Typo in mmap
scemama Jun 7, 2024
f58df5e
Added do_mo_cholesky
scemama Jun 7, 2024
e55390c
Type error in cholesky
scemama Jun 7, 2024
1b8e680
Merge branch 'dev-stable' into cholesky
scemama Jun 7, 2024
b080a7a
Clean Cholesky MO
scemama Jun 7, 2024
ca98a6b
Fixed previous commit
scemama Jun 7, 2024
7e1ed69
Starting Cholesky transition
scemama Jun 7, 2024
bd53458
Building mo cache from cholesky
scemama Jun 10, 2024
10fb3a0
Introducing dgemm and dgemv to get integrals
scemama Jun 10, 2024
47b8070
Cache map in integer*4
scemama Jun 11, 2024
a4516fb
Accelerated cache-map access
scemama Jun 11, 2024
82654ef
Optimized get_integrals
scemama Jun 11, 2024
90c3db3
Accelerated cache
scemama Jun 11, 2024
7ecc086
Introduce hij_cache in PT2
scemama Jun 12, 2024
acc0b97
Inline past_d1 and past_d2
scemama Jun 13, 2024
70317b2
Put mo_integrals_cache_shift in EZFIO
scemama Jun 13, 2024
d89682c
Improved disk access in Cholesky
scemama Jun 13, 2024
e876f63
Asyc Fortran I/O
scemama Jun 14, 2024
f671c66
Use less memory in Cholesky
scemama Jun 17, 2024
c6712b0
Merge branch 'master' into dev-stable
scemama Jun 18, 2024
4b578d9
mmap is now shared in cholesky
scemama Jun 20, 2024
b6b169c
Updated documentation
scemama Jun 20, 2024
42746e1
Merge branch 'dev-stable' of github.com:QuantumPackage/qp2 into dev-s…
scemama Jun 20, 2024
7e45c51
Introducing gpu_x86
scemama Jun 25, 2024
0c9245d
Merge pull request #37 from QuantumPackage/dev-stable
AbdAmmar Jun 26, 2024
646607a
1st commit
AbdAmmar Jun 26, 2024
a2f4bc2
GPU acceleration selection in configure
scemama Jun 26, 2024
1d0bac2
v0
AbdAmmar Jun 26, 2024
dd75250
Merge branch 'dev-stable' of github.com:AbdAmmar/qp2 into dev-stable
scemama Jun 26, 2024
a9d2f0e
Working on TC ints. Not well tested
scemama Jun 26, 2024
48c54fc
Merge pull request #38 from QuantumPackage/dev-stable
AbdAmmar Jun 26, 2024
5d80cb7
Separated gpu and gpu_arch
scemama Jun 27, 2024
6c02ac0
Separated gpu and gpu_arch
scemama Jun 27, 2024
fa6d141
Introducing GPU in CCSD
scemama Jun 27, 2024
caec518
Added Nvidia module
scemama Jun 28, 2024
461e216
few modif in TC int
AbdAmmar Jun 28, 2024
d3d8902
Move GPU modules to plugins
scemama Jun 28, 2024
85b1035
Working on CCSD
scemama Jun 28, 2024
a5f4f05
Fixing compile
scemama Jun 28, 2024
c7df9a7
Fixing again actions
scemama Jun 28, 2024
b467bef
Forgot file
scemama Jun 28, 2024
73066b4
issue with linking with CUDA
AbdAmmar Jun 28, 2024
860121d
H_oo on GPU
scemama Jun 29, 2024
d3c1994
H_vv
scemama Jul 1, 2024
44a7729
H_ finished in CCSD
scemama Jul 1, 2024
2bead95
Fxied GPU interface for gfortran
scemama Jul 2, 2024
447cdcd
Working on r1
scemama Jul 2, 2024
92fe3a6
Working on r1
scemama Jul 2, 2024
6dfa8f8
Merge branch 'dev-stable' of github.com:QuantumPackage/qp2 into dev-s…
scemama Jul 3, 2024
cc09f8c
Minor changes in Cholesky
scemama Jul 3, 2024
2f8e7bd
Updated to read CHolesky MO integrals from TREXIO
scemama Jul 3, 2024
d686972
Merge branch 'dev-stable' of https://github.com/QuantumPackage/qp2 in…
scemama Jul 3, 2024
7ceb8fd
Finished r1
scemama Jul 3, 2024
a788426
Working on r2
scemama Jul 4, 2024
5b1e5f8
Working on r2
scemama Jul 4, 2024
f09e91c
Working on CCSD GPU
scemama Jul 8, 2024
9ad69bb
GPU accelerated CCSD
scemama Jul 9, 2024
dd9c6dc
Introducing dpcpp
scemama Jul 9, 2024
44b8e22
Fixed sycl
scemama Jul 9, 2024
6c275d5
Fix intent
scemama Jul 9, 2024
e4ad73a
Merge branch 'dev-stable' of github.com:QuantumPackage/qp2 into dev-s…
scemama Jul 9, 2024
f5cf674
Fix link stage for intel gpus
scemama Jul 9, 2024
d219dc1
beginning to put cholesky in CASSCF
eginer Jul 11, 2024
31ec3ac
correct transformation of cholesky vectors on the NO basis
eginer Jul 11, 2024
56450ed
introduced functions mimicking the arrays
eginer Jul 11, 2024
d1ef3e1
Merge branch 'dev-stable' of https://github.com/QuantumPackage/qp2 in…
scemama Jul 12, 2024
505d100
Choleskization of the CASSCF
eginer Jul 12, 2024
d7bf334
Merge branch 'dev-stable' of https://github.com/QuantumPackage/qp2 in…
eginer Jul 12, 2024
4a9a11c
GPU acceleration compute_tc_int
scemama Jul 12, 2024
228796c
split the mo_optimization into mo_optimizatio_utils and mo_optimization
eginer Jul 12, 2024
cbe4400
Merge branch 'dev-stable' of github.com:QuantumPackage/qp2 into dev-s…
scemama Jul 12, 2024
6985d4d
the casscf does not work with mo optimization ...
eginer Jul 12, 2024
31028f8
fixed some weird dependencies in TC, introduced an AO cholesky 2e fun…
eginer Jul 16, 2024
4af118c
Merge branch 'dev-stable' of https://github.com/QuantumPackage/qp2 in…
eginer Jul 16, 2024
a0140b9
added mu_of_r_mean_field.irp.f
eginer Jul 24, 2024
cb8bef2
added gradients of mu_mf
eginer Jul 24, 2024
edf3a27
rank_max
scemama Jul 29, 2024
4d79bd1
Merge pull request #39 from QuantumPackage/dev-stable
AbdAmmar Jul 29, 2024
eb236e0
Merge branch 'dev-stable' of https://github.com/AbdAmmar/qp2 into dev…
AbdAmmar Jul 29, 2024
4d54672
Fix state following when N_states_diag is too small
scemama Jul 31, 2024
b6b0ed5
WORKING ON DEBUG CUDA-INTEG
AbdAmmar Aug 1, 2024
f43ee8c
int2_grad1_u12_ao is computed correctly on CUDA
AbdAmmar Aug 1, 2024
76ec028
fix nb of blocks autom
AbdAmmar Aug 2, 2024
4bd8b71
CuTC integrals: OK
AbdAmmar Aug 2, 2024
8e0fe19
fixed path for install
AbdAmmar Aug 3, 2024
c4b19af
cuda tc-integrals tested
AbdAmmar Aug 3, 2024
672fdfd
cuda tc-integrals tested
AbdAmmar Aug 3, 2024
e20d44c
Merge branch 'dev-stable' of https://github.com/AbdAmmar/qp2 into dev…
AbdAmmar Aug 3, 2024
dee4407
devide BH jast coeff by 2 direct
AbdAmmar Aug 4, 2024
67a2f0e
openmp issue solved
AbdAmmar Aug 5, 2024
4744fc7
openmp issue solved
AbdAmmar Aug 5, 2024
84445aa
Combine calculation of Left & RIGHT MOs in r
AbdAmmar Aug 8, 2024
09cf7da
Merge branch 'dev-stable' of https://github.com/AbdAmmar/qp2 into dev…
AbdAmmar Aug 8, 2024
df1c27c
Optim in int2_grad1_u12_bimo_t
AbdAmmar Aug 8, 2024
2b24424
2e-noL with CUDA
AbdAmmar Aug 8, 2024
4e91431
added 1e-noL with CUDA
AbdAmmar Aug 10, 2024
bf15b68
add normal-ordering with CuTC
AbdAmmar Aug 13, 2024
2e6df70
cleaning in cpu vs gpu comparison
AbdAmmar Aug 13, 2024
674635c
remove double counting of nuclear repulsion
AbdAmmar Aug 27, 2024
65bef0b
new attempt of mu(r)
eginer Aug 27, 2024
07c4db5
Merge pull request #40 from QuantumPackage/dev-stable
AbdAmmar Aug 27, 2024
01331ff
Merge pull request #344 from AbdAmmar/dev-stable
AbdAmmar Aug 27, 2024
aa213ea
fix transition numbering
Ydrnan Sep 5, 2024
9ea46e4
Merge pull request #345 from Ydrnan/dev-stable-properties
Ydrnan Sep 5, 2024
1221d48
failure attempts in mu(r)
eginer Sep 5, 2024
d9cd6e2
Merge branch 'dev-stable' of https://github.com/QuantumPackage/qp2 in…
eginer Sep 5, 2024
974a497
starting jpsiking
eginer Sep 8, 2024
869efdd
new jpsiking is working on He
eginer Sep 8, 2024
316d81e
fixed termination bug in cholesky for small basis
eginer Sep 9, 2024
d07fb68
added mu_of_r.irp.f
eginer Sep 9, 2024
86cc169
fixed mu_of_r NEED
eginer Sep 9, 2024
acd2997
Merge branch 'dev-stable' of https://github.com/QuantumPackage/qp2 in…
eginer Sep 9, 2024
9a284e7
fixed dependencies in jastrow and mu_of_r
eginer Sep 9, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
23 changes: 0 additions & 23 deletions bin/zcat

This file was deleted.

63 changes: 63 additions & 0 deletions config/gfortran_debug_mkl.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Common flags
##############
#
# -ffree-line-length-none : Needed for IRPF90 which produces long lines
# -lblas -llapack : Link with libblas and liblapack libraries provided by the system
# -I . : Include the curent directory (Mandatory)
#
# --ninja : Allow the utilisation of ninja. (Mandatory)
# --align=32 : Align all provided arrays on a 32-byte boundary
#
#
[COMMON]
FC : gfortran -g -ffree-line-length-none -I . -fPIC -std=legacy
LAPACK_LIB : -I${MKLROOT}/include -L${MKLROOT}/lib/intel64 -Wl,--no-as-needed -lmkl_gf_lp64 -lmkl_core -lpthread -lm -ldl -lmkl_gnu_thread -lgomp -fopenmp
IRPF90 : irpf90
IRPF90_FLAGS : --ninja --align=32 --assert -DSET_NESTED

# Global options
################
#
# 1 : Activate
# 0 : Deactivate
#
[OPTION]
MODE : DEBUG ; [ OPT | PROFILE | DEBUG ] : Chooses the section below
CACHE : 0 ; Enable cache_compile.py
OPENMP : 1 ; Append OpenMP flags

# Optimization flags
####################
#
# -Ofast : Disregard strict standards compliance. Enables all -O3 optimizations.
# It also enables optimizations that are not valid
# for all standard-compliant programs. It turns on
# -ffast-math and the Fortran-specific
# -fno-protect-parens and -fstack-arrays.
[OPT]
FCFLAGS : -Ofast

# Profiling flags
#################
#
[PROFILE]
FC : -p -g
FCFLAGS : -Ofast

# Debugging flags
#################
#
# -fcheck=all : Checks uninitialized variables, array subscripts, etc...
# -g : Extra debugging information
#
[DEBUG]
#FCFLAGS : -g -msse4.2 -fcheck=all -Waliasing -Wampersand -Wconversion -Wsurprising -Wintrinsics-std -Wno-tabs -Wintrinsic-shadow -Wline-truncation -Wreal-q-constant -Wuninitialized -fbacktrace -ffpe-trap=zero,overflow,underflow -finit-real=nan
FCFLAGS : -g -mavx -fcheck=all -Waliasing -Wampersand -Wconversion -Wsurprising -Wintrinsics-std -Wno-tabs -Wintrinsic-shadow -Wline-truncation -Wreal-q-constant -Wuninitialized -fbacktrace -ffpe-trap=zero,overflow -finit-real=nan

# OpenMP flags
#################
#
[OPENMP]
FC : -fopenmp
IRPF90_FLAGS : --openmp

40 changes: 33 additions & 7 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,16 @@ Usage:
$(basename $0) -c <file>
$(basename $0) -h
$(basename $0) -i <package>
$(basename $0) -g [nvidia|intel|none]

Options:
-c <file> Define a COMPILATION configuration file,
in "${QP_ROOT}/config/".
-h Print the HELP message
-i <package> INSTALL <package>. Use at your OWN RISK:
no support will be provided for the installation of
dependencies.
-c <file> Define a COMPILATION configuration file,
in "${QP_ROOT}/config/".
-h Print the HELP message
-i <package> INSTALL <package>. Use at your OWN RISK:
no support will be provided for the installation of
dependencies.
-g [nvidia|intel|none] Choose GPU acceleration

Example:
./$(basename $0) -c config/gfortran.cfg
Expand Down Expand Up @@ -83,7 +85,7 @@ function execute () {
PACKAGES=""


while getopts "d:c:i:h" c ; do
while getopts "d:c:i:g:h" c ; do
case "$c" in
c)
case "$OPTARG" in
Expand All @@ -100,6 +102,9 @@ while getopts "d:c:i:h" c ; do
"") help ; break;;
*) PACKAGES="${PACKAGE} $OPTARG"
esac;;
g)
GPU=$OPTARG;
break;;
h)
help
exit 0;;
Expand All @@ -109,6 +114,27 @@ while getopts "d:c:i:h" c ; do
esac
done

# Handle GPU acceleration
rm -f ${QP_ROOT}/src/gpu_arch
case "$GPU" in
amd) # AMD
echo "Activating AMD GPU acceleration"
ln -s ${QP_ROOT}/plugins/local/gpu_amd ${QP_ROOT}/src/gpu_arch
;;
intel) # Intel
echo "Activating Intel GPU acceleration (EXPERIMENTAL)"
ln -s ${QP_ROOT}/plugins/local/gpu_intel ${QP_ROOT}/src/gpu_arch
;;
nvidia) # Nvidia
echo "Activating Nvidia GPU acceleration"
ln -s ${QP_ROOT}/plugins/local/gpu_nvidia ${QP_ROOT}/src/gpu_arch
;;
*) # No Acceleration
echo "Disabling GPU acceleration"
ln -s ${QP_ROOT}/plugins/local/gpu_x86 ${QP_ROOT}/src/gpu_arch
;;
esac

# Trim leading and trailing spaces
PACKAGES=$(echo $PACKAGES | xargs)

Expand Down
9 changes: 9 additions & 0 deletions etc/paths.rc
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@ function qp_prepend_export () {
fi
}

function qp_append_export () {
eval "value_1="\${$1}""
if [[ -z $value_1 ]] ; then
echo "${2}:"
else
echo "${value_1}:${2}"
fi
}

export PYTHONPATH=$(qp_prepend_export "PYTHONPATH" "${QP_EZFIO}/Python":"${QP_PYTHON}")

export PATH=$(qp_prepend_export "PATH" "${QP_PYTHON}":"${QP_ROOT}"/bin:"${QP_ROOT}"/ocaml)
Expand Down
2 changes: 1 addition & 1 deletion external/irpf90
Submodule irpf90 updated from beac61 to 4ab1b1
8 changes: 0 additions & 8 deletions plugins/local/basis_correction/51.basis_c.bats
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,6 @@ function run_sd() {
eq $energy1 $1 $thresh
}

@test "O2 CAS" {
qp set_file o2_cas.gms.ezfio
qp set_mo_class -c "[1-2]" -a "[3-10]" -d "[11-46]"
run -149.72435425 3.e-4 10000
qp set_mo_class -c "[1-2]" -a "[3-10]" -v "[11-46]"
run_md -0.1160222327 1.e-6
}


@test "LiF RHF" {
qp set_file lif.ezfio
Expand Down
4 changes: 0 additions & 4 deletions plugins/local/basis_correction/basis_correction.irp.f
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ program basis_correction
touch read_wf
no_core_density = .True.
touch no_core_density
if(io_mo_two_e_integrals .ne. "Read")then
provide ao_two_e_integrals_in_map
endif
provide mo_two_e_integrals_in_map
call print_basis_correction
end

2 changes: 1 addition & 1 deletion plugins/local/basis_correction/print_routine.irp.f
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ subroutine print_basis_correction
print*, '****************************************'
print*, '****************************************'
print*, 'mu_of_r_potential = ',mu_of_r_potential
if(mu_of_r_potential.EQ."hf")then
if(mu_of_r_potential.EQ."hf".or.mu_of_r_potential.EQ."hf_old".or.mu_of_r_potential.EQ."hf_sparse")then
print*, ''
print*,'Using a HF-like two-body density to define mu(r)'
print*,'This assumes that HF is a qualitative representation of the wave function '
Expand Down
18 changes: 18 additions & 0 deletions plugins/local/basis_correction/test_chol_bas.irp.f
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
program pouet
implicit none
call test
end
subroutine test
implicit none
! provide mos_times_cholesky_r1
! provide mos_times_cholesky_r2
integer :: ipoint
double precision :: accu,weight
accu = 0.d0
do ipoint = 1, n_points_final_grid
weight = final_weight_at_r_vector(ipoint)
! accu += dabs(mu_of_r_hf(ipoint) - mu_of_r_hf_old(ipoint)) * weight
accu += dabs(f_hf_cholesky_sparse(ipoint) - f_hf_cholesky(ipoint)) * weight
enddo
print*,'accu = ',accu
end
95 changes: 94 additions & 1 deletion plugins/local/bi_ort_ints/bi_ort_ints.irp.f
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,15 @@ program bi_ort_ints
! call test_3e
! call test_5idx
! call test_5idx2
call test_4idx()
! call test_4idx()
!call test_4idx_n4()
!call test_4idx2()
!call test_5idx2
!call test_5idx

call test_mos_in_r()
call test_int2_grad1_u12_bimo_t()

end

subroutine test_5idx2
Expand Down Expand Up @@ -472,4 +475,94 @@ subroutine test_4idx()
return
end

! ---

subroutine test_mos_in_r()

implicit none

integer :: i, j
double precision :: err_tot, nrm_tot, err_loc, acc_thr

PROVIDE mos_l_in_r_array_transp_old mos_r_in_r_array_transp_old
PROVIDE mos_l_in_r_array_transp mos_r_in_r_array_transp

acc_thr = 1d-13

err_tot = 0.d0
nrm_tot = 0.d0
do i = 1, mo_num
do j = 1, n_points_final_grid
err_loc = dabs(mos_l_in_r_array_transp_old(j,i) - mos_l_in_r_array_transp(j,i))
if(err_loc > acc_thr) then
print*, " error on", j, i
print*, " old res", mos_l_in_r_array_transp_old(j,i)
print*, " new res", mos_l_in_r_array_transp (j,i)
stop
endif
err_tot = err_tot + err_loc
nrm_tot = nrm_tot + dabs(mos_l_in_r_array_transp_old(j,i))
enddo
enddo
print *, ' absolute accuracy on mos_l_in_r_array_transp (%) =', 100.d0 * err_tot / nrm_tot

err_tot = 0.d0
nrm_tot = 0.d0
do i = 1, mo_num
do j = 1, n_points_final_grid
err_loc = dabs(mos_r_in_r_array_transp_old(j,i) - mos_r_in_r_array_transp(j,i))
if(err_loc > acc_thr) then
print*, " error on", j, i
print*, " old res", mos_r_in_r_array_transp_old(j,i)
print*, " new res", mos_r_in_r_array_transp (j,i)
stop
endif
err_tot = err_tot + err_loc
nrm_tot = nrm_tot + dabs(mos_r_in_r_array_transp_old(j,i))
enddo
enddo
print *, ' absolute accuracy on mos_r_in_r_array_transp (%) =', 100.d0 * err_tot / nrm_tot

return
end

! ---

subroutine test_int2_grad1_u12_bimo_t()

implicit none
integer :: i, j, ipoint, m
double precision :: err_tot, nrm_tot, err_loc, acc_thr

PROVIDE int2_grad1_u12_bimo_t_old
PROVIDE int2_grad1_u12_bimo_t

acc_thr = 1d-13

err_tot = 0.d0
nrm_tot = 0.d0
do i = 1, mo_num
do j = 1, mo_num
do m = 1, 3
do ipoint = 1, n_points_final_grid
err_loc = dabs(int2_grad1_u12_bimo_t_old(ipoint,m,j,i) - int2_grad1_u12_bimo_t(ipoint,m,j,i))
if(err_loc > acc_thr) then
print*, " error on", ipoint, m, j, i
print*, " old res", int2_grad1_u12_bimo_t_old(ipoint,m,j,i)
print*, " new res", int2_grad1_u12_bimo_t (ipoint,m,j,i)
stop
endif
err_tot = err_tot + err_loc
nrm_tot = nrm_tot + dabs(int2_grad1_u12_bimo_t_old(ipoint,m,j,i))
enddo
enddo
enddo
enddo
print *, ' absolute accuracy on int2_grad1_u12_bimo_t (%) =', 100.d0 * err_tot / nrm_tot

return
end

! ---


15 changes: 7 additions & 8 deletions plugins/local/bi_ort_ints/no_dressing.irp.f
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,12 @@

BEGIN_PROVIDER [double precision, noL_0e]

BEGIN_DOC
!
! < Phi_left | L | Phi_right >
!
END_DOC

implicit none
integer :: i, j, k, ipoint
double precision :: t0, t1
Expand All @@ -330,10 +336,6 @@
double precision, allocatable :: tmp_M(:,:), tmp_S(:), tmp_O(:), tmp_J(:,:)
double precision, allocatable :: tmp_M_priv(:,:), tmp_S_priv(:), tmp_O_priv(:), tmp_J_priv(:,:)


call wall_time(t0)
print*, " Providing noL_0e ..."

if(elec_alpha_num .eq. elec_beta_num) then

allocate(tmp(elec_beta_num))
Expand Down Expand Up @@ -708,10 +710,7 @@

endif

call wall_time(t1)
print*, " Wall time for noL_0e (min) = ", (t1 - t0)/60.d0

print*, " noL_0e = ", noL_0e
print*, " noL_0e =", noL_0e

END_PROVIDER

Expand Down
Loading
Loading