1
0
mirror of https://github.com/TREX-CoE/qmckl.git synced 2024-12-22 20:36:01 +01:00
Commit Graph

772 Commits

Author SHA1 Message Date
Aurélien Delval
9428eaa19e Implement computation of tmp_c and dtmp_c in OpenACC
These 2 kernels seem to give good speedup compared to the CPU BLAS
versions. However, the current GPU implementation of factor_een_deriv seems to
be slightly slower (on the tested machine).

TODO:
- Try to improve factor_een_deriv GPU implem
- Try out a cuBLAS implementation of tmp_c and dtmp_c
2022-03-30 16:16:06 +02:00
Aurelien Delval
99306473a4 Start OpenACC implementation in Jastro, including compute_dtmp_c 2022-03-30 09:01:32 +02:00
91811079d3 Fixed bugs. Travis OK. 2022-03-28 18:29:29 +02:00
b9cd2ed1ab Fix type error 2022-03-28 18:26:20 +02:00
bab87884cd Accelerated HPC AO->MO transformation 2022-03-28 17:58:03 +02:00
1b0bfd40be HPC version of AO->MO transformation 2022-03-28 17:37:50 +02:00
9b1f648437 Accelerated AO->MO transformation 2022-03-28 16:53:36 +02:00
Aurelien Delval
383c6ac78a Add OFFLOAD_FLAGS, OFFLOAD_CFLAGS and OFFLOAD_FCFLAGS vars to configure 2022-03-28 07:58:01 +02:00
Aurelien Delval
bcc49ca312 Minor fixes to previous commit
TODO Start modifying dedicated function to implement offloading

