assertOpenCL
September 19, 2018
|
Functions | |
def | get_device (platform_i, device_i) |
def | run_example (nb_work_group, nb_work_items_by_work_group, device=None, debug=__debug__) |
def | main () |
Main #. More... | |
def example.get_device | ( | platform_i, | |
device_i | |||
) |
Return the given device of the given platform OpenCL. :param platform_i: int >= 0 :param device_i: int >= 0 :return: None or OpenCL device
Definition at line 26 of file example.py.
def example.main | ( | ) |
Main #.
Get the optional parameter --device platform:device and run the kernel ../kernel/example.cl
Definition at line 172 of file example.py.
def example.run_example | ( | nb_work_group, | |
nb_work_items_by_work_group, | |||
device = None , |
|||
debug = __debug__ |
|||
) |
Run the kernel ../kernel/example.cl. If device is None then use the default device, else use device. If debug then run the kernel in debug mode, else run the kernel with the macro NDEBUG defined. :param nb_work_group: int > 0 :param nb_work_items_by_work_group: int > 0 :param device: None or OpenCL device :param debug: bool
Definition at line 53 of file example.py.