Package org.apache.sysds.utils
Class GPUStatistics
- java.lang.Object
- 
- org.apache.sysds.utils.GPUStatistics
 
- 
 public class GPUStatistics extends Object Measures performance numbers when GPU mode is enabled Printed as part ofStatistics.
- 
- 
Field Summary
 - 
Constructor SummaryConstructors Constructor Description GPUStatistics()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static intgetNoOfExecutedGPUInst()static StringgetStringForCPMiscTimesPerInstruction(String instructionName)Used to print misc timers (and their counts) for a given instruction/opstatic StringgetStringForCudaTimers()Used to print out cuda timers & countersstatic voidincrementNoOfExecutedGPUInst()static voidreset()Resets all the cuda counters and timers, including the misc timers & countersstatic voidresetMiscTimers()Resets the miscellaneous timers & countersstatic voidsetNoOfExecutedGPUInst(int numJobs)
 
- 
- 
- 
Field Detail- 
cudaInitTimepublic static long cudaInitTime 
 - 
cudaLibrariesInitTimepublic static long cudaLibrariesInitTime 
 - 
cudaSparseToDenseTimepublic static LongAdder cudaSparseToDenseTime 
 - 
cudaDenseToSparseTimepublic static LongAdder cudaDenseToSparseTime 
 - 
cudaSparseConversionTimepublic static LongAdder cudaSparseConversionTime 
 - 
cudaSparseToDenseCountpublic static LongAdder cudaSparseToDenseCount 
 - 
cudaDenseToSparseCountpublic static LongAdder cudaDenseToSparseCount 
 - 
cudaSparseConversionCountpublic static LongAdder cudaSparseConversionCount 
 - 
cudaAllocTimepublic static LongAdder cudaAllocTime 
 - 
cudaAllocSuccessTimepublic static LongAdder cudaAllocSuccessTime 
 - 
cudaAllocFailedTimepublic static LongAdder cudaAllocFailedTime 
 - 
cudaDeAllocTimepublic static LongAdder cudaDeAllocTime 
 - 
cudaMemSet0Timepublic static LongAdder cudaMemSet0Time 
 - 
cudaToDevTimepublic static LongAdder cudaToDevTime 
 - 
cudaFromDevTimepublic static LongAdder cudaFromDevTime 
 - 
cudaFromShadowToHostTimepublic static LongAdder cudaFromShadowToHostTime 
 - 
cudaFromShadowToDevTimepublic static LongAdder cudaFromShadowToDevTime 
 - 
cudaFromDevToShadowTimepublic static LongAdder cudaFromDevToShadowTime 
 - 
cudaEvictTimepublic static LongAdder cudaEvictTime 
 - 
cudaEvictSizeTimepublic static LongAdder cudaEvictSizeTime 
 - 
cudaFloat2DoubleTimepublic static LongAdder cudaFloat2DoubleTime 
 - 
cudaDouble2FloatTimepublic static LongAdder cudaDouble2FloatTime 
 - 
cudaEvictMemcpyTimepublic static LongAdder cudaEvictMemcpyTime 
 - 
cudaForcedClearLazyFreedEvictTimepublic static LongAdder cudaForcedClearLazyFreedEvictTime 
 - 
cudaForcedClearUnpinnedEvictTimepublic static LongAdder cudaForcedClearUnpinnedEvictTime 
 - 
cudaAllocCountpublic static LongAdder cudaAllocCount 
 - 
cudaDeAllocCountpublic static LongAdder cudaDeAllocCount 
 - 
cudaMemSet0Countpublic static LongAdder cudaMemSet0Count 
 - 
cudaToDevCountpublic static LongAdder cudaToDevCount 
 - 
cudaFromDevCountpublic static LongAdder cudaFromDevCount 
 - 
cudaFromShadowToHostCountpublic static LongAdder cudaFromShadowToHostCount 
 - 
cudaFromShadowToDevCountpublic static LongAdder cudaFromShadowToDevCount 
 - 
cudaFromDevToShadowCountpublic static LongAdder cudaFromDevToShadowCount 
 - 
cudaEvictCountpublic static LongAdder cudaEvictCount 
 - 
cudaEvictSizeCountpublic static LongAdder cudaEvictSizeCount 
 - 
cudaFloat2DoubleCountpublic static LongAdder cudaFloat2DoubleCount 
 - 
cudaDouble2FloatCountpublic static LongAdder cudaDouble2FloatCount 
 - 
cudaAllocSuccessCountpublic static LongAdder cudaAllocSuccessCount 
 - 
cudaAllocFailedCountpublic static LongAdder cudaAllocFailedCount 
 - 
cudaAllocReuseCountpublic static LongAdder cudaAllocReuseCount 
 
- 
 - 
Method Detail- 
resetMiscTimerspublic static void resetMiscTimers() Resets the miscellaneous timers & counters
 - 
resetpublic static void reset() Resets all the cuda counters and timers, including the misc timers & counters
 - 
setNoOfExecutedGPUInstpublic static void setNoOfExecutedGPUInst(int numJobs) 
 - 
incrementNoOfExecutedGPUInstpublic static void incrementNoOfExecutedGPUInst() 
 - 
getNoOfExecutedGPUInstpublic static int getNoOfExecutedGPUInst() 
 - 
getStringForCPMiscTimesPerInstructionpublic static String getStringForCPMiscTimesPerInstruction(String instructionName) 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
 
 - 
getStringForCudaTimerspublic static String getStringForCudaTimers() Used to print out cuda timers & counters- Returns:
- a formatted string of cuda timers & counters
 
 
- 
 
-