Loading...
Searching...
No Matches
metatomic_c_abi.h
Go to the documentation of this file.
1
8#pragma once
9
10#include <stddef.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16#ifdef _WIN32
17#ifdef RGPOT_MTA_ENGINE_BUILD
18#define RGPOT_MTA_API __declspec(dllexport)
19#else
20#define RGPOT_MTA_API __declspec(dllimport)
21#endif
22#else
23#define RGPOT_MTA_API __attribute__((visibility("default")))
24#endif
25
26typedef struct RgpotMtaPot RgpotMtaPot;
27
42
43#define RGPOT_MTA_ABI_VERSION 1
44
46
48 char *errbuf, size_t errlen);
49
51
56RGPOT_MTA_API int rgpot_mta_force(RgpotMtaPot *pot, long nAtoms,
57 const double *positions, const int *atomicNrs,
58 double *forces, double *energy,
59 double *variance, const double *box);
60
62
63#ifdef __cplusplus
64}
65#endif
RGPOT_MTA_API int rgpot_mta_abi_version(void)
#define RGPOT_MTA_API
RGPOT_MTA_API void rgpot_mta_destroy(RgpotMtaPot *pot)
RGPOT_MTA_API RgpotMtaPot * rgpot_mta_create(const RgpotMtaConfig *cfg, char *errbuf, size_t errlen)
RGPOT_MTA_API int rgpot_mta_force(RgpotMtaPot *pot, long nAtoms, const double *positions, const int *atomicNrs, double *forces, double *energy, double *variance, const double *box)
Energy + forces.
RGPOT_MTA_API int rgpot_mta_available(void)
Flat config (subset of MetatomicConfig).
const char * extensions_directory
double uncertainty_threshold
const char * device
const char * dtype_override
const char * model_path
const char * length_unit
int torch_determinism_strict
0=Fast, 1=Strict