bempp.core.opencl_kernels

OpenCL routines.

Module Contents

Functions

select_cl_kernel(operator_descriptor, mode)

Select OpenCL kernel.

get_kernel_compile_options(options, precision)

Create compiler options from parameters and precision.

build_program(assembly_function, options, precision[, ...])

Build the kernel and return it.

get_kernel_from_operator_descriptor(...[, ...])

Return compiled kernel from operator descriptor.

get_kernel_from_name(name, options[, precision, ...])

Return compiled kernel from name.

get_vector_width(precision[, device_type])

Return vector width.

get_vec_string(precision[, device_type])

Return vectorisation string.

default_cpu_device()

Return the default CPU device.

default_gpu_device()

Return the default GPU device.

default_device([device_type])

Return default device.

default_context([device_type])

Return the default context

default_cpu_context()

Return default CPU context.

default_gpu_context()

Return default GPU context.

find_cpu_driver([name])

Find the first available CPU OpenCL driver.

find_gpu_driver([name])

Find the first available GPU OpenCL driver.

set_default_cpu_device_by_name(name)

Set default CPU device by name.

set_default_cpu_device(platform_index, device_index)

Set the default CPU device.

set_default_gpu_device_by_name(name)

Set default GPU device by name.

set_default_gpu_device(platform_index, device_index)

Set the default GPU device.

show_available_platforms_and_devices()

Print available platforms and devices.

get_native_vector_width(device, precision)

Get default vector width for device.

Attributes

_CURRENT_PATH

_INCLUDE_PATH

_KERNEL_PATH

_DEFAULT_CPU_DEVICE

_DEFAULT_CPU_CONTEXT

_DEFAULT_GPU_DEVICE

_DEFAULT_GPU_CONTEXT

bempp.core.opencl_kernels._CURRENT_PATH
bempp.core.opencl_kernels._INCLUDE_PATH
bempp.core.opencl_kernels._KERNEL_PATH
bempp.core.opencl_kernels._DEFAULT_CPU_DEVICE
bempp.core.opencl_kernels._DEFAULT_CPU_CONTEXT
bempp.core.opencl_kernels._DEFAULT_GPU_DEVICE
bempp.core.opencl_kernels._DEFAULT_GPU_CONTEXT
bempp.core.opencl_kernels.select_cl_kernel(operator_descriptor, mode)

Select OpenCL kernel.

bempp.core.opencl_kernels.get_kernel_compile_options(options, precision)

Create compiler options from parameters and precision.

bempp.core.opencl_kernels.build_program(assembly_function, options, precision, device_type='cpu')

Build the kernel and return it.

bempp.core.opencl_kernels.get_kernel_from_operator_descriptor(operator_descriptor, options, mode, force_novec=False, device_type='cpu')

Return compiled kernel from operator descriptor.

bempp.core.opencl_kernels.get_kernel_from_name(name, options, precision='double', device_type='cpu')

Return compiled kernel from name.

bempp.core.opencl_kernels.get_vector_width(precision, device_type='cpu')

Return vector width.

bempp.core.opencl_kernels.get_vec_string(precision, device_type='cpu')

Return vectorisation string.

bempp.core.opencl_kernels.default_cpu_device()

Return the default CPU device.

bempp.core.opencl_kernels.default_gpu_device()

Return the default GPU device.

bempp.core.opencl_kernels.default_device(device_type='cpu')

Return default device.

bempp.core.opencl_kernels.default_context(device_type='cpu')

Return the default context

bempp.core.opencl_kernels.default_cpu_context()

Return default CPU context.

bempp.core.opencl_kernels.default_gpu_context()

Return default GPU context.

bempp.core.opencl_kernels.find_cpu_driver(name=None)

Find the first available CPU OpenCL driver.

bempp.core.opencl_kernels.find_gpu_driver(name=None)

Find the first available GPU OpenCL driver.

bempp.core.opencl_kernels.set_default_cpu_device_by_name(name)

Set default CPU device by name.

This method looks for the given string in the available OpenCL drivers and picks the first one that contains the given search string.

bempp.core.opencl_kernels.set_default_cpu_device(platform_index, device_index)

Set the default CPU device.

bempp.core.opencl_kernels.set_default_gpu_device_by_name(name)

Set default GPU device by name.

This method looks for the given string in the available OpenCL drivers and picks the first one that contains the given search string.

bempp.core.opencl_kernels.set_default_gpu_device(platform_index, device_index)

Set the default GPU device.

bempp.core.opencl_kernels.show_available_platforms_and_devices()

Print available platforms and devices.

bempp.core.opencl_kernels.get_native_vector_width(device, precision)

Get default vector width for device.