Syris Configuration

Initialization

Synchrotron Radiation Imaging Simulation (SYRIS) initialization.

syris.init(platform_name=None, device_type=None, device_index=None, profiling=False, profiling_file='profile.dat', loglevel=None, logfile=None, double_precision=False)

Initialize syris with device_index.

Initialization routines and global variables

OpenCL, logging and precision configuration. This module also defines global variables which hold the configuration objects for precision and OpenCL. Furthermore, pmasf path is specified here and caching policy for data as well.

class syris.config.OpenCL

OpenCL runtime information holder.

class syris.config.Precision(double=False)

A precision object holds the precision settings of the floating point and complex numpy and OpenCL data types. If double is True, double precision is used.

is_single()

Return True if the precision is single.

set_precision(double)

If double is True set the double precision.

syris.config.init_logging(level=10, logger_file=None)

Initialize logging with output to logger_file.