Class

cogx.compiler.gpu_operator.declaration

GPUArrayVariable

Related Doc: package declaration

Permalink

class GPUArrayVariable extends Declaration with SemanticError with Constraints

A variable array declaration.

Base types of variables are of the "float4" or "float" which means that scalars have been merged into the vector formulation and that all base types are vectors. It is possible to have arrays of base types, vectors, as well.

Linear Supertypes
Constraints, SemanticError, CompilerError, Declaration, Statement, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. GPUArrayVariable
  2. Constraints
  3. SemanticError
  4. CompilerError
  5. Declaration
  6. Statement
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new GPUArrayVariable(baseType: GPUType, size: Array[expression.GPUExpression])

    Permalink

    baseType

    Fundamental vector type of the variable. In OpenCL float, float2, float3, ... are all fundamental types. Vectors and scalars are not really distinguished.

    size

    The dimensions of the array.

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val MaxArrayDimensions: Int

    Permalink

    Upper bound on number of dimensions for an array.

    Upper bound on number of dimensions for an array.

    Definition Classes
    Constraints
  5. val MaxTensorSize: Int

    Permalink

    Maximum size of tensor, minimizing register pressure for kernel fusion.

    Maximum size of tensor, minimizing register pressure for kernel fusion.

    Definition Classes
    Constraints
  6. def apply(index: expression.GPUExpression*): ArrayLValue

    Permalink

    Array indexing, uses Scala convention of apply.

  7. def apply(index: Array[expression.GPUExpression]): ArrayLValue

    Permalink

    Array indexing, uses Scala convention of apply.

  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. val baseType: GPUType

    Permalink

    Fundamental vector type of the variable.

    Fundamental vector type of the variable. In OpenCL float, float2, float3, ... are all fundamental types. Vectors and scalars are not really distinguished.

  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def constructed(): Unit

    Permalink

    Called by subclasses to signal that construction is complete.

    Called by subclasses to signal that construction is complete. This is used for debugging.

    Attributes
    protected
    Definition Classes
    Statement
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  17. def internalError(message: String): Unit

    Permalink

    Declare an internal error described by message.

    Declare an internal error described by message.

    Definition Classes
    CompilerError
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. var isShared: Boolean

    Permalink

    True if variable is shared (local).

  20. var isVolatile: Boolean

    Permalink

    True if variable is volatile.

  21. val name: String

    Permalink

    Unique name for the variable.

  22. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. val size: Array[expression.GPUExpression]

    Permalink

    The dimensions of the array.

  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  27. def toString(): String

    Permalink

    Create GPU code for the variable declaration.

    Create GPU code for the variable declaration.

    Definition Classes
    GPUArrayVariable → AnyRef → Any
  28. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Constraints

Inherited from SemanticError

Inherited from CompilerError

Inherited from Declaration

Inherited from Statement

Inherited from AnyRef

Inherited from Any

Ungrouped