MAGMA  2.3.0
Matrix Algebra for GPU and Multicore Architectures
 All Classes Files Functions Friends Groups Pages
Initialize/finalize


More...

Functions

magma_int_t magma_init ()
 Initializes the MAGMA library. More...
 
magma_int_t magma_finalize ()
 Frees information used by the MAGMA library. More...
 

Detailed Description


Function Documentation

magma_int_t magma_init ( void  )

Initializes the MAGMA library.

Caches information about available CUDA devices.

Every magma_init call must be paired with a magma_finalize call. Only one thread needs to call magma_init and magma_finalize, but every thread may call it. If n threads call magma_init, the n-th call to magma_finalize will release resources.

When renumbering CUDA devices, call cudaSetValidDevices before calling magma_init. When setting CUDA device flags, call cudaSetDeviceFlags before calling magma_init.

Return values
MAGMA_SUCCESS
MAGMA_ERR_UNKNOWN
MAGMA_ERR_HOST_ALLOC
See Also
magma_finalize
magma_int_t magma_finalize ( void  )

Frees information used by the MAGMA library.

See Also
magma_init