[sdcz]qpt01 are LAPACK testing functions. They would not be in the LAPACK library, per se, but in LAPACK's testing. MAGMA has its own copy of them:

Code: Select all

```
>> pfind -i qpt01 lapack
lapack/TESTING/LIN/cqpt01.f
lapack/TESTING/LIN/dqpt01.f
lapack/TESTING/LIN/sqpt01.f
lapack/TESTING/LIN/zqpt01.f
>> pfind -i qpt01 magma
magma/testing/lin/cqpt01.f
magma/testing/lin/dqpt01.f
magma/testing/lin/sqpt01.f
magma/testing/lin/zqpt01.f
```

They are only needed in the MAGMA testers, not to build the MAGMA library itself:

Code: Select all

```
thyme ~/Documents/magma> grep -i qpt01 */*.{h,hpp,cu,cuh,cpp}
include/magma_clapack.h:#define lapackf77_cqpt01 FORTRAN_NAME( cqpt01, CQPT01 )
include/magma_clapack.h:float lapackf77_cqpt01( const magma_int_t *m, const magma_int_t *n, const magma_int_t *k,
include/magma_dlapack.h:#define lapackf77_dqpt01 FORTRAN_NAME( dqpt01, DQPT01 )
include/magma_dlapack.h:double lapackf77_dqpt01( const magma_int_t *m, const magma_int_t *n, const magma_int_t *k,
include/magma_slapack.h:#define lapackf77_sqpt01 FORTRAN_NAME( sqpt01, SQPT01 )
include/magma_slapack.h:float lapackf77_sqpt01( const magma_int_t *m, const magma_int_t *n, const magma_int_t *k,
include/magma_zlapack.h:#define lapackf77_zqpt01 FORTRAN_NAME( zqpt01, ZQPT01 )
include/magma_zlapack.h:double lapackf77_zqpt01( const magma_int_t *m, const magma_int_t *n, const magma_int_t *k,
testing/testing_cgeqp3.cpp: error = lapackf77_cqpt01( &M, &N, &min_mn, h_A, h_R, &lda,
testing/testing_cgeqp3_gpu.cpp: error = lapackf77_cqpt01( &M, &N, &min_mn, h_A, h_R, &lda,
testing/testing_dgeqp3.cpp: error = lapackf77_dqpt01( &M, &N, &min_mn, h_A, h_R, &lda,
testing/testing_dgeqp3_gpu.cpp: error = lapackf77_dqpt01( &M, &N, &min_mn, h_A, h_R, &lda,
testing/testing_sgeqp3.cpp: error = lapackf77_sqpt01( &M, &N, &min_mn, h_A, h_R, &lda,
testing/testing_sgeqp3_gpu.cpp: error = lapackf77_sqpt01( &M, &N, &min_mn, h_A, h_R, &lda,
testing/testing_zgeqp3.cpp: error = lapackf77_zqpt01( &M, &N, &min_mn, h_A, h_R, &lda,
testing/testing_zgeqp3_gpu.cpp: error = lapackf77_zqpt01( &M, &N, &min_mn, h_A, h_R, &lda,
```

So `make lib` should work, but `make test` would fail if you change the name mangling.

-mark