Initialization

------------------------------------------------------------ More...

Functions

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

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.


Generated on 3 May 2015 for MAGMA by  doxygen 1.6.1