![]() |
MAGMA
1.6.3
Matrix Algebra for GPU and Multicore Architectures
|
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... | |
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.
void magma_print_environment | ( | ) |
Print the available GPU devices.
Used in testing.