Hi, Mark,
I just comment the function of "magma_zpotri( opts.uplo, N, h_R, lda, &info );", and replace by " lapackf77_zpotri(lapack_uplo_const(opts.uplo), &N, h_R, &lda, &info);" , Which looks like in the below.
Old
Code: Select all
gpu_time = magma_wtime();
/* factorize matrix */
magma_zpotrf( opts.uplo, N, h_R, lda, &info );
if (info != 0)
printf("magma_zpotrf returned error %d: %s.\n",
(int)info, magma_strerror(info));
magma_zpotri( opts.uplo, N, h_R, lda, &info );
gpu_time = magma_wtime() - gpu_time;
gpu_perf = gflops / gpu_time;
if (info != 0)
printf("magma_zpotri returned error %d: %s.\n",
(int) info, magma_strerror( info ));
Change to
Code: Select all
gpu_time = magma_wtime();
/* factorize matrix */
magma_zpotrf( opts.uplo, N, h_R, lda, &info );
if (info != 0)
printf("magma_zpotrf returned error %d: %s.\n",
(int)info, magma_strerror(info));
// magma_zpotri( opts.uplo, N, h_R, lda, &info );
lapackf77_zpotri(lapack_uplo_const(opts.uplo), &N, h_R, &lda, &info);
gpu_time = magma_wtime() - gpu_time;
gpu_perf = gflops / gpu_time;
if (info != 0)
printf("magma_zpotri returned error %d: %s.\n",
(int) info, magma_strerror( info ));
But the result is not okay, as shown in the below.
Code: Select all
D:\magma\build\testing\Release>testing_zpotri.exe --lapack
MAGMA 1.6.2 compiled for CUDA capability >= 2.0
CUDA runtime 7000, driver 7050. OpenMP threads 32. MKL 11.0.5, MKL threads 16.
ndevices 2
device 0: GeForce GTX 980, 1215.5 MHz clock, 4096.0 MB memory, capability 5.2
device 1: GeForce GTX 750 Ti, 1254.5 MHz clock, 2048.0 MB memory, capability 5.0
Usage: testing_zpotri.exe [options] [-h|--help]
N CPU GFlop/s (sec) GPU GFlop/s (sec) ||R||_F / ||A||_F
=================================================================
18072 151.66 ( 155.68) 179.80 ( 131.32) 3.55e+169 failed
I'm new to use MAGMA. Should I do something on the factorized matrix (h_R), before calling lapackf77_zpotri(...) .
I think some how function lapackf77_zpotri(...) does not accept the the factorized matrix (h_R) from magma_zpotrf(...) directly.
any suggestion is welcome.
Ning