Package solvcon :: Package kerpak :: Module cuse :: Class CudaUpDownAnchor
[hide private]
[frames] | no frames]

Class CudaUpDownAnchor

source code


Upload and download variable arrays between GPU device memory and CPU host memory. By default preloop() and premarch() callbacks do uploading, and postmarch() and postloop() do downloading. The default behavior is compatible to solvcon.anchor.VtkAnchor. Subclasses can override callback methods for more complicated operations.

Instance Methods [hide private]
 
__init__(self, svr, **kw)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
_upload(self) source code
 
_download(self) source code
 
preloop(self) source code
 
premarch(self) source code
 
postmarch(self) source code
 
postloop(self) source code

Inherited from anchor.Anchor: exhaust, postfull, postsub, prefull, presub, provide

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables [hide private]
  downarrs
names of arrays to be downloaded from device to host.
  rsteps
steps to run.
  uparrs
names of arrays to be uploaded from host to device.

Inherited from anchor.Anchor: kws, svr

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, svr, **kw)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

preloop(self)

source code 
Overrides: anchor.Anchor.preloop

premarch(self)

source code 
Overrides: anchor.Anchor.premarch

postmarch(self)

source code 
Overrides: anchor.Anchor.postmarch

postloop(self)

source code 
Overrides: anchor.Anchor.postloop