PyPO User Manual
BindGPU.py File Reference

Bindings for the ctypes interface for PyPO. More...

Functions

def PyPO.BindGPU.loadGPUlib ()
 Load the pypogpu shared library. More...
 
def PyPO.BindGPU.PyPO_GPUf (source, target, runPODict)
 Perform a PO propagation on the GPU. More...
 
def PyPO.BindGPU.RT_GPUf (runRTDict)
 Perform an RT propagation on the GPU. More...
 

Detailed Description

Bindings for the ctypes interface for PyPO.

These bindings are concerned with propagations for the ray-tracer and the physical optics on the GPU.

Function Documentation

◆ loadGPUlib()

def PyPO.BindGPU.loadGPUlib ( )

Load the pypogpu shared library.

Will detect the operating system and link the library accordingly.

Returns
lib The ctypes library containing the C/C++ functions.

◆ PyPO_GPUf()

def PyPO.BindGPU.PyPO_GPUf (   source,
  target,
  runPODict 
)

Perform a PO propagation on the GPU.

Note that the calculations are always done in single precision for the GPU. Depending on the 'mode' parameter in the runPODict, this function returns different objects. Please see the dictionary templates for an overview.

Parameters
sourceA reflDict dictionary of the surface on which the source currents/scalarfields are defined.
targetA reflDict dictionary of the target surface on which the results are calculated.
runPODictA runPODict dictionary containing the relevant propagation parameters.
See also
runPODict

◆ RT_GPUf()

def PyPO.BindGPU.RT_GPUf (   runRTDict)

Perform an RT propagation on the GPU.

Note that the calculations are always done in single precision for the GPU.

Parameters
runRTDictA runRTDict dictionary containing the relevant propagation parameters.
See also
runRTDict