MAGMA  1.7.0
Matrix Algebra for GPU and Multicore Architectures
 All Classes Files Functions Friends Groups Pages
Initialization


More...

Functions

magma_int_t magma_init ()
 Caches information about available CUDA devices. More...
 
magma_int_t magma_finalize ()
 Frees information about CUDA devices.
 
void magma_print_environment ()
 Print the available GPU devices. More...
 

Detailed Description


Function Documentation

magma_int_t magma_init ( )

Caches information about available CUDA devices.

When renumbering devices after calling magma_init, call magma_finalize, then cudaSetValidDevices, then magma_init again. Ideally magma_init is paired with magma_finalize, but this implementation ensures there isn't a memory leak if magma_init is called multiple times without calling magma_finalize.

See also
magma_finalize
void magma_print_environment ( )

Print the available GPU devices.

Used in testing.