IsEnabled - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


CUDA

  

IsEnabled

  

check if CUDA(R) acceleration is turned on

 

Calling Sequence

Description

Examples

Calling Sequence

IsEnabled( )

Description

• 

The IsEnabled function returns a value of true if Compute Unified Device Architecture (CUDA) acceleration is turned on and false otherwise.

• 

Use the Enable function to turn CUDA acceleration on and off.

• 

If your computer does not support CUDA, an error will be displayed. For more information about supported hardware, see Supported Hardware for CUDA Acceleration.

Examples

Run these examples on a computer that supports CUDA.

n4000:

M1LinearAlgebra:-RandomMatrixn,n,datatype=float4:

M2LinearAlgebra:-RandomMatrixn,n,datatype=float4:

CUDA:-IsEnabled

false

(1)

tNoCUDAtimerealM1·M2

tNoCUDA13.823

(2)

CUDA:-Enabletrue

false

(3)

CUDA:-IsEnabled

true

(4)

tCUDAtimerealM1·M2

tCUDA1.163

(5)

evalftNoCUDAtCUDA

11.88564058

(6)

CUDA:-Enablefalse

true

(7)

CUDA:-IsEnabled

false

(8)

See Also

CUDA

CUDA[Enable]

CUDA[Properties]

Supported Hardware for CUDA Acceleration