MAGMA
2.7.1
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. More... | |
magma_int_t magma_init | ( | void | ) |
Initializes the MAGMA library.
Caches information about available CUDA devices.
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.
When renumbering CUDA devices, call cudaSetValidDevices before calling magma_init. When setting CUDA device flags, call cudaSetDeviceFlags before calling magma_init.
MAGMA_SUCCESS | |
MAGMA_ERR_UNKNOWN | |
MAGMA_ERR_HOST_ALLOC |
magma_int_t magma_finalize | ( | void | ) |
Frees information used by the MAGMA library.