Skip to content

Commit 2c47e2d

Browse files
authored
Merge pull request psi4#1037 from loriab/g2gupdate
simint and erd
2 parents 36b4843 + 1361c70 commit 2c47e2d

File tree

11 files changed

+99
-84
lines changed

11 files changed

+99
-84
lines changed

doc/sphinxman/source/build_planning.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1323,7 +1323,7 @@ Debugging |PSIfour| has gotten a little confusing now that it's running through
13231323
.. valgrind --suppressions=<file_name>
13241324
.. ```
13251325
..
1326-
.. will run valgrind with the suppression file located on disk at "file_name". Lucky for you, Psi4 comes with such a suppression file at [``$top-level-psi4-dir/lib/valgrind-python.supp``](../blob/master/lib/valgrind-python.supp). This should remove all the boost python errors.
1326+
.. will run valgrind with the suppression file located on disk at "file_name". Lucky for you, Psi4 comes with such a suppression file at [``$top-level-psi4-dir/psi4/share/psi4/scripts/valgrind-python.supp``](../blob/master/psi4/share/psi4/scripts/valgrind-python.supp). This should remove all the python errors.
13271327
..
13281328
.. The other error, boost overflow error arises from ``src/lib/libmints/sieve.cc`` where the inverse
13291329
.. of the complementary error function is being called. The internet seems to claim that this is a

external/upstream/dkh/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ if(${ENABLE_dkh})
2929
-DENABLE_GENERIC=${ENABLE_GENERIC}
3030
-DLIBC_INTERJECT=${LIBC_INTERJECT}
3131
CMAKE_CACHE_ARGS -DCMAKE_Fortran_FLAGS:STRING=${CMAKE_Fortran_FLAGS}
32+
-DCMAKE_C_FLAGS:STRING=${CMAKE_C_FLAGS}
3233
INSTALL_COMMAND DESTDIR=${CMAKE_BINARY_DIR}/stage ${CMAKE_MAKE_PROGRAM} install)
3334

3435
set(dkh_DIR ${STAGED_INSTALL_PREFIX}/share/cmake/dkh CACHE PATH "path to internally built dkhConfig.cmake" FORCE)

external/upstream/erd/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ if(${ENABLE_erd})
2929
-DENABLE_GENERIC=${ENABLE_GENERIC}
3030
-DLIBC_INTERJECT=${LIBC_INTERJECT}
3131
CMAKE_CACHE_ARGS -DCMAKE_Fortran_FLAGS:STRING=${CMAKE_Fortran_FLAGS}
32+
-DCMAKE_C_FLAGS:STRING=${CMAKE_C_FLAGS}
3233
INSTALL_COMMAND DESTDIR=${CMAKE_BINARY_DIR}/stage ${CMAKE_MAKE_PROGRAM} install)
3334

3435
set(erd_DIR ${STAGED_INSTALL_PREFIX}/share/cmake/erd CACHE PATH "path to internally built erdConfig.cmake" FORCE)

external/upstream/gdma/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ if(${ENABLE_gdma})
1414
message(STATUS "Suitable gdma could not be located, ${Magenta}Building gdma${ColourReset} instead.")
1515
ExternalProject_Add(gdma_external
1616
GIT_REPOSITORY https://github.com/psi4/gdma
17-
GIT_TAG v2.2.6
17+
GIT_TAG 9d607d7 # v2.2.6-2-g9d607d7
1818
UPDATE_COMMAND ""
1919
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}
2020
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
@@ -29,6 +29,7 @@ if(${ENABLE_gdma})
2929
-DENABLE_GENERIC=${ENABLE_GENERIC}
3030
-DLIBC_INTERJECT=${LIBC_INTERJECT}
3131
CMAKE_CACHE_ARGS -DCMAKE_Fortran_FLAGS:STRING=${CMAKE_Fortran_FLAGS}
32+
-DCMAKE_C_FLAGS:STRING=${CMAKE_C_FLAGS}
3233
INSTALL_COMMAND DESTDIR=${CMAKE_BINARY_DIR}/stage ${CMAKE_MAKE_PROGRAM} install)
3334

3435
set(gdma_DIR ${STAGED_INSTALL_PREFIX}/share/cmake/gdma CACHE PATH "path to internally built gdmaConfig.cmake" FORCE)

external/upstream/simint/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ if(${ENABLE_simint})
1414

1515
include(ExternalProject)
1616
message(STATUS "Suitable simint could not be located, ${Magenta}Building simint${ColourReset} instead.")
17+
18+
if (CMAKE_CXX_COMPILER_ID MATCHES Intel)
19+
if (NOT (CMAKE_CXX_COMPILER_VERSION VERSION_LESS "18.0.0"))
20+
message(FATAL_ERROR "ICPC version 2018 builds an incorrect simint library. Use the conda package or build simint separately with GNU or Intel 2017 compilers.")
21+
endif()
22+
endif()
23+
1724
ExternalProject_Add(simint_external
1825
URL http://www.bennyp.org/research/simint/download/simint-v${SIMINT_VER}.tar.bz2
1926
UPDATE_COMMAND ""

psi4/CMakeLists.txt

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -238,13 +238,10 @@ endif()
238238

239239
# <<< Export Config >>>
240240

241-
if(NOT (DEFINED ENV{CONDA_BUILD}))
242-
# normal plugin use - initialize plugin compilation from the same-computer parent Psi4 compilation
243-
configure_file(psi4PluginCache.cmake.in psi4PluginCache.cmake @ONLY)
244-
install(FILES ${CMAKE_BINARY_DIR}/psi4PluginCache.cmake
245-
DESTINATION ${CMAKECONFIG_INSTALL_DIR})
246-
endif()
247-
install(FILES ${PSI4_ROOT}/cmake/psi4OptionsTools.cmake
241+
configure_file(psi4PluginCache.cmake.in psi4PluginCache.cmake @ONLY)
242+
243+
install(FILES ${CMAKE_BINARY_DIR}/psi4PluginCache.cmake
244+
${PSI4_ROOT}/cmake/psi4OptionsTools.cmake
248245
${PSI4_ROOT}/cmake/custom_static_library.cmake
249246
${PSI4_ROOT}/cmake/custom_cxxstandard.cmake
250247
DESTINATION ${CMAKECONFIG_INSTALL_DIR})

psi4/src/psi4/libefp_solver/efp_solver.cc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ int EFP::get_frag_count(void) {
8181
return n;
8282
}
8383

84+
void log_cb(const char *msg) {
85+
outfile->Printf("LIBEFP: %s\n", msg);
86+
}
87+
8488
#ifdef USING_libefp
8589
/*
8690
* Basic creation of EFP object and options structure
@@ -95,6 +99,8 @@ void EFP::common_init() {
9599
if ((res = efp_set_opts(efp_, &opts)))
96100
throw PsiException("EFP::common_init():efp_set_opts() " + std::string(efp_result_to_string(res)), __FILE__,
97101
__LINE__);
102+
103+
efp_set_error_log(log_cb);
98104
}
99105

100106
/*

psi4/src/psi4/libmints/integral.cc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,8 @@ TwoBodyAOInt* IntegralFactory::erd_eri(int deriv, bool use_shell_pairs)
279279
#ifdef USING_simint
280280
if(deriv == 0 && Process::environment.options.get_str("INTEGRAL_PACKAGE") == "SIMINT")
281281
return new SimintERI(this, deriv, use_shell_pairs);
282-
#elif defined USING_erd
282+
#endif
283+
#ifdef USING_erd
283284
if(deriv == 0 && Process::environment.options.get_str("INTEGRAL_PACKAGE") == "ERD")
284285
return new ERDERI(this, deriv, use_shell_pairs);
285286
#endif
@@ -291,7 +292,8 @@ TwoBodyAOInt* IntegralFactory::eri(int deriv, bool use_shell_pairs)
291292
#ifdef USING_simint
292293
if(deriv == 0 && Process::environment.options.get_str("INTEGRAL_PACKAGE") == "SIMINT")
293294
return new SimintERI(this, deriv, use_shell_pairs);
294-
#elif defined USING_erd
295+
#endif
296+
#ifdef USING_erd
295297
if(deriv == 0 && Process::environment.options.get_str("INTEGRAL_PACKAGE") == "ERD")
296298
return new ERDERI(this, deriv, use_shell_pairs);
297299
#endif

tests/erd/scf5/input.dat

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -45,57 +45,57 @@ set {
4545
print_stdout(' -Singlet RHF:') #TEST
4646
set scf reference rhf
4747

48-
set scf scf_type pk
48+
set scf_type pk
4949
E = energy('scf')
5050
compare_values(Eref_sing_can, E, 6, 'Singlet PK RHF energy') #TEST
5151

52-
set scf scf_type direct
52+
set scf_type direct
5353
E = energy('scf')
5454
compare_values(Eref_sing_can, E, 6, 'Singlet Direct RHF energy') #TEST
5555

56-
set scf scf_type out_of_core
56+
set scf_type out_of_core
5757
E = energy('scf')
5858
compare_values(Eref_sing_can, E, 6, 'Singlet Disk RHF energy') #TEST
5959

60-
set scf scf_type df
60+
set scf_type df
6161
E = energy('scf')
6262
compare_values(Eref_sing_df, E, 6, 'Singlet DF RHF energy') #TEST
6363

6464
print_stdout(' -Singlet UHF:') #TEST
6565
set scf reference uhf
6666

67-
set scf scf_type pk
67+
set scf_type pk
6868
E = energy('scf')
6969
compare_values(Eref_sing_can, E, 6, 'Singlet PK UHF energy') #TEST
7070

71-
set scf scf_type direct
71+
set scf_type direct
7272
E = energy('scf')
7373
compare_values(Eref_sing_can, E, 6, 'Singlet Direct UHF energy') #TEST
7474

75-
set scf scf_type out_of_core
75+
set scf_type out_of_core
7676
E = energy('scf')
7777
compare_values(Eref_sing_can, E, 6, 'Singlet Disk UHF energy') #TEST
7878

79-
set scf scf_type df
79+
set scf_type df
8080
E = energy('scf')
8181
compare_values(Eref_sing_df, E, 6, 'Singlet DF UHF energy') #TEST
8282

8383
print_stdout(' -Singlet CUHF:') #TEST
8484
set scf reference cuhf
8585

86-
set scf scf_type pk
86+
set scf_type pk
8787
E = energy('scf')
8888
compare_values(Eref_sing_can, E, 6, 'Singlet PK CUHF energy') #TEST
8989

90-
set scf scf_type direct
90+
set scf_type direct
9191
E = energy('scf')
9292
compare_values(Eref_sing_can, E, 6, 'Singlet Direct CUHF energy') #TEST
9393

94-
set scf scf_type out_of_core
94+
set scf_type out_of_core
9595
E = energy('scf')
9696
compare_values(Eref_sing_can, E, 6, 'Singlet Disk CUHF energy') #TEST
9797

98-
set scf scf_type df
98+
set scf_type df
9999
E = energy('scf')
100100
compare_values(Eref_sing_df, E, 6, 'Singlet DF CUHF energy') #TEST
101101

@@ -110,19 +110,19 @@ set {
110110
print_stdout(' -Triplet UHF:') #TEST
111111
set scf reference uhf
112112

113-
set scf scf_type pk
113+
set scf_type pk
114114
E = energy('scf')
115115
compare_values(Eref_uhf_can, E, 6, 'Triplet PK UHF energy') #TEST
116116

117-
set scf scf_type direct
117+
set scf_type direct
118118
E = energy('scf')
119119
compare_values(Eref_uhf_can, E, 6, 'Triplet Direct UHF energy') #TEST
120120

121-
set scf scf_type out_of_core
121+
set scf_type out_of_core
122122
E = energy('scf')
123123
compare_values(Eref_uhf_can, E, 6, 'Triplet Disk UHF energy') #TEST
124124

125-
set scf scf_type df
125+
set scf_type df
126126
E = energy('scf')
127127
compare_values(Eref_uhf_df, E, 6, 'Triplet DF UHF energy') #TEST
128128

@@ -131,22 +131,22 @@ clean()
131131
print_stdout(' -Triplet ROHF:') #TEST
132132
set scf reference rohf
133133

134-
set scf scf_type pk
134+
set scf_type pk
135135
E = energy('scf')
136136
compare_values(Eref_rohf_can, E, 6, 'Triplet PK ROHF energy') #TEST
137137
clean()
138138

139-
set scf scf_type direct
139+
set scf_type direct
140140
E = energy('scf')
141141
compare_values(Eref_rohf_can, E, 6, 'Triplet Direct ROHF energy') #TEST
142142
clean()
143143

144-
set scf scf_type out_of_core
144+
set scf_type out_of_core
145145
E = energy('scf')
146146
compare_values(Eref_rohf_can, E, 6, 'Triplet Disk ROHF energy') #TEST
147147
clean()
148148

149-
set scf scf_type df
149+
set scf_type df
150150
E = energy('scf')
151151
compare_values(Eref_rohf_df, E, 6, 'Triplet DF ROHF energy') #TEST
152152

@@ -155,21 +155,21 @@ clean()
155155
print_stdout(' -Triplet CUHF:') #TEST
156156
set scf reference cuhf
157157

158-
set scf scf_type pk
158+
set scf_type pk
159159
E = energy('scf')
160160
compare_values(Eref_rohf_can, E, 6, 'Triplet PK CUHF energy') #TEST
161161
clean()
162162

163-
set scf scf_type direct
163+
set scf_type direct
164164
E = energy('scf')
165165
compare_values(Eref_rohf_can, E, 6, 'Triplet Direct CUHF energy') #TEST
166166
clean()
167167

168-
set scf scf_type out_of_core
168+
set scf_type out_of_core
169169
E = energy('scf')
170170
compare_values(Eref_rohf_can, E, 6, 'Triplet Disk CUHF energy') #TEST
171171
clean()
172172

173-
set scf scf_type df
173+
set scf_type df
174174
E = energy('scf')
175175
compare_values(Eref_rohf_df, E, 6, 'Triplet DF CUHF energy') #TEST

0 commit comments

Comments
 (0)