
Parameter: device_exx
Type:      String
Default:   cpu
Category:  Exact Exchange (LCAO)
Availability: basis_type==lcao

Description:
  Selects the LibRI tensor-contraction device for LCAO Kohn-Sham exact
  exchange.
  - cpu: retain CPU contractions, including when device=gpu.
  - gpu: use the experimental GPU backend; requires
    ENABLE_LIBRI_GPU=ON and device=gpu.
  With symmetry=1, GPU contractions require exx_symmetry_realspace=0
  because LibRI v0.3.0.0 GPU real-space symmetry fails HSE numerical
  validation. K-point symmetry reduction remains available.
  Independent LR and RDMFT exchange engines retain CPU contractions.
  LR inherits this selection only when it reuses the Kohn-Sham
  exchange object. For GPU contractions, all MPI ranks on a node must
  see the same allocated GPU list, with at least as many visible GPUs
  as local ranks; per-rank single-GPU masking is unsupported.

