Package

cogx.platform

cpumemory

Permalink

package cpumemory

This package contains classes for holding fields in CPU memory. The format of fields is hidden and identical to format used to hold fields in GPU memory. "Direct memory" is used to hold the field data since it exists outside of the JVM heap, and also handles all endian-ness compatibility issues.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. cpumemory
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. abstract class AbstractFieldMemory extends FieldMemoryLayout with cpumemory.readerwriter.FieldReader

    Permalink

    CPU container for a tensor field, including methods for reading and writing it.

    CPU container for a tensor field, including methods for reading and writing it. This implemented using direct, NIO buffers for efficiency.

    This organizes the data within the buffer so that memory accesses by the GPU are efficient. This also provides a uniform representation of fields that's consistent on both CPU and GPU.

    See the FieldMemoryLayout class for description of the physical layout.

  2. final class ColorFieldMemory extends AbstractFieldMemory with cpumemory.readerwriter.ColorFieldReader with cpumemory.readerwriter.ColorFieldWriter

    Permalink

    CPU memory for an image.

    CPU memory for an image.

    Internally this assumes RGBA format, which is the only format guaranteed to be supported by OpenCL.

  3. final class ComplexFieldMemory extends AbstractFieldMemory with cpumemory.readerwriter.ComplexFieldReader with cpumemory.readerwriter.ComplexFieldWriter

    Permalink

    CPU memory for a complex scalar field.

  4. final class ComplexVectorFieldMemory extends AbstractFieldMemory with cpumemory.readerwriter.ComplexVectorFieldReader with cpumemory.readerwriter.ComplexVectorFieldWriter

    Permalink

    CPU memory for a complex vector field.

  5. class FieldMemory extends AnyRef

    Permalink

    A class for producing a field memory from a field type.

  6. final class MatrixFieldMemory extends AbstractFieldMemory with cpumemory.readerwriter.MatrixFieldReader with cpumemory.readerwriter.MatrixFieldWriter

    Permalink

    CPU memory for a matrix field.

  7. final class ScalarFieldMemory extends AbstractFieldMemory with cpumemory.readerwriter.ScalarFieldReader with cpumemory.readerwriter.ScalarFieldWriter

    Permalink

    CPU memory for a scalar field.

  8. final class VectorFieldMemory extends AbstractFieldMemory with cpumemory.readerwriter.VectorFieldReader with cpumemory.readerwriter.VectorFieldWriter

    Permalink

    CPU memory for a vector field.

Value Members

  1. object ColorFieldMemory

    Permalink

    Factory for creating ColorFieldMemories.

    Factory for creating ColorFieldMemories.

    THIS IS ONLY USED FOR TESTING. NOT EXPORTED TO USERS.

  2. object ComplexFieldMemory

    Permalink

    Factory for creating ComplexFieldMemories.

    Factory for creating ComplexFieldMemories.

    THIS IS ONLY USED FOR TESTING. NOT EXPORTED TO USERS.

  3. object FieldMemory

    Permalink

    A factory for producing field memory allocators.

    A factory for producing field memory allocators.

    Currently each ComputeGraph gets its own allocator. Some uses within the Cogdebugger didn't have access to the ComputeGraph's allocator and so use a global one.

  4. object MatrixFieldMemory

    Permalink

    Factory for creating MatrixFieldMemories.

    Factory for creating MatrixFieldMemories.

    THIS IS ONLY USED FOR TESTING. NOT EXPORTED TO USERS.

  5. object ScalarFieldMemory

    Permalink

    Factory for creating ScalarFieldMemories.

    Factory for creating ScalarFieldMemories.

    THIS IS ONLY USED FOR TESTING. NOT EXPORTED TO USERS.

  6. object VectorFieldMemory

    Permalink

    Factory for creating VectorFieldMemories.

    Factory for creating VectorFieldMemories.

    THIS IS ONLY USED FOR TESTING. NOT EXPORTED TO USERS.

  7. package readerwriter

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped