MAGMA  2.0.0
Matrix Algebra for GPU and Multicore Architectures
Initialization


More...

Functions

magma_int_t magma_init ()
 Initializes the MAGMA library. More...
 
magma_int_t magma_finalize ()
 Frees information used by the MAGMA library.
 
void magma_print_environment ()
 Print the available GPU devices. More...
 

Detailed Description


Function Documentation

magma_int_t magma_init ( )

Initializes the MAGMA library.

Caches information about available CUDA devices. When renumbering CUDA devices, call cudaSetValidDevices before calling magma_init.

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.

See also
magma_finalize
void magma_print_environment ( )

Print the available GPU devices.

Used in testing.