object GpuBatchUtils
Utility class with methods for calculating various metrics about GPU memory usage prior to allocation.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- GpuBatchUtils
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
OFFSET_BYTES: Int
Number of bytes per offset (32 bit)
-
val
VALIDITY_BUFFER_BOUNDARY_BYTES: Int
Validity buffers are 64 byte aligned
-
val
VALIDITY_BUFFER_BOUNDARY_ROWS: Int
Validity buffers are 64 byte aligned and each byte represents 8 rows
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def calculateOffsetBufferSize(rows: Long): Long
- def calculateValidityBufferSize(rows: Long): Long
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def estimateGpuMemory(dataType: DataType, nullable: Boolean, rowCount: Long): Long
-
def
estimateGpuMemory(schema: StructType, columnIndex: Int, rowCount: Long): Long
Estimate the amount of GPU memory a batch of rows will occupy once converted
-
def
estimateGpuMemory(schema: StructType, rowCount: Long): Long
Estimate the amount of GPU memory a batch of rows will occupy once converted
-
def
estimateRowCount(desiredBatchSizeBytes: Long, currentBatchSize: Long, currentBatchRowCount: Long): Int
Estimate the number of rows required to meet a batch size limit
-
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
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def isFixedWidth(dt: DataType): Boolean
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isVariableWidth(dt: DataType): Boolean
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )