Packages

o

com.nvidia.spark.rapids

GpuBatchUtils

object GpuBatchUtils

Utility class with methods for calculating various metrics about GPU memory usage prior to allocation, along with some operations with batches.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GpuBatchUtils
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val OFFSET_BYTES: Int

    Number of bytes per offset (32 bit)

  5. val VALIDITY_BUFFER_BOUNDARY_BYTES: Int

    Validity buffers are 64 byte aligned

  6. val VALIDITY_BUFFER_BOUNDARY_ROWS: Int

    Validity buffers are 64 byte aligned and each byte represents 8 rows

  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def calculateOffsetBufferSize(rows: Long): Long
  9. def calculateValidityBufferSize(rows: Long): Long
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  11. def concatSpillBatchesAndClose(spillBatches: Seq[SpillableColumnarBatch]): Option[SpillableColumnarBatch]

    Concatenate the input batches into a single one.

    Concatenate the input batches into a single one. The caller is responsible for closing the returned batch.

    spillBatches

    the batches to be concatenated, will be closed after the call returns.

    returns

    the concatenated SpillableColumnarBatch or None if the input is empty.

  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  14. def estimateGpuMemory(dataType: DataType, nullable: Boolean, rowCount: Long): Long
  15. def estimateGpuMemory(schema: StructType, columnIndex: Int, rowCount: Long): Long

    Estimate the amount of GPU memory a batch of rows will occupy once converted

  16. def estimateGpuMemory(schema: StructType, rowCount: Long): Long

    Estimate the amount of GPU memory a batch of rows will occupy once converted

  17. def estimateRowCount(desiredBatchSizeBytes: Long, currentBatchSize: Long, currentBatchRowCount: Long): Int

    Estimate the number of rows required to meet a batch size limit

  18. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. def generateSplitIndices(rows: Long, numSplits: Int): Array[Int]

    Generate indices which evenly splitting input batch

    Generate indices which evenly splitting input batch

    rows

    number of rows of input batch

    numSplits

    desired number of splits

    returns

    splitting indices

  20. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  21. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. def isFixedWidth(dt: DataType): Boolean
  23. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  24. def isVariableWidth(dt: DataType): Boolean
  25. def minGpuMemory(dataType: DataType, nullable: Boolean, rowCount: Long): Long

    Get the minimum size a column could be that matches these conditions.

  26. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  29. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  30. def toString(): String
    Definition Classes
    AnyRef → Any
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped