Top Description Constructors Methods
com.jogamp.opencl.util

public Class CLPlatformFilters

extends Object
Class Inheritance
Imports
com.jogamp.opencl.CLCommandQueue.Mode, .CLDevice, .CLPlatform, .CLVersion, java.util.Arrays, com.jogamp.opengl.GL, .GLContext

Pre-defined filters.
Author
Michael Bien
See Also
CLPlatform#getDefault(com.jogamp.opencl.util.Filter[]), CLPlatform#listCLPlatforms(com.jogamp.opencl.util.Filter[])

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static boolean

Returns:

true if the strings are either the same, or indicate that they're part of the same card.
areVendorsCompatible
(final String
OpenGL vendor string.
glVendor
,
final String
OpenCL vendor string.
clVendor
)

We need this test because: - On at least some AMD cards, the GL vendor is ATI, but the CL vendor is AMD.

public static Filter<CLPlatform>
extension(final String... extensions)

Accepts all platforms supporting the given extensions.

public static Filter<CLPlatform>
glSharing()

Accepts all platforms containing at least one devices of which supports OpenGL-OpenCL interoperability.

public static Filter<CLPlatform>
glSharing(final GLContext context)

Accepts all with the given OpenGL context compatible platforms containing at least one devices of which supports OpenGL-OpenCL interoperability.

public static Filter<CLPlatform>
queueMode(final CLCommandQueue.Mode... modes)

Accepts all platforms containing at least one devices supporting the specified command queue modes.

public static Filter<CLPlatform>
type(final CLDevice.Type type)

Accepts all platforms containing devices of the given type.

public static Filter<CLPlatform>
version(final CLVersion version)

Accepts all platforms supporting at least the given OpenCL spec version.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

CLPlatformFiltersback to summary
public CLPlatformFilters()

Method Detail

areVendorsCompatibleback to summary
private static boolean areVendorsCompatible(final String glVendor, final String clVendor)

We need this test because: - On at least some AMD cards, the GL vendor is ATI, but the CL vendor is AMD. - On at least some Macs, the GL vendor is Nvidia, but the CL vendor is Apple.

Parameters
glVendor:String

OpenGL vendor string.

clVendor:String

OpenCL vendor string.

Returns:boolean

true if the strings are either the same, or indicate that they're part of the same card.

extensionback to summary
public static Filter<CLPlatform> extension(final String... extensions)

Accepts all platforms supporting the given extensions.

glSharingback to summary
public static Filter<CLPlatform> glSharing()

Accepts all platforms containing at least one devices of which supports OpenGL-OpenCL interoperability.

glSharingback to summary
public static Filter<CLPlatform> glSharing(final GLContext context)

Accepts all with the given OpenGL context compatible platforms containing at least one devices of which supports OpenGL-OpenCL interoperability.

queueModeback to summary
public static Filter<CLPlatform> queueMode(final CLCommandQueue.Mode... modes)

Accepts all platforms containing at least one devices supporting the specified command queue modes.

typeback to summary
public static Filter<CLPlatform> type(final CLDevice.Type type)

Accepts all platforms containing devices of the given type.

versionback to summary
public static Filter<CLPlatform> version(final CLVersion version)

Accepts all platforms supporting at least the given OpenCL spec version.