Package org.apache.sysds.utils
Class GPUStatistics
java.lang.Object
org.apache.sysds.utils.GPUStatistics
Measures performance numbers when GPU mode is enabled
Printed as part of
Statistics.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic LongAdderstatic LongAdderstatic LongAdderstatic LongAdderstatic LongAdderstatic LongAdderstatic LongAdderstatic LongAdderstatic LongAdderstatic LongAdderstatic LongAdderstatic LongAdderstatic LongAdderstatic LongAdderstatic LongAdderstatic LongAdderstatic LongAdderstatic LongAdderstatic LongAdderstatic LongAdderstatic LongAdderstatic LongAdderstatic LongAdderstatic LongAdderstatic LongAdderstatic LongAdderstatic LongAdderstatic LongAdderstatic LongAdderstatic LongAdderstatic longstatic LongAdderstatic LongAdderstatic LongAdderstatic LongAdderstatic LongAdderstatic LongAdderstatic LongAdderstatic LongAdderstatic LongAdder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intstatic StringgetStringForCPMiscTimesPerInstruction(String instructionName) Used to print misc timers (and their counts) for a given instruction/opstatic StringUsed to print out cuda timers & countersstatic voidstatic voidreset()Resets all the cuda counters and timers, including the misc timers & countersstatic voidResets the miscellaneous timers & countersstatic voidsetNoOfExecutedGPUInst(int numJobs)
-
Field Details
-
cudaInitTime
public static long cudaInitTime -
cudaLibrariesInitTime
-
cudaSparseToDenseTime
-
cudaDenseToSparseTime
-
cudaSparseConversionTime
-
cudaSparseToDenseCount
-
cudaDenseToSparseCount
-
cudaSparseConversionCount
-
cudaAllocTime
-
cudaAllocSuccessTime
-
cudaAllocFailedTime
-
cudaDeAllocTime
-
cudaMemSet0Time
-
cudaToDevTime
-
cudaFromDevTime
-
cudaFromShadowToHostTime
-
cudaFromShadowToDevTime
-
cudaFromDevToShadowTime
-
cudaEvictTime
-
cudaEvictSizeTime
-
cudaFloat2DoubleTime
-
cudaDouble2FloatTime
-
cudaEvictMemcpyTime
-
cudaForcedClearLazyFreedEvictTime
-
cudaForcedClearUnpinnedEvictTime
-
cudaAllocCount
-
cudaDeAllocCount
-
cudaMemSet0Count
-
cudaToDevCount
-
cudaFromDevCount
-
cudaFromShadowToHostCount
-
cudaFromShadowToDevCount
-
cudaFromDevToShadowCount
-
cudaEvictCount
-
cudaEvictSizeCount
-
cudaFloat2DoubleCount
-
cudaDouble2FloatCount
-
cudaAllocSuccessCount
-
cudaAllocFailedCount
-
cudaAllocReuseCount
-
-
Constructor Details
-
GPUStatistics
public GPUStatistics()
-
-
Method Details
-
resetMiscTimers
public static void resetMiscTimers()Resets the miscellaneous timers & counters -
reset
public static void reset()Resets all the cuda counters and timers, including the misc timers & counters -
setNoOfExecutedGPUInst
public static void setNoOfExecutedGPUInst(int numJobs) -
incrementNoOfExecutedGPUInst
public static void incrementNoOfExecutedGPUInst() -
getNoOfExecutedGPUInst
public static int getNoOfExecutedGPUInst() -
getStringForCPMiscTimesPerInstruction
Used to print misc timers (and their counts) for a given instruction/op- Parameters:
instructionName- name of the instruction/op- Returns:
- a formatted string of misc timers for a given instruction/op
-
getStringForCudaTimers
Used to print out cuda timers & counters- Returns:
- a formatted string of cuda timers & counters
-