Docs: https://jorgeg94.github.io/terco/. Build them locally with
pip install -r docs/sphinx/requirements.txt && sphinx-build -b html docs/sphinx docs/sphinx/_build.
Contributions, AI-assisted or not, follow AI_POLICY.md.
Adjective, from Spanish: Stubborn
Terco is a project born out of my stubborness and refusal to accept that something
cannot be done in plain old Fortran. The idea is simple: do concurrent is
standard Fortran and exposes parallelism nicely via a defined contract.
Question: can we evaluate ERIs on the GPU just using do concurrent and have good performance?
The question was partially answered by Melisa Alkan and collaborators who used OpenMP target and do concurrent to parallelize the ERIs inside GAMESS. See the first paper, the second paper by Daniel del Angel who tested it for F functions, but limited himself to OpenMP target.
However, the algorithm used to evaluate the integrals relied on the more traditional per-shell-quartet approach which can quickly hit a bottleneck by starving the GPU a bit of work. Thus, I adopted here the batching idea of preparing batches of shell pairs and distributing them to the device.
Thus I think this is a novel-ish implementation which ended up being quite nice to work with and extend.
The idea is simple, we use OpenACC to map the data between the host and the device (this wouldn't be needed in a unified memory environment), and rely exclusively on do concurrent to do the parallelization of the quartets.
| Four-centre ERIs and Fock builds | Head-Gordon–Pople through d, chunked Rys through f (TERCO_LMAX=3) and the low-L g classes, McMurchie–Davidson exchange for the rest of g and a McMurchie–Davidson J engine (TERCO_LMAX=4); h (TERCO_LMAX=5, energies, checked against pyscf on the host and on a V100; CI does not build it) is McMurchie–Davidson throughout |
| single density, batched over N densities in one integral pass, non-symmetric density, and a device-resident entry point | |
j_scale / k_scale, so a hybrid functional or a response solve needs no second routine |
|
| Screening | Schwarz bounds and optional density weighting, over a binned shell-pair container |
| One electron | overlap, kinetic, nuclear attraction |
| Multipoles | full Cartesian tensors through the octupole — 3 + 9 + 27 components |
| Density fitting | two- and three-centre Coulomb integrals |
| Kohn-Sham DFT | LDA, GGA and meta-GGA (tau-dependent: r2SCAN, SCAN, TPSS, the Minnesota M05-M15 family, ...) functionals, global, range-separated and double hybrids and VV10, RKS and UKS; every kernel checked against libxc (docs/functionals.md) |
| Correlation methods | RI-MP2 and double-hybrid DFT energies; closed-shell RI-CCSD and RI-CCSD(T) energies (--riccsd, --riccsd-t): RHF reference, an analytic gradient for RI-CCSD (--riccsd --grad, one rank; none for (T)), one GPU or several with one MPI rank per GPU (the particle-particle ladder of every iteration and the (T) are shared over the ranks; W, the ring terms and DIIS run on the first), validated against PySCF's DF-CCSD(T); theory and limits in docs/sphinx/theory.md |
| Excited states | closed-shell singlet TDA/CIS and full-RPA (TDHF, Casida) excitation energies, oscillator strengths and ||Y||^2 (--tddft), and the analytic gradient of a chosen root with the exact grid response (--tddft-root N --grad), so excited-state geometry optimisation works with --opt; RHF or RKS with an LDA, GGA or global-hybrid functional, validated against pyscf's tdscf and its excited-state gradients and against finite differences; Fortran (trc_tddft_run), C ABI (trc_run_tddft) and CLI |
| Solvation | C-PCM and IEF-PCM SCF energies (pyscf's SWIG cavity, term for term), RKS and UKS, any functional, CPU and GPU |
| Analytic gradients | HF/UHF, LDA/GGA/meta-GGA/hybrid/range-separated KS-DFT with VV10, the --df fitted RHF/RKS gradient (spherical or Cartesian orbital and auxiliary bases), RHF + RI-MP2 (--rimp2 --grad) and double hybrids (-f b2plyp --grad: KS + c RI-MP2, b2plyp/b2gp-plyp/mpw2plyp), four-centre or --df reference, the latter with a density-fitted Z-vector; frozen core, Cartesian or spherical, restricted, one GPU; with C-PCM/IEF-PCM, the continuum's own analytic term (grad_qv + grad_nuc + grad_solver) on top of the SCF gradient; validated against pyscf, metalquicha's RI-MP2 references and finite differences; single GPU (a multi-GPU run computes the SCF gradient on rank 0 and warns); no RI-MP2 or double-hybrid gradient over an unrestricted or PCM reference |
| Point-group symmetry | opt-in (--symmetry): Abelian groups (D2h and subgroups; higher groups through their Abelian subgroup) detected and symmetrised, an SO-blocked SCF with orbital irrep labels, --irrep-nelec, a skeleton Fock build and four-centre gradient from orbit representatives of the integral quartets (chosen by a measured size rule), and parity skipping of integral components that vanish by symmetry; results in the input frame; DF, PCM, SOSCF, response, Hessian, RI-MP2 and several ranks run in C1 (docs/INPUT.md) |
| Interfaces | a Fortran API, and a bind(c) ABI for host codes built with another compiler |
terco ships no basis set. A consumer passes exponents, coefficients and
centres — or hands over libcint's atm/bas/env directly — and terco builds
the basis object, the shell-pair container and the screening tables from that.
Terco will read the qcshema basis set format so if you have those, you can use them.
The code has not been tested on AMD or Intel GPUs. This is future work, if anyone is happy to try.
- RI-CCSD(T) is closed-shell RHF only, energies only, with no point-group symmetry (a named group is refused,
--symmetry onruns in C1), no effective core potential, an aufbau reference, and a system size bounded by the memory of one GPU. See docs/sphinx/theory.md. - g functions need
TERCO_LMAX=4and are for energies (range-separated hybrids included): the non-symmetric Fock build and gradients refuse a g basis, and the multipole integrals stop at d. An LMAX=4 build compiles for about 50 minutes. - h functions need
TERCO_LMAX=5andTERCO_CART_ORDER=lexicographic, and are for energies: RHF, UHF and DFT through meta-GGA, hybrids and range-separated hybrids, with or without point-group symmetry. The 16check_h_vs_pyscfcases pass on the host and on a V100 with nvfortran 26.9 at the default optimisation, |dE| against pyscf 6e-14 to 1.6e-11, integral row sums within 6e-15. With nvfortran 26.5 the 14 original cases pass with a Hermite-item-O2workaround, which the build switches on by itself for nvfortran older than 26.9 (the run-time cost of the workaround is not measured). Full cc-pV5Z energies on the V100 agree with the host to 1e-12 Eh (N2, H2O2). CI does not buildTERCO_LMAX=5(the GPU smoke test is in.claude/context/gpu-pitfalls.md). Every class with an h shell runs on the McMurchie–Davidson engine. In a water hexamer in cc-pV5Z (1206 functions, 23.9 s per Fock build on a V100) the 22 h classes with total angular momentum <= 9 take about 10% of the build, so routing them to chunked Rys would change it by a few percent at most. A single small molecule (H2O2, 292 functions: 0.8-1.0 s per Fock build) is bound by launch overhead, about 2 ms per class launch. The larger Boys table costs nothing measurable atTERCO_LMAX<= 4. An h basis is refused with a message by density fitting, PCM, CHELPG, gradients, RI-MP2, RI-CCSD and the response solvers: CPHF, CPKS and TDDFT refuse a basis above the dipole-integral ceiling (d) with a message rather than stopping inerror stop. The direct multipole entry points stillerror stopabove d. A fullTERCO_LMAX=5build is slow: nvfortran 26.5 took 76-78 minutes wall at-j20on a 40-core host shared with other jobs (about 970 CPU-minutes); nvfortran 26.9 took 111 minutes at-j14on the same host with other builds running. The slowest files (26.9) aretrc_1e_grad_k44at 39 minutes andtrc_pcm_grad_k44at 23 (both also built at LMAX=4), andtrc_1e_k55at 27; gfortran 15.1 builds the host library in 5 minutes 40 seconds at-j20.
Spherical harmonics and range separation are supported:
- a spherical basis is computed in Cartesians and transformed, and
--cartkeeps a basis Cartesian; - range-separated hybrids use an erf-attenuated
erf(ωr₁₂)/r₁₂exchange kernel.
A host code is expected to check before it commits: trc_basis_maxl answers
before anything expensive is built.
The GPU build requires NVHPC. -stdpar=gpu is the whole mechanism —
it is what turns do concurrent into device kernels — so TERCO_ENABLE_GPU=ON
with any other compiler is refused rather than silently producing a slow CPU
library. AMD GPUs go through a generated OpenMP-offload copy of the source
instead (AMD GPUs below).
A host build (-DTERCO_ENABLE_GPU=OFF) works with gfortran 15 or
newer, ifx, or nvfortran. gfortran 15 is a floor rather than a preference:
do concurrent locality specifiers are Fortran 2018 and landed there. The host
build is not a fallback to run production on — it is how the library is
validated without a GPU, and it must give the same integrals, because a number
that depends on the offload model is a bug in the offload model.
In theory do concurrent can be parallelised over CPU threads: ifx, flang and
nvfortran will do it. This is not tested in CI at the moment. Work is underway
in gfortran to enable it.
The parallelism model exposed in terco is suited for GPU execution it might be crap on the CPU. Don't quote me on this (Jorge).
cmake -S . -B build -DCMAKE_Fortran_COMPILER=nvfortran -DTERCO_GPU_ARCH=cc70
cmake --build build -j
ctest --test-dir build --output-on-failure| Option | Default | |
|---|---|---|
TERCO_LMAX |
2 |
four-centre ceiling, 0 to 5 (TERCO_DF_LMAX at most 4). Anything but 2 regenerates the kernels (needs Python 3) |
TERCO_GPU_ARCH |
cc70 |
as nvfortran spells it |
TERCO_BUILD_SHARED |
ON |
libterco.so, which a host built with another compiler can link; OFF for a static library |
TERCO_REGENERATE |
OFF |
refresh the committed kernels in-tree |
TERCO_FORCE_REGENERATE |
OFF |
regenerate the build-tree kernels once, ignoring the generation stamps (a configure otherwise reruns a generator only when a generator, its inputs or its options changed) |
TERCO_ENABLE_MPI |
OFF |
split the Fock build over MPI ranks, one device each; OFF is the same code on pic-mpi's single-rank backend |
TERCO_ENABLE_TESTING |
ON |
Consume it with find_package(terco) and link terco::terco.
AMD's flang has no -stdpar=gpu and ignores !$acc, so the AMD build compiles
an OpenMP-offload copy of the tree that tools/port_to_omp.sh generates
(do concurrent becomes !$omp target teams distribute parallel do, the
OpenACC data directives become !$omp target ones). The copy is never edited:
throw it away and regenerate it from a commit. hipBLAS and hipSOLVER stand in
for cuBLAS and cuSOLVER (src/core/trc_hip.F90, plain bind(c), no hipfort).
Tested on Frontier (MI250X, gfx90a) with AMD's AFAR flang drop 24.4.0, which
ships its own ROCm runtime: do not module load rocm beside it. Everything —
BLAS included — must come from that drop; a BLAS built with another flang
brings a second Fortran runtime, and allocate fails at start-up.
tools/port_to_omp.sh ../terco-omp gpu # DEST must not exist
cd ../terco-omp
blas=$AFAR/lib/host-math/lib/librocm-openblas.so # the drop's own OpenBLAS
cmake -G Ninja -S . -B build -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_Fortran_COMPILER=amdflang -DCMAKE_C_COMPILER=amdclang \
-DTERCO_ENABLE_HIP=ON -DTERCO_HIP_ARCH=gfx90a -DTERCO_HIP_NO_OPENMP_OPT=ON \
-DBLAS_LIBRARIES=$blas -DLAPACK_LIBRARIES=$blas \
-DCMAKE_SHARED_LINKER_FLAGS=-Wl,-z,execstack -DCMAKE_EXE_LINKER_FLAGS=-Wl,-z,execstack
cmake --build build -j 120| Option | Default | |
|---|---|---|
TERCO_ENABLE_HIP |
OFF |
the AMD build; exclusive with TERCO_ENABLE_GPU |
TERCO_HIP_ARCH |
gfx90a |
--offload-arch |
TERCO_HIP_NO_OPENMP_OPT |
OFF |
skip LLVM's OpenMPOpt pass: most of the device compile time (a kernel's 22.7 s becomes 6.4 s); its run-time cost is not measured yet |
TERCO_HIP_LTO_PARTITIONS |
32 |
device LTO codegen threads at link time; flang always links device code by full LTO, single-threaded otherwise |
TERCO_HIP_USM |
OFF |
unified shared memory (gfx90a:xnack+, run with HSA_XNACK=1): a fallback, about 2x slower in the Fock build |
With these, a full build takes about 11 minutes at -j 120. On one MI250X GCD
HF, the GGA/meta-GGA/hybrid/VV10 functionals, UHF/UKS, DF-HF, RI-MP2,
RI-CCSD(T), TDDFT, C-PCM and the HF, B3LYP and DF gradients give the host
build's energies to the digits printed. gly50/cc-pVDZ (3574 functions, full
Fock builds) takes 5.7 s per Fock build against a V100's 3.9 s.
tools/fpm_generate.sh # the Rys and MD kernels, into src/generated/fpm/
fpm build --compiler mpifort --flag "-ffree-line-length-none" # gfortran
fpm build --compiler mpifort --flag "-stdpar=gpu -acc -gpu=cc70,mem:separate" # nvfortranfpm builds the shipped configuration and only that one: TRC_LMAX=2. fpm
cannot run a code generator and most of this library is generated, so
src/generated/ holds the committed HGP kernels, and tools/fpm_generate.sh
generates the Rys kernels (energy and gradient) and the MD J/K kernels that
CMake would generate at configure time. Rerun it after changing scripts/.
Any other ceiling needs CMake.
fpm also compiles the CLI support modules in src/cli/ into its library;
CMake compiles them only into the CLI executable.
The geometry optimiser is off by default, as in the CMake build: DL-FIND is
LGPL-3.0-or-later, and fpm links its dependencies into libterco itself
(CMake keeps it in a separate libterco_opt behind TERCO_ENABLE_DLFIND).
Without it, terco --opt is refused with a message. To build it, opt in with
two edits to fpm.toml:
[preprocess.cpp]
macros = ["TRC_LMAX=2", "TRC_FOCK6", "TERCO_ENABLE_DLFIND"]
[dependencies]
libdlfind = { git = "https://github.com/JorgeG94/libdlfind", rev = "86d483277ceb588f08e23bbf964742008d3b352f" }then fpm build as above. The pin is the commit of terco's libdlfind fork
that adds an fpm manifest; it compiles the same DL-FIND sources as the commit
the CMake build fetches (cmake/modules/Findlibdlfind.cmake). An fpm-built
binary with DL-FIND in it is covered by the LGPL's relinking terms if you
redistribute it.
The CMake build also makes a terco program (-DTERCO_BUILD_APP=OFF skips
it). It reads an xyz file and runs an SCF, in the spirit of xtb:
terco water.xyz # RHF/def2-SVP from a SAD guess
terco water.xyz -b cc-pvdz -f pbe0 # RKS/PBE0
terco oh.xyz -u 1 -f b3lyp # UKS doublet
terco nh4.xyz -c 1 # cation: SADQ guess by default
terco water.xyz -b 6-31g --rimp2 # RHF + RI-MP2 (cc-pvdz-rifit)
terco water.xyz -b cc-pvdz --riccsd-t # RHF + RI-CCSD(T), core counted by element, cc-pvdz-rifit
terco water.xyz --json result.json # also write a JSON summary
terco water.xyz -f b3lyp --pcm cpcm --eps 78.3553 # in water, C-PCM
terco --helpA basis name is looked up as <name>.json in each directory of
$TERCO_BASIS_PATH, then in share/terco/basis_sets under the install prefix,
where cmake --install puts the basis sets terco is tested with. The exit
status is 0 on success, 1 on an error and 2 if the SCF did not converge.
The same run can be written as a TOML file, one key per option, in readable sections (docs/INPUT.md lists them all):
[molecule]
geometry = "water.xyz" # relative to this file
[basis]
main = "cc-pvdz"
[scf]
functional = "b3lyp"
[solvation]
model = "cpcm"
epsilon = 78.3553
[output]
json = "water.json"terco water.toml # the run in the file
terco water.toml --grid 4 # flags after the file override itAn unknown key or a wrong type is refused with the line it is on, and the JSON summary records every setting the run used in the same sections.
Build with -DTERCO_ENABLE_MPI=ON (NVHPC's own MPI; see the CMake table
above), then run under mpiexec:
mpiexec -np 4 terco water.xyz -b 6-31g* # one GPU per rankWork is divided among GPUs in a mostly load balanced way - no dynamic
load balancing is enabled (yet). The code is able to run in a distributed
fashion, i.e. (with slurm because it is very nice to read), you do:
srun -N 2 --ntasks=8 --ntasks-per-node=4 --ngpus-per-node=4 ./terco big.xyz
it will run on two nodes and distribute among 8 GPUs. All methods that can
do multi GPU can do this. I.e. just the gradients cannot.
use trc_api, only: trc_basis_t, trc_pairlist_t, trc_1e, trc_multipoles
use trc_fock, only: trc_eri_t
type(trc_basis_t) :: bas
type(trc_pairlist_t) :: pl
type(trc_eri_t) :: eri
call bas%build(nsh, sh_l, sh_np, sh_e, sh_c, sh_r, nat, at_z, at_r, maxnp)
call bas%to_device()
call pl%build(bas, 1.0e-10_dp)
call pl%to_device()
call eri%build(bas, 1.0e-10_dp) ! Schwarz bounds, bins, pair tables
call trc_1e(bas, pl, smat, tmat, vmat) ! S, T, V in one pass
call eri%fock(bas, dmat, gmat) ! G = J - K/2
call eri%fock_many(bas, n, dmats, gmats) ! N densities, ONE integral passThe basis, the pair list and the ERI object are built once per geometry and reused by every Fock build. Rebuilding them per SCF iteration throws away the container's entire reason for existing. If used in a fragmentation code, this can be done better.
fock_many takes (ndens, nao, nao) — the density index first. That is not
arbitrary: with it last, the N atomic updates for one (mu,nu) sit nao² apart
and the batch stops paying past N = 4.
A gfortran or ifx host cannot read nvfortran's .mod files, so it goes through
the C ABI. libterco.so is the default build — nvfortran links
it, so it carries the NVHPC and OpenACC runtimes as its own DT_NEEDED and the
host's link line needs nothing but -lterco.
Compile include/trc_c_interfaces.f90 with your own compiler and use it.
That file is the authoritative declaration; do not write your own interface
block. A copy of a contract kept in step by hand still compiles and still links
when it drifts, because a C symbol carries no signature — it fails at run time
by reading whatever was in the register.
use trc_c_interfaces
rc = trc_basis_create_libcint(atm, natm, bas, nbas, env, nenv, 1, hbas)
rc = trc_eri_create(hbas, 1.0e-10_dp, heri)
rc = trc_fock(heri, hbas, d, g, 1.0d0, 1.0d0, 1, 0.0d0) ! last: omega, 0 = CoulombMost of the compiled lines come out of scripts/. That is the design: a
generated kernel has every index as a literal, no table loads and no branches,
and NVHPC budgets registers for one angular-momentum class rather than for the
worst class across all of them.
docs/GENERATORS.md— what each generator emits, the conventions they share, how to extend them, and the traps that have actually cost time.docs/ARCHITECTURE.md— the object model, the screening and binning design, and the density-fitting plan.
Several design decisions here follow the GPU Hartree–Fock work in [1] — the
shell-pair binning by angular momentum and contraction depth, the pre-screen
before binning, the folded six-update digestion, and the per-order Boys
interpolation. The sources cite it as [1] where it is relevant. The rest is
the surrounding literature on GPU integral evaluation and on offloading GAMESS,
which is where the conventions and the comparison points come from.
[1] J. L. Galvez Vallejo, G. M. J. Barca and M. S. Gordon, High-performance GPU-accelerated evaluation of electron repulsion integrals, Molecular Physics 121 (2022), e2112987. doi:10.1080/00268976.2022.2112987
[2] D. Del Angel Cruz, J. L. Galvez Vallejo and M. S. Gordon, Electron repulsion integral evaluation over f-type functions on GPUs via OpenMP offloading, The Journal of Chemical Physics 164 (2026), 214118. doi:10.1063/5.0334077
[3] M. Alkan, B. Q. Pham, D. Del Angel Cruz, J. R. Hammond, T. A. Barnes and M. S. Gordon, LibERI — A portable and performant multi-GPU accelerated library for electron repulsion integrals via OpenMP offloading and standard language parallelism, The Journal of Chemical Physics 161 (2024), 082501. doi:10.1063/5.0215352
[4] T. Sattasathuchana, P. Xu, D. Oryspayev, C. Bertoni, L. B. Roskop and M. S. Gordon, Performance portability of electron repulsion integrals and their related methods across peta to exascale architectures, in SC24-W: Workshops of the International Conference for High Performance Computing, Networking, Storage and Analysis, IEEE (2024), 1943–1954. doi:10.1109/SCW63240.2024.00244
[5] M. Sosonkina, G. Mateescu, P. Xu, T. Sattasathuchana, B. Pham, M. S. Gordon and S. S. Leang, Runtime performance of a GAMESS quantum chemistry application offloaded to GPUs, Concurrency and Computation: Practice and Experience 36 (2024), e8244. doi:10.1002/cpe.8244
[6] B. Chapman, B. Pham, C. Yang, C. Daley, C. Bertoni, D. Kulkarni, D. Oryspayev, E. D'Azevedo, J. Doerfert, K. Zhou, K. Ravikumar, M. Gordon, M. Del Ben, M. Lin, M. Alkan, M. Kruse, O. Hernandez, P. K. Yeung, P. Lin, P. Xu, S. Pophale, T. Sattasathuchana, V. Kale, W. Huhn and Y. He, Outcomes of OpenMP hackathon: OpenMP application experiences with the offloading model (Part II), in OpenMP: Enabling Massive Node-Level Parallelism, edited by S. McIntosh-Smith, B. R. de Supinski and J. Klinkenberg, Lecture Notes in Computer Science 12870, Springer (2021), 81–95. doi:10.1007/978-3-030-85262-7_6
[7] T. Sattasathuchana, P. Xu and M. S. Gordon, An accurate quantum-based approach to explicit solvent effects: interfacing the general effective fragment potential method with ab initio electronic structure theory, The Journal of Physical Chemistry A 123 (2019), 8460–8475. doi:10.1021/acs.jpca.9b05801
[8] M. Alkan, B. Q. Pham, J. R. Hammond and M. S. Gordon, Enabling Fortran standard parallelism in GAMESS for accelerated quantum chemistry calculations, Journal of Chemical Theory and Computation 19 (2023), 3798–3805. doi:10.1021/acs.jctc.3c00380
BibTeX for all of the above
@article{galvez_vallejo_high-performance_2022,
author = {Galvez Vallejo, Jorge Luis and Barca, Giuseppe M. J. and Gordon, Mark S.},
title = {High-performance {GPU}-accelerated evaluation of electron repulsion integrals},
journal = {Molecular Physics},
volume = {121},
number = {9--10},
pages = {e2112987},
year = {2022},
issn = {0026-8976},
doi = {10.1080/00268976.2022.2112987},
}
@article{del_angel_cruz_f_type_2026,
author = {Del Angel Cruz, Daniel and Galvez Vallejo, Jorge L. and Gordon, Mark S.},
title = {Electron repulsion integral evaluation over f-type functions on {GPUs} via {OpenMP} offloading},
journal = {The Journal of Chemical Physics},
volume = {164},
number = {21},
pages = {214118},
year = {2026},
doi = {10.1063/5.0334077},
}
@article{alkan_liberi_2024,
author = {Alkan, Melisa and Pham, Buu Q. and Del Angel Cruz, Daniel and Hammond, Jeff R. and Barnes, Taylor A. and Gordon, Mark S.},
title = {{LibERI}---A portable and performant multi-{GPU} accelerated library for electron repulsion integrals via {OpenMP} offloading and standard language parallelism},
journal = {The Journal of Chemical Physics},
volume = {161},
number = {8},
pages = {082501},
year = {2024},
doi = {10.1063/5.0215352},
}
@inproceedings{sattasathuchana_performance_portability_2024,
author = {Sattasathuchana, Tosaporn and Xu, Peng and Oryspayev, Dossay and Bertoni, Colleen and Roskop, Luke B. and Gordon, Mark S.},
title = {Performance {Portability} of {Electron} {Repulsion} {Integrals} and {Their} {Related} {Methods} across {Peta} to {Exascale} {Architectures}},
booktitle = {SC24-W: Workshops of the International Conference for High Performance Computing, Networking, Storage and Analysis},
publisher = {IEEE},
pages = {1943--1954},
year = {2024},
doi = {10.1109/SCW63240.2024.00244},
}
@article{sosonkina_runtime_2024,
author = {Sosonkina, Masha and Mateescu, Gabriel and Xu, Peng and Sattasathuchana, Tosaporn and Pham, Buu and Gordon, Mark S. and Leang, Sarom S.},
title = {Runtime performance of a {GAMESS} quantum chemistry application offloaded to {GPUs}},
journal = {Concurrency and Computation: Practice and Experience},
volume = {36},
number = {23},
pages = {e8244},
year = {2024},
doi = {10.1002/cpe.8244},
}
@incollection{chapman_openmp_hackathon_2021,
author = {Chapman, Barbara and Pham, Buu and Yang, Charlene and Daley, Christopher and Bertoni, Colleen and Kulkarni, Dhruva and Oryspayev, Dossay and D'Azevedo, Ed and Doerfert, Johannes and Zhou, Keren and Ravikumar, Kiran and Gordon, Mark and Del Ben, Mauro and Lin, Meifeng and Alkan, Melisa and Kruse, Michael and Hernandez, Oscar and Yeung, P. K. and Lin, Paul and Xu, Peng and Pophale, Swaroop and Sattasathuchana, Tosaporn and Kale, Vivek and Huhn, William and He, Yun},
title = {Outcomes of {OpenMP} {Hackathon}: {OpenMP} {Application} {Experiences} with the {Offloading} {Model} ({Part} {II})},
booktitle = {OpenMP: Enabling Massive Node-Level Parallelism},
editor = {McIntosh-Smith, Simon and de Supinski, Bronis R. and Klinkenberg, Jannis},
series = {Lecture Notes in Computer Science},
volume = {12870},
publisher = {Springer International Publishing},
pages = {81--95},
year = {2021},
isbn = {978-3-030-85261-0},
doi = {10.1007/978-3-030-85262-7_6},
}
@article{sattasathuchana_gefp_2019,
author = {Sattasathuchana, Tosaporn and Xu, Peng and Gordon, Mark S.},
title = {An {Accurate} {Quantum}-{Based} {Approach} to {Explicit} {Solvent} {Effects}: {Interfacing} the {General} {Effective} {Fragment} {Potential} {Method} with \emph{Ab Initio} {Electronic} {Structure} {Theory}},
journal = {The Journal of Physical Chemistry A},
volume = {123},
number = {39},
pages = {8460--8475},
year = {2019},
doi = {10.1021/acs.jpca.9b05801},
}
@article{alkan_stdpar_2023,
author = {Alkan, Melisa and Pham, Buu Q. and Hammond, Jeff R. and Gordon, Mark S.},
title = {Enabling {Fortran} {Standard} {Parallelism} in {GAMESS} for {Accelerated} {Quantum} {Chemistry} {Calculations}},
journal = {Journal of Chemical Theory and Computation},
volume = {19},
number = {13},
pages = {3798--3805},
year = {2023},
doi = {10.1021/acs.jctc.3c00380},
}Validation and comparison targets used during development, all open source: libcint, pyscf, gpu4pyscf, and GAMESS libERI.
MIT. See LICENSE.
The XC kernels under src/xc/trc_xc_*.F90 whose header says "GENERATED by
tools/exchcxx_to_fortran.py" are a line-for-line Fortran translation of
ExchCXX's built-in kernels
(BSD 3-clause; Copyright (c) 2020-2024, The Regents of the University of
California, through Lawrence Berkeley National Laboratory; portions
Copyright (c) Microsoft Corporation). Each translated file's own header
carries that notice; ExchCXX's original is at
include/exchcxx/impl/builtin/kernels/ in its own repository.
The "powered by Fortran" logo at the top of this file,
docs/assets/powered_by_Fortran_switch_LC.svg, is the switch logo from
powered_by_fortran_logo
(MIT; Copyright (c) 2026 Sebastian G. Mutz), unchanged; its licence is
docs/assets/LICENSE.powered_by_fortran_logo.
libxc is used only as the test reference
for check_xc and friends, reached through pyscf -- never linked into
terco.