.. _global: .. index:: pair: namespace; global Global Namespace ================ .. toctree:: :hidden: namespace_Eigen.rst namespace_Kokkos.rst namespace_atmd.rst namespace_aux.rst namespace_ceres.rst namespace_dimer.rst namespace_featomic.rst namespace_funcmin.rst namespace_gaussianinfluence.rst namespace_gpr.rst namespace_math.rst namespace_pot.rst namespace_quantumbridge.rst namespace_readcon_db.rst namespace_rgpot.rst namespace_std.rst enum_ConvergenceNormType.rst enum_DebugLevels.rst enum_DimerAlgorithm.rst enum_Directions.rst enum_DistanceMetricType.rst enum_FrozenAndMovingAtoms.rst enum_OptimizationAlgorithms.rst enum_OptionsForGradCalculation.rst enum_Potentials.rst enum_eon_relax_kind_t.rst enum_eon_relax_neb_status_t.rst enum_eon_relax_rc_t.rst enum_rgpot_engine_gpr_hill_policy.rst enum_rgpot_engine_gpr_hint_kind.rst enum_rgpot_engine_gpr_phase.rst struct_Compensated.rst struct_RgpotEngineGprHint.rst struct_RgpotEngineGprResidualPrior.rst struct_RgpotEngineGprStats.rst struct_RgpotEnginePot.rst struct_eon_relax_band_t.rst struct_eon_relax_outcome_t.rst struct_eon_relax_surface_request_t.rst struct_eon_relax_version_t.rst struct_gpr_scheme2_cuda_operand_v1.rst struct_gpr_scheme2_cuda_table_v1.rst struct_gpr_scheme2_cuda_task_v1.rst Overview ~~~~~~~~ .. ref-code-block:: cpp :class: doxyrest-overview-code-block // namespaces namespace :ref:`Eigen`; namespace :ref:`Kokkos`; namespace :ref:`atmd`; namespace :ref:`aux`; namespace :ref:`aux::distance`; namespace :ref:`ceres`; namespace :ref:`dimer`; namespace :ref:`featomic`; namespace :ref:`funcmin`; namespace :ref:`gaussianinfluence`; namespace :ref:`gpr`; namespace :ref:`gpr::abi`; namespace :ref:`gpr::bo`; namespace :ref:`gpr::bo::testing`; namespace :ref:`gpr::capi`; namespace :ref:`gpr::capi::testing`; namespace :ref:`gpr::cli`; namespace :ref:`gpr::coord`; namespace :ref:`gpr::derivatives`; namespace :ref:`gpr::derivatives::generated`; namespace :ref:`gpr::extended`; namespace :ref:`gpr::extended::directed`; namespace :ref:`gpr::extended::scaled`; namespace :ref:`gpr::field`; namespace :ref:`gpr::geometry`; namespace :ref:`gpr::htst`; namespace :ref:`gpr::io`; namespace :ref:`gpr::irc`; namespace :ref:`gpr::itergp`; namespace :ref:`gpr::kokkos_environment`; namespace :ref:`gpr::laplace`; namespace :ref:`gpr::linalg`; namespace :ref:`gpr::linalg::backend`; namespace :ref:`gpr::linalg::canonical`; namespace :ref:`gpr::linalg::cutlass`; namespace :ref:`gpr::linalg::fixed`; namespace :ref:`gpr::linalg::kokkos_joint`; namespace :ref:`gpr::linalg::linop`; namespace :ref:`gpr::linalg::portable_tiles`; namespace :ref:`gpr::linalg::schemeii`; namespace :ref:`gpr::memory`; namespace :ref:`gpr::neb`; namespace :ref:`gpr::neb::oie`; namespace :ref:`gpr::numerics`; namespace :ref:`gpr::optim`; namespace :ref:`gpr::optim_abi`; namespace :ref:`gpr::pairlocal`; namespace :ref:`gpr::policy`; namespace :ref:`gpr::posterior`; namespace :ref:`gpr::potentials`; namespace :ref:`gpr::priors`; namespace :ref:`gpr::quantum`; namespace :ref:`gpr::quantum::bathresponse`; namespace :ref:`gpr::quantum::beadcorrection`; namespace :ref:`gpr::quantum::elementfluct`; namespace :ref:`gpr::quantum::functionaldesign`; namespace :ref:`gpr::quantum::gaussian`; namespace :ref:`gpr::quantum::ratepost`; namespace :ref:`gpr::quantum::ringbath`; namespace :ref:`gpr::quantum::ringspread`; namespace :ref:`gpr::quantum::spectraldet`; namespace :ref:`gpr::readcon_abi`; namespace :ref:`gpr::readcon_db_abi`; namespace :ref:`gpr::rgmin_abi`; namespace :ref:`gpr::rgpot_abi`; namespace :ref:`gpr::runtime`; namespace :ref:`gpr::sfc`; namespace :ref:`gpr::ski`; namespace :ref:`gpr::startup`; namespace :ref:`gpr::track`; namespace :ref:`gpr::uasaddle`; namespace :ref:`gpr::vecchia`; namespace :ref:`math`; namespace :ref:`pot`; namespace :ref:`quantumbridge`; namespace :ref:`quantumbridge::quadrature`; namespace :ref:`quantumbridge::secondcumulantdetail`; namespace :ref:`readcon_db`; namespace :ref:`rgpot`; namespace :ref:`std`; // typedefs typedef int :target:`cusolverStatus_t`; typedef int :target:`cublasStatus_t`; typedef void* :target:`cusolverDnHandle_t`; typedef void* :target:`cublasHandle_t`; typedef int :target:`cublasFillMode_t`; typedef int :target:`cublasOperation_t`; typedef int :target:`cublasDiagType_t`; typedef int :target:`cublasSideMode_t`; typedef struct gpr_scheme2_cuda_table_v1 :ref:`gpr_scheme2_cuda_table_v1`; typedef struct gpr_scheme2_cuda_operand_v1 :ref:`gpr_scheme2_cuda_operand_v1`; typedef struct gpr_scheme2_cuda_task_v1 :ref:`gpr_scheme2_cuda_task_v1`; typedef struct :ref:`EonRelaxEngine` :target:`EonRelaxEngine`; typedef int (*:ref:`eon_relax_surface_fn`)( void *user, eon_relax_surface_request_t *req ); typedef rgsaddle_version_t :target:`gpr_rgsaddle_version_t`; typedef rgsaddle_surface_request_t :target:`gpr_rgsaddle_surface_request_t`; typedef rgsaddle_surface_fn :target:`gpr_rgsaddle_surface_fn`; typedef rgsaddle_band_config_t :target:`gpr_rgsaddle_band_config_t`; typedef rgsaddle_report_t :target:`gpr_rgsaddle_report_t`; typedef rgsaddle_sella_min_config_t :target:`gpr_rgsaddle_sella_min_config_t`; typedef rgsaddle_minmode_config_t :target:`gpr_rgsaddle_minmode_config_t`; typedef rgsaddle_sella_saddle_config_t :target:`gpr_rgsaddle_sella_saddle_config_t`; typedef rgsaddle_index1_config_t :target:`gpr_rgsaddle_index1_config_t`; typedef rgsaddle_kappa_config_t :target:`gpr_rgsaddle_kappa_config_t`; typedef rgsaddle_kappa_report_t :target:`gpr_rgsaddle_kappa_report_t`; typedef rgsaddle_hessian_fn :target:`gpr_rgsaddle_hessian_fn`; // enums enum :ref:`ConvergenceNormType`; enum :ref:`DebugLevels`; enum :ref:`DimerAlgorithm`; enum :ref:`Directions`; enum :ref:`DistanceMetricType`; enum :ref:`FrozenAndMovingAtoms`; enum :ref:`OptimizationAlgorithms`; enum :ref:`OptionsForGradCalculation`; enum :ref:`Potentials`; enum :ref:`eon_relax_kind_t`; enum :ref:`eon_relax_neb_status_t`; enum :ref:`eon_relax_rc_t`; enum :ref:`rgpot_engine_gpr_hill_policy`; enum :ref:`rgpot_engine_gpr_hint_kind`; enum :ref:`rgpot_engine_gpr_phase`; // structs struct :ref:`Compensated`; struct :ref:`RgpotEngineGprHint`; struct :ref:`RgpotEngineGprResidualPrior`; struct :ref:`RgpotEngineGprStats`; struct :ref:`RgpotEnginePot`; struct :ref:`eon_relax_band_t`; struct :ref:`eon_relax_outcome_t`; struct :ref:`eon_relax_surface_request_t`; struct :ref:`eon_relax_version_t`; struct :ref:`gpr_atoms_config_t`; struct :ref:`gpr_bq_config_t`; struct :ref:`gpr_bq_fit_report_t`; struct :ref:`gpr_bq_integral_report_t`; struct :ref:`gpr_bq_loo_report_t`; struct :ref:`gpr_bq_uncertainty_t`; struct :ref:`gpr_calibration_report_t`; struct :ref:`gpr_derivative_options`; struct :ref:`gpr_derivative_report`; struct :ref:`gpr_dimer_config_t`; struct :ref:`gpr_dimer_report_t`; struct :ref:`gpr_fes_config_t`; struct :ref:`gpr_fes_rate_config_t`; struct :ref:`gpr_fes_rate_report_t`; struct :ref:`gpr_htst_half`; struct :ref:`gpr_htst_options`; struct :ref:`gpr_lj_params_t`; struct :ref:`gpr_local_band_config_t`; struct :ref:`gpr_marginal_likelihood_report_t`; struct :ref:`gpr_minimize_config_t`; struct :ref:`gpr_model_config_t`; struct :ref:`gpr_neb_config_t`; struct :ref:`gpr_neb_report_t`; struct :ref:`gpr_noise_floor_report`; struct :ref:`gpr_ocineb_config_t`; struct :ref:`gpr_periodic_band_config_t`; struct :ref:`gpr_rff_selection`; struct :ref:`gpr_scheme2_cuda_operand_v1`; struct :ref:`gpr_scheme2_cuda_table_v1`; struct :ref:`gpr_scheme2_cuda_task_v1`; // global variables static int :target:`CUSOLVER_STATUS_SUCCESS` = 0; static int :target:`CUBLAS_STATUS_SUCCESS` = 0; static int :target:`CUBLAS_FILL_MODE_LOWER` = 0; static int :target:`CUBLAS_OP_N` = 0; static int :target:`CUBLAS_OP_T` = 1; static int :target:`CUBLAS_DIAG_NON_UNIT` = 0; static int :target:`CUBLAS_SIDE_LEFT` = 0; size_t :target:`config_len`; size_t char* :target:`errbuf`; size_t char size_t :target:`errlen`; uint64_t :target:`epoch`; :ref:`eon_relax_band_t`* :target:`band`; :ref:`eon_relax_band_t` :ref:`eon_relax_surface_fn` :target:`surface`; :ref:`eon_relax_band_t` :ref:`eon_relax_surface_fn` void* :target:`user`; :ref:`eon_relax_band_t` :ref:`eon_relax_surface_fn` void :ref:`eon_relax_outcome_t`* :target:`out`; int :target:`status`; // global functions void* :target:`gpr_stdpar_environment_create_v1`(char* error, std::size_t capacity); void :target:`gpr_stdpar_environment_destroy_v1`(void* workspace); int :target:`gpr_stdpar_environment_blocks_v1`(void* workspace, const gpr::detail::EnvironmentPairBatch* batch, double* blocks, char* error, std::size_t capacity); void* :target:`gpr_stdpar_environment_create_v1`(char* error, std::size_t capacity); void :target:`gpr_stdpar_environment_destroy_v1`(void* workspace); int :target:`gpr_stdpar_environment_blocks_v1`(void* workspace, const gpr::detail::EnvironmentPairBatch* batch, double* blocks, char* error, std::size_t capacity); static void :target:`add_term`(struct :ref:`Compensated`* state, double value); static void :target:`add_product`(struct :ref:`Compensated`* state, double left, double right); float :target:`compensated_product_sum`(double* out, const double* left, const double* right, int n); void :target:`Cblacs_pinfo`(int* a, int* b); void :target:`Cblacs_get`(int a, int b, int* c); void :target:`Cblacs_gridinit`(int* a, const char* b, int c, int d); void :target:`Cblacs_gridinfo`(int a, int* b, int* c, int* d, int* e); void :target:`Cblacs_gridexit`(int a); void :target:`Cblacs_exit`(int a); MPI_Comm :target:`Cblacs2sys_handle`(int a); int :target:`Csys2blacs_handle`(MPI_Comm communicator); void :target:`Cfree_blacs_system_handle`(int handle); void :target:`descinit_`(int* desc, const int* m, const int* n, const int* mb, const int* nb, const int* irsrc, const int* icsrc, const int* ictxt, const int* lld, int* info); int :target:`numroc_`(const int* n, const int* nb, const int* iproc, const int* isrcproc, const int* nprocs); void :target:`Cpdgemr2d`(int m, int n, const double* a, int ia, int ja, const int* desca, double* b, int ib, int jb, const int* descb, int ictxt); void :target:`pdgesvd_`(const char* jobu, const char* jobvt, const int* m, const int* n, double* a, const int* ia, const int* ja, const int* desca, double* s, double* u, const int* iu, const int* ju, const int* descu, double* vt, const int* ivt, const int* jvt, const int* descvt, double* work, const int* lwork, int* info); void :target:`pdsyev_`(const char* jobz, const char* uplo, const int* n, double* a, const int* ia, const int* ja, const int* desca, double* w, double* z, const int* iz, const int* jz, const int* descz, double* work, const int* lwork, int* info); bool :target:`pdsyevd_available_`(); void :target:`pdsyevd_`(const char* jobz, const char* uplo, const int* n, double* a, const int* ia, const int* ja, const int* desca, double* w, double* z, const int* iz, const int* jz, const int* descz, double* work, const int* lwork, int* iwork, const int* liwork, int* info); bool :target:`pdsyevr_available_`(); void :target:`pdsyevr_`(const char* jobz, const char* range, const char* uplo, const int* n, double* a, const int* ia, const int* ja, const int* desca, const double* vl, const double* vu, const int* il, const int* iu, int* m, int* nz, double* w, double* z, const int* iz, const int* jz, const int* descz, double* work, const int* lwork, int* iwork, const int* liwork, int* info); void :target:`pdpotrf_`(const char* uplo, const int* n, double* a, const int* ia, const int* ja, const int* desca, int* info); void :target:`pdpotri_`(const char* uplo, const int* n, double* a, const int* ia, const int* ja, const int* desca, int* info); void :target:`pdtrsm_`(const char* side, const char* uplo, const char* trans, const char* diag, const int* m, const int* n, const double* alpha, const double* a, const int* ia, const int* ja, const int* desca, double* b, const int* ib, const int* jb, const int* descb); void :target:`pdgemv_`(const char* trans, const int* m, const int* n, const double* alpha, const double* a, const int* ia, const int* ja, const int* desca, const double* x, const int* ix, const int* jx, const int* descx, const int* incx, const double* beta, double* y, const int* iy, const int* jy, const int* descy, const int* incy); void :target:`pdsyrk_`(const char* uplo, const char* trans, const int* n, const int* k, const double* alpha, const double* a, const int* ia, const int* ja, const int* desca, const double* beta, double* c, const int* ic, const int* jc, const int* descc); void :target:`pdtran_`(const int* m, const int* n, const double* alpha, const double* a, const int* ia, const int* ja, const int* desca, const double* beta, double* c, const int* ic, const int* jc, const int* descc); void* :ref:`gpr_scheme2_cuda_create_v1`(int device, char* error, size_t capacity); void :target:`gpr_scheme2_cuda_destroy_v1`(void* engine); int :ref:`gpr_scheme2_cuda_describe_v1`(void* engine, char* text, size_t capacity); int :ref:`gpr_scheme2_cuda_run_v1`(void* engine, const :ref:`gpr_scheme2_cuda_table_v1`* table, const :ref:`gpr_scheme2_cuda_operand_v1`* operands, int32_t operand_count, const :ref:`gpr_scheme2_cuda_task_v1`* tasks, int32_t task_count, char* error, size_t capacity); int :ref:`gpr_scheme2_cuda_gemm_s8_v1`(void* engine, int64_t m, int64_t n, int64_t k, const int8_t* r, int64_t ldr, const int8_t* s, int64_t lds, int32_t* c, int64_t ldc, char* error, size_t capacity); int :target:`gpr_scheme2_mkl_shim_v1`(void); :ref:`__attribute__`((visibility("default"))); :ref:`SCHEME_I_HD` double :target:`scheme_i_trunc`(double value); :ref:`SCHEME_I_HD` int :target:`scheme_i_slice_bits`(int length); :ref:`SCHEME_I_HD` int :target:`scheme_i_split`(const double* values, int length, int bits, double* slices, int cap); :ref:`SCHEME_I_HD` int :target:`scheme_i_slice_cap`(const double* values, int length, int bits); :ref:`SCHEME_I_HD` double :target:`schemeIProductRaw`(const double* left, const double* right, int length); void* :target:`gpr_training_product_create_v1`(char* error, size_t capacity); void :target:`gpr_training_product_destroy_v1`(void* workspace); int :target:`gpr_training_product_gemm_v1`(void* workspace, int transpose_a, int transpose_b, int64_t m, int64_t n, int64_t k, double alpha, const double* a, int64_t lda, const double* b, int64_t ldb, double beta, double* c, int64_t ldc, char* error, size_t capacity); void :target:`dgeqrf_`(int*, int*, double*, int*, double*, double*, int*, int*); void :target:`dlarft_`(char*, char*, int*, int*, const double*, int*, const double*, double*, int*); void :target:`dlarfb_`(char*, char*, char*, char*, int*, int*, int*, const double*, int*, const double*, int*, double*, int*, double*, int*); void :target:`dsbevd_`(char*, char*, int*, int*, double*, int*, double*, double*, int*, double*, int*, int*, int*, int*); void :target:`dsyevr_`(char*, char*, char*, int*, double*, int*, double*, double*, int*, int*, double*, int*, double*, double*, int*, int*, double*, int*, int*, int*, int*); :ref:`__attribute__`((visibility("default"))); double :target:`gpr_core_exp`(double); double :target:`gpr_core_log`(double); double :target:`gpr_core_lgamma`(double); static void :target:`set_err`(char* errbuf, size_t errlen, const char* msg); int :target:`rgpot_engine_abi_version`(void); int :target:`rgpot_engine_available`(void); :ref:`RgpotEnginePot`* :target:`rgpot_engine_create`(const void* config, size_t config_len, char* errbuf, size_t errlen); void :target:`rgpot_engine_destroy`(:ref:`RgpotEnginePot`* pot); int :target:`rgpot_engine_force`(:ref:`RgpotEnginePot`* pot, long nAtoms, const double* positions, const int* atomicNrs, double* forces, double* energy, double* variance, const double* box, rgpot_engine_coord_transform transform, void* transform_user); int :target:`rgpot_engine_force_batch`(:ref:`RgpotEnginePot`* pot, long nSystems, long nAtoms, const double* positions, const int* atomicNrs, double* forces, double* energies, double* variances, const double* boxes, rgpot_engine_coord_transform transform, void* transform_user); static void :target:`set_err`(char* errbuf, size_t errlen, const char* msg); int :target:`rgpot_engine_abi_version`(void); int :target:`rgpot_engine_available`(void); :ref:`RgpotEnginePot`* :target:`rgpot_engine_create`(const void* config, size_t config_len, char* errbuf, size_t errlen); void :target:`rgpot_engine_destroy`(:ref:`RgpotEnginePot`* pot); int :target:`rgpot_engine_force`(:ref:`RgpotEnginePot`* pot, long nAtoms, const double* positions, const int* atomicNrs, double* forces, double* energy, double* variance, const double* box, rgpot_engine_coord_transform transform, void* transform_user); int :target:`rgpot_engine_force_batch`(:ref:`RgpotEnginePot`* pot, long nSystems, long nAtoms, const double* positions, const int* atomicNrs, double* forces, double* energies, double* variances, const double* boxes, rgpot_engine_coord_transform transform, void* transform_user); RGPOT_ENGINE_API int :ref:`rgpot_engine_hessian_checked`(:ref:`RgpotEnginePot`* pot, long nAtoms, const double* positions, size_t positions_len, const int* atomicNrs, double* hessian_out, size_t hessian_len, const double* box); RGPOT_ENGINE_API int :ref:`rgpot_engine_hessian_action_checked`(:ref:`RgpotEnginePot`* pot, long nAtoms, const double* positions, size_t positions_len, const int* atomicNrs, const double* direction, size_t direction_len, double* hv_out, size_t hv_len, const double* box, unsigned long long* ops_out, double* scale_out); RGPOT_ENGINE_API int :ref:`rgpot_engine_prediction_supported_checked`(:ref:`RgpotEnginePot`* pot, long nAtoms, const double* positions, size_t positions_len, const int* atomicNrs, const double* box, int* supported_out); RGPOT_ENGINE_API int :ref:`rgpot_engine_predict_variance_checked`(:ref:`RgpotEnginePot`* pot, long nSystems, long nAtoms, const double* positions, size_t positions_len, const int* atomicNrs, double* var_energy_out, size_t var_energy_len, double* var_gradient_out, size_t var_gradient_len, const double* boxes); RGPOT_ENGINE_API int :ref:`rgpot_engine_gpr_stats`(const :ref:`RgpotEnginePot`* pot, :ref:`RgpotEngineGprStats`* stats_out); int :target:`rgpot_engine_abi_version`(void); int :target:`rgpot_engine_abi_compatible`(const RgpotEngineAbiStamp* stamp); int :target:`rgpot_engine_available`(void); :ref:`RgpotEnginePot`* :target:`rgpot_engine_create`(const void* config, std::size_t config_len, char* errbuf, std::size_t errlen); void :target:`rgpot_engine_destroy`(:ref:`RgpotEnginePot`* pot); int :target:`rgpot_engine_set_callbacks`(:ref:`RgpotEnginePot`* pot, const RgpotEngineCallbacks* callbacks); unsigned long long :target:`rgpot_engine_model_state`(const :ref:`RgpotEnginePot`* pot); size_t :target:`rgpot_engine_last_error`(const :ref:`RgpotEnginePot`* pot, char* buf, size_t len); int :target:`rgpot_engine_caps`(const :ref:`RgpotEnginePot`* pot, RgpotEngineCaps* out); const char* :target:`rgpot_engine_name`(void); const char* :target:`rgpot_engine_version`(void); size_t :target:`rgpot_engine_model_digest`(const :ref:`RgpotEnginePot`* pot, char* buf, size_t len); int :target:`rgpot_engine_set_num_threads`(:ref:`RgpotEnginePot`* pot, int intra_op, int inter_op); int :target:`rgpot_engine_set_charge_spin`(:ref:`RgpotEnginePot`* pot, int charge, int spin); int :target:`rgpot_engine_select_orbitals`(:ref:`RgpotEnginePot`* pot, long long key); int :target:`rgpot_engine_copy_orbitals`(:ref:`RgpotEnginePot`* pot, long long from_key, long long to_key); long :target:`rgpot_engine_neighbor_options`(const :ref:`RgpotEnginePot`* pot, RgpotEngineNeighborOptions* opts, long capacity); int :target:`rgpot_engine_hvp`(:ref:`RgpotEnginePot`* pot, long nAtoms, const double* positions, const int* atomicNrs, const double* direction, double* hv_out, const double* box); int :ref:`rgpot_engine_gpr_stats`(const :ref:`RgpotEnginePot`* pot, :ref:`RgpotEngineGprStats`* stats_out); int :target:`rgpot_engine_force`(:ref:`RgpotEnginePot`* pot, long nAtoms, const double* positions, const int* atomicNrs, double* forces, double* energy, double* variance, const double* box, rgpot_engine_coord_transform transform, void* transform_user); int :target:`rgpot_engine_force_batch`(:ref:`RgpotEnginePot`* pot, long nSystems, long nAtoms, const double* positions, const int* atomicNrs, double* forces, double* energies, double* variances, const double* boxes, rgpot_engine_coord_transform transform, void* transform_user); int :ref:`rgpot_engine_hessian_checked`(:ref:`RgpotEnginePot`* pot, long nAtoms, const double* positions, size_t positions_len, const int* atomicNrs, double* hessian_out, size_t hessian_len, const double* box); int :ref:`rgpot_engine_hessian_action_checked`(:ref:`RgpotEnginePot`* pot, long nAtoms, const double* positions, size_t positions_len, const int* atomicNrs, const double* direction, size_t direction_len, double* hv_out, size_t hv_len, const double* box, unsigned long long* ops_out, double* scale_out); int :ref:`rgpot_engine_prediction_supported_checked`(:ref:`RgpotEnginePot`* pot, long nAtoms, const double* positions, size_t positions_len, const int* atomicNrs, const double* box, int* supported_out); int :ref:`rgpot_engine_predict_variance_checked`(:ref:`RgpotEnginePot`* pot, long nSystems, long nAtoms, const double* positions, size_t positions_len, const int* atomicNrs, double* var_energy_out, size_t var_energy_len, double* var_gradient_out, size_t var_gradient_len, const double* boxes); int :target:`rgpot_engine_hint`(:ref:`RgpotEnginePot`* pot, const void* msg, std::size_t msg_len, char* errbuf, std::size_t errlen); int :target:`rgpot_engine_abi_version`(void); int :target:`rgpot_engine_available`(void); :ref:`RgpotEnginePot`* :target:`rgpot_engine_create`(const void* config, size_t config_len, char* errbuf, size_t errlen); void :target:`rgpot_engine_destroy`(:ref:`RgpotEnginePot`* pot); int :target:`rgpot_engine_force`(:ref:`RgpotEnginePot`* pot, long nAtoms, const double* positions, const int* atomicNrs, double* forces, double* energy, double* variance, const double* box, rgpot_engine_coord_transform transform, void* transform_user); int :target:`rgpot_engine_force_batch`(:ref:`RgpotEnginePot`* pot, long nSystems, long nAtoms, const double* positions, const int* atomicNrs, double* forces, double* energies, double* variances, const double* boxes, rgpot_engine_coord_transform transform, void* transform_user); RGPOT_ENGINE_API RgpotEngineAbiStamp :target:`rgpot_engine_abi_stamp`(void); // macros #define :target:`ADAM_inl` #define :target:`AdditionalFunctionality_inl` #define :target:`ConstantCF_inl` #define :target:`EIGEN_NO_DEBUG` #define :target:`EMPTY` #define :target:`EON_RELAX_ABI_MAJOR` #define :target:`EON_RELAX_ABI_MINOR` #define :target:`EON_RELAX_API` #define :target:`EON_RELAX_IMAGE_NONE` #define :target:`EON_RELAX_KIND_IS_KNOWN`(k) #define :target:`EON_RELAX_VERSION_INIT` #define :target:`FORTRAN_ENTRY`(name, aliases, type) #define :target:`GPR_ATOMICDIMER_INL_` #define :target:`GPR_ENVIRONMENT_FUNCTION` #define :target:`GPR_KOKKOS_HAS_ILOGB_SCALBN` #define :target:`GPR_LINALG_SCALAPACK` #define :target:`GPR_ML_GAUSSIANPROCESSREGRESSION_INL_` #define :target:`GPR_ML_RGMIN_LBFGS_INL_` #define :target:`GPR_ML_RGMIN_OPT_INL_` #define :target:`GPR_ML_RGMIN_SCG_INL_` #define :ref:`GPR_READCON_ABI_MAJOR` #define :ref:`GPR_READCON_ABI_MIN_MINOR` #define :ref:`GPR_READCON_DB_ABI_MAJOR` #define :ref:`GPR_READCON_DB_ABI_MIN_MINOR` #define :ref:`GPR_RGMIN_ABI_MAJOR` #define :ref:`GPR_RGMIN_ABI_MIN_MINOR` #define :target:`GPR_RGSADDLE_ABI_MAJOR` #define :target:`GPR_TILE_API` #define :target:`LikGaussian_h` #define :target:`MANAGERS_IO_FILEMANAGER_INL_` #define :target:`ProblemSetUp_inl` #define :target:`RGPOT_ENGINE_BUILD` #define :target:`RGPOT_ENGINE_BUILD` #define :target:`RGPOT_ENGINE_BUILD` #define :target:`RGPOT_ENGINE_BUILD` #define :target:`RGPOT_ENGINE_BUILD` #define :target:`RGPOT_ENGINE_ERR_OUTSIDE_SUPPORT` #define :ref:`RGPOT_ENGINE_GPR_HINT_MAGIC` #define :target:`RGPOT_ENGINE_GPR_HINT_VERSION` #define :ref:`RGPOT_ENGINE_GPR_RESIDUAL_PRIOR_MAGIC` #define :target:`RGPOT_ENGINE_GPR_RESIDUAL_PRIOR_VERSION` #define :target:`SCHEME_II_HD` #define :target:`SCHEME_I_HD` #define :target:`SexpatCF_inl` #define :target:`assertMsg`(expression, msg) .. _details-global: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Typedefs -------- .. index:: pair: typedef; gpr_scheme2_cuda_table_v1 .. _doxid-_cuda_engine_8h_1aa9622ada4e486214a54dbc969eca353f: .. ref-code-block:: cpp :class: doxyrest-title-code-block typedef struct gpr_scheme2_cuda_table_v1 gpr_scheme2_cuda_table_v1 Moduli and CRT tables of one inner dimension (Context::Impl::Table). .. index:: pair: typedef; gpr_scheme2_cuda_operand_v1 .. _doxid-_cuda_engine_8h_1affdefba8bf9f807578fc7118a13acc1a: .. ref-code-block:: cpp :class: doxyrest-title-code-block typedef struct gpr_scheme2_cuda_operand_v1 gpr_scheme2_cuda_operand_v1 One prepared operand, element (e, l) with e < extent indexing rows of op(A) or columns of op(B) and l < depth the inner dimension. Either ``values`` (binary64 at values[l \* ld + e], or values[e \* ld + l] when l_contiguous; residues formed on the device) or ``residues`` (``count`` blocks of extent \* depth signed bytes, [l \* extent + e] for row operands and [e \* depth + l] for column operands) is given. .. index:: pair: typedef; gpr_scheme2_cuda_task_v1 .. _doxid-_cuda_engine_8h_1a302ebcf73f72d25e914930131ed8c391: .. ref-code-block:: cpp :class: doxyrest-title-code-block typedef struct gpr_scheme2_cuda_task_v1 gpr_scheme2_cuda_task_v1 Output block (row0 .. row0 + m) x (col0 .. col0 + n) of the product of operands ``rows`` and ``cols``. ``values[i + j * ld]`` receives the unscaled product P_ij in binary64, before alpha and beta. .. index:: pair: typedef; eon_relax_surface_fn .. _doxid-eon__relax__engine_8h_1add0438f9af1370ea3ae4a282bfd956ee: .. ref-code-block:: cpp :class: doxyrest-title-code-block typedef int (*eon_relax_surface_fn)( void *user, eon_relax_surface_request_t *req ) Return 0 on success, positive recoverable, negative fatal. Global Functions ---------------- .. index:: pair: function; gpr_scheme2_cuda_create_v1 .. _doxid-_cuda_engine_8h_1a9000796fa4d0c9e27be1414c7dd8c3fc: .. ref-code-block:: cpp :class: doxyrest-title-code-block void* gpr_scheme2_cuda_create_v1(int device, char* error, size_t capacity) device < 0 selects the local rank modulo the visible device count. .. index:: pair: function; gpr_scheme2_cuda_describe_v1 .. _doxid-_cuda_engine_8h_1ab2e8d1ee57054d44656d782762d21545: .. ref-code-block:: cpp :class: doxyrest-title-code-block int gpr_scheme2_cuda_describe_v1(void* engine, char* text, size_t capacity) One line naming the device. .. index:: pair: function; gpr_scheme2_cuda_run_v1 .. _doxid-_cuda_engine_8h_1a56bdc7e8a88a0660aa332f76883353cd: .. ref-code-block:: cpp :class: doxyrest-title-code-block int gpr_scheme2_cuda_run_v1(void* engine, const :ref:`gpr_scheme2_cuda_table_v1`* table, const :ref:`gpr_scheme2_cuda_operand_v1`* operands, int32_t operand_count, const :ref:`gpr_scheme2_cuda_task_v1`* tasks, int32_t task_count, char* error, size_t capacity) Products of every task. Operands are copied to the device once per call. .. index:: pair: function; gpr_scheme2_cuda_gemm_s8_v1 .. _doxid-_cuda_engine_8h_1a41ad4ec36415a9aa032d1986a6dce7e9: .. ref-code-block:: cpp :class: doxyrest-title-code-block int gpr_scheme2_cuda_gemm_s8_v1(void* engine, int64_t m, int64_t n, int64_t k, const int8_t* r, int64_t ldr, const int8_t* s, int64_t lds, int32_t* c, int64_t ldc, char* error, size_t capacity) Column-major INT32 C (m x n) = R (m x k) S (k x n) for signed INT8 operands, k at most 65536. .. index:: pair: function; __attribute__ .. _doxid-_training_product_abi_8cpp_1a31385eae9159792be17f161ed2115525: .. ref-code-block:: cpp :class: doxyrest-title-code-block __attribute__((visibility("default"))) Immortal dest identity string. Never NULL. FNV-1a 64-bit hash of eon_relax_version_hash_str(). Copied to outcome.version_hash. Create. NULL config && config_len==0 selects Parameters NSDMI defaults and kind=NEB. A non-empty buffer is a Cap'n Proto flat-array whose root is RelaxEngineParams. kind tokens are "neb" and "saddle"; any other token fails closed (EON_RELAX_UNKNOWN_KIND). An unparseable buffer is EON_RELAX_CAPNP_ROOT. config!=NULL && config_len==0 is refused. Last named create/run/step/reset/set_epoch rc on this handle. 0 if none. Run the bound engine to completion. Writes updated interior coordinates into band->positions (caller-owned); endpoints stay in the caller frame. Endpoint minimization stays with the host (NudgedElasticBand::compute does not minimize endpoints). surface may not be NULL. Kind is bound at create (NULL config => NEB). Returns :ref:`eon_relax_rc_t `; on 0, out->status is the eOn NEB or saddle table. One band optimizer step (kind=NEB only). The first call on a fresh or reset engine initializes the band state from the caller's positions and captures the baseline force; every call syncs band->positions in (the host may have moved images between steps), assembles NEB forces on the host surface, takes ONE optimizer step, and writes the stepped INTERIOR positions back (endpoints are the caller's and are never rewritten, so the caller's frame survives eOn's own cell wrapping). Climbing-image activation follows the engine's own trigger rule; saddle POLICY (MMF bursts, resampling, acquisition) stays with the host. outcome.status is RUNNING until convergenceForce() reaches the configured tolerance (GOOD), host variance exceeds the GP-surrogate threshold (MAX_UNCERTAINTY), or neb.max_iterations is hit (BAD_MAX_ITERATIONS). surface and user must not change across steps without an eon_relax_reset. Drop the stepper's band state and optimizer history; the next eon_relax_step reinitializes from the caller's band. This is the host's model-update hook: quasi-Newton memory taken on one surface epoch must not survive onto the next. NULL if kind or status is unknown. .. index:: pair: function; __attribute__ .. _doxid-eon__relax__engine_8h_1a88e453967c5c6f0b1161bef22c4f91ed: .. ref-code-block:: cpp :class: doxyrest-title-code-block __attribute__((visibility("default"))) (major << 16) | minor. Immortal dest identity string. Never NULL. FNV-1a 64-bit hash of eon_relax_version_hash_str(). Copied to outcome.version_hash. Create. NULL config && config_len==0 selects Parameters NSDMI defaults and kind=NEB. A non-empty buffer is a Cap'n Proto flat-array whose root is RelaxEngineParams. kind tokens are "neb" and "saddle"; any other token fails closed (EON_RELAX_UNKNOWN_KIND). An unparseable buffer is EON_RELAX_CAPNP_ROOT. config!=NULL && config_len==0 is refused. Last named create/run/step/reset/set_epoch rc on this handle. 0 if none. Run the bound engine to completion. Writes updated interior coordinates into band->positions (caller-owned); endpoints stay in the caller frame. Endpoint minimization stays with the host (NudgedElasticBand::compute does not minimize endpoints). surface may not be NULL. Kind is bound at create (NULL config => NEB). Returns :ref:`eon_relax_rc_t `; on 0, out->status is the eOn NEB or saddle table. One band optimizer step (kind=NEB only). The first call on a fresh or reset engine initializes the band state from the caller's positions and captures the baseline force; every call syncs band->positions in (the host may have moved images between steps), assembles NEB forces on the host surface, takes ONE optimizer step, and writes the stepped INTERIOR positions back (endpoints are the caller's and are never rewritten, so the caller's frame survives eOn's own cell wrapping). Climbing-image activation follows the engine's own trigger rule; saddle POLICY (MMF bursts, resampling, acquisition) stays with the host. outcome.status is RUNNING until convergenceForce() reaches the configured tolerance (GOOD), host variance exceeds the GP-surrogate threshold (MAX_UNCERTAINTY), or neb.max_iterations is hit (BAD_MAX_ITERATIONS). surface and user must not change across steps without an eon_relax_reset. Drop the stepper's band state and optimizer history; the next eon_relax_step reinitializes from the caller's band. This is the host's model-update hook: quasi-Newton memory taken on one surface epoch must not survive onto the next. NULL if kind or status is unknown. .. index:: pair: function; rgpot_engine_hessian_checked .. _doxid-gpr__engine__curvature_8h_1aa010aede13f69e3697ce5cf31cd41296: .. ref-code-block:: cpp :class: doxyrest-title-code-block RGPOT_ENGINE_API int rgpot_engine_hessian_checked(:ref:`RgpotEnginePot`* pot, long nAtoms, const double* positions, size_t positions_len, const int* atomicNrs, double* hessian_out, size_t hessian_len, const double* box) Extent-checked dense Hessian evaluation at one geometry. positions_len must be at least n_dof, and hessian_len at least n_dof \* n_dof. n_dof is n_coords when that count is positive, otherwise 3\*nAtoms. A longer positions buffer does not enlarge the Hessian. Returns 0 on success. .. index:: pair: function; rgpot_engine_hessian_action_checked .. _doxid-gpr__engine__curvature_8h_1afb998afc20167303c417a2c368c03894: .. ref-code-block:: cpp :class: doxyrest-title-code-block RGPOT_ENGINE_API int rgpot_engine_hessian_action_checked(:ref:`RgpotEnginePot`* pot, long nAtoms, const double* positions, size_t positions_len, const int* atomicNrs, const double* direction, size_t direction_len, double* hv_out, size_t hv_len, const double* box, unsigned long long* ops_out, double* scale_out) Extent-checked Hessian-vector product H(positions) \* direction. positions_len, direction_len and hv_len must each be at least n_coords (for residual sessions) or 3\*nAtoms. When ops_out and scale_out are non-NULL, the owning implementation writes the floating-point operation count and the magnitude scale used for roundoff certification (ops \* DBL_EPSILON \* scale). Returns 0 on success, RGPOT_ENGINE_ERR_OUTSIDE_SUPPORT (4) when the query lies outside the trained prediction kernel support. .. index:: pair: function; rgpot_engine_prediction_supported_checked .. _doxid-gpr__engine__curvature_8h_1aefacecac0a718083a386fc70cf3568cb: .. ref-code-block:: cpp :class: doxyrest-title-code-block RGPOT_ENGINE_API int rgpot_engine_prediction_supported_checked(:ref:`RgpotEnginePot`* pot, long nAtoms, const double* positions, size_t positions_len, const int* atomicNrs, const double* box, int* supported_out) Extent-checked prediction-support query at one geometry. positions_len must be at least n_coords (for residual sessions) or 3\*nAtoms. On success, \*supported_out is 1 inside the prediction kernel support and 0 outside it. .. index:: pair: function; rgpot_engine_predict_variance_checked .. _doxid-gpr__engine__curvature_8h_1aa74c497909e9f81d1354ec83a544af99: .. ref-code-block:: cpp :class: doxyrest-title-code-block RGPOT_ENGINE_API int rgpot_engine_predict_variance_checked(:ref:`RgpotEnginePot`* pot, long nSystems, long nAtoms, const double* positions, size_t positions_len, const int* atomicNrs, double* var_energy_out, size_t var_energy_len, double* var_gradient_out, size_t var_gradient_len, const double* boxes) Extent-checked posterior energy and gradient variance query at nSystems geometries. positions_len and var_gradient_len must each be at least nSystems \* n_coords (for residual sessions) or nSystems \* 3 \* nAtoms, and var_energy_len at least nSystems. Surrogate-phase rgpot_engine_force and rgpot_engine_force_batch write this energy variance into their variance slot, so a host does not treat the GP as exact. Oracle phases write 0: those evaluations are the true potential. The gradient variance is only available here. Returns 0 on success. .. index:: pair: function; rgpot_engine_gpr_stats .. _doxid-gpr__engine__curvature_8h_1a87c241c0d848733085dad83db98fbe10: .. ref-code-block:: cpp :class: doxyrest-title-code-block RGPOT_ENGINE_API int rgpot_engine_gpr_stats(const :ref:`RgpotEnginePot`* pot, :ref:`RgpotEngineGprStats`* stats_out) Read the operation counters accumulated by the engine instance. .. index:: pair: function; rgpot_engine_gpr_stats .. _doxid-_gpr_engine_abi_8cpp_1a52ebd0f5820fcb798f7dee2330850ad1: .. ref-code-block:: cpp :class: doxyrest-title-code-block int rgpot_engine_gpr_stats(const :ref:`RgpotEnginePot`* pot, :ref:`RgpotEngineGprStats`* stats_out) Read the operation counters accumulated by the engine instance. .. index:: pair: function; rgpot_engine_hessian_checked .. _doxid-_gpr_engine_abi_8cpp_1ab9c0d5d5ebee4b46a32a53efd9d5b841: .. ref-code-block:: cpp :class: doxyrest-title-code-block int rgpot_engine_hessian_checked(:ref:`RgpotEnginePot`* pot, long nAtoms, const double* positions, size_t positions_len, const int* atomicNrs, double* hessian_out, size_t hessian_len, const double* box) Extent-checked dense Hessian evaluation at one geometry. positions_len must be at least n_dof, and hessian_len at least n_dof \* n_dof. n_dof is n_coords when that count is positive, otherwise 3\*nAtoms. A longer positions buffer does not enlarge the Hessian. Returns 0 on success. .. index:: pair: function; rgpot_engine_hessian_action_checked .. _doxid-_gpr_engine_abi_8cpp_1af0fde8614044354ac51e722cdc1c9087: .. ref-code-block:: cpp :class: doxyrest-title-code-block int rgpot_engine_hessian_action_checked(:ref:`RgpotEnginePot`* pot, long nAtoms, const double* positions, size_t positions_len, const int* atomicNrs, const double* direction, size_t direction_len, double* hv_out, size_t hv_len, const double* box, unsigned long long* ops_out, double* scale_out) Extent-checked Hessian-vector product H(positions) \* direction. positions_len, direction_len and hv_len must each be at least n_coords (for residual sessions) or 3\*nAtoms. When ops_out and scale_out are non-NULL, the owning implementation writes the floating-point operation count and the magnitude scale used for roundoff certification (ops \* DBL_EPSILON \* scale). Returns 0 on success, RGPOT_ENGINE_ERR_OUTSIDE_SUPPORT (4) when the query lies outside the trained prediction kernel support. .. index:: pair: function; rgpot_engine_prediction_supported_checked .. _doxid-_gpr_engine_abi_8cpp_1afc4cc4e507ec299b554485782c942e34: .. ref-code-block:: cpp :class: doxyrest-title-code-block int rgpot_engine_prediction_supported_checked(:ref:`RgpotEnginePot`* pot, long nAtoms, const double* positions, size_t positions_len, const int* atomicNrs, const double* box, int* supported_out) Extent-checked prediction-support query at one geometry. positions_len must be at least n_coords (for residual sessions) or 3\*nAtoms. On success, \*supported_out is 1 inside the prediction kernel support and 0 outside it. .. index:: pair: function; rgpot_engine_predict_variance_checked .. _doxid-_gpr_engine_abi_8cpp_1aa62122c64467a37a2bee7c06b55bfe0e: .. ref-code-block:: cpp :class: doxyrest-title-code-block int rgpot_engine_predict_variance_checked(:ref:`RgpotEnginePot`* pot, long nSystems, long nAtoms, const double* positions, size_t positions_len, const int* atomicNrs, double* var_energy_out, size_t var_energy_len, double* var_gradient_out, size_t var_gradient_len, const double* boxes) Extent-checked posterior energy and gradient variance query at nSystems geometries. positions_len and var_gradient_len must each be at least nSystems \* n_coords (for residual sessions) or nSystems \* 3 \* nAtoms, and var_energy_len at least nSystems. Surrogate-phase rgpot_engine_force and rgpot_engine_force_batch write this energy variance into their variance slot, so a host does not treat the GP as exact. Oracle phases write 0: those evaluations are the true potential. The gradient variance is only available here. Returns 0 on success. Macros ------ .. index:: pair: define; GPR_READCON_ABI_MAJOR .. _doxid-_readcon_abi_8h_1a6dfb546a2bc73a88552b1b39d573e9a7: .. ref-code-block:: cpp :class: doxyrest-title-code-block #define GPR_READCON_ABI_MAJOR Major of the readcon-core C ABI gpridge is written against. .. index:: pair: define; GPR_READCON_ABI_MIN_MINOR .. _doxid-_readcon_abi_8h_1a74252d2db1cb53cadc898a3691cd6ab6: .. ref-code-block:: cpp :class: doxyrest-title-code-block #define GPR_READCON_ABI_MIN_MINOR Lowest minor: the stamp (RKR_ABI_VERSION\_\*, rkr_abi_version\_\*) first appears with the frame view and builder calls at minor 0. .. index:: pair: define; GPR_READCON_DB_ABI_MAJOR .. _doxid-_readcon_db_abi_8h_1a2a27a788a073ce8735baf5b54e47a87e: .. ref-code-block:: cpp :class: doxyrest-title-code-block #define GPR_READCON_DB_ABI_MAJOR Major of the readcon-db C ABI gpridge is written against. .. index:: pair: define; GPR_READCON_DB_ABI_MIN_MINOR .. _doxid-_readcon_db_abi_8h_1ac460ae9cb031fa2d3080894933e97ebd: .. ref-code-block:: cpp :class: doxyrest-title-code-block #define GPR_READCON_DB_ABI_MIN_MINOR Lowest minor: the stamp (RKRDB_ABI_VERSION\_\*, rkrdb_abi\_\*) first appears at minor 0 together with the archive calls. .. index:: pair: define; GPR_RGMIN_ABI_MAJOR .. _doxid-_rgmin_abi_8h_1acf5041d021fd2a35c89dc3028a09c711: .. ref-code-block:: cpp :class: doxyrest-title-code-block #define GPR_RGMIN_ABI_MAJOR Major of the rgmin C ABI gpridge is written against. .. index:: pair: define; GPR_RGMIN_ABI_MIN_MINOR .. _doxid-_rgmin_abi_8h_1a9c136dc5b5ed1d9b772bf5495643b571: .. ref-code-block:: cpp :class: doxyrest-title-code-block #define GPR_RGMIN_ABI_MIN_MINOR ABI minor 43 adds rgmin_lbfgs_pairs_push_rho. Meson also checks for the BFGS and SR1 exports when selecting the linked package. .. index:: pair: define; RGPOT_ENGINE_GPR_HINT_MAGIC .. _doxid-gpr__engine__curvature_8h_1ae8d77900f177f599e1cb0912306f3ca8: .. ref-code-block:: cpp :class: doxyrest-title-code-block #define RGPOT_ENGINE_GPR_HINT_MAGIC Hint message for a curvature learning engine, passed to rgpot_engine_hint. For RGPOT_ENGINE_GPR_HINT_LEARN_POINTS, the struct is followed immediately by n_points \* n_coords doubles of positions, n_points doubles of energies, and n_points \* n_coords doubles of gradients (dE/dx = -force). RGPOT_ENGINE_GPR_HINT_SET_TRAINING takes effect at the next fit. n_points is the training window: a full fit trains on the most recent n_points observations, or on all of them at zero. phase 1 selects the Cholesky posterior and, after the first full fit, conditions later observations on the fitted hyperparameters through gpr_model_append_fixed_checked; phase 0 refits in full. An append needs a zero window and a Cartesian session and falls back to a full fit where the posterior cannot be extended. .. index:: pair: define; RGPOT_ENGINE_GPR_RESIDUAL_PRIOR_MAGIC .. _doxid-gpr__engine__curvature_8h_1a55bdce8314d2cc02fc0c61326bcc54fe: .. ref-code-block:: cpp :class: doxyrest-title-code-block #define RGPOT_ENGINE_GPR_RESIDUAL_PRIOR_MAGIC Saddle-quadratic residual-prior configuration for a learning curvature engine, passed as the config blob to rgpot_engine_create. The engine trains a Gaussian process on the residual of the quadratic expansion at the reference geometry (the saddle point), so far from training data its curvature returns to the reference Hessian. The config buffer consists of this header followed immediately by: * n_coords doubles for the reference positions x_0; * n_coords doubles for the reference gradient g_0 (only when has_gradient is nonzero; otherwise g_0 = 0); * n_coords \* n_coords doubles for the row-major reference Hessian H_0; * n_atoms ints for atomic numbers (only when has_atomic_nrs is nonzero).