ShyLU: Build error in Tacho with complex enabled
Created by: mhoemmen
@trilinos/shylu
ZSYTRF takes 8 arguments; the code gives it 6 arguments. I'm seeing this error with the MKL TPL enabled, but if you look at the code, it calls ZSYTRF in the same way when the MKL TPL is not enabled. Here is the build error:
[ 20%] Building CXX object packages/shylu/tacho/core/example/CMakeFiles/Tacho_ExampleCholPardiso.dir/Tacho_ExampleCholPardiso.cpp.o
In file included from .../Trilinos/packages/shylu/tacho/core/example/Tacho_ExampleCholPardiso.cpp:10:
In file included from .../Trilinos/packages/shylu/tacho/core/src/TachoExp_NumericTools.hpp:14:
In file included from .../Trilinos/packages/shylu/tacho/core/src/TachoExp_Chol_External.hpp:8:
.../Trilinos/packages/shylu/tacho/core/src/TachoExp_Lapack_External.hpp:150:9: error: no matching function for call to 'csytrf_'
F77_FUNC_CSYTRF(&uplo,
^~~~~~~~~~~~~~~
.../Trilinos/packages/shylu/tacho/core/src/TachoExp_Lapack_External.hpp:64:25: note: expanded from macro 'F77_FUNC_CSYTRF'
#define F77_FUNC_CSYTRF F77_BLAS_MANGLE(csytrf,CSYTRF)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.../Trilinos/CHECKIN-CLANG-3.9.0/MPI_DEBUG/packages/shylu/tacho/core/src/ShyLUTacho_config.h:35:37: note: expanded from macro 'F77_BLAS_MANGLE'
# define F77_BLAS_MANGLE(name,NAME) name ## _
^~~~~~~~~
<scratch space>:141:1: note: expanded from here
csytrf_
^~~~~~~
.../intel/mkl/include/mkl_lapack.h:7532:6: note: candidate function not viable: requires 8 arguments, but 6 were provided
void csytrf_( const char* uplo, const MKL_INT* n, MKL_Complex8* a,
^
In file included from .../Trilinos/packages/shylu/tacho/core/example/Tacho_ExampleCholPardiso.cpp:10:
In file included from .../Trilinos/packages/shylu/tacho/core/src/TachoExp_NumericTools.hpp:14:
In file included from .../Trilinos/packages/shylu/tacho/core/src/TachoExp_Chol_External.hpp:8:
.../Trilinos/packages/shylu/tacho/core/src/TachoExp_Lapack_External.hpp:192:9: error: no matching function for call to 'zsytrf_'
F77_FUNC_ZSYTRF(&uplo,
^~~~~~~~~~~~~~~
.../Trilinos/packages/shylu/tacho/core/src/TachoExp_Lapack_External.hpp:65:25: note: expanded from macro 'F77_FUNC_ZSYTRF'
#define F77_FUNC_ZSYTRF F77_BLAS_MANGLE(zsytrf,ZSYTRF)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.../Trilinos/CHECKIN-CLANG-3.9.0/MPI_DEBUG/packages/shylu/tacho/core/src/ShyLUTacho_config.h:35:37: note: expanded from macro 'F77_BLAS_MANGLE'
# define F77_BLAS_MANGLE(name,NAME) name ## _
^~~~~~~~~
<scratch space>:141:1: note: expanded from here
zsytrf_
^~~~~~~
.../intel/mkl/include/mkl_lapack.h:26436:6: note: candidate function not viable: requires 8 arguments, but 6 were provided
void zsytrf_( const char* uplo, const MKL_INT* n, MKL_Complex16* a,
^
2 errors generated.