Class LongRunningKernel

java.lang.Object
com.aparapi.Kernel
com.aparapi.examples.progress.LongRunningKernel
All Implemented Interfaces:
Cloneable

public class LongRunningKernel
extends com.aparapi.Kernel
Kernel which performs very many meaningless calculations, used to demonstrate progress tracking and cancellation of multi-pass Kernels.
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.aparapi.Kernel

    com.aparapi.Kernel.Constant, com.aparapi.Kernel.Entry, com.aparapi.Kernel.EXECUTION_MODE, com.aparapi.Kernel.KernelState, com.aparapi.Kernel.Local, com.aparapi.Kernel.NoCL, com.aparapi.Kernel.PrivateMemorySpace
  • Field Summary

    Fields 
    Modifier and Type Field Description
    long[] data  
    static int RANGE  

    Fields inherited from class com.aparapi.Kernel

    CONSTANT_SUFFIX, LOCAL_SUFFIX, PRIVATE_SUFFIX
  • Constructor Summary

    Constructors 
    Constructor Description
    LongRunningKernel()  
  • Method Summary

    Modifier and Type Method Description
    void report()  
    void run()  

    Methods inherited from class com.aparapi.Kernel

    addExecutionModes, cancelMultiPass, cleanUpArrays, clone, dispose, execute, execute, execute, execute, execute, execute, executeFallbackAlgorithm, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, getAccumulatedExecutionTime, getAccumulatedExecutionTimeAllThreads, getAccumulatedExecutionTimeCurrentThread, getCancelState, getConversionTime, getCurrentPass, getExecutionMode, getExecutionTime, getKernelState, getMappedMethodName, getProfileInfo, getProfileReportCurrentThread, getProfileReportLastThread, getTargetDevice, hasFallbackAlgorithm, hasNextExecutionMode, invalidateCaches, isAllowDevice, isAutoCleanUpArrays, isExecuting, isExplicit, isMappedMethod, isOpenCLDelegateMethod, isRunningCL, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, registerProfileReportObserver, setAutoCleanUpArrays, setExecutionMode, setExecutionModeWithoutFallback, setExplicit, setFallbackExecutionMode, toString, tryNextExecutionMode, usesAtomic32, usesAtomic64

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • run

      public void run()
      Specified by:
      run in class com.aparapi.Kernel
    • report

      public void report()