assertOpenCL
September 19, 2018
|
Functions | |
def | help_quit (error) |
def | print_device (device, complete) |
def | print_platform (platform, platform_id, complete) |
def | s (x) |
def | size_units (n) |
def | main () |
Main #. More... | |
Variables | |
long = int | |
def opencl_infos.help_quit | ( | error | ) |
Print the help message on stderr and exit with the error code. :param error: 0 <= int < 256
Definition at line 22 of file opencl_infos.py.
def opencl_infos.main | ( | ) |
Main #.
Print information on all OpenCL platforms and its devices.
Definition at line 155 of file opencl_infos.py.
def opencl_infos.print_device | ( | device, | |
complete | |||
) |
Print information about the device. :param device: pyopencl.Device :param complete: bool
Definition at line 41 of file opencl_infos.py.
def opencl_infos.print_platform | ( | platform, | |
platform_id, | |||
complete | |||
) |
Print information about the platform and its devices. :param platform: pyopencl.Platform :param platform_id: int >= 0 :param complete: bool
Definition at line 82 of file opencl_infos.py.
def opencl_infos.s | ( | x | ) |
If x >= 2 then return 's', else return ''. :param x: int or long or float :return: 's' or ''
Definition at line 112 of file opencl_infos.py.
def opencl_infos.size_units | ( | n | ) |
Return a string with the size n expressed in several units. :param: (int or long) >= 0 :return: str
Definition at line 127 of file opencl_infos.py.
opencl_infos.long = int |
Definition at line 19 of file opencl_infos.py.