Go to: Synopsis. Return value. Keywords. Flags. MEL examples.

Synopsis

openCLInfo [-limitMinimumVerts boolean] [-minVertexBuffer int] [-supportsDoublePrecision boolean] [-valid]

openCLInfo is NOT undoable, queryable, and NOT editable.

Query OpenCL information.

Return value

booleanThe state of whether OpenCL is initialized or not (with the 'valid' flag)

In query mode, return type is based on queried flag.

Keywords

OpenCL, debug

Flags

limitMinimumVerts, minVertexBuffer, supportsDoublePrecision, valid
Long name (short name) Argument types Properties
-limitMinimumVerts(-lmv) boolean createquery
Specifies whether the limit on the minimum vert count of the geometry is used or not. The system configuration determines a certain minimum size for geometries to be allowed on GPU. When this flag is on this limit is obeyed. When this flag is off this limit is ignored. This is only used for debugging purposes and is not saved to the file or any preferences.
-minVertexBuffer(-mvb) int createquery
Set the minimum vert count under which the geometry will not be allowed on the GPU (unless in a network with qualifying geometries). This is only used for debugging purposes and is not saved to the file or any preferences.
-supportsDoublePrecision(-dbl) boolean createquery
Specifies whether double precision can be used in OpenCL. If the platform can not allow double precision this can not be set to "on".
-valid(-v) query
Valid in query mode only. Checks if OpenCL is initialized.

Flag can appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can be used more than once in a command.

MEL examples

// Query if OpenCL is initialized or not
openCLInfo -q -valid;
// Result: 1 //

// Set the minimum vertex buffer size
openCLInfo -mvb 2000;

// Query the minimum vertex buffer size
openCLInfo -q -mvb;
// Result: 2000 //

// Query whether double precision is supported or not
openCLInfo -q -dbl;
// Result: 1