ComputeLevel - Maple Help

Home : Support : Online Help : System : CUDA Package : ComputeLevel

CUDA

 ComputeLevel
 get the compute level of a CUDA-enabled device

 Calling Sequence ComputeLevel( ) ComputeLevel( id=arg )

Parameters

 arg - integer; the number of the device for which you want to test

Description

 • The ComputeLevel returns the compute level of CUDA-enabled devices.  The compute level of a CUDA-enabled device indicates the capabilities of the hardware.
 • CUDA-enabled devices are enumerated so that each device is assigned a unique number. The id parameter allows you to select the device whose compute level should be returned. If the id parameter is not specified, a table with the id as the index and the compute level as the entry.

Examples

Run these examples on a computer that supports CUDA.

 > $\mathrm{CUDA}:-\mathrm{Enable}\left(\mathrm{true}\right)$
 ${\mathrm{false}}$ (1)
 > $\mathrm{CUDA}:-\mathrm{ComputeLevel}\left(\right)$
 ${\mathrm{table}}{}\left(\left[{0}{=}{1.3}\right]\right)$ (2)
 > $\mathrm{CUDA}:-\mathrm{ComputeLevel}\left(\mathrm{id}=0\right)$
 ${1.3}$ (3)

Compatibility

 • The CUDA[ComputeLevel] command was introduced in Maple 15.