bempp.core.opencl_kernels
¶
OpenCL routines.
Module Contents¶
Functions¶
|
Select OpenCL kernel. |
|
Create compiler options from parameters and precision. |
|
Build the kernel and return it. |
|
Return compiled kernel from operator descriptor. |
|
Return compiled kernel from name. |
|
Return vector width. |
|
Return vectorisation string. |
Return the default CPU device. |
|
Return the default GPU device. |
|
|
Return default device. |
|
Return the default context |
Return default CPU context. |
|
Return default GPU context. |
|
|
Find the first available CPU OpenCL driver. |
|
Find the first available GPU OpenCL driver. |
Set default CPU device by name. |
|
|
Set the default CPU device. |
Set default GPU device by name. |
|
|
Set the default GPU device. |
Print available platforms and devices. |
|
|
Get default vector width for device. |
Attributes¶
- 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.