Default constructor for users, forces optimization (though they can disable it to varying degrees using probes or probeAll.)
When false, turns off the optimizer, allowing the graph to be more easily debugged, since all fields declared by the user remain visible.
policy for FFT use in fast convolution.
Debug flag
Turns on printing of the compiled circuit for debugging.
Translator from SyntaxTree to KernelCircuit
A user-friendly name for this computegraph.
A user-friendly name for this computegraph. Used in logs and for debugging.
The user's description of this computegraph.
Set a description for the computegraph.
Set a description for the computegraph. Used in logs and for debugging.
Retrieve an Unpipelinedactuator from a restored compute graph using the name of the source field.
The specific device(s) that will evaluate the ComputeGraph, now bound at ComputeGraph creation time.
When false, turns off the optimizer, allowing the graph to be more easily debugged, since all fields declared by the user remain visible.
Print out the ComputeGrap for debugging.
Probe all fields; this effectively disables the optimizer.
Optimized circuit that exposes only probed fields (for debugger).
Future interface for debugger.
Future interface for debugger. Note that the AbstractFieldMemory referenced in done must be released before the field can be read again.
Read a field, calling done
when the field data is available
(asynchronous call).
Read a field, calling done
when the field data is available
(asynchronous call). This primarily used by the debugger, but may be
used by arbitrary user code.
The field that is being read
Pre-allocated field memory, passed to the done
function, that
receives the read field data.
Callback which returns memory holding the field data; this memory must be released before this field can be read again.
Read a field (user access to the field data).
Read a field given the name.
Read a field given the name. Used typically for restored compute graphs that no longer have fields.
Release all resources for this (and ALL) compute graphs.
Release all resources for this (and ALL) compute graphs.
This attempts to minimize memory leaks due to the JVM garbage collector not being able to handle direct memory very well.
After release of a ComputeGraph, we still have references to the Direct Buffers from singleton objects like HyperCircuit, which prevents the direct buffer freeing from being immediately successful. Making a new ComputeGraph should overwrite those references, thus freeing up the direct memory for the next ComputeGraph. Making a tiny ComputeGraph and releasing it between 'real' ComputeGraphs would be one hack at the user level to combat direct buffer freeing problems.
Reset the computation to an initial state defined by the user (synchronous call).
Reset the computation to an initial state defined by the user (synchronous call).
If the computation is running, it is stopped before the initialization takes place.
Zero (the simulation time after reset).
Start the computation running until stop
is called (asynchronous call)
Write this compute graph instance with the facilities offered by an ObjectSaver.
Write this compute graph instance with the facilities offered by an ObjectSaver.
Step the computation count
cycles, returning the resulting simulation
time (synchronous call).
Step the computation count
cycles, returning the resulting simulation
time (synchronous call).
Number of steps to take.
the number of steps taken from the last reset
Step the computation one cycle, returning the resulting simulation time (synchronous call).
Step the computation one cycle, returning the resulting simulation time (synchronous call).
the number of steps taken from the last reset
Stop the computation, returning the simulation time (synchronous call).
Get the current simulation time (asynchronous call).
Get the current simulation time (asynchronous call).
Callback function with the simulation time
Make sure release is called, even if an exception is thrown.
Write the compute graph to a file with the given checkpoint technology (e.g.
Write the compute graph to a file with the given checkpoint technology (e.g. hdf5)
A Cog computation graph.