Runtime configuration#
The runtime behaviour of calorine can be tuned through environment variables. Set them in the shell before running your script:
export CALORINE_GPUMD_COMMAND=/path/to/gpumd
Environment variables#
- CALORINE_GPUMD_COMMAND#
Command used by
GPUNEPto invoke thegpumdexecutable. Set this ifgpumdis not on yourPATH, for example when running the test suite against a local build.Default:
'gpumd'.
- CALORINE_NEP_COMMAND#
Command used by
batch_predict_propertiesto invoke thenepexecutable. Set this ifnepis not on yourPATH, for example when running the test suite against a local build.Default:
'nep'.
Python API#
- calorine.env.calorine_getenv(variable)[source]#
Get value of environment variable, or default.
Possible environment variables are:
CALORINE_GPUMD_COMMAND- Command used byGPUNEPto invoke thegpumdexecutable. Default:'gpumd'.CALORINE_NEP_COMMAND- Command used bybatch_predict_propertiesto invoke thenepexecutable. Default:'nep'.
- Parameters:
variable – Name of variable, without the
'CALORINE_'prefix.- Return type:
str