Package com.aparapi.examples.nbody
Class Main.NBodyKernel
java.lang.Object
com.aparapi.Kernel
com.aparapi.examples.nbody.Main.NBodyKernel
- All Implemented Interfaces:
Cloneable
- Enclosing class:
- Main
public static class Main.NBodyKernel
extends com.aparapi.Kernel
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
Constructors Constructor Description NBodyKernel(com.aparapi.Range _range)
Constructor initializes xyz and vxyz arrays. -
Method Summary
Modifier and Type Method Description void
run()
Here is the kernel entrypoint.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
-
Constructor Details
-
NBodyKernel
public NBodyKernel(com.aparapi.Range _range)Constructor initializes xyz and vxyz arrays.- Parameters:
_range
- The execution range provided.
-
-
Method Details
-
run
public void run()Here is the kernel entrypoint. Here is where we calculate the position of each body- Specified by:
run
in classcom.aparapi.Kernel
-