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... | |
Bindings for the ctypes interface for PyPO.
These bindings are concerned with propagations for the ray-tracer and the physical optics on the GPU.
| def PyPO.BindGPU.loadGPUlib | ( | ) |
Load the pypogpu shared library.
Will detect the operating system and link the library accordingly.
| 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.
| source | A reflDict dictionary of the surface on which the source currents/scalarfields are defined. |
| target | A reflDict dictionary of the target surface on which the results are calculated. |
| runPODict | A runPODict dictionary containing the relevant propagation parameters. |
| 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.
| runRTDict | A runRTDict dictionary containing the relevant propagation parameters. |