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