HasDoubleSupport - Maple Help

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

CUDA

 HasDoubleSupport
 check if double precision is supported

 Calling Sequence HasDoubleSupport( ) HasDoubleSupport( id=arg )

Parameters

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

Description

 • The HasDoubleSupport checks if a CUDA-enabled device supports double precision computation and returns true or false.  Certain Maple routines require a CUDA-enabled device capable of double precision computation.
 • CUDA-enabled devices are enumerated so that each device is assigned a unique number. The id parameter allows you to select the device for which you want to view properties. If the id parameter is not specified, a table with the id as the index and true or false 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{HasDoubleSupport}\left(\right)$
 ${\mathrm{table}}{}\left(\left[{0}{=}{\mathrm{true}}\right]\right)$ (2)
 > $\mathrm{CUDA}:-\mathrm{HasDoubleSupport}\left(\mathrm{id}=0\right)$
 ${\mathrm{true}}$ (3)

Compatibility

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