Also, as of now, Fortran preprocessor flags should be passed manually,
we need to manage this in the configure.ac in the future. For now, when
using gfortran, you should pass FCFLAGS="-cpp -DWITH_OPENMP_OFFLOAD" to
enable offloading.
2022-03-25 13:03:35 +01:00
Aurelien Delval
5e3231e7e3 Add selection mechanism for offload mode in Jastrow
This system adds an additional field to the QMCkl context to store the
offload mode currently in use for each kernel (in this commit, this has
been implemented for Jastrow as an example). This will be useful to test
different offloading versions that can be easily toggled on/off at
compilation and at runtime.
2022-03-24 16:35:29 +01:00
5ecb1d6326 Faster AOs 2022-03-21 18:32:39 +01:00
Gianfranco Abrusci
3ce162a384 dtmp_c done 2022-03-17 22:27:10 +01:00
Gianfranco Abrusci
6b45157212 tmp_c done 2022-03-17 17:46:21 +01:00
Gianfranco Abrusci
b222ee3156 lkpm works 2022-03-14 11:21:31 +01:00
9124c9209a Merge branch 'master' of github.com:TREX-CoE/qmckl 2022-03-11 13:16:48 +01:00
Gianfranco Abrusci
712f595ed6 Merge branch 'jastrow_c' into qmckl_compute_dim_cord_vect_f 2022-03-09 11:23:43 +01:00
Gianfranco Abrusci
88e3fc1100 Merge branch 'master' into jastrow_c 2022-03-09 11:18:45 +01:00
Gianfranco Abrusci
a4ba5deac4 compute_dim_cord_vect done 2022-03-09 11:15:15 +01:00
Gianfranco Abrusci
d13693a822 to be cleaned from print 2022-03-02 10:18:45 +01:00
5b6f530255 Fix debug build
Added missing preprocessor wrapper
2022-03-01 14:17:38 +01:00
8b7b56b57b Fix broken build
Recent HPC-related additions break the current build (make) process. This is because the HPC-related functions are not wrapped in the preprocessor ifdef statement.
2022-02-28 22:28:11 +01:00
Gianfranco Abrusci
4fac9f06c9 to be checked 2022-02-28 17:47:24 +01:00
22cd823edf Working on generalized contractions 2022-02-27 23:31:52 +01:00
26fe759209 Added examples.org 2022-02-27 12:35:58 +01:00
5e35df226a Fortran interface 2022-02-27 11:18:26 +01:00
ad86cb7d67 Working on HPC version of AOs 2022-02-25 20:39:20 +01:00
b6a31b8c58 Optimize AOs 2022-02-25 16:30:16 +01:00
ff526a18cb Fix Clang build 2022-02-25 13:57:13 +01:00
1a5b76157b Updated documentation 2022-02-24 19:06:19 +01:00
Gianfranco Abrusci
3bd249176f Merge branch 'jastrow_c' into qmckl_compute_een_rescaled_n 2022-02-22 14:55:55 +01:00
Gianfranco Abrusci
5151f1bd36 Merge branch 'master' into jastrow_c 2022-02-22 14:53:00 +01:00
Gianfranco Abrusci
2427d1b56e working qmckl_compute_een_rescaled_n 2022-02-22 14:52:21 +01:00
d919c53c42 Fix bug in HPC AOs 2022-02-19 19:24:18 +01:00
73399e24ec Fix fortran strings in trexio interface 2022-02-18 01:24:37 +01:00
c93e7828c5 Added qmckl_context_touch for benchmarking 2022-02-17 22:29:53 +01:00
22e281560e Accelerate AOs in HPC 2022-02-17 15:37:57 +01:00
41c0effa10 Accelerated AOs in HPC 2022-02-17 12:36:16 +01:00
7fe73e0104 Fix bug in fast AOs 2022-02-17 01:36:45 +01:00
cc4d0f62f8 Fix CI build 2022-02-16 19:49:05 +01:00
733d941c30 Optimized polynomials 2022-02-16 19:40:14 +01:00
Gianfranco Abrusci
bb2e8384e8 fix reorder of nex function 2022-02-16 18:13:57 +01:00
Gianfranco Abrusci
bf8cec7f3c reordered index in ee_distance_rescaled that makes sense 2022-02-16 18:09:02 +01:00
e90e9a531c Added HPC version of polynomials 2022-02-16 15:14:41 +01:00
Gianfranco Abrusci
05cfd10cc4 completed qmckl_compute_factor_en 2022-02-16 14:14:05 +01:00
7ab099f4f5 Prepare polynomials for HPC 2022-02-16 01:12:42 +01:00
1c681d4d7e Rewrote AOs HPC in C 2022-02-16 00:21:37 +01:00
d83dad53cf OpenMP in HPC version 2022-02-15 16:42:47 +01:00
685b7201fc Accelerated AOs 2022-02-15 00:44:47 +01:00
Gianfranco Abrusci
85e0a6e8e0 Merge branch 'master' into jastrow_c 2022-02-14 12:30:02 +01:00
v1j4y
8ed7a8b672 Added dim to factor_een and factor_een_deriv_e. 2022-02-11 17:35:07 +01:00
v1j4y
e2a678cc5c Cleaned tmp_c and dtmp_c. 2022-02-11 17:31:17 +01:00
v1j4y
2f05df5109 Fixed een_rescaled_n_deriv_e. 2022-02-11 17:30:15 +01:00
v1j4y
367d0ff108 Fixed een_rescaled_n. 2022-02-11 17:19:36 +01:00
v1j4y
cf005084f1 Fixed een_rescaled_e_deriv_d. 2022-02-11 17:06:17 +01:00
v1j4y
a7ec3585a7 reorder indices for een_rescaled_e. 2022-02-11 16:19:31 +01:00
vijay
6e4b7f6722
Merge branch 'master' into reorder_indices_jastrow 2022-02-11 16:13:44 +01:00
bac6bf9cb8 Merge branch 'master' of github.com:TREX-CoE/qmckl 2022-02-11 16:07:37 +01:00
dcb392c0af Swap indices 1..5 with points in AOs/MOs 2022-02-11 16:07:25 +01:00
v1j4y
2c7a1eb2c6 Fix factor_en_deriv_e. 2022-02-11 16:06:19 +01:00
vijay
82c5f54573
Merge branch 'master' into reorder_indices_jastrow 2022-02-11 15:58:56 +01:00
v1j4y
1bb1e1f7d3 Fix bug in calculation of en_distance_rescaled_deriv_e. 2022-02-11 15:50:58 +01:00
v1j4y
f22e2b1d72 Working on factor_en. 2022-02-11 15:45:16 +01:00
v1j4y
19ad64a80b Merge branch 'reorder_indices_jastrow' of https://github.com/v1j4y/qmckl into reorder_indices_jastrow 2022-02-11 15:38:15 +01:00
v1j4y
3348781cc2 Fixed ee_distances_rescaled_deriv_e. 2022-02-11 15:37:55 +01:00
vijay
fdf25fd6fa
Merge branch 'master' into reorder_indices_jastrow 2022-02-11 15:37:27 +01:00
v1j4y
88e2f62d7f Fixed ee_distance_rescaled index order. 2022-02-11 15:36:08 +01:00
v1j4y
71b0bbfaff Fix test for drift. 2022-02-11 15:28:11 +01:00
v1j4y
da3c8c7cf9 Working on ee_distance_deriv_e. 2022-02-11 15:27:18 +01:00
v1j4y
fa535bdcd1 Added size to factor_ee. 2022-02-11 15:17:57 +01:00
vijay
51ee6e58c0
Merge branch 'master' into reorder_indices_jastrow 2022-02-11 15:09:27 +01:00
v1j4y
757d81324a Added size in setters. 2022-02-11 15:09:18 +01:00
v1j4y
8ebcb63610 Bug Fix for icc. Fixes #60. 2022-02-11 14:50:42 +01:00
v1j4y
04624171f0 Added size dimensions to aord, cord, and bord. 2022-02-11 14:45:20 +01:00
Gianfranco Abrusci
cfea5550e9 Merge branch 'master' into jastrow_c 2022-02-10 14:25:16 +01:00
fac03ea53b Accelerate AOs 2022-02-10 00:00:08 +01:00
Gianfranco Abrusci
c3889340eb Merge branch 'master' into jastrow_c 2022-02-09 17:45:37 +01:00
e9f79c144a Merge branch 'master' of github.com:TREX-CoE/qmckl 2022-02-09 14:37:45 +01:00
484c0a7d5c Documentation of Jastrow 2022-02-09 14:37:38 +01:00
Gianfranco Abrusci
2332007a7c fixed qmckl_compute_factor_ee 2022-02-07 13:53:50 +01:00
Gianfranco Abrusci
794ee5fe8c remove generate interface 2022-02-07 12:17:44 +01:00
v1j4y
b8b2997382 Fixed indexing of ee_distance_rescaled. 2022-02-04 17:13:15 +01:00
Gianfranco Abrusci
3a727b7688 c version of compute_asymp_jasb 2022-02-03 18:53:04 +01:00
Gianfranco Abrusci
41960751bf updated gian_helpers to trex master 2022-02-03 18:44:08 +01:00
Gianfranco Abrusci
81d55b4189 ee_distance_rescaled fixed;assert fails due to number mismatch 2022-02-03 18:27:33 +01:00
Gianfranco Abrusci
b0bfb3157c translation completed; error at accessing ee_distance_rescaled 2022-02-03 17:10:31 +01:00
Gianfranco Abrusci
1f31183be4 init compute_factor_ee 2022-02-03 12:11:33 +01:00
Gianfranco Abrusci
6a0c54f48c fixed seg fault: incremented wrong counter 2022-02-03 11:40:54 +01:00
Gianfranco Abrusci
67f80532f9 still failing 2022-02-02 18:21:40 +01:00
Gianfranco Abrusci
f6f346d511 seg fault at qmckl_compute_asymp_jasb 2022-02-02 16:37:26 +01:00
3488455110 Work on Jastrow 2022-01-31 16:47:28 +01:00
v1j4y
158c2afb41 Fixed edits. 2022-01-27 16:38:28 +01:00
v1j4y
e8a7b1a3f6 compute_asymp_jasb started. 2022-01-27 16:35:39 +01:00
0c9a50a681 Introduced points in electron 2022-01-26 17:07:59 +01:00
4b36005ca0 Added vectors and matrices in nucleus 2022-01-23 19:07:27 +01:00
vijay
61e09a7870
Jastrow implementation via dgemm (#57)
* Added chameleon support.

* Started work on tmp_c.

* Added initial implementation of dtmp_c.

* Jastrow een and een_deriv_e can now use tmp_c and dtmp_c.

* Correct indexing. Still testing.

* Fixed a bug in call to provide_dtmp_c.

* Added test for tmp_c.

* Using dtmp_c for een_deriv_e. All tests pass.

* Added final test for dtmp_c. All tests passing. Ready for merge.
2022-01-21 08:52:02 +01:00
18f9f96bcc Added vector/matrix/tensor types in blas 2022-01-20 12:09:08 +01:00
c4635e9296 Added qmckl_point 2022-01-20 01:50:54 +01:00
527b96e3df Merge branch 'master' of github.com:TREX-CoE/qmckl 2022-01-17 16:11:51 +01:00
91946f3ec4 Added size_max to elec_coord 2022-01-17 16:09:41 +01:00
ba0c93d015 Bug in finalization of MO basis 2022-01-17 15:54:21 +01:00
vijay
bb83aa96f4
Bug Fix : Adjugate4 (#56)
* Added chameleon support.

* Fixed bug in adjugate4.

* Better call to adjugate function.

* Removed debug print.
2022-01-12 19:20:18 +01:00
3083bf5e33 Null pointers 2022-01-08 15:42:40 +01:00
28dc3978f4 Fix warnings 2022-01-08 15:36:07 +01:00
31e3ed9c41 Updated QMCkl for TREXIOv2.0 2022-01-06 18:54:31 +01:00
53e2e7bb05 All tests pass without trexio 2022-01-06 02:28:13 +01:00
d248a53ffa Update qmckl_determinant 2022-01-06 01:04:20 +01:00
bd36ed0b48 Update qmckl_blas 2022-01-06 00:51:42 +01:00
5b6404db92 Cleaned AO file 2022-01-05 19:25:51 +01:00
1be1a99529 Documentation of Aos 2022-01-05 15:56:25 +01:00
531c1d4a2d Added size argument to AO functions 2022-01-05 12:26:11 +01:00
ff25969349 Added Lapack for general determinants 2021-12-12 20:02:43 +01:00
60356cdbbb Removed DIR$ 2021-12-12 11:28:57 +01:00
5abcd8c469 Moved the Shermann-Morrison tests out of org-mode 2021-11-25 15:21:44 +01:00
0c2ea40593 configure fixed in other directory 2021-11-17 17:41:21 +01:00
7d4292374f
Merge branch 'master' into add_lds 2021-11-17 14:07:47 +01:00
Francois Coppens
2536c59432 Pass extra LDS parameter to allow for rectangular Slater matrices. 2021-10-29 16:32:12 +02:00
Francois Coppens
65974c50aa Added determinant to Fortran interface 2021-10-29 16:31:54 +02:00
v1j4y
b5c6e1d126 Renamed qmckl_invert to qmckl_adjoint. #41 2021-10-29 08:45:23 +02:00
v1j4y
20b8f2822e Renamed qmckl_invert to qmckl_adjoint. #41 2021-10-29 08:45:14 +02:00
v1j4y
cd0db55f9d Added cutoff for the calculation of PE. #41 2021-10-29 08:44:53 +02:00
v1j4y
ad9ae8daf9 Removed debug print from local energy. #41 2021-10-28 13:00:20 +02:00
v1j4y
1d9d6b0f65 Added getter for determinant of psi. #41 2021-10-27 14:00:04 +02:00
v1j4y
466bd8c171 Added proper indices to drift vector. #41 2021-10-27 00:26:44 +02:00
v1j4y
1a3d37633a Added dimensions to drift vector. #41 2021-10-27 00:23:46 +02:00
v1j4y
1869756ea4 Verified Local energy with QMC=Chem for Be2. #41 2021-10-26 19:13:20 +02:00
v1j4y
a49e9151e5 Added access function for adjoint matrix of determinant. #41 2021-10-25 21:51:27 +02:00
v1j4y
5ea5e83c6c fixed debug comment. #41 2021-10-25 19:25:13 +02:00
v1j4y
a94f446dd0 Removed debug print. #41 2021-10-25 19:12:48 +02:00
v1j4y
3f181fa596 Added dependency for MOs in determinant. #41 2021-10-25 19:11:03 +02:00
v1j4y
e2a9f9d7bb Fixed bug in mo_vgl where ao_vgl was not given as dependency. #41 2021-10-25 18:45:06 +02:00
v1j4y
e80c8d51ed Added AO Normalization in trexio read. #41 2021-10-25 15:29:08 +02:00
v1j4y
a2e420e9a5 fixed blas . #41 2021-10-21 19:49:47 +02:00
v1j4y
9c68623e0e Merge branch 'wf_det_grad_cof' of https://github.com/v1j4y/qmckl into wf_det_grad_cof 2021-10-19 11:37:54 +02:00
v1j4y
b8886fee28 Removed walk_num from local energy mo_vgl. #41 2021-10-19 11:37:46 +02:00
vijay
5824b2f240
Merge branch 'master' into wf_det_grad_cof 2021-10-17 19:43:53 +02:00
d36810ce37 Fix Fortran BLAS && -> .and. 2021-10-17 17:57:15 +02:00
v1j4y
2cca7c00dd All functions look good. Need real tests. #41 2021-10-15 14:38:44 +02:00
v1j4y
4e877810da Initialize local energy. #41 2021-10-15 14:00:36 +02:00
v1j4y
fade372e02 Added missing provider calls for ee_pot and en_pot. #41 2021-10-15 13:48:48 +02:00
v1j4y
4167f2a1c1 Added tests for ee_pot and en_pot. #41 2021-10-15 13:05:50 +02:00
v1j4y
0928f9ea14 Moved en_pot to electron. #41 2021-10-15 12:44:37 +02:00
6d3eb35b7f style for documentation 2021-10-15 12:09:48 +02:00
v1j4y
df6a2ade60 Fixed merge. #41 2021-10-15 10:22:47 +02:00
vijay
5a44ce39c2
Merge branch 'master' into wf_det_grad_cof 2021-10-15 07:57:17 +02:00
7538a879fc Fix documentation 2021-10-14 21:57:28 +02:00
1a713455f8 Fixed DGEMM 2021-10-14 21:53:00 +02:00
284145be65 Merge branch 'master' of github.com:TREX-CoE/qmckl 2021-10-14 21:44:02 +02:00
2587a046de Fixed #48 2021-10-14 21:40:14 +02:00
f8e80b2113 Remove unused variables 2021-10-14 18:54:48 +02:00
acb034e88b Remove annoying warning in debug 2021-10-14 18:53:31 +02:00
v1j4y
c3f0348f6a Fixed merge. #41 2021-10-14 17:27:25 +02:00
vijay
07033b9b55
Merge branch 'master' into wf_det_grad_cof 2021-10-14 17:20:23 +02:00
1e8e91b61b Minor changes in mo 2021-10-14 16:45:40 +02:00
86c8187d7e Fix broken builds 2021-10-14 16:32:58 +02:00
c4467abb28 Merge branch 'master' into trexio 2021-10-14 10:52:35 +02:00
4e36bba278 Fixed distcheck with updated trexio 2021-10-14 10:50:51 +02:00
v1j4y
ed5ec3c729 Fixed ctx passing in e_pot. #41 2021-10-13 18:27:04 +02:00
v1j4y
64b30dc10e Added elec date for en_pot. #41 2021-10-13 18:26:45 +02:00
v1j4y
cff6b8a47a Added dimension of en_pot in definition. #41 2021-10-13 18:21:59 +02:00
v1j4y
a6e625016c Added provider to repulsion in e_pot. #41 2021-10-13 18:13:13 +02:00
v1j4y
ca61af7a3d Added providers for ee_pot and en_pot for e_pot. #41 2021-10-13 18:07:15 +02:00
v1j4y
7bf52f0e01 Fixed provider for potential energy. #41 2021-10-13 18:02:28 +02:00
v1j4y
dcc5f09724 Fixed provider for local_energy. #41 2021-10-13 17:56:33 +02:00
v1j4y
ca5c332d85 Fixed initialization of det_adj and det_value matrices. #41 2021-10-13 16:55:12 +02:00
v1j4y
578bc43268 Fix tests for det_inv_matrix. #41 2021-10-13 16:44:19 +02:00
v1j4y
befc1a75fa Fix bug in det_inv_matrix dimension. #41 2021-10-13 16:44:00 +02:00
vijay
19b4f93a0b
Merge branch 'master' into wf_det_grad_cof 2021-10-13 16:18:21 +02:00
Aurélien Delval
3cf86817f4
Fix merge issue with qmckl_ao.org 2021-10-13 15:01:23 +02:00
Aurélien Delval
c84deac647
Merge branch 'master' into master 2021-10-13 14:11:07 +02:00
Pablo de Oliveira Castro
9c2d01b33d
Typo in orgmode table 2021-10-13 13:19:35 +02:00
Pablo Oliveira
1859a2b6d7 Fix indentation 2021-10-13 12:03:18 +02:00
Pablo Oliveira
4f2e8b6d8e Update determinant in the SM+WB splitting versions 2021-10-13 11:55:20 +02:00
Pablo Oliveira
9ca88679f9 Update determinant in Woodbury 3x3 2021-10-13 10:51:42 +02:00
Pablo Oliveira
94e9b13963 Update determinant in Woodbury 2x2 and fix tests 2021-10-13 10:45:54 +02:00
Pablo Oliveira
b05390a273 Update determinant in qmckl_sherman_morrison 2021-10-13 10:31:24 +02:00
6afb78429a Added new test 2021-10-13 10:10:09 +02:00
v1j4y
1efd6183d5 Fixed dimensions in tests. #41 2021-10-12 19:41:44 +02:00
v1j4y
713be68c2b Working on tests for determinant. #41 2021-10-12 18:55:34 +02:00
v1j4y
b53b4afeab Fixed bug in size of mo_index list. #41 2021-10-12 13:21:47 +02:00
v1j4y
2cf5366108 removed fermi_num. #41 2021-10-12 13:08:04 +02:00
v1j4y
8f550ab106 removed print. #41 2021-10-12 12:59:17 +02:00
v1j4y
eff9ed7954 Working on tests for determinants.#41 2021-10-12 12:58:53 +02:00
f43a4ebff8 Reading MOs from TREXIO. Modified MOs API 2021-10-12 00:10:01 +02:00
vijay
f13d45f82f
Merge branch 'master' into master 2021-10-11 23:31:51 +02:00
e620e78938 Basis read from trexio 2021-10-11 23:26:12 +02:00
v1j4y
5a875cbd2e Corrected merge. #41 2021-10-11 23:15:11 +02:00
vijay
db7ceaddba
Merge branch 'master' into wf_det_grad_cof 2021-10-11 23:02:09 +02:00
ecfe58a966 Fixed cppcheck in AOs 2021-10-11 22:53:50 +02:00
713008097a Merge branch 'master' into trexio 2021-10-11 22:43:39 +02:00
v1j4y
7c58d89626 Implemented drift vector. #41 2021-10-11 21:40:54 +02:00
v1j4y
edc6e0a4f6 Added doc for the three energies. #41 2021-10-11 18:48:48 +02:00
v1j4y
1be1317210 Added local energy. #41 2021-10-11 18:39:18 +02:00
v1j4y
131e510291 Removed walk_num from MO dims. #41 2021-10-11 18:32:00 +02:00
v1j4y
faba6a0cdc Bug fix for modims. 2021-10-11 18:27:58 +02:00
97e5392f5f Added 1 function in trexio 2021-10-11 18:15:31 +02:00
v1j4y
5e67d1a0a2 Done potential energy. #41 2021-10-11 17:47:19 +02:00
v1j4y
9d542238e3 Finished KE. #41 2021-10-11 17:37:25 +02:00
5989eaac36 Added some functions for TREXIO basis 2021-10-11 17:35:40 +02:00
15d07b89a4 get functions in AO return error code 2021-10-11 17:35:15 +02:00
v1j4y
9722f09221 Add org file. #41 2021-10-11 16:12:14 +02:00
v1j4y
705af0b084 Working on local energy. #41 2021-10-11 16:06:23 +02:00
v1j4y
2b54d2bdf6 Added sign for V_en term. #41 2021-10-11 14:10:13 +02:00
890e2de57d Merge branch 'master' into trexio 2021-10-11 12:14:15 +02:00
0537b35536 Nucleus in trexio 2021-10-11 12:11:22 +02:00
v1j4y
88178c5efa Added electron and nucleus potential. #41 2021-10-11 11:34:42 +02:00
vijay
ccd179397b
Merge branch 'master' into master 2021-10-11 10:07:59 +02:00
v1j4y
2959281a10 Removed qmckl_blas_func header. #41 2021-10-11 10:04:27 +02:00
vijay
883774dba4
Merge branch 'master' into wf_det_grad_cof 2021-10-11 09:56:29 +02:00
Francois Coppens
cd978e31d7 Repeated fixes for the rest of the kernels.
- Context no longer corrupted due to inconsistent interface
- No longer any need for manual explicit trailing underscore in the function names of the C-source to compensate for the unnecessary C-interface in fortran.
- All tests pass.
2021-10-09 22:23:12 +02:00
Francois Coppens
6437591b66 Fixed
- context (and other variables) passing between C-C. Can now passed by value.
- removed unnecessary Fortran C-interface; trailing underscore in C-function no longer necessary
- renamed C-function and Fortran-interface to C-function from qmckl_sherman_morrison_c_/qmckl_sherman_morrison to qmckl_sherman_morrison/qmckl_sherman_morrison
- removed unneccesary artificial pointer variables in qmckl_sherman_morrison and pass them by value.
2021-10-08 18:03:11 +02:00
v1j4y
3668851412 Improved calculation of MOs with one big dgemm. #41 2021-10-08 00:56:00 +02:00
v1j4y
fe72422918 Added det value and adjoint. #41 2021-10-07 14:13:40 +02:00
v1j4y
d24f268369 Added test for invert. #41 2021-10-07 14:01:40 +02:00
v1j4y
2735b31c12 Added alpha and beta matrices for all quantities. #41 2021-10-07 00:27:01 +02:00
v1j4y
13c9c9f358 Added fortran interface for qmckl_invert. #41 2021-10-07 00:26:35 +02:00
e5feaf9d0d Merge branch 'master' into trexio 2021-10-06 23:44:19 +02:00
af54e7a7dc Checking context in SM 2021-10-06 23:44:06 +02:00
9d67a29122 Read electrons from trexio 2021-10-06 23:34:58 +02:00
v1j4y
00d85528c5 Added alpha and beta det matrices. #41 2021-10-06 17:59:44 +02:00
v1j4y
cf394ce171 Fixed bug in get_det_vgl, now compiles. #41 2021-10-06 17:29:53 +02:00
v1j4y
5a280e877f removed pointer for type variable. #41 2021-10-06 16:49:21 +02:00
vijay
e8be52e59b
Merge branch 'master' into wf_det_grad_cof 2021-10-06 10:39:13 +02:00
v1j4y
86ae704363 Improved doc. #41 2021-10-06 10:38:55 +02:00
71ad7abb7f Fixed #40 2021-10-06 10:35:43 +02:00
6d19d416fa
Merge branch 'master' into master 2021-10-06 09:34:45 +02:00
v1j4y
d416c5dd77 Working on calculation of inverse. #41 2021-10-05 13:26:55 +02:00
v1j4y
bb21cbed69 Working on matrix inv. #41 2021-10-04 22:45:44 +02:00
v1j4y
59d4c91edf Updated name change to header files. #41 2021-10-04 17:03:12 +02:00
v1j4y
77a6155bb0 Renamed file. #41 2021-10-04 16:53:15 +02:00
v1j4y
5e399a423e Added det struct to context. #41 2021-10-04 16:52:13 +02:00
v1j4y
5746487c2e Fixed ordering in Doc. #32 2021-10-04 15:46:47 +02:00
v1j4y
f3a3c8f0b1 Improved doc for context. #32 2021-10-04 15:43:41 +02:00
v1j4y
e425b24303 Added context. #41 2021-10-04 15:42:22 +02:00
v1j4y
90a560138d Initial commit. #41 2021-10-04 09:54:34 +02:00
v1j4y
d8dea5e855 Fixed test. #32 2021-10-04 09:50:16 +02:00
v1j4y
0c0f8e53d0 Added test for MO but deactivated because slow. #32 2021-10-04 09:08:38 +02:00
v1j4y
4df8a5e066 Fixed bug in mo_coef dimensions. 2021-10-01 00:23:07 +02:00
v1j4y
f557035e28 Fixed bug in mo_dims. 2021-09-29 18:55:02 +02:00
v1j4y
296a2886ff Added reading actual mo coef for testing. #32 2021-09-29 18:12:41 +02:00
vijay
5557187b0d
Merge branch 'master' into ao_mo_vj 2021-09-29 00:33:07 +02:00
e180354cbc Added MOs for CHBrClF 2021-09-29 00:25:50 +02:00
1cf1956fa3 Merge branch 'master' of github.com:TREX-CoE/qmckl 2021-09-28 22:46:30 +02:00
v1j4y
25bb2fd97e Fixed dimensions in call to DGEMM. #32 2021-09-27 23:36:11 +02:00
v1j4y
97749325b1 Removed TransA and TransB. 2021-09-27 22:37:51 +02:00
v1j4y
5220df5185 Checking ao -> mo. 2021-09-27 22:06:49 +02:00
v1j4y
d3311ec2d9 Testing provide mo. 2021-09-27 22:01:13 +02:00
v1j4y
922c52c36a Compiles locally. #32 2021-09-27 18:41:01 +02:00
v1j4y
5a095c490d Check whether MO basis has been initialized before computations. #32 2021-09-27 18:39:45 +02:00
v1j4y
c1c5a4a8aa Provided function to check for MO basis. #32 2021-09-27 18:30:59 +02:00
v1j4y
ff124cb62c Deactivate mo test atm. 2021-09-27 18:20:41 +02:00
v1j4y
a055732227 Fixed bug and working on tests for MOs. #32 2021-09-27 18:17:21 +02:00
v1j4y
ff5e7882d0 Working on adding TransA and TransB to DGEMM. #32 2021-09-27 18:16:51 +02:00
v1j4y
a52d6683cc Allow 0 beta electrons. #32 2021-09-27 17:18:43 +02:00
vijay
8db2c94d67
Merge branch 'master' into ao_mo_vj 2021-09-27 11:31:50 +02:00
v1j4y
8463793114 Fixed bug in factor_een_e_deriv_e. Now everything checks out. 2021-09-27 11:27:49 +02:00
v1j4y
d19fa51ded Fixed bugs. Now gives the correct J_{een}. 2021-09-27 10:58:20 +02:00
574ce713d2 Removed walk_num in AOs 2021-09-23 11:16:54 +02:00
d3188937f7 Fix normalization in AOs 2021-09-23 10:47:08 +02:00
v1j4y
3474987940 deactivate factor_een test atm. 2021-09-22 15:51:28 +02:00
v1j4y
b0a4d08ad8 Fixed sub in een_rescaled_e. 2021-09-22 15:47:39 +02:00
v1j4y
e4beaff674 Test added for een_rescale_n_deriv_e. 2021-09-22 12:20:39 +02:00
v1j4y
06c02101e4 Test added for een_rescale_e_deriv_e. 2021-09-22 11:42:45 +02:00
v1j4y
3fcccef686 Checking the build. 2021-09-21 12:43:23 +02:00
v1j4y
54e1b2af31 Working on remaining tests. 2021-09-21 12:05:03 +02:00
v1j4y
99cf1cfca0 Cleaned some tests. 2021-09-21 11:52:46 +02:00
3f0b8414ec Merge branch 'master' of github.com:TREX-CoE/qmckl 2021-09-21 09:56:13 +02:00
vijay
6dd5736845
Merge branch 'master' into ao_mo_vj 2021-09-19 16:37:09 +02:00
Francois Coppens
0a179be8f3 - Regularised function declarations argument syntax.
- Added asserts in test to check for NULL pointers.
2021-09-18 18:07:05 +02:00
Francois Coppens
908e52b855 All Fortran interfaces to C/C++ added and tested. Library and tests compile smoothly. 2021-09-16 17:24:19 +02:00
Francois Coppens
c9e6bcdab1 Almost done with fixing interfaces. 2021-09-16 13:44:12 +02:00
v1j4y
3fa60a3009 Implemented MOs. Needs testing. #32 2021-09-15 18:30:41 +02:00
v1j4y
eaede28a73 Tests pass for qmckl_dgemm. #32. 2021-09-15 16:21:42 +02:00
v1j4y
cf3550b6b7 Fixed some bugs, now compiles. 2021-09-15 11:55:45 +02:00
vijay
61751c307f
Merge branch 'master' into ao_mo_vj 2021-09-15 11:21:21 +02:00
Francois Coppens
51bddd0864 - Added Fortran- and C-interface blocks in Naive Sherman Morrison section.
- Changed the name qmckl_sherman_morrison_c to qmckl_sherman_morrison_c_ to compensate for added '_' by Fortran compiler.
2021-09-15 10:52:00 +02:00
Francois Coppens
37a408c9dd Add fortran interface 2021-09-14 15:08:26 +02:00
v1j4y
65a9b79b7c Added Properties for interface auto generation. 2021-09-14 12:13:17 +02:00
Pablo de Oliveira Castro
7a082a44eb
Merge branch 'master' into master 2021-09-13 08:16:33 +02:00
Francois Coppens
36f930b8f7 - Removed AM_FCFLAGS = -fno-underscoring from Makefile.am again.
- Removed all Fortran code from the org/qmckl_sherman_morrison_woodbury.org file to prevent the appearance of *_ symbol names in libqmckl.so due to the use of Fortran compiler.
- Removed all compiler warings due to imlpicit call to fabs() by including math.h
- Removed all the cppcheck warnings of unsused variables by casting return-value function calls to void when the return value is not used. #25
2021-09-10 17:29:40 +02:00
5bedc582b5 Merge branch 'master' of github.com:TREX-CoE/qmckl 2021-09-09 09:32:40 +02:00
007ae2f9a4 Comments 2021-09-09 09:32:36 +02:00
François Coppens
004ec2a2a7
Merge branch 'TREX-CoE:master' into sherman-morrison-woodbury 2021-09-08 16:51:38 +02:00
v1j4y
42639bcbff Added a TODO. #32 2021-09-07 16:43:25 +02:00
v1j4y
a41c67b94f Working on qmckl_dgemm. 2021-09-07 16:36:26 +02:00
Aurélien Delval
c53c982337 Correct the qmckl_probes documentation
There were a few errors/omissions in the doc section describing the
probes. This have been corrected/made clearer.
2021-09-07 15:24:54 +02:00
Francois Coppens
37d5ff61ff - Updated Perfomance recommendations, did some rewriting of parts of the text and removed more typos. 2021-09-07 12:22:39 +02:00
Francois Coppens
78c574af49 Improved documentation and Requirements sections. 2021-09-07 11:22:54 +02:00
Francois Coppens
dcd6428c50 * Moved Helper functions to the end
* Typo fixed
2021-09-07 09:28:36 +02:00
Aurélien Delval
78fdbfca77 Increase the value of epsilon when vfc_ci is enabled
The previous value of epsilon, which was pulled form the qmckl_context
and reused fot the qmckl probes, was arout 4.10^-16. It's a good value
to use for the tests with IEEE arithmetic, however, MCA introduces some
noise which is at this order of magnitude, and caused one probe in
particular to fail, while its accuracy was actually satisfying.

This value is now multiplied by 16 if VFC_CI is defined (to ask for 4
less significant digits in base 2), which makes more sense for MCA.
2021-09-06 16:34:48 +02:00
v1j4y
d704b19c13 Some improvements to the description. 2021-09-06 07:45:10 +02:00
Francois Coppens
ef04e3df9b Added realistic tests to all kernels. Everything compiles fine. 2021-09-05 11:22:41 +02:00
Francois Coppens
435628a5d0 Finished first draft of the documentation 2021-09-02 17:56:42 +02:00
Aurélien Delval
703031b16f Fix indentation of lists in documentations
Line breaks in the lists of the documentation appeared in the file
preview. They have been removed so that all of its text belongs
correctly to eac bullet point.
2021-09-02 11:56:56 +02:00
Francois Coppens
abb3461893 Put info in the wrong place. 2021-09-01 16:10:59 +02:00
Francois Coppens
bbd20ce87a More documentation added. 2021-09-01 16:06:51 +02:00
Francois Coppens
9e58ab4bb9 Started adding anf polishing documentation. 2021-09-01 15:29:14 +02:00
Aurelien Delval
e3ec28ad40 Add qmckl_probes description to the code documentation 2021-08-31 09:18:17 +00:00
Aurelien Delval
e75d249474 Correctly ignore problematic checks for vfc_ci
Some checks in the AO test were not correctly ignored by the
preprocessor when vfc_ci support was enabled. This caused the test to
fail unexpectedly and made it impossible to get data from it in vfc_ci.
2021-08-30 15:59:11 +00:00
Aurelien Delval
291ea5441d Correctly ignore asserts for vfc_ci
Some asserts where not correctly ignored with vfc_ci and caused tests to
exit prematurely when compiling the library with Verificarlo and using
stochastic backends.
2021-08-24 19:16:49 +00:00
Francois Coppens
978e20ac42 Removed local context var declarations from kernels and pass along context from passed arguments. #25 2021-07-30 11:48:08 +02:00
Francois Coppens
a5e58c80d7 Passing argument context instead of creating and passing a locally created context. #25 2021-07-29 11:48:38 +02:00
Aurélien Delval
eb8d75c247 Add accuracy target in distance and AO probes
The target has been set to 1d.-14 (or epsilon), because this was the value already
used in the tests. However this might not be the best choice with the
non-deterministic backend, so it might be necessary to adjust it in the
future.

Also, the expectedValue argument has been set to 0 since it is not used.
(the tests checks have already been written anyway)
2021-07-27 15:50:33 +02:00
Francois Coppens
afc6e115d3 Resolved compiler warnings about initialising 'objects' with 'const objects'. #25 2021-07-27 08:48:28 +02:00
Francois Coppens
0e4ea1f81b Fixed tests. Everything compiles successfully and passes all tests. #25 2021-07-27 06:59:44 +02:00
Francois Coppens
41be86fe59 Removed dependency on qmckl_threshhold() and the accompanying preprocessor definition. The break-down threshold now has to be passed explicitly as a function argument. #25 2021-07-26 17:41:21 +02:00
Francois Coppens
decd977fff Added mixed kernel with Woodbury 3x3 and update splitting. #25 2021-07-26 12:19:29 +02:00
Aurélien Delval
66a35e2fc0 Fix Makefile.am and change probes name 2021-07-25 15:36:14 +02:00
Aurélien Delval
e443790806 Place/rename new probes in both distance and AO tests 2021-07-24 13:19:09 +02:00
vijay gopal chilkuri
d2eb9f5a5d Added interfaces and fortran versions and fixed return for smw2s. #25 2021-07-23 19:58:24 +02:00
Francois Coppens
159fb149a4 Added Woobury 3x3, 2x2 and Sherman-Morrison-Splitting mixed kernels. Compiles fine but test still fail. #25 2021-07-23 18:28:25 +02:00
Aurélien Delval
ce24885979 Correct tests and put C(2,2) in distance probes
Since we don't need to place probs on all matrices, a simple solution
seems to monitor one element of the matrix. A solution could be to
compute a matrix norm / residual but this would make the tests more
complex.
2021-07-23 15:19:12 +02:00
Aurélien Delval
cbf1bd8de8 Fix replace error in AO 2021-07-23 12:28:27 +02:00
Aurélien Delval
68dc374422 Merge branch 'master' of https://github.com/TREX-CoE/qmckl into TREX-CoE-master 2021-07-23 12:27:18 +02:00
Aurélien Delval
145f4fba40
Add the qmckl_probes interface (#2)
* comment

* Update distance test code

The distance test has been updated to the latest version, with a first attempt at using vfc_probes inside it

* Functional implementation of vfc_probes in the distance tests

This commit has the first functional vfc_ci tests. Verificarlo tests
should be written over the existing tests, and they can be enabled with
the following configure command:

QMCKL_DEVEL=1 ./configure --prefix=$PWD/_install --enable-maintainer-mode --enable-vfc_ci CC="verificarlo-f -Mpreprocess -D VFC_CI" FC="verificarlo-f -Mpreprocess -D VFC_CI" --host=x86_64

The --enable-vfc_ci flag will trigger the linking of the vfc_ci
library. Moreover, as of now, the "-Mpreprocess" and "-D VFC_CI" flags
have to be specified directly here. There is probably an appropriate
macro to place those flags into but I couldn't find it yet, and could
only manage to build the tests this way.

When the VFC_CI preprocessor is defined, somme additional code to
register and export the test probes can be executed (see
qmckl_distance.org).

As of now, the tests are built as normal, even though they are expected
to fail :

make all
make check

From there, the test_qmckl_distance (and potentially the others)
executable can be called at will. This will typically be done
automatically by vfc_ci, but one could manually execute the executable
by defining the following env variables :

VFC_PROBES_OUTPUT="test.csv" VFC_BACKENDS="libinterflop_ieee.so"

depending on the export file and the Verificarlo backend to be used.

The next steps will be to define more tests such as this one, and to
integrate them into a Verificarlo CI workflow (by writing a
vfc_tests_config.json file and using the automatic CI setup
command).

* Error in FOrtran interface fixed

* Added missing Fortran interfaces

* Modify distance test and install process integration

All probes are now ignored using only the preprocessor (instead
of checking for a facultative argument) in the distance test.
Moreover,preprocessing can now be enabled correctly using FCFLAGS
(the issue seemed to come from the order of the arguments passed
to gfortran/verificarlo-f with the preprocessor arg having to come
first).

* Add vfc_probes to AO tests

vfc_probes have been added to qmckl_ao.org in the same way as
qmckl_distance.org, which means that it can be enabled or disabled at
compile time using the --enable-vfc_ci option.

qmckl_distance.org has been slightly modified with a better indentation,
and configure.ac now adds the "-D VFC_CI" flag to CFLAGS when vfc_ci is
enabled.

* Start work on the vfc tests config file and on a probes wrapper

The goal in the next few commits is to make the integration of
vfc_probes even easier by using a wrapper to vfc_probe dedicated to
qmckl. This will make it easier to create a call to vfc_probe that can be
ignored if VFC_CI is not defined in the preprocessor. Once this is done,
the integration will be completed by trying to create an actual workflow
to automatically build the library and execute CI tests.

* Moved qmckl_probes out of src

As of now, qmckl_probes have been moved to tools, and can be built via a
bash script. This approach seems to make more sense, as this should not
be a part of the library itself, but an additional tool to test it.

* Functional Makefile setup to enable qmckl_probes

The current setup builds qmck_probes by adding it to the main QMckl
libray (by adding it to the libtool sources). The Fortran interface's
module still need to be compiled separately.

TODO : Clean the build setup, improve integration in qmckl_tests and
update tests in qmckl_ao with the new syntax.

* New probes syntax in AO tests

* Clean the probes/Makefile setup

The Fortran module is now built a the same time than the main library.
The commit also adds a few fixes in the tests and probes wrapper.

Co-authored-by: Anthony Scemama <scemama@irsamc.ups-tlse.fr>
2021-07-23 12:01:14 +02:00
vijay gopal chilkuri
90b6333560 Splitting tests bug fix. #25 2021-07-22 18:20:20 +02:00
Francois Coppens
e1b325ab18 Added Sherman-Morrison with update splitting. For now the headers for qmckl_slagel_splitting_c and qmckl_sherman_morrison_splitting_c are not generated. #25 2021-07-22 18:05:39 +02:00
Francois Coppens
c6d00d5c5b Added and tested Woodbury 3x3 kernel to QMCkl.
Residual = wb3 14 9.92936e-07 1.90518e-11
ok -- cycle 14

Residual = qmckl_wb3 14 9.92936e-07 1.90518e-11
ok -- cycle 14. #25
2021-07-22 11:41:47 +02:00
vijay gopal chilkuri
fdb8f5d50a changed unsigned int to uint64_t for consistency. #25 2021-07-22 09:59:02 +02:00
vijay gopal chilkuri
83dbab7f6b Try not to export org-mode lisp stuff. #25 2021-07-21 17:56:04 +02:00
vijay gopal chilkuri
081e27dd92 Bug fix in tests. #25 2021-07-21 17:42:48 +02:00
Francois Coppens
11eee81f84 - Added Woodbury 2x2 to org-mode file. QMCkl compiles but the testsuite fails with a segementation fault. #25 2021-07-21 17:31:25 +02:00
vijay gopal chilkuri
04d2ec2d70 Added an example usage of qmckl_sherman_morrison function as a test. #25 2021-07-20 19:34:51 +02:00
Francois Coppens
7b2a8caeab - Added documentation to helper functions
- Removed redundant #include qmckl.h
- Commented out the #ifdef DEBUG ... #endif blocks
- Changed Sherman-Morrison break-down check to use qmckl_exit_code qmckl_sherman_morrison_threshold double* const thresh ). #25
2021-07-20 12:09:43 +02:00
Francois Coppens
f325f4feda - Replaced <cmath> with <math.h> and std::fabs() with fabs().
- Changed return values 'true' and 'false' to `QMCKL_SUCCESS` and `QMCKL_FAILURE`.
- Commented out the '#ifdef DEBUG ... #endif' blocks because debug messages are not implemented yet. #25
2021-07-20 11:40:27 +02:00
Francois Coppens
80c9a2291c Replaced <cmath> with <math.h> and std::fabs() with fabs() to be C-complient. #25 2021-07-20 11:15:33 +02:00
vijay gopal chilkuri
dcb4816941 Added threshold function. Tests still dont compile. #25 2021-07-20 10:51:21 +02:00
vijay gopal chilkuri
6e047046f4 Get the sherman morrison to compile. Tests still dont compile. #25 2021-07-19 18:25:10 +02:00
Francois Coppens
7849f510f4 Started integration of naive Sherman-Morrison in the org-mode file. #25 2021-07-19 17:39:01 +02:00
Francois Coppens
81f5696950 Changed internal functions to static functions. Changed function names to conform with QMCkl naming conventions. Removed irrelevant debug output. qmckl_sherman_morrison() now returns false if the denominator is too close to 0 and true if it is ok. #25 2021-07-19 16:15:28 +02:00
vijay gopal chilkuri
4e31dc4ac4 Added Tests block and set the noexport tags. #25 2021-07-19 17:34:47 +05:30
vijay gopal chilkuri
897eb3f34e Added call to generate_f_interface in template. #25 2021-07-19 17:31:34 +05:30
vijay gopal chilkuri
6c2866967d Added call to generate_c_interface in template. #25 2021-07-19 17:31:11 +05:30
vijay gopal chilkuri
36e414aacd Added call to generate_c_header to template. #25 2021-07-19 17:30:10 +05:30
vijay gopal chilkuri
b0fd86db40 Added missing org file. #25 2021-07-19 15:31:07 +05:30
vijay gopal chilkuri
269f8d33d2 Added template org file for Francois. #25 2021-07-19 15:29:32 +05:30
Francois Coppens
f873b36213 First stage of QMCkl integration of Sherman-Morrison-Woodbury kernels. 2021-07-19 09:55:58 +02:00
c8cad59922 Added Fortran interfaces 2021-07-19 09:26:05 +02:00
cdf92e2464 Added AO_factor to AOs 2021-07-13 09:54:43 +02:00
75a93d12c6 Added AO polynomials 2021-07-12 15:04:21 +02:00
fba34e4982 Addd AO functions 2021-07-09 00:45:17 +02:00
e8a5103c92 Changed order of indices in AOs 2021-07-08 19:25:15 +02:00
vijay gopal chilkuri
af978e1b03 Everything good. Ready for merge. #22 2021-07-08 12:22:28 +05:30
vijay gopal chilkuri
45bc54d0f9 Reinstated tests for een_rescaled_n. #22 2021-07-08 12:11:26 +05:30
vijay gopal chilkuri
bcba93ee7e Reinstated tests for een_rescaled_e. #22 2021-07-08 12:09:22 +05:30
vijay gopal chilkuri
c8aef0d9ac Reinstated tests for factor_en_deriv_e. #22 2021-07-08 12:07:13 +05:30
vijay gopal chilkuri
2cd5a31cba Fixed bug in type_nucl_vector dim. #22 2021-07-08 12:03:42 +05:30
vijay gopal chilkuri
672f0e771c Fixed bug in factor_en. #22 2021-07-08 11:58:46 +05:30
vijay gopal chilkuri
be341f3afd Reinstated tests for factor_en. #22 2021-07-08 11:53:13 +05:30
vijay gopal chilkuri
0575638e5b Reinstate tests for factor_ee_deriv_e. #22 2021-07-08 11:49:52 +05:30
vijay gopal chilkuri
0342449621 Reinstate tests for factor_ee. #22 2021-07-08 11:41:32 +05:30