namespace rgpot::engine

Overview

namespace engine {
 
// structs
 
struct Backend;
struct Builtin;
struct Created;
 
// classes
 
class Sha256;
 
// global functions
 
Builtin read_builtin(const void* config, std::size_t config_len);
const char* backend_name();
Created create(const void* config, std::size_t config_len);
void set_torch_threads(int intra_op, int inter_op);
void set_torch_deterministic(bool on);
 
} // namespace engine

Detailed Documentation

Global Functions

const char* backend_name()

Defined by the engine library: short name of the backend (“uma”, “lj”).

Created create(const void* config, std::size_t config_len)

Defined by the engine library: builds the backend from the Cap’n Proto flat-array message config (config_len bytes).

void set_torch_threads(int intra_op, int inter_op)

A value below 1 leaves that setting alone. The inter-op count can be set once per process before parallel work starts; asking for the value already in force is accepted.

void set_torch_deterministic(bool on)

Deterministic algorithms: an operation without a deterministic implementation throws instead of running.