I could not replicate your problem, so a bit more investigation is needed to diagnose it. Clearly the magma_zgesv routine is failing and returning early, hence the erroneous Gflop/s speeds. It's confusing why no error is reported, though.What do you get for testing_zgetrf ?What about other precisions:testing_sgetrf and testing_sgesvtesting_dgetrf and testing_dgesvtesting_cgetrf and testing_cgesv

N CPU GFlop/s GPU GFlop/s ||R_magma - R_lapack||_F / ||R_lapack||_F======================================================== ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value 1024 48.58 86.75 2.760964e-03 ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value 2048 108.96 197.23 2.071686e-03 ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value 3072 115.78 293.54 1.725181e-03 ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value ** On entry to ZGEMM parameter number 13 had an illegal value 4032 121.36 604.60 3.726479e-01Argument 6 of magma_zpotrf had an illegal value. 5184 125.88 807968.36 6.149519e+01Argument 6 of magma_zpotrf had an illegal value. 6048 127.19 1586436.50 6.648873e+01Argument 6 of magma_zpotrf had an illegal value. 7200 128.72 2945677.70 7.262484e+01Argument 6 of magma_zpotrf had an illegal value. 8064 128.78 4019409.11 7.690918e+01Argument 6 of magma_zpotrf had an illegal value. 8928 129.27 5582925.11 8.096837e+01Argument 6 of magma_zpotrf had an illegal value.10240 129.12 8523633.07 8.677301e+01Argument 6 of magma_zpotrf had an illegal value.20000 136.71 61663969.36 1.216120e+02Argument 6 of magma_zpotrf had an illegal value.

Nothing is apparent yet. Since dgetrf works, it doesn't seem to be a precision issue. Since smaller sizes work, it doesn't seem to be a memory issue. It looks like everything double complex is failing for you. Try testing_*gemm with various sizes.

What is your hardware (CPU, memory, GPU), OS, compiler, Magma version, CUDA version, BLAS and LAPACK versions? What is your make.inc? What is your $LD_LIBRARY_PATH? Any other environment variables that might be relevant (MKL, etc.)? Anything other information about how you compiled it, problems you ran into, etc.?

If you can, try different versions of CUDA, BLAS, etc., to see if some different combination works. If you have a different computer, try on different hardware.

In testing_zgemm, I commented out the call to magma_zgemm and forced it to run only one matrix size (M=N=K=1024). I used cudaGetLastError before the call to cublasZgemm and get no error. I used it after cublasZgemm and I get "unspecified launch failure".

Memory mapping errors usually happen when you pass a device pointer where it expects a CPU pointer, or vice-versa, or any other time the pointer is invalid. They are the generic seg-fault for GPU code.

What is your make.inc file?I noticed in an earlier post that you used Intel icc. Perhaps try with gcc.