struct rgpot::engine::Backend

Overview

What a backend hands the adapter at create. More…

#include <EngineTable.hpp>
 
struct Backend {
    // fields
 
    std::unique_ptr<PotentialBase> pot;
    std::string model_path;
    std::function<void(int charge, int spin)> set_charge_spin;
    std::function<void(int intra_op, int inter_op)> set_num_threads;
};

Detailed Documentation

What a backend hands the adapter at create.

Fields

std::string model_path

File whose SHA-256 identifies the loaded model; empty when the backend has no model file.

std::function<void(int charge, int spin)> set_charge_spin

Empty when the backend has no charge and spin to change.

std::function<void(int intra_op, int inter_op)> set_num_threads

Empty when the backend has no tensor runtime.