Documentation ¶
Overview ¶
Package nbody include the benchmark of NBody sample Derived from SDKSample base class
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Benchmark ¶
type Benchmark struct { NumParticles int32 NumIterations int32 // contains filtered or unexported fields }
Benchmark defines a benchmark
func NewBenchmark ¶
NewBenchmark returns a benchmark
func (*Benchmark) SetUnifiedMemory ¶
func (b *Benchmark) SetUnifiedMemory()
SetUnifiedMemory uses Unified Memory
type KernelArgs ¶
type KernelArgs struct { Pos driver.Ptr Vel driver.Ptr NumBodies int32 DeltaTime float32 EpsSqr float32 LocalPos driver.LocalPtr NewPosition driver.Ptr NewVelocity driver.Ptr HiddenGlobalOffsetX int64 HiddenGlobalOffsetY int64 HiddenGlobalOffsetZ int64 }
KernelArgs defines kernel arguments
Click to show internal directories.
Click to hide internal directories.