|
MAGMA
1.2.0
MatrixAlgebraonGPUandMulticoreArchitectures
|
#include <stdlib.h>#include <stdio.h>#include <string.h>#include <math.h>#include <cuda.h>#include <cuda_runtime_api.h>#include <cublas.h>#include "flops.h"#include "magma.h"#include "magma_lapack.h"#include "testings.h"Go to the source code of this file.
Macros | |
| #define | PRECISION_d |
| #define | FLOPS(m, n) ( FMULS_GETRF(m, n) + FADDS_GETRF(m, n) ) |
Functions | |
| magma_int_t | magma_dgetrf3 (magma_int_t num_gpus, magma_int_t m, magma_int_t n, double *a, magma_int_t lda, magma_int_t *ipiv, magma_int_t *info) |
| double | get_LU_error (magma_int_t M, magma_int_t N, double *A, magma_int_t lda, double *LU, magma_int_t *IPIV) |
| int | main (int argc, char **argv) |
| #define FLOPS | ( | m, | |
| n | |||
| ) | ( FMULS_GETRF(m, n) + FADDS_GETRF(m, n) ) |
Definition at line 38 of file testing_dgetrf.cpp.
| #define PRECISION_d |
Definition at line 34 of file testing_dgetrf.cpp.
| double get_LU_error | ( | magma_int_t | M, |
| magma_int_t | N, | ||
| double * | A, | ||
| magma_int_t | lda, | ||
| double * | LU, | ||
| magma_int_t * | IPIV | ||
| ) |
Definition at line 41 of file testing_dgetrf.cpp.
References blasf77_dgemm(), L, lapackf77_dlacpy(), lapackf77_dlange(), lapackf77_dlaswp(), MAGMA_D_MAKE, MAGMA_D_ONE, MAGMA_D_SUB, MAGMA_D_ZERO, MagmaLowerStr, MagmaUpperStr, min, gbstrct_blg::N, TESTING_FREE, TESTING_MALLOC, and codegen::work.
| magma_int_t magma_dgetrf3 | ( | magma_int_t | num_gpus, |
| magma_int_t | m, | ||
| magma_int_t | n, | ||
| double * | a, | ||
| magma_int_t | lda, | ||
| magma_int_t * | ipiv, | ||
| magma_int_t * | info | ||
| ) |
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 86 of file testing_dgetrf.cpp.
References FLOPS, get_current_time(), get_LU_error(), GetTimerValue(), ISEED, lapackf77_dgetrf(), lapackf77_dlacpy(), lapackf77_dlarnv(), magma_dgetrf(), magma_get_dgetrf_nb(), MagmaUpperLowerStr, min, gbstrct_blg::N, TESTING_CUDA_FINALIZE, TESTING_CUDA_INIT, TESTING_FREE, TESTING_HOSTALLOC, TESTING_HOSTFREE, and TESTING_MALLOC.